/* ===== FIXES FOR ANIMATION ISSUES ===== */

/* Gradient text animation fix */
.gradient-text-fix {
  background: linear-gradient(-45deg, #744BFF, #B1FD07, #3503FC, #9D7BFF);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .gradient-text-fix {
    background: none;
    color: #744BFF;
    animation: colorCycle 4s ease infinite;
  }
}

@keyframes colorCycle {
  0% { color: #744BFF; }
  25% { color: #B1FD07; }
  50% { color: #3503FC; }
  75% { color: #9D7BFF; }
  100% { color: #744BFF; }
}

/* Neon glow fix */
.neon-text-fix {
  color: #744BFF;
  font-weight: bold;
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor;
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from {
    text-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor,
      0 0 15px currentColor;
  }
  to {
    text-shadow: 
      0 0 10px currentColor,
      0 0 20px currentColor,
      0 0 30px currentColor,
      0 0 40px currentColor;
  }
}

/* Enhanced button ripple effect */
.btn-ripple-fix {
  position: relative;
  overflow: hidden;
}

.btn-ripple-fix::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple-fix:active::before {
  width: 300px;
  height: 300px;
}

/* Improved floating animation */
.float-fix {
  animation: floatSmooth 4s ease-in-out infinite;
}

@keyframes floatSmooth {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-15px);
  }
}

/* Wiggle animation fix */
.wiggle-fix {
  animation: wiggleSmooth 3s ease-in-out infinite;
}

@keyframes wiggleSmooth {
  0%, 100% { 
    transform: rotate(0deg);
  }
  25% { 
    transform: rotate(-3deg);
  }
  75% { 
    transform: rotate(3deg);
  }
}

/* Pulse animation fix */
.pulse-fix {
  animation: pulseSmooth 2s ease-in-out infinite;
}

@keyframes pulseSmooth {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.05);
  }
}

/* Background particles fix */
.bg-particles-fix {
  position: relative;
}

.bg-particles-fix::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(116, 75, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(177, 253, 7, 0.1) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  animation: particleMove 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particleMove {
  0% { 
    background-position: 0 0, 0 0;
  }
  100% { 
    background-position: 60px 60px, 40px 40px;
  }
}

/* Ensure content stays above particles */
.hero-content-fix {
  position: relative;
  z-index: 10;
}

.hero-image-fix {
  position: relative;
  z-index: 10;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .gradient-text-fix {
    animation-duration: 3s;
  }
  
  .neon-text-fix {
    animation-duration: 1.5s;
  }
  
  .float-fix {
    animation-duration: 3s;
  }
  
  .wiggle-fix {
    animation-duration: 2s;
  }
  
  .pulse-fix {
    animation-duration: 1.5s;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .gradient-text-fix,
  .neon-text-fix,
  .float-fix,
  .wiggle-fix,
  .pulse-fix,
  .bg-particles-fix::before {
    animation: none;
  }
  
  .gradient-text-fix {
    background: none;
    color: #744BFF;
  }
  
  .neon-text-fix {
    text-shadow: none;
  }
} 