/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

/* ========== AOS OVERRIDES ========== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ========== COUNTER ANIMATION ========== */
.counter {
  display: inline-block;
  transition: all 0.3s ease;
}

/* ========== PULSE EFFECT ========== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== GLOW EFFECT ========== */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 118, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 118, 0, 0.6), 0 0 40px rgba(255, 118, 0, 0.2);
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* ========== SHAKE EFFECT ========== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake:hover {
  animation: shake 0.5s ease-in-out;
}

/* ========== FLOAT EFFECT ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ========== ROTATE EFFECT ========== */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate {
  animation: rotate 10s linear infinite;
}

/* ========== SCALE IN ========== */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* ========== SLIDE IN LEFT ========== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* ========== SLIDE IN RIGHT ========== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* ========== SLIDE IN UP ========== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out forwards;
}

/* ========== FADE IN ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* ========== TENNIS BALL TRAIL ========== */
.ball-trail {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.6;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 118, 0, 0.4);
}

/* ========== RIPPLE EFFECT ========== */
.ripple {
  position: relative;
  overflow: hidden;
  padding: 15px 23px;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== TEXT GRADIENT ANIMATION ========== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient-animated {
  background: linear-gradient(270deg, #ff7600, #ff9a44, #ff7600);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* ========== BOUNCE IN ========== */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounceIn 0.8s ease-out forwards;
}

/* ========== ZOOM IN ========== */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 0.5s ease-out forwards;
}

/* ========== PARALLAX BALL (BANNER) ========== */
.ball-parallax {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  will-change: transform;
}

/* ========== STAGGER CHILDREN ========== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.stagger-children.animate > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.animate > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.animate > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.animate > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.animate > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.animate > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.animate > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HOVER LIFT ========== */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ========== GLOW BORDER ========== */
@keyframes glowBorder {
  0%, 100% {
    border-color: rgba(255, 118, 0, 0.3);
    box-shadow: 0 0 5px rgba(255, 118, 0, 0.1);
  }
  50% {
    border-color: rgba(255, 118, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 118, 0, 0.2);
  }
}

.glow-border {
  border: 2px solid rgba(255, 118, 0, 0.3);
  animation: glowBorder 2s ease-in-out infinite;
}

/* Отключение AOS на мобильных */
@media (max-width: 768px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
  
  [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}