/* ================================================================
   FLYER PUB – Animations & Visual Effects
   ================================================================ */

/* --- Page Load Animation --- */
.load-animate {
  animation: loadSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes loadSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
.facts__item.reveal:nth-child(2) { transition-delay: 0.1s; }
.facts__item.reveal:nth-child(3) { transition-delay: 0.2s; }
.facts__item.reveal:nth-child(4) { transition-delay: 0.3s; }

.drinks-category.reveal:nth-child(2) { transition-delay: 0.15s; }
.drinks-category.reveal:nth-child(3) { transition-delay: 0.3s; }
.drinks-category.reveal:nth-child(4) { transition-delay: 0.45s; }
.drinks-category.reveal:nth-child(5) { transition-delay: 0.6s; }

/* --- Hero Particles (CSS only) --- */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.hero__particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

/* Generate varied particle animations */
.hero__particles span:nth-child(1) {
  left: 10%; animation-duration: 12s; animation-delay: 0s;
  width: 2px; height: 2px;
}
.hero__particles span:nth-child(2) {
  left: 20%; animation-duration: 15s; animation-delay: 2s;
  width: 4px; height: 4px;
}
.hero__particles span:nth-child(3) {
  left: 35%; animation-duration: 10s; animation-delay: 4s;
}
.hero__particles span:nth-child(4) {
  left: 50%; animation-duration: 14s; animation-delay: 1s;
  width: 2px; height: 2px;
}
.hero__particles span:nth-child(5) {
  left: 65%; animation-duration: 11s; animation-delay: 3s;
  width: 4px; height: 4px;
}
.hero__particles span:nth-child(6) {
  left: 75%; animation-duration: 16s; animation-delay: 5s;
}
.hero__particles span:nth-child(7) {
  left: 85%; animation-duration: 13s; animation-delay: 2s;
  width: 2px; height: 2px;
}
.hero__particles span:nth-child(8) {
  left: 15%; animation-duration: 9s; animation-delay: 6s;
}
.hero__particles span:nth-child(9) {
  left: 40%; animation-duration: 17s; animation-delay: 1s;
  width: 2px; height: 2px;
}
.hero__particles span:nth-child(10) {
  left: 55%; animation-duration: 12s; animation-delay: 4s;
}
.hero__particles span:nth-child(11) {
  left: 28%; animation-duration: 14s; animation-delay: 7s;
  width: 3px; height: 3px;
}
.hero__particles span:nth-child(12) {
  left: 70%; animation-duration: 11s; animation-delay: 0.5s;
}
.hero__particles span:nth-child(13) {
  left: 45%; animation-duration: 18s; animation-delay: 3s;
  width: 2px; height: 2px;
}
.hero__particles span:nth-child(14) {
  left: 88%; animation-duration: 10s; animation-delay: 5.5s;
}
.hero__particles span:nth-child(15) {
  left: 5%; animation-duration: 15s; animation-delay: 8s;
  width: 4px; height: 4px;
}

@keyframes particleFloat {
  0% {
    bottom: -5%;
    opacity: 0;
    transform: translateX(0);
  }
  10% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.15;
    transform: translateX(30px);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    bottom: 105%;
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* --- Parallax (CSS perspective) --- */
@media (min-width: 769px) {
  .hero {
    perspective: 1px;
    perspective-origin: center center;
    transform-style: preserve-3d;
  }
  .hero__overlay,
  .hero__particles {
    transform: translateZ(-0.5px) scale(1.5);
  }
}

/* --- Nav transition --- */
.nav__links a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:hover::after {
  width: 100%;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .load-animate {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero__particles span {
    animation: none;
    display: none;
  }
  .hero__scroll-indicator span {
    animation: none;
  }
}
