/* ── Reset & Base ─────────────────────────────────── */
*, *::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; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── Marquee Animation ────────────────────────────── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* ── Nav Scroll State ─────────────────────────────── */
nav.scrolled {
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Scroll Reveal (below fold only, progressive enhancement) ────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Mobile Menu Transitions ──────────────────────── */
#mobile-menu {
  pointer-events: none;
}
#mobile-menu.open {
  pointer-events: all;
}

/* ── Custom Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ── Selection ────────────────────────────────────── */
::selection { background: rgba(20, 184, 166, 0.3); color: #f1f5f9; }

/* ── Focus Visible ────────────────────────────────── */
:focus-visible { outline: 2px solid #14b8a6; outline-offset: 2px; border-radius: 4px; }

/* ── Product Card Image Hover ─────────────────────── */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ── Button Ripple Effect ─────────────────────────── */
button, a {
  -webkit-tap-highlight-color: transparent;
}
