/* Кастомные анимации для проекта */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes grow {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes lavaFlow {
  0% {
    transform: translateX(-10px) scaleY(1);
  }
  50% {
    transform: translateX(10px) scaleY(1.1);
  }
  100% {
    transform: translateX(-10px) scaleY(1);
  }
}

@keyframes eruption {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.8;
  }
}

@keyframes smokeRise {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  to {
    transform: translateY(-30px) scale(1.2);
    opacity: 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
  }
}

/* Утилиты для применения анимаций */
.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-fade-out {
  animation: fadeOut 0.6s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.8s ease-out;
}

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

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

.animate-lava-flow {
  animation: lavaFlow 3s ease-in-out infinite;
}

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

.animate-smoke-rise {
  animation: smokeRise 3s ease-out infinite;
}

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

/* Задержки для последовательных анимаций */
.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;
}
