/**
 * ==============================================================================
 * SHERYL'S ROMANTIC BIRTHDAY WEB APP — 60 FPS GPU KEYFRAME ANIMATIONS
 * ==============================================================================
 */

/* 1. Slow Vinyl Record Spin */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 2. Gentle Floating Drift */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* 3. Pulsing Golden / Rose Glow Halo */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25), 0 0 30px rgba(229, 130, 157, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.55), 0 0 45px rgba(229, 130, 157, 0.35);
  }
}

/* 4. Countdown Second Tick Bounce */
@keyframes countdownTick {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.08);
    color: var(--color-rose-deep);
  }
  100% {
    transform: scale(1);
  }
}

/* 5. Button Shimmer Light Sweep */
@keyframes shimmerSheen {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }
  50%, 100% {
    transform: translateX(200%) skewX(-20deg);
  }
}

/* 6. Subtle Breathing Scale */
@keyframes breathingPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* 7. Fade In & Slide Up Entry */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Scale Fade In */
@keyframes scaleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 9. Quiz Error Shake */
@keyframes shakeHorizontal {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* 10. Candle Flame Flicker */
@keyframes candleFlicker {
  0%, 100% {
    transform: scale(1, 1) skewX(0deg);
    opacity: 0.95;
  }
  25% {
    transform: scale(0.96, 1.05) skewX(-2deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.04, 0.95) skewX(2deg);
    opacity: 0.9;
  }
  75% {
    transform: scale(0.98, 1.02) skewX(-1deg);
    opacity: 0.97;
  }
}

/* 11. Candle Smoke Dissipate */
@keyframes smokeDissipate {
  0% {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(2.2);
  }
}

/* 12. Golden Key Halo & Shimmer Pulse */
@keyframes goldenPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.7), 0 0 90px rgba(212, 175, 55, 0.35);
    transform: scale(1.05);
  }
}

/* 13. Radial Background Light Rays Rotation */
@keyframes rayRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 14. 3D Key Floating Levitation */
@keyframes keyFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

/* 15. Padlock Shackle Unlock Open */
@keyframes padlockShackleUnlock {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-8px) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(45deg);
  }
}

/* 16. Correct Option Success Pulse */
@keyframes successPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(78, 154, 112, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(78, 154, 112, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(78, 154, 112, 0.3);
  }
}

/* 17. Vault Gateway Dissolve In */
@keyframes vaultDissolve {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* Utility Animation Classes */
.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

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

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

.animate-tick {
  animation: countdownTick 0.35s ease-out;
}

.animate-fade-up {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-golden-pulse {
  animation: goldenPulse 2s infinite ease-in-out;
}

.animate-ray-rotate {
  animation: rayRotate 20s linear infinite;
}

.animate-key-float {
  animation: keyFloat 3s ease-in-out infinite;
}

.shakeHorizontal, .shake-lock {
  animation: shakeHorizontal 0.5s ease-in-out;
}

/* 18. Lightbox Scale & Fade In */
@keyframes lightboxScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 19. Floating Hearts Reaction Flight */
@keyframes floatingHeartFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  50% {
    opacity: 1;
    transform: translate(var(--dx, 0px), calc(var(--dy, -60px) * 0.5)) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, -120px)) scale(1);
  }
}

/* 20. Poster Breathing Glow */
@keyframes posterGlow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(229, 130, 157, 0.25);
  }
  50% {
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.4);
  }
}

.animate-lightbox-in {
  animation: lightboxScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-poster-glow {
  animation: posterGlow 4s ease-in-out infinite;
}

/* 21. LDR Pin Radar Ripple */
@keyframes radarPing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 22. Flight Route Dash Flow */
@keyframes dashFlow {
  from {
    stroke-dashoffset: 60;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* 23. Airplane Transit Glide along Route */
@keyframes transitGlide {
  0% {
    transform: translate(120px, 220px) rotate(-20deg) scale(0.9);
  }
  50% {
    transform: translate(400px, 160px) rotate(0deg) scale(1.1);
  }
  100% {
    transform: translate(680px, 220px) rotate(20deg) scale(0.9);
  }
}

/* 24. Smoke Puff Rise & Expansion */
@keyframes smokePuffRise {
  0% {
    opacity: 0.9;
    transform: translate(-50%, 0) scale(0.5);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -25px) scale(1.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50px) scale(2.2);
  }
}

/* 25. Flame Core Flicker */
@keyframes flameCoreDance {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.95;
  }
  25% {
    transform: scale(1.08, 0.92) translateY(-1px) rotate(-1deg);
    opacity: 1;
  }
  50% {
    transform: scale(0.94, 1.06) translateY(-2px) rotate(1.5deg);
    opacity: 0.9;
  }
  75% {
    transform: scale(1.02, 0.98) translateY(-1px) rotate(-1deg);
    opacity: 0.98;
  }
}

/* 26. Envelope Ready Golden Aura Pulse */
@keyframes envelopeReadyGlow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 45px rgba(212, 175, 55, 0.6), 0 0 40px rgba(229, 130, 157, 0.4);
    transform: translateY(-6px);
  }
}

/* 27. Wax Seal Dissolve */
@keyframes waxSealBreak {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.2);
    filter: drop-shadow(0 0 15px #d4af37);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.4) rotate(45deg);
    opacity: 0;
    pointer-events: none;
  }
}

/* 28. Brand Heart Icon Continuous Pulse */
@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.22);
  }
  40% {
    transform: scale(1.05);
  }
  60% {
    transform: scale(1.28);
  }
  80% {
    transform: scale(1.08);
  }
}

/* 29. Subtle Golden Ambient Breathing for Glass Cards */
@keyframes ambientCardBreathe {
  0%, 100% {
    box-shadow: 0 16px 40px rgba(44, 24, 32, 0.12), 0 0 20px rgba(212, 175, 55, 0.15);
  }
  50% {
    box-shadow: 0 20px 48px rgba(44, 24, 32, 0.16), 0 0 32px rgba(229, 130, 157, 0.25);
  }
}



