/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Scroll Bounce */
@keyframes scrollBounce {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
    opacity: 1;
  }
  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 0.5;
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Particle Float */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Particle Drift */
@keyframes particleDrift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0);
  }
}

/* =============================================
   FADE-IN OBSERVER CLASSES
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay-1 {
  transition-delay: 0.1s;
}

.fade-in--delay-2 {
  transition-delay: 0.2s;
}

.fade-in--delay-3 {
  transition-delay: 0.3s;
}

.fade-in--delay-4 {
  transition-delay: 0.4s;
}

.fade-in--delay-5 {
  transition-delay: 0.5s;
}

.fade-in--delay-6 {
  transition-delay: 0.6s;
}

/* =============================================
   PARTICLES
   ============================================= */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--treasure-gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

.particle:nth-child(odd) {
  background: rgba(212, 175, 55, 0.6);
  width: 3px;
  height: 3px;
}

.particle:nth-child(even) {
  background: rgba(250, 204, 21, 0.4);
  width: 2px;
  height: 2px;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}