/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* === NAV SCROLL STATE === */
#nav.scrolled {
  background: rgba(8, 20, 32, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === MOBILE MENU ANIMATION === */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === FOCUS STYLES === */
input:focus, textarea:focus {
  outline: none;
}

/* === CUSTOM SELECTION === */
::selection {
  background: rgba(88, 214, 141, 0.3);
  color: #081420;
}

/* === SMOOTH IMAGE LOADING === */
img {
  background-color: #0d1b2a;
  border-radius: inherit;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .group:hover img { transform: none; }
  .animate-bounce { animation: none; }
}
