/* assets/css/animations.css */

/**
 * Анимации и переходы
 * Содержит: keyframes, fade-in эффекты, hover анимации
 */

/* ============================================
   БАЗОВЫЕ АНИМАЦИИ
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.15;
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
    opacity: 0.25;
  }
}

@keyframes connect {
  0%, 100% {
    opacity: 0.1;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 0.4;
    transform: scaleX(1);
  }
}

@keyframes attentionPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  }
  25% {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 36px rgba(102, 126, 234, 0.4);
  }
  75% {
    transform: scale(1.12);
    box-shadow: 0 14px 44px rgba(102, 126, 234, 0.6);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================
   FADE-IN ЭФФЕКТЫ
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   АНИМАЦИИ ДЛЯ КАРТОЧЕК
   ============================================ */
.service-card,
.client-card,
.case-card,
.review-card {
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   ПЛАВНЫЕ ПЕРЕХОДЫ
   ============================================ */
* {
  transition-property: transform, opacity, background-color, border-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Отключаем переходы для анимаций */
@keyframes * {
  transition: none;
}

