/* ========================================================
   GLOBAL RESET & VARIABLES
   ======================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --accent: #a78bfa;          /* soft violet */
  --accent-glow: rgba(167, 139, 250, 0.25);

  /* Typography */
  --font-main: 'Outfit', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --gutter: clamp(20px, 4vw, 64px);
}

html {
  scroll-behavior: auto;       /* Lenis handles smooth scroll */
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========================================================
   PRE-LOADER
   ======================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
}

.preloader__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__text {
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  will-change: transform, opacity, filter;
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__half {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* Subtle film-grain overlay on preloader */
.preloader__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ========================================================
   MAIN CONTENT (hidden at start)
   ======================================================== */
.main-content {
  visibility: hidden;          /* toggled by GSAP */
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--gutter) 6vw;
  overflow: hidden;
  background-color: #050505;
  /* Cinematic depth properties */
  transform: scale(1.15);
  filter: blur(15px);
  will-change: transform, filter;
}



.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  align-items: center;
  will-change: transform, opacity;
}

/* LEFT COLUMN */
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
}

.hero__tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;                  /* BEHIND the panda */
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  gap: 0;
  font-size: clamp(4rem, 9vw, 8rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.85;
}

.hero__tag-solo {
  color: #ffffff;
}

.hero__tag-pandaa {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.45);
  letter-spacing: -0.03em;
}

.hero__panda-img {
  position: relative;
  z-index: 5;                  /* IN FRONT of the text */
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
  transform: translateX(25%);  /* Shift right to sit over 'PANDAA' */
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.7);
}

.hero__title-italic {
  font-style: italic;
  font-weight: 400;
}

.hero__title-accent {
  color: #ffffff;
  text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
}

/* SERVICE PILLS */
.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__pill {
  padding: 6px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero__pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* CTA BUTTON */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  border: none;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__cta:hover {
  background: #c8c8c8;
  padding: 16px 52px;
}

.hero__cta svg {
  stroke: #000000;
  transition: all 0.3s ease;
}

.hero__cta:hover svg {
  transform: translateX(5px);
}

/* GLOBAL FIXED CTA WRAPPER */
.fixed-cta-wrapper {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  z-index: 900;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 6px 6px;
  transition: all 0.3s ease;
  visibility: hidden; /* Added to hide before GSAP animation triggers */
}

.fixed-cta-wrapper:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* RIGHT COLUMN */
.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  visibility: hidden;
}

.hero__panda-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  overflow: hidden;
  opacity: 0;
}

.hero__scroll-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ========================================================
   SERVICES SECTION
   ======================================================== */
.services {
  position: relative;
  z-index: 2;
  min-height: 150vh;
  padding: clamp(100px, 14vw, 180px) 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  background-color: #120c08;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Projector grid overlay */
.services__grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Header */
.services__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.services__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateY(30px);
}

.services__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.services__heading em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

/* Cards Container */
.services__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  perspective: 1200px;
  justify-content: center;
}

/* Individual Card */
.svc-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: 60vh;
  min-height: 480px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform, opacity;

  /* Holographic glassmorphism */
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);

  /* Initial scroll state */
  opacity: 0;
  transform: translateY(150px) scale(1.1);
}

/* Golden light sweep on hover */
.svc-card__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #f5cc5d, transparent);
  transition: left 0.6s ease;
  z-index: 10;
}

.svc-card:hover .svc-card__shine {
  left: 100%;
}

.svc-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

/* Massive background number */
.svc-card__number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  transform: translateZ(20px);
}

/* Card content */
.svc-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateZ(40px);
}

.svc-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.svc-card__tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4af37;
}

/* ========================================================
   Z-AXIS DIVE CONTAINER
   ======================================================== */
.z-dive-container {
  position: relative;
  width: 100%;
}

/* ========================================================
   INNOVATION SECTION
   ======================================================== */
.innovation {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: clamp(80px, 12vw, 160px) 6vw;
  background-color: #050505; /* Fade back to black from espresso */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

.innovation__container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left Column */
.innovation__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.innovation__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #e2e8f0;
}

