/* ── Base & Reset ───────────────────────────────────────────────────────── */
*, *::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; }

/* ── Floating Card Animations ─────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes float-alt {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(10px); }
}
.floating-card:nth-child(1) { animation: float 5s ease-in-out infinite; }
.floating-card:nth-child(2) { animation: float-alt 6s ease-in-out infinite; }
.floating-card:nth-child(3) { animation: float 5.5s ease-in-out infinite 0.5s; }

/* ── Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Header Scroll State ──────────────────────────────────────────────────── */
#site-header.scrolled {
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

/* ── Mobile Nav ───────────────────────────────────────────────────────────── */
#mobile-nav.open { display: block; animation: slideDown .3s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
::selection { background: rgba(240, 192, 64, 0.25); color: #fff; }
</style>
