/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Navbar ── */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#nav.scrolled {
  background: rgba(12, 14, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Marquee ── */
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item { flex-shrink: 0; }
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(32px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* ── Mobile Menu ── */
.mobile-link { border-radius: 8px; }
.mobile-link:hover { background: rgba(255,255,255,0.05); }

/* ── Nav Links ── */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #C84B38;
  transition: width 0.2s ease;
  margin-top: 2px;
}
.nav-link:hover::after { width: 100%; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #14171b; }
::-webkit-scrollbar-thumb { background: #3a4048; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5f6770; }

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

/* ── Form Inputs ── */
input::placeholder, textarea::placeholder { color: #5f6770; }
