/* ==========================================================================
   ANIMATIONS & MOTION SYSTEM
   Crafted with high-performance CSS GPU-accelerated transforms
   Includes prefers-reduced-motion accessibility support
   ========================================================================== */

/* --- Keyframe Animations --- */

/* Gentle Floating Effect for Floating Badges & Cards */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

/* Pulse Glow for Status Dot */
@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(196, 123, 69, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(196, 123, 69, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(196, 123, 69, 0);
  }
}

/* Infinite Marquee Ticker */
@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Subtle Shimmer for High-Priority Buttons & Badges */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Ambient Radial Pulse */
@keyframes ambient-pulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.18;
  }
  50% {
    transform: scale(1.08) translate(20px, -15px);
    opacity: 0.26;
  }
}

.ambient-glow-1 {
  animation: ambient-pulse 14s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  animation: ambient-pulse 18s ease-in-out infinite alternate-reverse;
}

/* --- Scroll Reveal States (Used by IntersectionObserver in JS) --- */

/* Base hidden state for scroll-animated elements */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Visible active state */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional reveal modifiers */
.reveal-from-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale-up {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale-up.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger Delays --- */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* --- Hero Entrance Specifics --- */
.hero-stagger-1 {
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-stagger-2 {
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
}
.hero-stagger-3 {
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}
.hero-stagger-4 {
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  opacity: 0;
}

@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Interactive Hover Micro-motions --- */
.btn, .card, .slider-btn, .social-icon-btn {
  will-change: transform;
}

/* Magnetic transition styling */
.magnetic-target {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Accessibility: prefers-reduced-motion --- */
@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-on-scroll,
  .reveal-from-left,
  .reveal-from-right,
  .reveal-scale-up,
  .hero-stagger-1,
  .hero-stagger-2,
  .hero-stagger-3,
  .hero-stagger-4 {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

