/**
 * ╔══════════════════════════════════════════════════════════════════════════════╗
 * ║               Uchenna × Eniola Wedding Site                                  ║
 * ║                    Animations & Effects                                      ║
 * ╚══════════════════════════════════════════════════════════════════════════════╝
 * 
 * Cinematic animations, scroll reveals, and micro-interactions
 * for a truly WOW wedding website experience.
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   Elements animate in as they enter the viewport
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Base state - hidden */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Revealed state */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: 
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: 
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: 
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }
.stagger > *:nth-child(8) { transition-delay: 0.7s; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS
   Cinematic reveal for the hero section on page load
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nameReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.6);
  }
}

/* Hero elements with entrance animations */
.hero-entrance .kicker {
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-entrance .hero-title {
  animation: nameReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-entrance .hero-subtitle {
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.hero-entrance .hero-tags {
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.hero-entrance .hero-cta {
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

.hero-entrance .hero-card {
  animation: heroScaleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEXT SHIMMER EFFECT
   Beautiful gold shimmer on important text
   ═══════════════════════════════════════════════════════════════════════════════ */

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-gold-dark) 0%,
    var(--color-gold-light) 25%,
    var(--color-gold) 50%,
    var(--color-gold-light) 75%,
    var(--color-gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HOVER EFFECTS
   Smooth, elegant micro-interactions
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Card lift effect */
.card-hover {
  transition: 
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(201, 162, 39, 0.2);
}

/* Image zoom on hover */
.img-hover {
  overflow: hidden;
}

.img-hover img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-hover:hover img {
  transform: scale(1.08);
}

/* Button magnetic effect */
.btn-magnetic {
  transition: 
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.btn-magnetic:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-magnetic:active {
  transform: translateY(-1px) scale(0.98);
}

/* Link underline animation */
.link-animated {
  position: relative;
  display: inline-block;
}

.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-animated:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FLOATING ELEMENTS
   Subtle floating animation for decorative elements
   ═══════════════════════════════════════════════════════════════════════════════ */

.floating {
  animation: float 4s ease-in-out infinite;
}

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

.floating-delayed {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PARALLAX LAYERS
   Depth effect on scroll
   ═══════════════════════════════════════════════════════════════════════════════ */

.parallax-container {
  perspective: 1px;
  overflow-x: hidden;
  overflow-y: auto;
}

.parallax-slow {
  transform: translateZ(-1px) scale(2);
}

.parallax-fast {
  transform: translateZ(0);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DECORATIVE PARTICLES
   Floating gold particles/petals
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) rotate(720deg);
    opacity: 0;
  }
}

.particle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.particle-gold {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: particle-float 15s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CURSOR EFFECTS
   Custom cursor for interactive elements
   ═══════════════════════════════════════════════════════════════════════════════ */

.cursor-pointer {
  cursor: pointer;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grab:active {
  cursor: grabbing;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOADING STATES
   Beautiful loading animations
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gold-light);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes skeleton-pulse {
  0%, 100% {
    background-color: rgba(201, 162, 39, 0.1);
  }
  50% {
    background-color: rgba(201, 162, 39, 0.2);
  }
}

.skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   Smooth transitions between pages
   ═══════════════════════════════════════════════════════════════════════════════ */

.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: 
    opacity 0.4s ease,
    transform 0.4s ease;
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COUNTDOWN TIMER ANIMATIONS
   Dramatic countdown styling
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes countdown-tick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.countdown-number {
  animation: countdown-tick 1s ease-in-out;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEART BEAT ANIMATION
   For love-themed elements
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1);
  }
}

.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

.heartbeat-hover:hover {
  animation: heartbeat 0.8s ease-in-out;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GOLD GLOW EFFECTS
   Elegant glow for important elements
   ═══════════════════════════════════════════════════════════════════════════════ */

.glow-gold {
  box-shadow: 
    0 0 20px rgba(201, 162, 39, 0.3),
    0 0 40px rgba(201, 162, 39, 0.2),
    0 0 60px rgba(201, 162, 39, 0.1);
}

.glow-gold-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE MOTION
   Reduce motion for accessibility
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

