/* ===================================================================
   UltraLinks GH - Dynamic Animation & Micro-interaction Engine
   =================================================================== */

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 131, 5, 0.7);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 18px rgba(239, 131, 5, 0.95);
    opacity: 0.85;
  }
}

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

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

@keyframes orbBreathe {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.18) translate(25px, -20px);
    opacity: 0.85;
  }
}

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

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

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

/* Applying Animation Classes */
.hero-glow-orb-1 {
  animation: orbBreathe 12s ease-in-out infinite alternate;
}

.hero-glow-orb-2 {
  animation: orbBreathe 10s ease-in-out infinite alternate-reverse;
}

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

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

/* Dynamic Rotating Headline Animation */
.text-rotator {
  position: relative;
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-rotator.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.text-rotator.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsing Indicator Ring */
.live-indicator-ring {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.live-indicator-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Subtle Shimmer on CTA Buttons */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.75s ease;
}

.btn-shimmer:hover::after {
  left: 100%;
  top: 100%;
}

/* Scroll Reveal States */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
