/**
 * ==========================================================================
 * ROYAL WEDDING INVITATION - ANIMATIONS & KEYFRAMES
 * ==========================================================================
 */

/* Scroll Reveal Base Classes */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.48s cubic-bezier(0.25, 1, 0.5, 1), transform 0.48s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.48s cubic-bezier(0.25, 1, 0.5, 1), transform 0.48s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   VIDEO HERO & SCROLL PROMPT ANIMATIONS
   ========================================================================== */
@keyframes hero-section-bounce {
  0% {
    transform: translateY(0);
  }
  14% {
    transform: translateY(-50px);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  28% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
  }
  42% {
    transform: translateY(-30px);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  56% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
  }
  70% {
    transform: translateY(-14px);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  84% {
    transform: translateY(0);
  }
  92% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes hero-scroll-hop {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  15% {
    transform: translateX(-50%) translateY(-20px) scale(1.04);
    animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
  }
  30% {
    transform: translateX(-50%) translateY(0) scale(0.98);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  45% {
    transform: translateX(-50%) translateY(-10px) scale(1.02);
    animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
  }
  60% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  75% {
    transform: translateX(-50%) translateY(-4px);
  }
  85% {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes hero-prompt-glow {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(221, 174, 59, 0.35), 0 0 0 0 rgba(221, 174, 59, 0.4);
    border-color: rgba(221, 174, 59, 0.65);
  }
  50% {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.85), 0 0 26px rgba(221, 174, 59, 0.65), 0 0 0 12px rgba(221, 174, 59, 0);
    border-color: rgba(247, 229, 169, 0.9);
  }
}

@keyframes arrow-hop-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(9px);
  }
  60% {
    transform: translateY(4px);
  }
}

@keyframes pulse-gold-subtle {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(221, 174, 59, 0.3);
    border-color: rgba(221, 174, 59, 0.5);
  }
  50% {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7), 0 0 24px rgba(221, 174, 59, 0.7);
    border-color: rgba(247, 229, 169, 0.85);
  }
}

/* ==========================================================================
   GOLDEN PULSE & GLOW
   ========================================================================== */
@keyframes pulse-gold {
  0%, 100% {
    text-shadow: 0 0 10px rgba(221, 174, 59, 0.4), 0 0 20px rgba(221, 174, 59, 0.2);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(221, 174, 59, 0.8), 0 0 35px rgba(247, 229, 169, 0.6);
    transform: scale(1.04);
  }
}

@keyframes gold-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.text-gold-gradient {
  background: linear-gradient(120deg, var(--color-gold-deep) 0%, var(--color-gold-light) 50%, var(--color-gold-deep) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.gold-glow-border {
  animation: glow-pulse 3s infinite alternate ease-in-out;
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 15px rgba(201, 154, 44, 0.2), inset 0 0 10px rgba(201, 154, 44, 0.1);
  }
  to {
    box-shadow: 0 0 30px rgba(221, 174, 59, 0.5), inset 0 0 20px rgba(247, 229, 169, 0.3);
  }
}

/* ==========================================================================
   HEARTBEAT & LOVE PULSE
   ========================================================================== */
@keyframes heart-beat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  70% {
    transform: scale(1);
  }
}

.heart-beat-icon {
  display: inline-block;
  color: #D92534;
  animation: heart-beat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(217, 37, 52, 0.4));
}

/* ==========================================================================
   ISLAMIC LANTERN (FANOUS) ANIMATION
   ========================================================================== */
@keyframes lantern-swing {
  0% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(-3deg);
  }
}

@keyframes lantern-flame {
  0%, 100% {
    opacity: 0.75;
    transform: scale(0.95);
    filter: drop-shadow(0 0 8px rgba(255, 200, 55, 0.7));
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(255, 220, 80, 0.95));
  }
}

.lantern-container {
  transform-origin: top center;
  animation: lantern-swing 6s ease-in-out infinite;
}

.lantern-flame-glow {
  animation: lantern-flame 2.5s ease-in-out infinite alternate;
}

/* ==========================================================================
   FLOATING & DRIFTING ACCENTS
   ========================================================================== */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

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

/* Shimmer Seal Button Ripple */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(221, 174, 59, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(221, 174, 59, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(221, 174, 59, 0);
  }
}

.pulse-ring-btn {
  animation: pulse-ring 2.4s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Confetti Burst Keyframes */
@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ==========================================================================
   INITIAL LOADING SCREEN KEYFRAMES
   ========================================================================== */
@keyframes loader-dot-pulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes loader-card-float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

