/* BLITZ Мотошкола — CSS Animations */

/* Sparkle animation for particles */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Float animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Flying cone animation variant 1 */
@keyframes coneFly0 {
  0%, 100% {
    transform: rotate(-25deg) translate(0, 0);
  }
  50% {
    transform: rotate(-15deg) translate(15px, -20px);
  }
}

/* Flying cone animation variant 2 */
@keyframes coneFly1 {
  0%, 100% {
    transform: rotate(35deg) translate(0, 0);
  }
  50% {
    transform: rotate(25deg) translate(-10px, 15px);
  }
}

/* Flying cone animation variant 3 */
@keyframes coneFly2 {
  0%, 100% {
    transform: rotate(-15deg) translate(0, 0);
  }
  50% {
    transform: rotate(-30deg) translate(-15px, 15px);
  }
}

/* Flying cone animation variant 4 */
@keyframes coneFly3 {
  0%, 100% {
    transform: rotate(20deg) translate(0, 0);
  }
  50% {
    transform: rotate(10deg) translate(20px, -15px);
  }
}

/* Smoke animation for exhaust */
@keyframes smoke {
  0% {
    opacity: 0.3;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-40px, -20px) scale(2.5);
  }
}

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

/* Scroll dot animation for mouse indicator */
@keyframes scrollDot {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 24px;
    opacity: 0;
  }
}

/* Fade in up animation for scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow pulse animation for highlighted elements */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(182, 255, 62, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(182, 255, 62, 0.33);
  }
}

/* Shimmer animation for loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Rotate animation for decorative elements */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Pulse scale animation */
@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utility classes for applying animations */
.animate-sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

.animate-shimmer {
  animation: shimmer 2s linear infinite;
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

.animate-pulse {
  animation: pulseScale 2s ease-in-out infinite;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Delay utility classes for staggered animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