.innovation__heading em {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  padding-right: 0.1em;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #d4af37, #f5cc5d);
}

.innovation__desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 500px;
}

/* Holographic Pills */
.innovation__pills {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.inno-pill {
  padding: 16px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Right Column (Visual) */
.innovation__right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.inno-matrix {
  width: 100%;
  max-width: 500px;
  opacity: 0;
  transform: scale(0.9);
  will-change: transform, opacity;
}

.matrix-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.matrix-path, .matrix-path-slow {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

/* ========================================================
   CONTACT SHEET & OVERLAY
   ======================================================== */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 60px 8vw 80px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  color: #050505;
}

.contact-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.contact-sheet__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-sheet__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #050505;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-sheet__close:hover {
  transform: rotate(90deg);
}

.contact-form__row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #050505;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-input::placeholder {
  color: #888;
}

.contact-input:focus {
  border-bottom-color: #050505;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-submit:hover {
  background: #333;
  transform: translateY(-2px);
}

.contact-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: 10px;
}

.direct-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.direct-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 2px;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px; /* 0.85rem approx */
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.direct-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.direct-link:hover {
  color: #000000;
  transform: translateX(-2px);
}

.direct-link:hover .direct-icon {
  opacity: 1;
}

/* ========================================================
   RESPONSIVE TWEAKS
   ======================================================== */
@media (max-width: 1024px) {
  .services__cards {
    justify-content: center;
  }

  .svc-card {
    width: 100%;
    max-width: 500px;
    height: 50vh;
    min-height: 380px;
  }
}

@media (max-width: 600px) {
  .preloader__text {
    letter-spacing: 0.12em;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__left {
    align-items: center;
  }

  .hero__services {
    justify-content: center;
  }

  .hero__cta {
    padding: 12px 28px;
    font-size: 0.8rem;
  }

  .svc-card {
    width: 90vw;
    height: 45vh;
    min-height: 340px;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .direct-contact-block {
    align-items: center;
    text-align: center;
  }
}

/* ========================================================
   STAGGERED SHUTTER — TRANSITION OVERLAY
   ======================================================== */
.shutter-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: row;
}

.shutter-col {
  flex: 1;
  height: 100%;
  background-color: #050505;
  transform: translateY(-100%);
  will-change: transform;
}

/* ========================================================
   SITE NAVIGATION
   ======================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-panda-logo {
  height: 55px; /* Increased for more presence */
  width: auto;
  object-fit: contain;
  margin-right: 0;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f5cc5d);
  border-radius: 2px;
}

/* ========================================================
   Z-DIVE CONTAINER — Innovation → Clients transition
   ======================================================== */
.z-dive-container {
  position: relative;
  background-color: var(--bg);
  overflow: hidden;
  z-index: 10;
}

/* ========================================================
   CLIENTS PAGE
   ======================================================== */
.clients {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center center;
  min-height: 100vh;
  padding: clamp(140px, 18vw, 220px) 6vw clamp(80px, 12vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  background-color: var(--bg);
  will-change: transform, opacity;
}

.clients__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 700px;
}

.clients__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #d4af37;
}

.clients__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.clients__heading em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.clients__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 500px;
}

/* Client Logo Marquee */
.client-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 4rem 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.client-marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  align-items: center;
  animation: scrollMarquee 30s linear infinite; /* Increased duration for smoother flow with more items */
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-logo {
  max-height: 80px; /* Increased from 40px for more impact */
  opacity: 0.8;    /* More visible by default */
  transition: all 0.3s ease;
}

.marquee-logo:hover {
  opacity: 1;
  transform: scale(1.05); /* Added a subtle scale on hover */
}

/* Clients Footer */
.clients-footer {
  padding: 40px 6vw;
  text-align: center;
  background-color: var(--bg);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================================
   ABOUT US / FOUNDERS — EDITORIAL LAYOUT
   ======================================================== */
.about-us {
  position: relative;
  z-index: 10;
  background-color: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10vw;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  overflow: hidden;
}

.about-us__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  opacity: 0.02;
  white-space: nowrap;
  font-weight: 900;
  pointer-events: none;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
}

