/* ===== BASE ===== */
*, *::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(200, 149, 46, 0.3);
  color: #fff;
}

/* ===== NAV ===== */
#nav {
  background: transparent;
}

#nav.scrolled {
  background: rgba(4, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#nav.scrolled .menu-line {
  background: #fff;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.closed .mobile-link {
  opacity: 0;
  transform: translateY(12px);
}

#mobileMenu.closed .mobile-link:nth-child(1) { transition-delay: 0s; }
#mobileMenu.closed .mobile-link:nth-child(2) { transition-delay: 0.05s; }
#mobileMenu.closed .mobile-link:nth-child(3) { transition-delay: 0.1s; }
#mobileMenu.closed .mobile-link:nth-child(4) { transition-delay: 0.15s; }
#mobileMenu.closed .mobile-link:nth-child(5) { transition-delay: 0.2s; }

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.2s; }

/* ===== HERO FLOATING CARDS ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ===== VINYL SPIN ===== */
.vinyl-spin {
  animation: spin 20s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-state="hidden"] {
  opacity: 0;
  transform: translateY(40px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-card {
    animation: none;
  }
  .vinyl-spin {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040d1a;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 149, 46, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 149, 46, 0.5);
}
