/* ============================================================
   SCROLL & REVEAL SYSTEM — VaaniBank AI  ·  scroll.css
   ============================================================ */

/* ── html smooth scroll ────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Progress bar — hidden ─ */
#progress-bar { display: none; }

/* ── Scene Dots — hidden ─ */
#scene-dots { display: none; }

/* ── Scroller — normal flow ───────────────────────────── */
#scroller {
  position: relative;
  height: auto;
  background: transparent; /* no black gaps between scenes */
}

#sticky-container {
  position: relative;
  height: auto;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
  background: transparent;
}

/* ── Individual Scenes — full-viewport sections, stacked ── */
.scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer — normal flow ─────────────────────────────── */
#footer {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  min-height: 64px;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-dm);
  font-size: 0.8rem;
  transform: none;
  z-index: 100;
  padding: 0 var(--container-pad);
}

#footer a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
#footer a:hover { color: var(--white); }
#footer .footer-brand {
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-sora);
}
#footer .footer-sep { opacity: 0.25; }


/* ============================================================
   NAV SCROLL STATES — handled via nav-hero / nav-scrolled
   classes toggled by scroll-engine.js IntersectionObserver
   ============================================================ */
#nav {
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform  0.3s  cubic-bezier(.16,1,.3,1);
}

/* Legacy .scrolled / .nav-hidden — kept as no-ops so old code doesn't break */
#nav.scrolled { /* intentionally empty — nav-hero/nav-scrolled handle state */ }
#nav.nav-hidden { transform: none; pointer-events: auto; }


/* ============================================================
   SCROLL-REVEAL BASE STATES
   ============================================================ */

[class*="sr-"] {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.16,1,.3,1);
  transition-duration: 700ms;
}

.sr-hidden { opacity: 0; }

.sr-fade-up    { transform: translateY(36px); }
.sr-fade-down  { transform: translateY(-36px); }
.sr-fade-left  { transform: translateX(-44px); }
.sr-fade-right { transform: translateX(44px); }
.sr-fade       { transform: none; }

.sr-zoom-in  { transform: scale(0.88); }
.sr-zoom-out { transform: scale(1.12); }

.sr-visible {
  opacity: 1 !important;
  transform: none !important;
}


/* ============================================================
   REDUCED-MOTION OVERRIDE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [class*="sr-"] { transition: none !important; }
  .sr-hidden { opacity: 1 !important; }
  .sr-fade-up,
  .sr-fade-down,
  .sr-fade-left,
  .sr-fade-right,
  .sr-zoom-in,
  .sr-zoom-out { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE SCENE HEIGHTS & VIEWPORT CLIPPING FIXES
   ============================================================ */
@media (max-width: 900px) {
  .scene {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .voice-inner,
  .demo-inner,
  .contact-inner {
    height: auto !important;
    padding-bottom: 30px !important;
  }
}
