/* ===== GLOBAL STYLES ===== */

:root {
  /* Color palette */
  --bg: #00040F;
  --panel: #000718;
  --accent: #F6C23E;
  --text: #ffffff;
  --btn-text: #00040F;
  --muted: #9DA0A9;
  --disabled: #55585F;
  --body-text: rgba(255, 255, 255, 0.84);
  --accent-transparent-bg: rgba(246, 194, 62, 0.12);
  /* Added for consistency */

  /* Shape Radiues */
  --container-r-sm: 1rem;
  --container-r-md: 1.5rem;
  --container-r-lg: 1.75rem;
  --container-r-xl: 2rem;
  --btn-r-sm: .75rem;
  --icon-r-sm: 1rem;
  --icon-r-md: 1.5rem;


  /* Font families */
  --ff-sans: "Inter", sans-serif;
  --ff-display: "Playfair Display", serif;

  /* Font sizes */
  --fs-h1: 2.5rem;
  /* 40px */
  --fs-h2: 2rem;
  /* 32px */
  --fs-h3: 1.75rem;
  /* 28px */
  --fs-h4: 1.5rem;
  /* 24px */
  --fs-h5: 1.75rem;
  /* 20px */
  --fs-h6: 1.25rem;
  /* 18px */

  --fs-body-lg: 1.125rem;
  /* 18px */
  --fs-body-sm: 1rem;
  /* 16px */
  --fs-label: 0.875rem;
  /* 14px */
  --fs-hint: 0.75rem;
  /* 12px */

  --header-h: 64px;
}

/* ===== HEADINGS ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-sans);
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 500;
}

h5 {
  font-size: var(--fs-h5);
  font-weight: 500;
}

h6 {
  font-size: var(--fs-h6);
  font-weight: 500;
}


/* ===== BODY TEXT ===== */
body,
p {
  font-size: var(--fs-body-lg);
  /* 18px default (web/tablet) */
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  font-family: var(--ff-sans);
}

/* ===== LABEL TEXT ===== */
.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

/* ===== HINT TEXT ===== */
.hint {
  font-size: var(--fs-hint);
  color: var(--muted);
  font-weight: 400;
}


/* ===== RESPONSIVE TYPOGRAPHY (Tablet/Mobile) ===== */
@media (max-width: 1200px) {
  :root {
    --fs-h1: 2rem;
    /* 32px */
    --fs-h2: 2.5rem;
    /* 40px */
    --fs-h3: 2.25rem;
    /* 36px */
    --fs-h4: 2rem;
    /* 32px */
    --fs-h5: 1.5rem;
    /* 24px */
    --fs-h6: 1.25rem;
    /* 20px */
  }
}

/* ===== RESPONSIVE TYPOGRAPHY (Tablet/Mobile) ===== */
@media (max-width: 768px) {
  :root {
    --fs-h1: 1.5rem;
    /* 24px */
    --fs-h2: 2.25rem;
    /* 36px */
    --fs-h3: 2rem;
    /* 32px */
    --fs-h4: 1.5rem;
    /* 24px */
    --fs-h5: 1.25rem;
    /* 20px */
    --fs-h6: 1.125rem;
    /* 18px */
  }

  body,
  p {
    font-size: var(--fs-body-sm);
    /* 16px on mobile */
  }
}

/* ===== UTILITY & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}




/* ===== HEADER (DESKTOP DEFAULTS) ===== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(5, 12, 28, 0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- FIX: Desktop navigation visible by default --- */
.nav {
  display: flex;
}

.hamburger {
  display: none;
}

.mobile-nav {
  display: none;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  height: 2.5rem;
  transition: all 0.4s ease-out;
}

.logo:hover {
  color: var(--accent);
  transition: all 0.4s ease-out;
}




.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  padding: 12px 24px;
  color: var(--text);
  font-size: var(--fs-body-sm);
  border-radius: var(--container-r-sm);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.5s;
}

.nav-list a:hover {
  color: var(--accent);
}

a.active {
  color: var(--accent);
  background: var(--accent-transparent-bg);
  /* Use variable for consistency */
}

/* --- Dropdown Styles (Desktop) --- */
.nav-list li.has-dropdown {
  position: relative;
}

.nav-list li.has-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  transform-origin: center;
  transition: transform .3s ease-out;

  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 24px;
  min-width: 220px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--container-r-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  z-index: 15;
}

