:root {
  --ink: #202025;
  --black: #09090b;
  --muted: #6f7078;
  --paper: #D3D3D3;
  --warm: #fff8ee;
  --header-bg: rgba(248, 249, 252, 0.65);
  --header-border: rgba(9, 9, 11, 0.08);
  --header-shadow: 0 12px 40px 0 rgba(9, 9, 11, 0.05);
  --header-inset-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 1px 0 rgba(9, 9, 11, 0.01);
  --header-blur: 24px;
  --card: #ffffff;
  --soft: #f6f6f6;
  --hero-gradient: linear-gradient(145deg, #e1e1e1, #D3D3D3 56%, #bebebe);
  --orange: #f79400;
  --orange-dark: #df7600;
  --line: #ece6dc;
  --shadow: 0 24px 70px rgba(18, 18, 20, 0.12);
  --radius: 28px;
}

[data-theme="dark"] {
  --ink: #f7f7fb;
  --black: #ffffff;
  --muted: #b7b7c1;
  --paper: #0d0d10;
  --warm: #1c1710;
  --header-bg: rgba(13, 13, 16, 0.45);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --header-inset-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.2);
  --header-blur: 24px;
  --card: #17171c;
  --soft: #141418;
  --hero-gradient: linear-gradient(145deg, #17120b, #101015 54%, #19191f);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* GPU Rendering Layer Optimization for ScrollTrigger elements */
.service-grid article,
.why-grid > div,
.client-mark,
.contact-card,
.booth-stage,
.about-visual,
.site-header {
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0); /* Force hardware acceleration */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: min(1240px, calc(100% - clamp(16px, 4vw, 56px)));
  margin: clamp(10px, 2vw, 18px) auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: var(--header-bg);
  box-shadow: var(--header-shadow), var(--header-inset-shadow);
  backdrop-filter: blur(var(--header-blur)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--header-blur)) saturate(190%);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header.scrolled {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(248, 249, 252, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), var(--header-inset-shadow);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(13, 13, 16, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), var(--header-inset-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  /* padding: 4px 18px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  isolation: isolate;
  height: 48px;
  padding: 0;
}

.brand:hover {
  transform: scale(1.03) translateY(-0.5px);
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(247, 148, 0, 0.25); */
}

[data-theme="dark"] .brand {
  background: transparent;
  /* border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); */
}

.brand-logo {
  height: 206px;
  width: auto;
  object-fit: contain;
  position: relative;
  top: 4px;
  left: -34px;
  
  /*mix-blend-mode: multiply;*/
  /*display: block;*/
  /*filter: brightness(0) invert(1);*/
}

.brand-logo.logo-dark {
  display: none !important;
}

.brand-logo.logo-light {
  display: block !important;
}
[data-theme="dark"] .brand-logo.logo-light {
  display: none !important;
}

[data-theme="dark"] .brand-logo.logo-dark {
  display: block !important;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 14px);
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px clamp(12px, 1.4vw, 18px);
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  opacity: 0.8;
  font-size: clamp(0.82rem, 0.95vw, 0.93rem);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--black);
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-menu a:hover {
  color: var(--black);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.04);
}

.nav-menu a.active {
  color: var(--orange) !important;
  opacity: 1;
  background: rgba(247, 148, 0, 0.08);
  border-color: rgba(247, 148, 0, 0.15);
  box-shadow: 0 4px 12px rgba(247, 148, 0, 0.06);
  font-weight: 700;
}

[data-theme="dark"] .nav-menu a {
  color: #ededf2;
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  order: 3;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 64px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.04);
  border-color: rgba(247, 148, 0, 0.25);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(247, 148, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 900;
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(22px);
}

.nav-toggle {
  display: none;
  order: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--header-border);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 86px);
  padding-top: 42px;
}

.hero-label,
.section-kicker,
.section-heading p {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 5.4vw, 4.45rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.1;
}

.hero-text,
.about-copy p,
.contact p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.typing-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 12px 0 26px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--warm);
  box-shadow: 0 14px 34px rgba(247, 148, 0, 0.1);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  width: 30ch;
}

.typing-card strong {
  width: auto;
  color: var(--orange);
  animation: blink 1s steps(1) infinite;
}

.typing-card i {
  display: block;
  width: 3px;
  height: 24px;
  background: var(--ink);
  animation: cursorBlink 0.78s steps(1) infinite;
}

.hero-actions,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-weight: 900;
}

.btn.primary {
  background: var(--black);
  color: var(--paper);
}

.btn.secondary {
  background: var(--paper);
  color: var(--black);
}

.booth-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 75% 20%, rgba(247, 148, 0, 0.2), transparent 32%),
    var(--hero-gradient);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 430px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.booth-stage:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(18, 18, 20, 0.18);
  border-color: rgba(247, 148, 0, 0.25);
}

[data-theme="dark"] .booth-stage:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border-color: rgba(247, 148, 0, 0.3);
}

