/* Base & utilities */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

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

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d1430;
}
::-webkit-scrollbar-thumb {
  background: #1c2f66;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e4a9e;
}

/* Select dropdown fix for dark theme */
select option {
  background: #162552;
  color: #ffffff;
}

/* Nav active state */
.nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

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

/* Smooth page transitions */
@media (prefers-reduced-motion: no-preference) {
  ::selection {
    background: rgba(78, 199, 143, 0.3);
    color: #ffffff;
  }
}
