/**
 * Ayodhya DMC - Animation & Micro-Interactions System
 * Elegant, subtle, spiritually resonant, performance-optimized
 */

@keyframes rotateMandala {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25), 0 0 30px rgba(230, 81, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45), 0 0 45px rgba(230, 81, 0, 0.3);
  }
}

@keyframes waveLine {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reusable animation utility classes */
.anim-mandala {
  animation: rotateMandala 120s linear infinite;
  transform-origin: center center;
  pointer-events: none;
}

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

.anim-glow {
  animation: pulseGlow 3.5s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(90deg, #D4AF37 0%, #FFF4D0 50%, #D4AF37 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 6s linear infinite;
}

/* Hover micro-interactions */
.card-hover-elevate {
  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;
}

.card-hover-elevate:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(44, 24, 16, 0.12);
  border-color: var(--gold-border, #D4AF37);
}

.img-zoom-container {
  overflow: hidden;
}

.img-zoom-target {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-zoom-container:hover .img-zoom-target {
  transform: scale(1.06);
}

/* Respect user accessibility preferences */
@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;
  }
}
