*, *::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;
}

a, button, input, select, textarea {
  font-family: inherit;
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

select option {
  background-color: #060f1e;
  color: rgba(255,255,255,0.7);
}

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

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

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Header background on scroll */
#site-header.scrolled {
  background: rgba(6, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060f1e;
}
::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.5);
}

/* Selection */
::selection {
  background: rgba(201,168,76,0.3);
  color: #fff;
}