.projects-trigger .dropdown-icon {
  margin-left: 2px;
  transition: transform 0.4s ease;
}

.has-dropdown.open .projects-trigger .dropdown-icon {
  transform: rotate(-180deg);

}

.has-dropdown.open>.dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.has-dropdown.open>.projects-trigger {
  color: var(--accent);
}

@media (min-width: 769px) {
  .nav-list a.projects-trigger {
    padding: 12px 16px 12px 24px;
  }
}

.has-dropdown:hover>a .dropdown-icon,
.has-dropdown.open>a .dropdown-icon {
  content: url("../assets/icons/down-hover-icon.svg");
}

.has-dropdown>a.active .dropdown-icon,
.has-dropdown:has(.dropdown a.active)>a .dropdown-icon {
  content: url("../assets/icons/down-hover-icon.svg");
}


/* Dropdown list items and links */
.dropdown li {
  list-style: none;
  margin: 0;
}

.dropdown li+li {
  margin-top: 4px;
  /* adjust gap as needed */
}

.dropdown a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--container-r-sm);
  transition: color .4s ease, background-color .4s ease;
}

.dropdown a:hover {
  color: var(--accent);
  background: var(--accent-transparent-bg);
}

.dropdown a.active {
  background: var(--accent-transparent-bg);
  color: var(--accent);
  transition: color .4s ease, background-color .4s ease;
}


/* ===== INTRO (HERO) - Home and About pages ===== */
.hero-section {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  color: #fff;
  background-color: #00040F;
  background-image: url("../assets/hero-bg-desktop.jpg");
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
  isolation: isolate;
  opacity: 0;
  z-index: 0;
  animation: heroFadeIn 1.2s ease-out forwards;
  animation-delay: 0.2s;
  /* small delay for smoother entrance */
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.hero-content-inner {
  max-width: 600px;
  width: 100%;
}

/* ===== AUDIT HERO OVERRIDES ===== */
.audit-hero {
  background-image: none !important;
  background-color: #00040F !important;
  overflow-x: hidden;
}

.audit-hero-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.audit-hero .hero-content-inner {
  flex-shrink: 0;
  max-width: 500px; /* Reduced slightly to ensure it stays strictly on left without crushing image */
}

.audit-hero-image {
  flex-shrink: 0;
  height: 760px;
}

.audit-hero-image img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: var(--btn-r-sm);
}

@media (max-width: 991px) {
  .audit-hero {
    align-items: flex-end !important;
    padding-bottom: 4rem;
  }

  .audit-hero .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .audit-hero-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .audit-hero .hero-content-inner {
    max-width: 100%;
  }

  .audit-hero-image {
    width: 100%;
    height: auto;
  }

  .audit-hero-image img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 767px) {
  .audit-hero {
    align-items: flex-end !important;
    padding-bottom: 4rem;
  }

  .audit-hero .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .case-nav {
    padding-left: 16px;
    align-items: center !important;
  }

  .case-nav .logo {
    align-items: flex-start !important;
    justify-content: center !important;
  }
}


.hero-content h1 {
  font-size: var(--fs-h1);
  margin-bottom: 12px;
}

.hero-content p {
  font-size: var(--fs-h6);
  margin-bottom: 24px;
}

.hero-content-actions {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.hero-sub {
  color: var(--text);
  font-size: var(--fs-h6);
  margin-bottom: 1rem;

}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.hero-stats li {
  font-size: var(--fs-body-lg);
  font-weight: 400;
}

.hero-stats li strong {
  font-weight: 700;
}


/* ===== INTRO (HERO) - Project sub pages ===== */
.hero-projects {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  opacity: 0;
  z-index: 0;
  animation: heroFadeIn 1.2s ease-out forwards;
  animation-delay: 0.2s;
  /* small delay for smoother entrance */
}

.hero-projects-inner {
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  /* FIX: Increased z-index to 2 to be above the header's z-index: 10 */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero-projects-inner a {
  margin-top: 1rem;
}


/* ===== CONTENT SECTIONS ===== */
.content {
  position: relative;
  z-index: 5;
  background: var(--panel);
  padding: 80px 0;
}

/* ON SCROLL ANIMATION FOR SECTIONS INSIDE THE CONTENT */
.projects-card,
.testimonials,
.contact,
.langs,
.cred-grid,
.case-content-section,
.case-media {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .6s ease,
    transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* visible */
.projects-card.is-visible,
.testimonials.is-visible,
.contact.is-visible,
.langs.is-visible,
.cred-grid.is-visible.is-visible,
.case-content-section.is-visible,
.case-media.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-inner {
  padding: 120px 0;
}

.content-title {
  text-align: center;
  font-size: var(--fs-h2);
  margin-bottom: 48px;
}

.section-title {
  text-align: center;
  font-size: var(--fs-h2);
  margin-bottom: 40px;
}

/* === PROJECTS === */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 180px;
  padding-top: 40px;
}

.projects-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-left: 48px;
  align-items: center;
}

.projects-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.projects-card-info p {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: var(--fs-body-lg);
}

.projects-card-image {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-label);
}

