/* ========================================
   ANIMATIONS
   ======================================== */

/* ===== GRADIENT BLOBS ===== */

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(99, 102, 241, 0.05) 50%,
    transparent 70%
  );
  filter: blur(60px);
  animation: float 20s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  right: -15%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ===== FADE-IN ANIMATION ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== PULSE ANIMATION (for CTAs) ===== */

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 20px 60px -10px rgba(99, 102, 241, 0.4);
  }
}

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

/* ===== SLIDE IN ANIMATIONS ===== */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* ===== SCALE ANIMATION ===== */

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-up {
  animation: scaleUp 0.5s ease-out;
}

/* ===== SHIMMER EFFECT ===== */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gradient-blob {
    animation: none;
  }
}

/* ===== RESPONSIVE ANIMATIONS ===== */

@media (max-width: 768px) {
  .gradient-blob {
    opacity: 0.5;
  }

  .blob-1 {
    width: 300px;
    height: 300px;
  }

  .blob-2 {
    width: 400px;
    height: 400px;
  }
}
