/* ═══════════════════════════════════════════
   South Side Urban Wear — Custom Styles
   ═══════════════════════════════════════════ */

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(74, 222, 128, 0.3);
  color: #f0fdf7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1a33;
}
::-webkit-scrollbar-thumb {
  background: #1e3d73;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #284d95;
}

/* ── Nav Links ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ade80;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
.menu-line {
  display: block;
}
#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.35s; }
  .reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* Default state: always visible for accessibility */
.reveal {
  opacity: 1;
  transform: none;
}

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

/* ── Hero Stats Counter ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Button ripple on focus ── */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* ── Input autofill override ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0f2440 inset !important;
  -webkit-text-fill-color: #f0fdf7 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Image hover glow ── */
.group:hover img {
  filter: brightness(1.05);
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background-color: rgba(10, 26, 51, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
