/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navbar ──────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #A8E6CF;
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ─────────────────────────────────── */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}
#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Animations ─────────────────────────────── */
.hero-image-main {
  animation: heroImageIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-float-card {
  animation: floatCardIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-badge {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-badge, .hero-image-main ~ * { animation-delay: inherit; }

@keyframes heroImageIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Menu Cards ──────────────────────────────────── */
.menu-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}
.menu-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.menu-card:nth-child(2) { transition-delay: 0.12s; }
.menu-card:nth-child(3) { transition-delay: 0.24s; }

/* ── Process Cards ───────────────────────────────── */
.process-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.process-card:nth-child(2) { transition-delay: 0.1s; }
.process-card:nth-child(3) { transition-delay: 0.2s; }
.process-card:nth-child(4) { transition-delay: 0.3s; }

/* ── Section Reveals ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .menu-card, .process-card, .reveal {
    opacity: 1;
    transform: none;
  }
}