.hero-logo {
  max-width: 85%;
  max-height: 280px;
  padding-left: 6.5px;
  padding-bottom: 28px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(2.6);
  animation: logoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.05));
  transition: filter 0.4s ease;
}

.light-logo {
  display: block;
}

.dark-logo {
  display: none;
}

[data-theme="dark"] .light-logo {
  display: none !important;
}

[data-theme="dark"] .dark-logo {
  display: block !important;
}

/* 1. Base style for both logos */
.hero-light-logo,
.hero-dark-logo {
  max-width: 88%;
  max-height: 500px;
  width: 40%;
  height: 27.5%;
  object-fit: contain;
  transform-origin: center center;
  transform: scale(2.6) translateY(0);
  animation: logoFloat 4s ease-in-out infinite;
  transition: filter 0.4s ease;
}

/* 2. Light Mode Defaults */
.hero-dark-logo {
  display: block;
}
.hero-light-logo {
  display: none;
}

/* 3. Dark Mode Swapping & Brightness Boost */
/* [data-theme="dark"] .hero-dark-logo {
  display: block !important;
} */

[data-theme="dark"] .hero-light-logo {
  display: none !important;
  filter: invert(1) brightness(2) contrast(1.2) !important;
}

@keyframes logoFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.floor {
  fill: rgba(247, 148, 0, 0.16);
}

.panel,
.counter-face {
  fill: #ffffff;
  stroke: #202025;
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 1.4s ease forwards;
}

.side-panel,
.left-panel {
  fill: #f5f5f6;
  animation-delay: 0.25s;
}

.counter {
  fill: url(#orangeGlow);
  stroke: #202025;
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: drawLine 1.25s ease 0.55s forwards;
}

.header-bar {
  fill: #202025;
  stroke: #202025;
  stroke-width: 8;
  stroke-linejoin: round;
  transform-origin: center;
  opacity: 0;
  animation: dropIn 0.8s cubic-bezier(.2, .9, .2, 1.2) 0.85s forwards;
}

.brand-strip,
.light {
  fill: var(--orange);
  opacity: 0;
  animation: glowUp 0.5s ease 1.45s forwards;
}

.screen {
  fill: #202025;
  opacity: 0;
  animation: popIn 0.5s ease 1.65s forwards;
}

.screen-shine {
  stroke: var(--orange);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0;
  animation: glowUp 0.5s ease 2s forwards;
}

.plant {
  fill: var(--orange);
  opacity: 0;
  animation: growPlant 0.7s ease 2.1s forwards;
}

.plant-two {
  animation-delay: 2.25s;
}

.booth-logo {
  fill: #ffffff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: glowUp 0.5s ease 1.6s forwards;
}

.worker {
  fill: none;
  stroke: #202025;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: workerBob 2s ease-in-out infinite;
}

.worker circle {
  fill: var(--orange);
}

.worker-two {
  animation-delay: 0.5s;
}

.tool {
  stroke: var(--orange);
  animation: toolSpark 1.2s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(247, 148, 0, 0.8);
  opacity: 0;
  animation: sparkle 2.8s ease-in-out infinite;
}

.spark-one {
  top: 30%;
  right: 22%;
}

.spark-two {
  top: 56%;
  left: 20%;
  animation-delay: 0.75s;
}

.spark-three {
  top: 24%;
  left: 42%;
  animation-delay: 1.3s;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.service-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article,
.why-grid div,
.client-mark,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 45px rgba(18, 18, 20, 0.06);
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-grid span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--orange);
  font-weight: 900;
}

.service-grid p,
.why-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 58px;
}

.about-visual {
  display: grid;
  place-items: center;
  min-height: 480px;
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(247, 148, 0, 0.16), transparent 45%),
    var(--soft);
}

.about-visual img {
  width: min(74%, 360px);
  mix-blend-mode: multiply;
  animation: floatLogo 4s ease-in-out infinite;
}

.stat-row {
  margin-top: 28px;
}

.stat-row div {
  min-width: 140px;
  padding: 18px;
  border-left: 4px solid var(--orange);
  background: var(--warm);
  border-radius: 18px;
}

.stat-row strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.why {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: var(--black);
  color: var(--paper);
}

.why .section-heading p,
.why-grid h3 {
  color: var(--orange);
}

.why-grid div {
  min-height: 230px;
  padding: 30px;
  background: #161619;
  border-color: rgba(255, 255, 255, 0.1);
}

.why-grid p {
  color: #c6c6cb;
}

.client-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-mark {
  display: grid;
    place-items: center;
    min-height: 122px;
    padding: 24px; /* Slightly increased padding so logos aren't cramped */
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02); /* Slight default contrast */
    border-radius: 12px;
}

.client-mark img {
    max-width: 85%;      /* Keeps logos nicely away from the card edges */
    max-height: 55px;    /* Uniform height limit so cards stay perfectly aligned */
    width: auto;
    height: auto;
    object-fit: contain; /* Prevents squishing or stretching */
    display: block;
     mix-blend-mode: lighten;
    transition: all 0.3s ease;
}

