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

/* ── Scroll reveal (progressive enhancement — content visible by default) ── */
@media (prefers-reduced-motion: no-preference) {
  .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.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.08s; }
  .reveal:nth-child(3) { transition-delay: 0.16s; }
  .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ── Card hover ── */
.card-hover {
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .card-hover {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  }
  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(212, 160, 23, 0.15);
  }
}

/* ── Navbar scrolled state ── */
.navbar-scrolled {
  background: rgba(10, 29, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1D3A; }
::-webkit-scrollbar-thumb { background: #1B4378; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #D4A017; }

/* ── Selection ── */
::selection { background: rgba(212, 160, 23, 0.3); color: #F0C94D; }
</style>