.projects-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* ✅ Round only left-side corners */
  border-top-left-radius: 60px;
  border-bottom-left-radius: 60px;

  /* Ensure the image doesn’t overflow its radius */
  display: block;
}



/***** TESTIMONIALS *****/

.testimonials .content-inner {
  padding-block: 80px;
  margin: 0 auto;
  padding-inline: 24px;
  max-width: 1200px;
}

/* Horizontal scroller */
.testi-grid {
  display: flex;
  gap: 24px;
  padding: 2rem 0;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.testi-grid::-webkit-scrollbar {
  /* Chrome/Safari */
  display: none;
}

.testi-card {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: var(--text);
}


.testi-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.testi-header-visuals {
  display: block;
  position: relative;
  margin: 0 auto;
  text-align: center;
}

.testi-header-visuals img {
  display: block;
  border-radius: 10rem;
  width: 10rem;
  height: 10rem;
  z-index: 0;
}

.testi-header-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  bottom: 0;
  border: 2px solid var(--bg);
  border-radius: 40px !important;
  width: 48px;
  height: 48px;
}

.testi-header-visuals-right {
  right: 0;
}

.testi-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.testi-person h6 {
  font-size: var(--fs-body-lg);
  color: var(--text);
}

.testi-person p {
  font-size: var(--fs-label);
  color: var(--muted);
}



.testi-quote {
  margin: 0;
  color: var(--text);
  opacity: .92;
  text-align: center;
}

.testi-quote p {
  font-size: 1.25rem;
  font-style: italic;
}

.testi-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}



.testi-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  padding-top: 1rem;
}

.testi-actions-slider {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: .5rem;
  padding: 0;
  margin: 0;
}

.testi-actions-slider-item {
  width: 2rem;
  height: .25rem;
  background: var(--text);
  border-radius: .25rem;
  opacity: 0.2;
  transition: all 0.3s ease;
}

.item-is-active {
  background: var(--accent);
  opacity: 1;
}

.btn-flat {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
}

.btn-flat:hover,
.btn-flat:active {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  transform: none;
}

/* accessible but subtle focus ring */
.btn-flat:focus-visible {
  outline: 2px solid rgba(246, 194, 62, .5);
  outline-offset: 2px;
  border-radius: 6px;
  /* small rounded focus ring, purely visual */
}


/***** FOOTER *****/
.contact-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 80px 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-bottom: 2rem;
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--text);
}


.contact-inner a {
  text-decoration: none;
  color: var(--accent);
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}




/***** LANGUAGES *****/
.langs-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 0;
}

.langs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: start;
}

.langs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.langs-card img {
  margin-bottom: 1.5rem;
}

.langs-card p {
  font-size: var(--fs-body-lg);
  color: var(--disabled);
}



/***** MY STORY *****/
.story-card-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.story-card-info ul {
  padding-left: 1rem;
}

.story-actions {
  display: flex;
  width: 100%;
  padding-top: 7.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}



/***** PROFESSIONAL CREDENTIALS *****/
.cred-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 0;
}

.cred-grid {
  display: grid;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 3rem 0;
  gap: 1.5rem;
}

.cred-grid-header {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  gap: .5rem;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.cred-grid-header h4 {
  font-size: var(--fs-h4);
  color: var(--text);
}

.cred-grid-header p {
  color: var(--muted);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
}

/* Cards grid */
.cred-card-list[role="list"] {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
}

/* Card */
.cred-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--container-r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: var(--text);
}

.cred-card:hover {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.10);
}


