/* ==========================================================================
   NOVA — Animation Styles & Keyframes
   GSAP Motion Accommodations & Prefers-Reduced-Motion Rules
   ========================================================================== */

@keyframes slowOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes slowOrbitRev {
  0% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

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

/* CSS fallback animation classes when JS / GSAP is not running */
.floating-element {
  animation: subtleFloat 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Continuous Marquee Fallback */
.marquee-track.css-animate {
  animation: marqueeGlide 25s linear infinite;
}

/* Staggered Entrance Utility Classes */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page Transition Overlay */
.page-transition-veil {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-transition-veil.is-transitioning {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   Crucial accessibility guarantee: Disables parallax transforms, infinite rotations,
   and simplifies all transitions to immediate zero-latency feedback.
   ========================================================================== */
@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;
  }

  .floating-ring,
  .floating-element,
  .hero-product-img {
    animation: none !important;
    transform: none !important;
  }

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

  .reveal-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}
