* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

a {
  text-decoration: none;
}

/* NAVBAR */
header {
  width: 100%;
  border-bottom: 1px solid #dee2e6;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  width: 100%;
  padding-inline: 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #212529;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-menu a {
  color: #495057;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #0d6efd;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  transition: width 0.2s ease-out;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-newsletter-btn:hover {
  opacity: 0.95;
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.45);
}

.nav-toggle {
  display: none;
  border: 1px solid #ced4da;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  background: transparent;
  color: #212529;
}

@media (max-width: 767.98px) {
  .nav-center {
    display: none;
  }

  .nav-actions {
    margin-left: 0;
  }

  .nav-newsletter-btn {
    font-size: 0.78rem;
    padding-inline: 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}

/* HERO SECTION – DARK STRIP WITH GLOWING CARDS */
.hero {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at top left, #1b2735 0%, #020617 40%, #020617 100%);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Light gradient flares */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.35), transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(102, 16, 242, 0.3), transparent 60%);
  opacity: 0.9;
}

/* Subtle grid overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 90vh;
      margin: 20px;
  /*padding-block: 3.5rem;*/
  /*padding-inline: 1.5rem;*/
}

.hero-half {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-half.hero-left {
  align-items: center;
  justify-content: flex-end;
}

/* Left card: white with strong presence */
.hero-text-box {
  margin-right: 5%;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(15, 23, 42, 0.4);
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0f172a;
  border-radius: 18px;
  height: auto;
  min-height: 260px;
  width: 80%;
  max-width: 480px;
}

/* Optional kicker text at top of hero */
.hero-text-box .hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0d6efd;
  margin-bottom: 0.65rem;
}

.hero-text-box h1 {
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.hero-text-box p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #475569;
}

/* Right card: dark panel for profile */
.hero-half.hero-right {
  align-items: center;
  justify-content: flex-start;
}

.hero-empty-box {
  width: 70%;
  margin-left: 15%;
  background: #0b1120;
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(30, 64, 175, 0.6);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: stretch;
  border-radius: 18px;
  min-height: 420px;
  color: #e5e7eb;
}

/* Profile block inside hero stays same structure */
.hero-profile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.hero-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-profile-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
  flex-shrink: 0;
}

.hero-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-profile-meta h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #212529;
}

.hero-profile-role-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0d6efd;
  margin-bottom: 0.3rem;
}

.hero-profile-tagline {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

.hero-profile-body {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1.75rem;
}

.hero-profile-body p {
  margin: 0;
}

.hero-profile-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.hero-btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  padding-inline: 1.25rem;
}

.hero-btn-linkedin::before {
  content: "in";
  font-weight: 700;
  font-size: 0.8rem;
  background: #ffffff;
  color: #0d6efd;
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
}

.hero-btn-portfolio {
  font-size: 0.9rem;
  padding-inline: 1.2rem;
}

.hero-btn-cv {
  font-size: 0.9rem;
  padding-inline: 1.1rem;
}

/* Dark-mode overrides ONLY inside the dark hero card */
.hero-empty-box .hero-profile-meta h2 {
  color: #e5e7eb;
}

.hero-empty-box .hero-profile-tagline {
  color: #cbd5f5;
}

.hero-empty-box .hero-profile-body {
  color: #e5e7eb;
}

/* BODY SECTION */
.body-section {
  width: 100%;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

.body-section-inner {
  border-top: 1px solid #dee2e6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 2.5rem 1.5rem 3rem;
}

.body-col-left,
.body-col-middle,
.body-col-right {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
  padding: 1.75rem 1.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.body-col-left {
  flex: 1 1 auto;
  max-width: 100%;
}

.body-col-right {
  flex: 0 0 22rem;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-left: 1.5rem;
}

.body-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* LARGE & MEDIUM HEADINGS */
.section-heading-large {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 2rem;
  text-transform: none;
  letter-spacing: 0;
}

.section-heading-medium {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 2rem;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 991.98px) {
  .section-heading-large {
    font-size: 2.7rem;
  }
  .section-heading-medium {
    font-size: 2.2rem;
  }
}

@media (max-width: 767.98px) {
  .section-heading-large {
    font-size: 2.1rem;
  }
  .section-heading-medium {
    font-size: 1.8rem;
  }
}

/* TEMPLATES GRID & CARD */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .templates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.template-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.template-card-thumb {
  position: relative;
  padding-top: 80%;
  overflow: hidden;
  background: #212529;
}

.template-card-thumb-link {
  position: absolute;
  inset: 0;
  display: block;
}

.template-card-thumb-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease-out;
}

.template-card:hover .template-card-thumb-inner {
  transform: scale(1.04);
}

.pdf-thumb-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background-color: #f8f9fa;
}

.thumb-overlay-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}

.template-card-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: #f8f9fa;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.template-card-filetype {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(248, 249, 250, 0.92);
  color: #212529;
  border: 1px solid rgba(222, 226, 230, 0.8);
  z-index: 3;
}

.template-card-body {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.9rem 0.9rem;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.template-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #212529;
}

