/* ===== Power System Animations ===== */

/* Custom keyframe animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Orb drift keyframes */
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 40px) scale(1.05); }
  50% { transform: translate(-60px, 20px) scale(0.95); }
  75% { transform: translate(-20px, -30px) scale(1.02); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -20px) scale(1.08); }
  50% { transform: translate(20px, -50px) scale(0.92); }
  75% { transform: translate(50px, -10px) scale(1.04); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 30px) scale(1.06); }
  66% { transform: translate(-20px, 50px) scale(0.94); }
}

@keyframes mesh-shift {
  0%, 100% {
    opacity: 1;
    background-position: 0% 0%, 100% 0%, 50% 100%;
  }
  50% {
    opacity: 0.8;
    background-position: 30% 20%, 70% 40%, 40% 60%;
  }
}

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(46, 74, 158, 0.2); }
  50% { box-shadow: 0 0 40px rgba(46, 74, 158, 0.4); }
}

/* Floating orbs */
.hero-orb {
  opacity: 0.8;
  will-change: transform;
}

.hero-orb-1 {
  width: 30vw;
  height: 30vw;
  max-width: 450px;
  max-height: 450px;
  top: -5%;
  right: 5%;
  background: radial-gradient(circle, rgba(15,23,90,0.4) 0%, rgba(30,58,138,0.1) 40%, transparent 65%);
  animation: orb-drift-1 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 28vw;
  height: 28vw;
  max-width: 400px;
  max-height: 400px;
  bottom: 5%;
  left: -3%;
  background: radial-gradient(circle, rgba(30,58,138,0.35) 0%, rgba(15,23,90,0.08) 40%, transparent 65%);
  animation: orb-drift-2 25s ease-in-out infinite;
}

.hero-orb-3 {
  width: 22vw;
  height: 22vw;
  max-width: 320px;
  max-height: 320px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(30,58,138,0.3) 0%, rgba(46,74,158,0.06) 40%, transparent 65%);
  animation: orb-drift-3 18s ease-in-out infinite;
}

/* Mesh gradient overlay */
.hero-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(15,23,90,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 20%, rgba(30,58,138,0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(15,23,90,0.08) 0%, transparent 45%);
  animation: mesh-shift 30s ease-in-out infinite;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Hover animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(15, 23, 90, 0.15);
}

/* Scale on hover */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Animated gradient text */
.animate-gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Ping animation for dots */
.animate-ping-slow {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Pulse animation */
.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
