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

/* Fade in анимация */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Fade out анимация */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

/* Рост элемента */
@keyframes grow {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.grow {
  animation: grow 0.5s ease-out;
}

/* Мерцание */
@keyframes shimmer {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

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

/* Slide in слева */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Slide in справа */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Slide in снизу */
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

/* Пульсация */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Traffic flow анимация */
@keyframes trafficFlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.traffic-flow {
  animation: trafficFlow 3s linear infinite;
}

/* Urban pulse эффект */
@keyframes urbanPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 48, 135, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 48, 135, 0);
  }
}

.urban-pulse {
  animation: urbanPulse 2s ease-in-out infinite;
}

/* Metro-style transition */
@keyframes metroTransition {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.metro-transition {
  animation: metroTransition 0.4s ease-out;
}

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