.template-card-desc {
  margin: 0;
  color: #6c757d;
  line-height: 1.4;
  flex-grow: 1;
}

.template-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #868e96;
}

.template-card-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.9rem 0.85rem;
}

.template-card-footer .btn-view-template {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

/* PORTFOLIO GRID & CARD */
.portfolio-wrapper {
  border-top: 1px solid #dee2e6;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  justify-content: center;
  background-color: #f8f9fa;
}

.portfolio-wrapper .body-col-middle {
  flex: 0 1 100%;
  max-width: 100%;
  padding: 1.75rem 1.25rem 2rem;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.portfolio-card-thumb {
  position: relative;
  padding-top: 60%;
  background: #111827;
  overflow: hidden;
}

.portfolio-card-thumb-link {
  position: absolute;
  inset: 0;
  display: block;
}

.portfolio-card-thumb-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease-out;
}

.portfolio-card:hover .portfolio-card-thumb-inner {
  transform: scale(1.03);
}

.pdf-thumb-frame-portfolio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background-color: #f8f9fa;
}

.thumb-overlay-link-portfolio {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}

.portfolio-card-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(13, 110, 253, 0.9);
  color: #f8f9fa;
  z-index: 3;
}

.portfolio-card-filetype {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(248, 249, 250, 0.92);
  color: #212529;
  border: 1px solid rgba(222, 226, 230, 0.8);
  z-index: 3;
}

.portfolio-card-body {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.85rem 0.9rem;
  font-size: 0.85rem;
  gap: 0.35rem;
}

.portfolio-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: #212529;
}

.portfolio-card-desc {
  margin: 0;
  color: #6c757d;
  line-height: 1.4;
  flex-grow: 1;
}

.portfolio-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.85rem 0.8rem;
  font-size: 0.78rem;
  color: #868e96;
}

.portfolio-card-footer .btn-view-portfolio {
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
}

/* FEATURED (apps) */
.apps-wrapper-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6c757d;
  margin-bottom: 1.25rem;
  text-align: left;
}

.app-box {
  flex: 1;
  border-radius: 14px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  padding: 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.app-box + .app-box {
  margin-top: 1rem;
}

.app-icon-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: radial-gradient(circle at 20% 0%, #0d6efd 0%, #6610f2 60%, #1b1f3b 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
  flex-shrink: 0;
}

.app-box-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0d6efd;
  margin-bottom: 0.15rem;
}

.app-box h4 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  color: #212529;
}

.app-box p {
  font-size: 0.85rem;
  color: #495057;
  margin: 0;
}

.app-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  margin-top: 0.7rem;
}

/* CV & SECTION MODALS (shared styles) */
.cv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cv-modal.show {
  display: flex;
}

.cv-modal-dialog {
  background: #ffffff;
  color: #212529;
  width: 90vw;
  max-width: 90vw;
  height: 80vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cv-modal-dialog h3 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.cv-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6c757d;
}

.cv-modal-close:hover {
  color: #212529;
}

.cv-modal-content {
  flex: 1;
  border-radius: 8px;
  overflow: auto;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 0;
}

.cv-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #f8f9fa;
}

/* z-index order for modals */
#cvModal {
  z-index: 2100;
}

#sectionModal {
  z-index: 2150;
}

#docModal {
  z-index: 2200;
}

/* FOOTER */
footer {
  width: 100%;
  border-top: 1px solid #dee2e6;
  background: #ffffff;
  padding: 1.5rem 0;
}

.footer-inner {
  width: 100%;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #495057;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* RESPONSIVE: body columns stacking */
@media (max-width: 1350.98px) {
  .body-section-inner {
    flex-direction: column;
  }
  .body-col-left,
  .body-col-middle,
  .body-col-right {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .body-col-right {
    margin-left: 0;
    margin-top: 1.5rem;
  }
  .portfolio-wrapper {
    padding-top: 1.5rem;
  }
}

/* RESPONSIVE: hero + footer tweaks */
@media (max-width: 991.98px) {
  .hero-inner {
    flex-direction: column;
    height: auto;
    padding-block: 2.5rem;
  }

  .hero-half {
    flex: 1 1 auto;
    justify-content: center;
    height: auto;
  }

  .hero-text-box,
  .hero-empty-box {
    width: 90%;
    margin: 1.25rem auto;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-text-box h1 {
    font-size: 2.4rem;
  }

  .hero-profile-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* CONTACT SECTION */
.contact-section {
  padding: 0 1.5rem 3.5rem;
  background: #f8f9fa;
}

.contact-inner {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid #dee2e6;
  padding: 2.2rem 2.4rem;
}

@media (max-width: 767.98px) {
  .contact-inner {
    padding: 1.7rem 1.5rem;
  }
}

.contact-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6c757d;
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-lead {
  font-size: 1.02rem;
  color: #495057;
  text-align: center;
  margin-bottom: 1.8rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .contact-items {
    flex-direction: row;
    justify-content: center;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 0.9rem;
  color: #343a40;
}

.contact-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #007bff;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-item a {
  color: #007bff;
  font-weight: 500;
  word-break: break-all;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Doc modal image */
#docModalContent img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}
