/* ==========================================================================
   KSV DIGITAL WEDDING INVITATION - ANIMATIONS & TRANSITIONS
   Slow, graceful, cinematic & royal movements
   ========================================================================== */

/* Fade In Up Cinematic */
@keyframes fadeInUpCinematic {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Subtle Gentle Zoom for Hero Artwork */
@keyframes gentleZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

/* Gold Shimmer Sweep across Ornaments */
@keyframes goldShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Diya Lamp Flame Flicker */
@keyframes diyaFlicker {
  0%, 100% {
    opacity: 0.95;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 6px rgba(230, 150, 30, 0.7));
  }
  25% {
    opacity: 0.8;
    transform: scale(0.96) translateY(1px);
    filter: drop-shadow(0 0 4px rgba(210, 130, 20, 0.6));
  }
  50% {
    opacity: 1;
    transform: scale(1.04) translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(250, 180, 40, 0.85));
  }
  75% {
    opacity: 0.88;
    transform: scale(0.98) translateY(0.5px);
    filter: drop-shadow(0 0 7px rgba(220, 140, 25, 0.65));
  }
}

/* Subtle Pulse Glow for Buttons */
@keyframes pulseGoldGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(197, 152, 56, 0.35), 0 0 0 0 rgba(197, 152, 56, 0.4);
  }
  50% {
    box-shadow: 0 6px 24px rgba(197, 152, 56, 0.55), 0 0 0 8px rgba(197, 152, 56, 0);
  }
}

/* Floating Petal Sway */
@keyframes petalSway {
  0% {
    transform: translate(0, -10px) rotate(0deg);
  }
  33% {
    transform: translate(15px, 30vh) rotate(90deg);
  }
  66% {
    transform: translate(-15px, 60vh) rotate(180deg);
  }
  100% {
    transform: translate(10px, 105vh) rotate(360deg);
  }
}

/* Gentle Heartbeat */
@keyframes gentleHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.15);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
}

/* Slow Rotation for Kolam / Sacred Chakras */
@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Reveal Classes controlled by IntersectionObserver */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Golden Shimmer Utility */
.gold-shimmer-effect {
  background: linear-gradient(90deg, #A87720 0%, #F5DE88 25%, #C29334 50%, #FAF0A8 75%, #A87720 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 7s linear infinite;
}

/* Reduced Motion Mode */
@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;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
