/* ===== Cloud 9 Vapor Shop — Custom Styles ===== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #F8DDE5;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0E;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #D4A853, #7B2D3B);
  border-radius: 4px;
}

/* ===== Navigation ===== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #D4A853 !important;
}

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

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

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #D4A853;
  transition: width 0.3s ease;
}

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

/* Menu button animations */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Hero ===== */
#hero {
  position: relative;
}

/* Gold shimmer on CTA */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-2deg); }
}

/* ===== Reveal Animations ===== */
.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;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Product Cards ===== */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.03), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

/* ===== Section Dividers ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
}

/* ===== Button Hover Glow ===== */
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.25), 0 0 60px rgba(212, 168, 83, 0.1);
}

/* ===== Image Hover ===== */
.img-hover {
  overflow: hidden;
  position: relative;
}

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

.img-hover:hover img {
  transform: scale(1.08);
}

/* ===== Custom Gold Gradient Text ===== */
.text-gradient-gold {
  background: linear-gradient(135deg, #D4A853, #E8C97A, #B8923F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Card Tilt Effect (JS-assisted) ===== */
.card-tilt {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tilt:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 83, 0.08);
}

/* ===== Age Verification Modal ===== */
#ageModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#ageModal.hidden {
  display: none;
}

.age-modal-content {
  background: #1A1A25;
  border: 1px solid rgba(212, 168, 83, 0.3);
  padding: 3rem;
  text-align: center;
  max-width: 480px;
  width: 90%;
  position: relative;
}

.age-modal-content::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.3), transparent, rgba(123, 45, 59, 0.3));
  border-radius: inherit;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  .lg\:col-span-7 {
    order: 2 !important;
  }

  .lg\:col-span-5 {
    order: 1 !important;
    margin-bottom: 2rem;
  }

  .floating-card {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 1rem;
  }
}

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

/* ===== Loading State ===== */
.page-loaded #hero {
  opacity: 1;
}

/* ===== Parallax Subtle ===== */
.parallax-slow {
  will-change: transform;
}
