﻿/* ==========================================================================
   Prabhu Vandan - Devotional & Interactive Animations
   Bell swing, Diya flicker, Flower shower particle physics, Mandala rotation
   ========================================================================== */

/* Bell Swing Animation */
@keyframes bellSwing {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(18deg); }
  40% { transform: rotate(-14deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

.bell-ringing {
  animation: bellSwing 1.2s ease-in-out forwards;
  transform-origin: top center;
}

/* Diya Flame Glow & Flicker */
@keyframes diyaFlicker {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
    filter: drop-shadow(0 0 10px #FF9800);
  }
  25% {
    transform: scale(1.08) skewX(2deg);
    opacity: 1;
    filter: drop-shadow(0 0 18px #FFD700);
  }
  50% {
    transform: scale(0.96) skewX(-2deg);
    opacity: 0.9;
    filter: drop-shadow(0 0 12px #FF5722);
  }
  75% {
    transform: scale(1.05) skewX(1deg);
    opacity: 1;
    filter: drop-shadow(0 0 16px #FFC107);
  }
}

.flame-lit {
  animation: diyaFlicker 1.8s infinite ease-in-out;
}

/* Halo / Divine Aura Pulse */
@keyframes divineAura {
  0%, 100% {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 106, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.75), inset 0 0 25px rgba(255, 106, 0, 0.6);
  }
}

.divine-aura {
  animation: divineAura 3s infinite ease-in-out;
}

/* Floating Flower Petals (Pushpa Vrishti) */
.flower-petal {
  position: fixed;
  top: -30px;
  pointer-events: none;
  z-index: 3000;
  user-select: none;
  animation: flowerFall linear forwards;
}

@keyframes flowerFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(30px) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(-20px) scale(0.6);
    opacity: 0;
  }
}

/* Incense Smoke Wave */
@keyframes smokeWave {
  0% { transform: translateY(0) scaleX(1); opacity: 0.6; }
  50% { transform: translateY(-30px) scaleX(1.4) skewX(5deg); opacity: 0.3; }
  100% { transform: translateY(-70px) scaleX(1.8) skewX(-5deg); opacity: 0; }
}

.smoke-particle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
  animation: smokeWave 2.5s infinite linear;
}

/* Rotating Mandala background */
@keyframes slowRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mandala-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  opacity: 0.04;
  pointer-events: none;
  animation: slowRotate 60s infinite linear;
}
