/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Navbar scroll state */
.nav-scrolled header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(15, 43, 76, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Reveal animations (progressive enhancement — content is visible by default) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f4f8; }
::-webkit-scrollbar-thumb { background: #a8bdd6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7c99bf; }

/* Selection color */
::selection { background: #5eead4; color: #0f2b4c; }
