/* === BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #F0FDFA;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050D1A;
}
::-webkit-scrollbar-thumb {
  background: #1D3461;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2DD4BF;
}

/* === REVEAL ANIMATIONS (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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.05s; }
  .reveal:nth-child(3) { transition-delay: 0.1s; }
  .reveal:nth-child(4) { transition-delay: 0.15s; }
  .reveal:nth-child(5) { transition-delay: 0.2s; }
  .reveal:nth-child(6) { transition-delay: 0.25s; }
}

/* Fallback: ensure content is visible even without JS */
.no-js .reveal,
.js-enabled .reveal {
  /* JS will add .revealed class */
}

/* === NAV SCROLL STATE === */
.nav-scrolled #nav {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === MOBILE MENU === */
.mobile-link {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === SELECT STYLING === */
select option {
  background: #0A1628;
  color: #fff;
}

/* === FORM FOCUS STATES === */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* === HOVER UTILITIES === */
a {
  text-decoration: none;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 767px) {
  .font-serif {
    word-break: keep-all;
  }
}
