/* ===================================================
   SRI SIVAYOGINI MATAJI — ANIMATIONS
   animations.css — All animation keyframes & utilities
   =================================================== */

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== FADE IN VARIANTS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-fade-down {
  animation: fadeInDown 0.8s ease forwards;
}

.anim-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.anim-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* ===== GOLD SHIMMER (Buttons) ===== */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background-size: 200% auto;
  background-image: linear-gradient(
    90deg,
    var(--gold-primary) 0%,
    var(--gold-light) 25%,
    var(--gold-primary) 50%,
    var(--gold-light) 75%,
    var(--gold-primary) 100%
  );
  animation: goldShimmer 4s linear infinite;
}

/* ===== WHATSAPP PULSE RING ===== */
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-float-slow {
  animation: float 8s ease-in-out infinite;
}

.anim-float-reverse {
  animation: float 7s ease-in-out infinite reverse;
}

/* ===== GRADIENT SHIFT ===== */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.anim-gradient {
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

/* ===== TEXT GLOW ===== */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
  }
  50% {
    text-shadow: 0 0 25px rgba(212, 160, 23, 0.6);
  }
}

.anim-glow {
  animation: textGlow 3s ease-in-out infinite;
}

/* ===== PULSE GLOW (Cards/Icons) ===== */
@keyframes pulseGlowGold {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.6));
  }
}

.anim-pulse-glow {
  animation: pulseGlowGold 3s ease-in-out infinite;
}

/* ===== IMAGE PAN ===== */
@keyframes imagePan {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.12) translate(-2%, 2%);
  }
}

.anim-image-pan {
  animation: imagePan 20s linear infinite alternate;
}

/* ===== BOUNCE ===== */
@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-10px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.anim-bounce {
  animation: bounceSlow 2s infinite;
}

/* ===== SPIN SLOW ===== */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-spin-slow {
  animation: spinSlow 30s linear infinite;
}

/* ===== SACRED PARTICLES ===== */
@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.5);
  }
}

/* ===== PING (For notification dots) ===== */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.anim-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===== ACCORDION SMOOTH ===== */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body.open {
  max-height: 500px;
}

/* ===== COUNTER / NUMBER SCROLL ===== */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HOVER LIFT ===== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ===== STAGGERED ANIMATION DELAYS FOR GROUPS ===== */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }
.stagger > *:nth-child(11) { animation-delay: 0.55s; }
.stagger > *:nth-child(12) { animation-delay: 0.6s; }

/* ===== REDUCE MOTION (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
