/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* GPU Optimization Utility */
.gpu-accelerated {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Continuous Slow Rotation (GPU-friendly) */
.animate-slow-rotate {
  animation: slowRotate 50s linear infinite;
  will-change: transform;
}

@keyframes slowRotate {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

/* Scroll Fade In */
.fade-in-up {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Animation Delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* Subtle pulse for glowing indicators */
.animate-pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--color-primary);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.25);
    box-shadow: 0 0 16px var(--color-accent-purple);
    opacity: 1;
  }
}