/* ==========================================================================
   Smooth Micro-Animations & Festive Visual Effects
   ========================================================================== */

/* Keyframe Animations */
@keyframes envelopeFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}

@keyframes diyaFlicker {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.8));
  }
  50% {
    opacity: 1;
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 18px rgba(230, 126, 34, 1));
  }
}

@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer Text Effect */
.gold-shimmer-text {
  background: linear-gradient(
    90deg,
    #996515 0%,
    #d4af37 25%,
    #fff2b2 50%,
    #d4af37 75%,
    #996515 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 5s linear infinite;
}

/* Diya Flame */
.diya-flame {
  display: inline-block;
  animation: diyaFlicker 1.8s ease-in-out infinite alternate;
}

/* Scroll Reveal States */
.reveal-on-scroll {
  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);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Audio Wave Animation */
.audio-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.audio-bar {
  width: 3px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  animation: soundBar 1.2s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; height: 85%; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.audio-bar:nth-child(4) { animation-delay: 0.4s; height: 100%; }

.audio-muted .audio-bar {
  animation: none;
  height: 20% !important;
  opacity: 0.4;
}

@keyframes soundBar {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* Confetti Burst Container */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100000;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  pointer-events: none;
  animation: confettiFall 2.5s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(600px) scale(0.6) rotate(720deg);
  }
}
