/* СтальПром - Кастомные анимации и эффекты */

/* ===== SHINE ЭФФЕКТ (Кнопка Hero) ===== */
@keyframes shine {
  0% { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(100%) skewX(-20deg); }
}
.animate-shine {
  animation: shine 3.5s ease-in-out infinite;
}

/* ===== ELECTRIC AURA (Кнопка Hero) ===== */
@keyframes electric {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.animate-electric {
  animation: electric 2s ease-in-out infinite;
}

/* ===== OUTLINE PULSE (Кнопка Hero) ===== */
@keyframes outline-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,106,106,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,106,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,106,0); }
}
.animate-outline-pulse {
  animation: outline-pulse 2.8s cubic-bezier(0.66, 0, 0, 1) infinite;
}

/* ===== GRADIENT PULSE (Фоновые эффекты) ===== */
@keyframes gradientPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}
.animate-gradientPulse {
  animation: gradientPulse 10s ease-in-out infinite;
}

/* ===== BOUNCE SLOW (Иконки логистики) ===== */
@keyframes bounceSlow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}
.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

/* ===== ANIMATE UP (GSAP альтернатива) ===== */
.animate-up {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  animation: fadeInUp 0.8s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Задержки для последовательной анимации */
.animate-up:nth-child(1) { animation-delay: 0.1s; }
.animate-up:nth-child(2) { animation-delay: 0.2s; }
.animate-up:nth-child(3) { animation-delay: 0.3s; }
.animate-up:nth-child(4) { animation-delay: 0.4s; }

/* ===== HOVER ЭФФЕКТЫ ===== */
.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== УТИЛИТАРНЫЕ КЛАССЫ ===== */
.backdrop-blur-custom {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  background: linear-gradient(45deg, var(--color-brand), var(--color-danger));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
} 