/* ==========================================================================
   Animations - Keyframes & Animation Classes
   Monotics WordPress Theme
   ========================================================================== */

/* --- Fade Up (Scroll Reveal) --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-up-delay-1 {
  transition-delay: 0.1s;
}

.fade-up-delay-2 {
  transition-delay: 0.2s;
}

.fade-up-delay-3 {
  transition-delay: 0.3s;
}

/* --- Hero Fade In --- */
@keyframes hero-fadein {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Sweep Move (cleaning beam) --- */
@keyframes sweep-move {
  0% {
    left: -160px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 160px);
    opacity: 0;
  }
}

/* --- Dust Sweep (particles) --- */
@keyframes dust-sweep {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    transform: translate(80px, -40px) scale(0);
    opacity: 0;
  }
}

/* --- Clean Zone Expand --- */
@keyframes clean-zone-expand {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  5% {
    clip-path: inset(0 100% 0 0);
  }
  95% {
    clip-path: inset(0 0% 0 0);
  }
  100% {
    clip-path: inset(0 0% 0 0);
  }
}

/* --- Nano Pulse (dot grid) --- */
@keyframes nano-pulse {
  from {
    opacity: 0.4;
    background-size: 40px 40px;
  }
  to {
    opacity: 0.7;
    background-size: 42px 42px;
  }
}

/* --- Orb Drift (glow orbs) --- */
@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 20px) scale(1.1);
  }
}

/* --- Spin Slow (hero rings) --- */
@keyframes spin-slow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --- Card Pulse --- */
@keyframes card-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

/* --- Bounce (scroll indicator) --- */
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

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

/* --- 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;
  }

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