/* ============================================================
   DIAMOND SLOT — ANIMATIONS.CSS
   Crystal Vault Gaming · arcadealleyindex.homes
   ============================================================ */

/* ============================================================
   1. KEYFRAMES
   ============================================================ */

/* Crystal Pulse */
@keyframes crystal-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(125, 211, 252, 0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(125, 211, 252, 0.7));
    transform: scale(1.04);
  }
}

/* Orbit Float */
@keyframes orbit-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-12px) scale(1.1);
    opacity: 1;
  }
}

/* Ring Pulse */
@keyframes ring-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

/* Spark Appear */
@keyframes spark-appear {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  30%, 70% {
    opacity: 0.8;
    transform: scale(1.2) rotate(45deg);
  }
}

/* Scroll Bounce */
@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.4;
  }
}

/* Live Pulse */
@keyframes live-pulse {
  0%, 100% {
    box-shadow: 0 0 6px #34D399;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 14px #34D399;
    opacity: 0.6;
  }
}

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

/* Gradient Text Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Particle Float */
@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift, 20px)) scale(0.5);
    opacity: 0;
  }
}

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

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Beam Drift */
@keyframes beam-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.10;
  }
  33% {
    transform: translate(60px, -40px) scale(1.1);
    opacity: 0.14;
  }
  66% {
    transform: translate(-40px, 60px) scale(0.95);
    opacity: 0.08;
  }
}

/* Game Frame Shimmer */
@keyframes frame-shimmer {
  0%, 100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.12;
  }
}

/* ============================================================
   2. SCROLL-TRIGGERED FADE IN CLASSES
   ============================================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   3. AMBIENT BEAM ANIMATIONS
   ============================================================ */

.ambient-beam {
  animation: beam-drift 20s ease-in-out infinite;
}

.beam-2 {
  animation-delay: -7s;
  animation-duration: 25s;
}

.beam-3 {
  animation-delay: -14s;
  animation-duration: 18s;
}

/* ============================================================
   4. GRADIENT TEXT ANIMATION
   ============================================================ */

.gradient-text {
  background-size: 200% auto;
  animation: gradient-shift 4s linear infinite;
}

/* ============================================================
   5. PARTICLE SYSTEM
   ============================================================ */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  animation: particle-float var(--duration, 8s) ease-in infinite;
  animation-delay: var(--particle-delay, 0s);
  left: var(--x, 50%);
  bottom: -10px;
  opacity: 0;
}

.particle:nth-child(odd) {
  background: var(--color-accent-violet);
  width: 3px;
  height: 3px;
}

.particle:nth-child(3n) {
  background: var(--color-accent-white);
  width: 2px;
  height: 2px;
  border-radius: 50%;
}

/* ============================================================
   6. GAME FRAME INNER SHIMMER
   ============================================================ */
.game-frame-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
    transparent 30%,
    rgba(125, 211, 252, 0.03) 50%,
    transparent 70%
  );
  background-size: 400% 400%;
  animation: shimmer 8s ease infinite;
  pointer-events: none;
  z-index: 5;
}

/* ============================================================
   7. HEADER LOGO DIAMOND ANIMATION
   ============================================================ */
.logo-diamond {
  animation: crystal-pulse 5s ease-in-out infinite;
}

/* ============================================================
   8. BUTTON SHIMMER (active state)
   ============================================================ */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

/* ============================================================
   END ANIMATIONS.CSS
   ============================================================ */