.about-us__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
}

.founders-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  z-index: 2;
  width: 100%;
}

.founder-plate {
  width: 400px;
  max-width: 100%;
  padding: 3rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.founder-plate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.founder-plate:hover {
  transform: translate3d(0, -10px, 0) !important;
}

.founder-plate:hover::after {
  left: 200%;
}

.founder-left {
  transform: translateX(-150%);
  opacity: 0;
}

.founder-right {
  transform: translateX(150%);
  opacity: 0;
}

.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.founder-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #d4af37, #f5cc5d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

/* About Us Page — Standalone Styles */
.about-us--page {
  padding-top: clamp(140px, 18vw, 220px);
}

.about-us__overline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.about-us__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
}

.about-us__heading em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.about-us__desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 600px;
  text-align: center;
}

.about-footer {
  padding: 40px 6vw;
  text-align: center;
  background-color: #0a0a0a;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================================
   RESPONSIVE — NAV & CLIENTS
   ======================================================== */
@media (max-width: 600px) {
  .site-nav {
    padding: 16px 5vw;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }
}

/* ========================================================
   CURTAIN REVEAL — MAIN CONTENT ACTS AS CURTAIN
   ======================================================== */
main {
  position: relative;
  z-index: 10;
  background-color: #050505;
  margin-bottom: 100vh; /* Creates space for fixed contact section underneath */
}

/* ========================================================
   CONTACT FINALE — FIXED DEEP SPACE SECTION
   ======================================================== */
#contact-finale {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background-color: #030303;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  visibility: hidden;
}

.contact-finale__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.contact-finale__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.contact-finale__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.magnetic-pill {
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  will-change: transform;
}

.magnetic-pill svg {
  opacity: 0.5;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.magnetic-pill * {
  pointer-events: none;
}

.magnetic-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.magnetic-pill:hover svg {
  opacity: 1;
}

.contact-finale__copy {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* ========================================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ======================================================== */
@media (max-width: 768px) {
  /* 6. Global Fixes */
  html, body {
    overflow-x: hidden; /* Strictly prevent horizontal scroll */
  }

  .fixed-cta-wrapper {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    right: auto;
    width: max-content;
  }

  /* 1. Mobile Navbar & Header */
  .nav-links {
    display: none; /* Hide desktop links for now */
  }

  /* 2. Mobile Hero Section */
  .hero {
    padding-top: 140px; /* Push content below the fixed navbar */
    padding-bottom: 120px; /* Leave space for the Book A Call button */
    height: auto;
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: 9.5vw; /* Soften H1 significantly so it fully fits */
    line-height: 1.1;
  }

  .hero__panda-img {
    max-width: 90%; /* Make panda much more prominent */
    min-height: 250px;
    height: auto;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 5;
    transform: none; /* Override the desktop shift */
  }
  
  .hero__right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero__tag {
    font-size: 15vw; /* Soften the giant background text on mobile to avoid overflow */
  }

  /* 3. Mobile Services Grid */
  .services__cards {
    grid-template-columns: 1fr;
  }

  .svc-card {
    padding: 30px; /* Reduce massive padding */
    height: auto;
    min-height: 250px;
  }

  /* 4. Mobile AI Integration Section */
  .innovation__container {
    flex-direction: column;
    gap: 40px;
  }

  .innovation__right {
    width: 100%;
  }

  .inno-matrix {
    width: 100%;
    max-width: 100%;
  }

  /* 5. Mobile Contact Finale */
  .contact-finale__heading {
    font-size: 12vw;
    line-height: 1;
    white-space: normal; /* Allow wrapping securely */
  }

  .contact-finale__pills {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    gap: 12px;
  }

  .magnetic-pill {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  /* 7. Mobile About Us / Founders */
  .about-us {
    padding: 15vw 6vw;
  }

  .founder-plate {
    width: 100%;
    padding: 2rem;
  }

  .founders-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .founder-name {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

/* ========================================================
   SEO FOOTER
   ======================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 6vw 0;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col__title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.footer-nav a:hover {
  color: #D4AF37;
}

.footer-locations {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
