/* === BASE & RESET === */
*, *::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(212, 168, 67, 0.3);
  color: #f0d890;
}

/* === NAVBAR === */
.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #e8c460;
}

#navbar.scrolled {
  background: rgba(7, 14, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4a843, #e8c460);
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 60%;
}

/* === PARTICLES === */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle linear infinite;
}

.particle-1 {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #e8c460, transparent);
  top: 20%;
  left: 10%;
  animation-duration: 8s;
  opacity: 0.6;
}

.particle-2 {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #2dd4bf, transparent);
  top: 40%;
  right: 15%;
  animation-duration: 10s;
  animation-delay: 1s;
  opacity: 0.5;
}

.particle-3 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #f0d890, transparent);
  bottom: 30%;
  left: 20%;
  animation-duration: 12s;
  animation-delay: 2s;
  opacity: 0.4;
}

.particle-4 {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #2dd4bf, transparent);
  top: 60%;
  right: 25%;
  animation-duration: 9s;
  animation-delay: 0.5s;
  opacity: 0.5;
}

.particle-5 {
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #e8c460, transparent);
  top: 15%;
  right: 35%;
  animation-duration: 11s;
  animation-delay: 3s;
  opacity: 0.7;
}

.particle-6 {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #f0d890, transparent);
  bottom: 20%;
  right: 10%;
  animation-duration: 7s;
  animation-delay: 1.5s;
  opacity: 0.4;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.2);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px) translateX(-10px) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.6;
  }
}

/* === PRODUCT CARDS === */
.product-card {
  cursor: pointer;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 67, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.08);
}

.product-card img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === SAFETY CARDS === */
.safety-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.safety-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* === SCROLL REVEAL === */
.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);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .particle {
    animation: none;
    opacity: 0.3;
  }

  .product-card:hover,
  .safety-card:hover {
    transform: none;
  }
}

/* === BACK TO TOP === */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

/* === GOLD LINE ACCENT === */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4a843, #e8c460);
  border-radius: 2px;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070e18;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4a843, #0d9488);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e8c460, #2dd4bf);
}

/* === FOCUS STYLES === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e8c460;
  outline-offset: 3px;
  border-radius: 4px;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .product-card:hover {
    transform: none;
  }
}
