/* AOS overrides */
[data-aos] { pointer-events: auto; }

/* Parallax layers */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(124,58,237,0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #0a1628, #1e3a5f, #312e81, #0e7490, #2563eb);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }
}

.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

/* Reveal on scroll (fallback) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Particle canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Workflow animation */
.workflow-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Hover micro-interactions */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Icon spin on hover */
.icon-spin-hover:hover i {
  animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: staggerIn 0.5s 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: staggerIn 0.5s 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: staggerIn 0.5s 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: staggerIn 0.5s 0.4s forwards; }
.stagger-children.visible > *:nth-child(5) { animation: staggerIn 0.5s 0.5s forwards; }
.stagger-children.visible > *:nth-child(6) { animation: staggerIn 0.5s 0.6s forwards; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
