/* ==========================================================================
   AAGNI MUKHA CLASSES - Keyframe Animations & Enhanced Micro-Interactions
   Multi-Page Vedic Education Website | Acharya Bharath Aradhya N
   ========================================================================== */

/* 1. Sacred Flame Breathing / Ambient Glow */
@keyframes flameBreathe {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 15px 35px rgba(197, 146, 83, 0.22));
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 22px 45px rgba(212, 156, 86, 0.38));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 15px 35px rgba(197, 146, 83, 0.22));
  }
}

/* 2. Divine Aura Halo Glow behind Guru */
@keyframes auraGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.65;
  }
}

/* 3. Slow Sacred Ring Rotation */
@keyframes slowSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 4. Floating Portrait Gentle Levitation */
@keyframes softFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animated {
  animation: softFloat 5s ease-in-out infinite;
}

/* 5. WhatsApp Pulse Ring */
@keyframes waPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 6. Golden Shimmer on CTA Buttons */
@keyframes goldenShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-active {
  background-size: 200% 100%;
  animation: goldenShimmer 4s infinite linear;
}

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

/* 8. Scroll Animations: IntersectionObserver & Fallback */
.animate-on-scroll,
.animate-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.visible,
.animate-up.visible,
.animate-up.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* Stagger delay classes for grid items */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* 9. FAQ Interactive Accordion Styles */
.faq-entry {
  border-bottom: 1.5px solid rgba(42, 31, 20, 0.7);
  padding: 18px 0;
  transition: background-color 0.25s ease;
}

.faq-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 16px;
  padding: 6px 0;
}

.faq-entry-header:hover .faq-entry-title {
  color: #b8782f;
}

.faq-entry-title {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  transition: color 0.25s ease;
}

.faq-toggle-icon {
  font-size: 1.4rem;
  font-weight: 600;
  color: #b8782f;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(222, 180, 124, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.faq-entry.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: #b8782f;
  color: #ffffff;
}

.faq-entry-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.3s ease;
  padding-top: 0;
}

.faq-entry.open .faq-entry-body {
  max-height: 260px;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 6px;
}

.faq-entry-desc {
  font-size: 1rem;
  color: #3b3128;
  line-height: 1.65;
  margin: 0;
}

/* 10. Tactile Button Micro-Interactions */
.btn-primary:active,
.btn-outline:active,
.btn-enquiry-pill:active,
.btn-talk-team:active,
.btn-view-details:active,
.btn-ask-question:active,
.btn-callout:active,
.btn-submit-enquiry:active {
  transform: translateY(1px) scale(0.98) !important;
  transition-duration: 0.1s;
}

/* 11. Cards Elevating on Hover */
.class-card,
.review-card,
.step-card,
.approach-card,
.direct-contact-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.class-card:hover,
.review-card:hover,
.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(180, 140, 100, 0.22);
  border-color: rgba(212, 163, 110, 0.65);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-card:hover .step-accent-line {
  background: #b8782f;
  height: 3px;
  transition: all 0.3s ease;
}
