/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== NAV LINK UNDERLINE ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4, #C9A84C);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
  animation: fadeDown 0.3s ease forwards;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

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

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

.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-2.5px) rotate(-45deg);
  width: 5rem;
}

/* ===== SCROLL INDICATOR ===== */
@keyframes scroll-indicator {
  0% { top: -16px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

.animate-scroll-indicator {
  animation: scroll-indicator 1.8s ease-in-out infinite;
}

/* ===== PRODUCT CARD HOVER ===== */
.product-card {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* ===== INPUT FOCUS RING ===== */
input:focus,
textarea:focus {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08) !important;
  outline: none;
}

/* ===== GOLD GLOW ACCENTS ===== */
.gold-glow {
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
  .product-card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }

  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
}

/* ===== 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;
  }
}