.cred-cerd-header,
.cred-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cred-cerd-header img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.cred-card-provider {
  display: grid;
  gap: 2px;
}

.cred-card-provider p {
  margin: 0;
  font-size: var(--fs-body-sm);
  color: var(--text);
  line-height: 1.2;
}

.cred-card-provider time {
  font-size: var(--fs-hint);
  color: var(--muted);
}

.cred-card-cert-title {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text);
}






/* ========================= CASE STUDY CODES ========================= */

/* ===== NAV CODES ===== */
.case-header {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
}

.case-nav {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  width: 100%;
  padding: 1rem 0;
  align-items: center;
}

.case-nav p {
  font: 1.25rem;
  font-weight: 400;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.case-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text);
  transition: all 0.4s ease-out;
}

.case-nav a:hover {
  color: var(--accent);
  transition: all 0.4s ease-out;
}


/* ===== CASE - HERO CODES ===== */
.case-hero {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  opacity: 0;
  z-index: 0;
  animation: heroFadeIn 1.2s ease-out forwards;
  animation-delay: 0.2s;
  /* small delay for smoother entrance */
}

.case-hero-inner {
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  /* FIX: Increased z-index to 2 to be above the header's z-index: 10 */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.case-hero-time-role {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.case-hero-summary-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: .5rem;
}

.case-hero-summary-info h6 {
  text-align: center;
}

.case-hero-summary-info p {
  text-align: left;
  font-size: var(--fs-body-lg);
}

.case-hero-time-role p {
  text-align: center;
}


/* ===== CASE CONTENT CODES ===== */

.case-content-section {
  padding: 5rem 0;
}

.case-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  display: flex;
  flex-direction: column;
}

.case-content-header {
  margin: 0 auto;
  max-width: 80%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.case-content-header-title {
  font-size: var(--fs-h3)
}

.case-content-header-sub {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--body-text);
  font-weight: 300;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.case-grid-header {
  display: flex;
  max-width: 80%;
  margin: 0 auto;
  color: var(--text);
}

.case-grid-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.case-grid-res-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.case-grid-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Codes for the Results section visuals with captions */
.case-visual-cap {
  max-width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.case-visual-cap-card {
  border-radius: var(--container-r-md);
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  gap: .75rem;
  color: var(--muted);
  font-size: var(--fs-label);
  aspect-ratio: 3/2;
}

.case-visual-cap-card img {
  border-radius: 1.5rem;
}


/* Codes for the Action section visuals with captions */

.case-grid-card-img-caps {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-label);
  aspect-ratio: 3/2;
}

.case-grid-card-img-caps img {
  border-radius: 1.5rem;
}


.case-grid-card-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--container-r-md);
}

.case-grid-card-icon img {
  width: 60px;
  height: 60px;
}


.case-grid-card-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.case-grid-card-body {
  font-size: var(--fs-body-lg);
  color: var(--body-text);
  font-weight: 300;
}

.case-grid-card-title {
  text-align: center;
}



/* ===== CASE GALLERY CODES ===== */

.case-media {
  padding: 5rem 0;
}

.case-media-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
}

.case-media-grid {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 40px;
}

.case-media-grid::-webkit-scrollbar {
  /* Chrome/Safari */
  display: none;
}

.case-media-grid-card {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto;
  scroll-snap-align: center;
  align-items: center;
  gap: 1.5rem;
}



/* ===== CASE SCROLL UP CODES ===== */
.scroll {
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

.scroll-up {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-items: center;
}

.scroll-up {
  transition: all .4s ease-out;
}



/* ========================= 404 CODES ========================= */
.content-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  width: 100%;
  height: 100vh;
  text-align: center;
  padding: 0 2rem;
}






/* ===== RESPONSIVE LAYOUT TABLET ===== */

