/* ============================================
   Jun's Liquor — Premium Dark Luxury Styles
   ============================================ */

/* ---- Reset & 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 {
  background: rgba(212, 168, 83, 0.3);
  color: #f0f0f0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #3f3f3f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* ---- Navbar ---- */
#navbar {
  backdrop-filter: blur(0px);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(12, 12, 12, 0.92);
  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: 1.5px;
  background: linear-gradient(90deg, #d4a853, #e8734a);
  transition: width 0.3s ease;
}

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

/* ---- Mobile Menu ---- */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* ---- Hero Animations ---- */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

.scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ---- Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 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-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- Product Cards ---- */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.15s; }
.reveal-up:nth-child(4) { transition-delay: 0.2s; }
.reveal-up:nth-child(5) { transition-delay: 0.25s; }
.reveal-up:nth-child(6) { transition-delay: 0.3s; }

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

.text-shimmer {
  background: linear-gradient(
    90deg,
    #f0d9a0 0%,
    #e8c478 25%,
    #d4a853 50%,
    #e8c478 75%,
    #f0d9a0 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ---- Floating Card Animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* ---- Pulse Glow ---- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 83, 0.1); }
  50% { box-shadow: 0 0 40px rgba(212, 168, 83, 0.25); }
}

.glow-pulse {
  animation: pulseGlow 3s ease-in-out infinite;
}

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

/* ---- Form Styles ---- */
select option {
  background: #1f1f1f;
  color: #f0f0f0;
}

/* ---- Button Ripple ---- */
button, a {
  position: relative;
  overflow: visible;
}

/* ---- Map Container ---- */
iframe {
  border-radius: 0 0 1rem 1rem;
}

/* ---- Mobile Menu Button Animation ---- */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

body.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  #about .relative > div:first-child {
    margin-bottom: 2rem;
  }

  .floating {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

/* ---- Print Styles ---- */
@media print {
  #navbar, .scroll-indicator, #contactForm button {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
