/* ==========================================================================
   GENEACADEMY SOVEREIGN MOTION & INTERACTION ENGINE
   ========================================================================== */

/* 1. KEYFRAME ANIMATIONS */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

/* 2. CARD ELEVATION & MOTION CLASSES */
.pillar-card, .academic-card {
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 260ms ease;
  will-change: transform, box-shadow;
}

.pillar-card:hover, .academic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(2, 132, 199, 0.12);
  border-color: #0284C7;
}

/* 3. SUBTLE FLOATING ACCENTS */
.float-subtle {
  animation: softFloat 6s ease-in-out infinite;
}

.pulse-ambient {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* 4. CONNECTED SYSTEM FLOW ARROWS & PULSES */
.flow-connector-line {
  stroke-dasharray: 8 6;
  animation: dashAnimation 25s linear infinite;
}

@keyframes dashAnimation {
  to {
    stroke-dashoffset: -100;
  }
}

/* 5. CANVAS WRAPPERS */
.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 6. ACCESSIBILITY / PREFERS-REDUCED-MOTION FALLBACK */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
