/* ── Base & Resets ── */
*, *::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(232, 96, 74, 0.3);
  color: #f7f7f8;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Hero Reveal (above fold — always visible) ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.25s; }
.reveal:nth-child(3) { transition-delay: 0.4s; }
.reveal:nth-child(4) { transition-delay: 0.55s; }
.reveal:nth-child(5) { transition-delay: 0.7s; }

/* ── Navbar Scroll State ── */
#navbar.scrolled {
  background: rgba(17, 19, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 109, 123, 0.15);
}

#navbar.scrolled .nav-link {
  color: #d4d4de;
}

#navbar.scrolled .nav-link:hover {
  color: #f48474;
}

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.18s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.26s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.34s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hamburger Animation ── */
.menu-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
  opacity: 0;
}

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

/* ── Thin Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #111317;
}

::-webkit-scrollbar-thumb {
  background: #42444c;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b6d7b;
}

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

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