@media (max-width: 1200px) {

  .header-inner {
    padding: 16px 24px;
  }

  .impact-card {
    grid-template-columns: 1fr;
  }

  .dropdown a:active {
    background: var(--accent-transparent-bg);
    color: var(--accent);
    transition: color .2s ease, background-color .2s ease;
  }

  .hero-section {
    background-image: url("../assets/hero-bg-tablet.jpg");
    background-position: bottom center;
    align-items: flex-start;
  }

  .hero-content {
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .hero-content-inner {
    width: 100%;
    padding: 1.5rem;
    max-width: 768px;
    padding-top: 128px;
    /* Added padding to offset fixed header */
  }

  .hero-content-actions {

    max-width: 100%;
  }

  /* ===== INTRO (HERO) - Project sub pages ===== */
  .hero-projects-inner {
    padding: 0 24px;
    gap: 1.5rem;
  }

  .hero-projects-inner a {
    margin-top: 1.5rem;
  }



  /* CONTENT */
  .content {
    padding: 40px 0;
  }

  .content-inner {
    padding: 80px 0;
  }

  .content-title {
    margin-bottom: 2rem;
  }

  /* PROJECTS */
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
  }

  .projects-card {
    display: flex;
    flex-direction: column-reverse;
    padding: 24px;
    align-items: center;
    gap: 24px;
    /* animation props removed here */
  }

  .projects-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .projects-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .projects-card-info p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: var(--fs-body-lg);
  }

  .projects-card img {
    /* ✅ Round only left-side corners */
    border-radius: 40px;
  }


  /* FOOTER */
  .contact-inner {
    width: 100%;
    padding: 60px 1.5rem;
  }


  /***** MY STORY *****/

  .story-actions {
    padding-top: 3rem;
  }



  /***** LANGUAGES *****/
  .langs-inner {
    padding: 80px 1.5rem;
  }

  .langs-card img {
    height: 80px;
    margin-bottom: 1rem;
  }

  .langs-card p {
    font-size: var(--fs-body-lg);
  }

  .story-card-info h4 {
    text-align: center;
  }


  /***** PROFESSIONAL CREDENTIALS *****/

  .cred-inner {
    padding: 80px 0;
    gap: 4.5rem;
  }

  .cred-grid {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .cred-card-list[role="list"] {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cred-cerd-header img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  /* ========================= CASE STUDY CODES ========================= */

  /* ===== NAV CODES ===== */
  .case-header {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .case-nav {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    padding: .75rem 1.5rem;
  }

  .case-nav p {
    font: 1.125rem;
  }

  .case-nav a:active {
    color: var(--accent);
    transition: all 0.4s ease-out;
  }



  /* ===== CASE - HERO CODES ===== */

  .case-hero-inner {
    padding: 0 22px;
  }



  /* ===== CASE CONTENT CODES ===== */

  .case-content-section {
    padding: 3.75rem 1.5rem;
  }

  .case-content-inner {
    width: 100%;
    gap: 2.5rem;
  }

  .case-content-header {
    max-width: 100%;
  }

  .case-grid-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .case-grid-res-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .case-grid-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }


  /* Codes for the Action section visuals with captions */
  .case-grid-card-reverse {
    flex-direction: column-reverse;
  }

  .case-grid-card-img-caps img {
    border-radius: 1.5rem;
  }


  .case-grid-card-icon {
    min-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: var(--icon-r-sm);
  }

  .case-grid-card-icon img {
    width: 40px;
    height: 40px;
  }


  .case-grid-card-info {
    gap: .25rem;
  }

  .case-grid-card-body {
    font-size: var(--fs-body-sm);
  }

  .case-grid-card-title {
    text-align: left;
  }



  /* ===== CASE GALLERY CODES ===== */

  .case-media {
    padding: 3.5rem 0;
  }

  .case-media-inner {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .case-media-grid {
    border-radius: 2rem;
  }

  /* Codes for the Gallery section on Visual Design pages */
  .case-media-for-vd {
    display: flex;
    flex-direction: column;
  }

  .case-media-for-vd img {
    border-radius: 1.5rem;
  }



  /* ========================= 404 CODES ========================= */
  .content-404 {
    gap: 2rem;
  }




}














/* ===== MOBILE RESPONSIVE (<= 767px) ===== */
@media (max-width: 767px) {

  .hero-stats {
    display: none;
  }

  /* --- SWAP CONTROLS --- */
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text);
  }

  .header-inner {
    padding: .75rem 1.25rem;
    /* Tighter vertical padding on mobile */
  }

  .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .logo svg {
    height: 2rem;

  }

  /* MOBILE NAV — animated */
  .mobile-nav {
    position: fixed;
    top: 65px;
    /* Adjusted based on smaller header height */
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--panel);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    padding: 20px;
    text-align: left;

    display: flex;
    flex-direction: column;

    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear .35s;
    will-change: opacity, transform;
  }

  .mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .4s ease, transform .4s ease, visibility 0s;
  }

  /* Dropdown for mobile is always open (static) */
  .dropdown {
    position: static;
    margin-top: 0;
    list-style: none;
    margin: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    padding: 8px;
  }

  /* disable link click target behavior visually; JS will ignore clicks anyway */
  .nav-list li.has-dropdown>a {
    cursor: default;
  }

  /* keep arrow rotated if you like; remove this line if you want it downwards */
  .nav-list li.has-dropdown>a .dropdown-icon {
    transform: rotate(-90deg);
  }


  /* Menu Link Styling */
  .mobile-nav a,
  .mobile-parent {
    display: block;
    padding: 16px 24px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--container-r-sm);
    font-size: var(--fs-body-sm);
    margin-bottom: 8px;
  }

  .mobile-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
  }

  .mobile-parent .chevron.up {
    transform: rotate(-180deg);
  }

  .mobile-subnav.always-open {
    display: block;
  }

  .mobile-subnav.always-open a {
    padding: 16px 3rem;
    font-size: var(--fs-body-sm);
    opacity: 1;
  }

  .mobile-nav a.active,
  .mobile-parent.active {
    background: var(--accent-transparent-bg);
    color: var(--accent);
    transition: color .2s ease, background-color .2s ease;
  }



  /* ===== HERO SECTION ===== */
  .hero-section {
    background-image: url("../assets/hero-bg-mobile.jpg");
    background-position: bottom center;
    align-items: flex-start;
  }


  .hero-content-inner {
    padding: 20px;
    padding-top: 5rem;
  }

  .hero-content {
    /* Ensure content is centered, which is consistent with the 1200px rule now */
    justify-content: center;
    text-align: center;
  }

  .hero-content-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .hero-stats {
    /* UPDATED: Stack the stats grid for better mobile readability */
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: var(--fs-body-sm);
    margin-bottom: 1.25rem;
    display: none;
  }


  /* ===== INTRO (HERO) - Project sub pages ===== */


  .hero-projects-inner {
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .hero-projects-inner a {
    margin-top: 1.5rem;
  }

  .hero-projects-summary-info h5 {
    font-size: var(--fs-h6);
    font-weight: 600;
  }

  .hero-projects-summary-info p {
    font-size: var(--fs-body-sm);
  }


  /* CONTENT */
  .content {
    padding: 2rem 0;
  }

  /***** TESTIMONIALS *****/

  .testimonials .content-inner {
    /* keep your existing spacing system */
    padding-block: 40px;
    margin: 0 auto;
    padding-inline: 20px;
  }

  .testi-footer .btn-icon-secondary {
    display: none;
  }




  .content-title {
    margin-bottom: 1.5rem;
    padding: 0 1.25rem;
  }

  /* PROJECTS */
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0;
  }

  .projects-card {
    display: flex;
    flex-direction: column-reverse;
    padding: 1.25rem;
    align-items: center;
    gap: 24px;
  }

  .projects-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .projects-card-info h4 {
    text-align: center;
  }

  .projects-card-info p {
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: var(--fs-body-lg);
  }

  .projects-card img {
    /* ✅ Round only left-side corners */
    border-radius: 1.5rem;
  }

  .projects-card-image {
    gap: .5rem;
    font-size: var(--fs-hint);
  }




  /***** MY STORY *****/

  .story-actions {
    padding: 1.25rem;
    padding-bottom: 0;
  }



  /***** LANGUAGES *****/
  .langs-inner {
    padding: 3rem 1.25rem;
  }

  .langs-grid {
    gap: 1rem;
  }

  .langs-card img {
    height: 60px;
    margin-bottom: .75rem;
  }

  .langs-card h {
    font-size: var(--fs-body-lg);
  }

  .langs-card p {
    font-size: var(--fs-body-sm);
  }


  /***** PROFESSIONAL CREDENTIALS *****/
  .cred-inner {
    padding: 3rem 0;
    gap: 2.5rem;
  }

  .cred-grid {
    padding: 0 1.25rem;
    gap: 1.25rem;
  }

  .cred-card-list[role="list"] {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cred-card {
    flex: 0 0 60vw;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--container-r-md);
    color: var(--text);
  }

  .cred-grid-header p {
    font-size: var(--fs-body-sm);
  }



  /* ===== CASE STUDY CODES ===== */
  .case-header {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .case-nav {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    padding: .75rem 1.25rem;
  }

  .case-nav p {
    font: 1.125rem;
  }

  .case-nav a:active {
    color: var(--accent);
    transition: all 0.4s ease-out;
  }


  /* ===== CASE - HERO CODES ===== */
  .case-hero {
    position: relative;
    top: 1.5rem;
  }

  .case-hero-inner {
    position: sticky;
    /* FIX: Increased z-index to 2 to be above the header's z-index: 10 */
    min-height: 100svh;
    padding: 5rem 1.25rem;
  }

  .case-hero-summary-info h6 {
    font-weight: 600;
  }

  .case-hero-summary-info p {
    font-size: var(--fs-body-sm);
  }

  .case-hero-inner a {
    display: none;
  }

  .case-hero-time-role p {
    text-align: center;
  }



  /* ===== CASE CONTENT CODES ===== */

  .case-content-section {
    padding: 3rem 1.25rem;
  }

  .case-content-inner {
    width: 100%;
    gap: 1.5rem;
  }

  .case-grid {
    gap: 1.25rem;
  }

  .case-grid-header {
    text-align: center;
  }

  .case-content-header-sub {
    font-size: var(--fs-body-sm);
  }

  .case-grid-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .case-grid-res-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .case-grid-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: .75rem;
  }

  /* Codes for the Results section visuals with captions */
  .case-visual-cap {
    flex-direction: column;
    gap: 1.25rem;
  }

  .case-visual-cap-card {
    border-radius: 16px;
  }


  /* Codes for the Action section visuals with captions */
  .case-grid-card-reverse {
    flex-direction: column-reverse;
  }

  .case-grid-card-img-caps img {
    border-radius: 1rem;
  }



  .case-grid-card-icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: var(--icon-r-sm);
  }

  .case-grid-card-icon img {
    width: 32px;
    height: 32px;
  }


  .case-grid-card-info {
    gap: .25rem;
  }





  /* ===== CASE GALLERY CODES ===== */

  .case-media {
    padding: 1rem 0;
  }

  .case-media-inner {
    gap: 0;
    padding: 0 1.25rem;
  }

  .case-media-grid {
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .case-media-for-vd img {
    border-radius: 1rem;
  }

  .case-media .testi-footer {
    display: none !important;
  }

  .testi-footer-hide {
    display: none !important;
  }

}