.client-mark:hover img {
    opacity: 1;
    transform: scale(1.05); /* Subtle zoom when hovered */
}

/* [data-theme="dark"] .client-mark img {
    filter: brightness(0.9) contrast(1.1);
} */

.client-mark::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0.35);
  transition: transform 180ms ease;
}

.client-mark:hover::after {
  transform: scaleX(1);
}

.client-mark.official {
  background: var(--warm);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.clients-footer {
    text-align: center;
    font-size: 1.125rem;
    color: #4e4c4c; /* Subtle gray text */
    margin-top: 32px; /* Space out from the grid */
    font-weight: 1000;
    letter-spacing: 0.02em;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 32px;
  background: #09090b;
  color: #ffffff;
}

[data-theme="dark"] .contact-card {
  background: #17171c;
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-card a,
.contact-card span {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f3f3;
  font-weight: 800;
}

.contact-card a:hover {
  color: var(--orange);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

footer img {
  width: 110px;
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-38px) scaleX(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleX(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowUp {
  to {
    opacity: 1;
  }
}

@keyframes growPlant {
  from {
    opacity: 0;
    transform: translateY(28px) scaleY(0.4);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes workerBob {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes toolSpark {
  50% {
    stroke-width: 15;
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(1);
  }
  10% {
    opacity: 0.8;
    transform: translateX(2px) translateY(0) scale(1.1);
  }
  20% {
    opacity: 1;
    transform: translateX(4px) translateY(0) scale(1.2);
  }
  30% {
    opacity: 0.6;
    transform: translateX(2px) translateY(-5px) scale(1);
  }
  40% {
    opacity: 0.4;
    transform: translateX(0) translateY(-10px) scale(0.9);
  }
  50% {
    opacity: 0.2;
    transform: translateX(-2px) translateY(-15px) scale(0.8);
  }
  60% {
    opacity: 0.1;
    transform: translateX(-4px) translateY(-20px) scale(0.7);
  }
  70% {
    opacity: 0.05;
    transform: translateX(-2px) translateY(-25px) scale(0.6);
  }
  80% {
    opacity: 0.02;
    transform: translateX(0) translateY(-30px) scale(0.5);
  }
  90% {
    opacity: 0.01;
    transform: translateX(2px) translateY(-32px) scale(0.45);
  }
  100% {
    opacity: 0;
    transform: translateX(0) translateY(-34px) scale(0.4);
  }
}

@keyframes floatLogo {
  0% {transform: scale(2.6) translateY(0);}
  50% {transform: scale(2.6) translateY(-10px);}
  100% {transform: scale(2.6) translateY(0);}
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    border-radius: 28px;
  }

  .nav-right {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    border: 1px solid var(--header-border);
    border-radius: 28px;
    background: var(--header-bg);
    box-shadow: var(--header-shadow), var(--header-inset-shadow);
    backdrop-filter: blur(var(--header-blur)) saturate(190%);
    -webkit-backdrop-filter: blur(var(--header-blur)) saturate(190%);
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .booth-stage {
    order: -1;
  }

  .service-grid,
  .why-grid,
  .client-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
   .section {
     width: min(100% - 28px, 1180px);
     padding: 70px 0;
   }

   .site-header {
     width: min(100% - 24px, 1180px);
     margin-top: 10px;
     padding: 10px 12px;
   }

   .brand {
     padding: 3px 14px;
     height: 38px;
   }

   .theme-toggle {
     width: 56px;
     height: 38px;
   }

   .theme-toggle::before {
     width: 27px;
     height: 27px;
   }

   [data-theme="dark"] .theme-toggle::before {
     transform: translateX(18px);
   }

   h1 {
     font-size: clamp(3.1rem, 17vw, 4.3rem);
   }

   .typing-card {
     width: 100%;
     justify-content: center;
   }

   .hero-actions .btn {
     width: 100%;
   }

   .booth-stage {
     min-height: 300px;
     padding: 30px;
   }

   .service-grid,
   .why-grid,
   .client-wall {
     grid-template-columns: 1fr;
   }

   .service-grid article {
     min-height: auto;
   }

   .about-visual {
     min-height: 320px;
   }

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

   /* Added for mobile menu */
   .nav-toggle {
     display: flex;
   }

   .nav-menu {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     background: var(--header-bg);
     border-top: 1px solid var(--header-border);
     flex-direction: column;
     align-items: stretch;
     opacity: 0;
     pointer-events: none;
     transform: translateY(-10px);
     transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
   }
   .nav-menu.open {
     opacity: 1;
     pointer-events: all;
     transform: translateY(0);
   }

   .nav-menu a {
     width: 100%;
     text-align: center;
     padding: 14px 20px;
     border-top: 1px solid rgba(0,0,0,0.05);
   }
   [data-theme="dark"] .nav-menu a {
     border-top: 1px solid rgba(255,255,255,0.04);
   }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
