/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(14, 29, 94, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
#navbar.scrolled .nav-link { color: rgba(255,255,255,0.85); }

/* Mobile menu */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu .mobile-link { transition: color 0.2s; }

/* Scroll reveal — progressive enhancement: default state is visible */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #4fd39a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle selection */
::selection { background: rgba(79, 211, 154, 0.25); color: #0e1d5e; }
</style>
