/* ===== Custom Styles for Greer Beverage ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base */
body {
  background-color: #030a14;
  color: #ffffff;
}

/* Floating animations for hero cards */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

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

.float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.float-medium {
  animation: float-medium 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.float-fast {
  animation: float-fast 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scroll reveal base states — content is VISIBLE by default */
.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);
}

/* Animated state applied via JS only (progressive enhancement) */
.reveal.animated {
  opacity: 0;
  transform: translateY(40px);
}

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

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar glass effect */
.nav-scrolled {
  background: rgba(3, 10, 20, 0.9) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030a14;
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 209, 197, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 209, 197, 0.5);
}

/* Selection color */
::selection {
  background: rgba(79, 209, 197, 0.3);
  color: #ffffff;
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.open {
  max-height: 400px;
}

/* Product card hover glow */
.group:hover .group-hover\:shadow-glow {
  box-shadow: 0 0 60px rgba(79, 209, 197, 0.15);
}

/* 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;
  }
  .reveal.animated {
    opacity: 1;
    transform: translateY(0);
  }
}
