/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Floating Cards ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 3.5s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 4s ease-in-out infinite 0.8s; }

/* ── Navbar ── */
#nav.scrolled {
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* ── Mobile Menu ── */
#mobileMenu.open { opacity: 1; pointer-events: all; }

/* ── Smooth anchor offset ── */
section[id] { scroll-margin-top: 80px; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf6ec; }
::-webkit-scrollbar-thumb { background: #e0a540; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c98a28; }