/* ===== AUDIT FORM SECTION ===== */
.audit-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.audit-form-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.audit-form-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audit-form input,
.audit-form textarea {
  width: 100%;
  background: #0A1226;
  border: 1px solid #454B5A;
  border-radius: 12px;
  padding: 12px 1.25rem;
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.audit-form input::placeholder,
.audit-form textarea::placeholder {
  color: var(--disabled);
}

.audit-form input:focus,
.audit-form textarea:focus {
  border-color: var(--accent);
}

.audit-form textarea {
  resize: vertical;
  min-height: 120px;
}

.audit-form .btn-primary {
  width: 100%;
  max-width: none;
  height: 48px;
  border-radius: 12px;
  margin-top: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.audit-form .btn-primary:disabled {
  background-color: #3D4353 !important;
  color: #B1B4BA !important;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 991px) {
  .audit-form-container {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 2rem;
  }
  .audit-form-image img {
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .audit-form-container {
    max-width: 100%;
    gap: 2rem;
  }
}

/* Email Validation Styles */
.input-group {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.success-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.error-hint {
  display: none;
  font-size: 12px;
  font-weight: 400;
  color: #F59B99;
  margin-top: 4px;
}

.input-group.error input {
  border-color: #F59B99 !important;
}

.input-group.error .error-hint {
  display: block;
}

.input-group.success .success-icon {
  display: block;
}

/* Button Success State */
.btn-success {
  background: #00B627 !important;
  color: #FFF !important;
  pointer-events: none; /* Prevent multiple clicks */
}

.btn-progress {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -10px;
  transform: rotate(-90deg);
}

.btn-success .btn-progress {
  display: block;
}

.btn-success .progress-bar {
  animation: btn-progress-anim 5s linear forwards;
}

@keyframes btn-progress-anim {
  from { stroke-dashoffset: 62.83; }
  to { stroke-dashoffset: 0; }
}