/* ==========================================================================
   PLANETARYMARKETING.IN — ANIMATION SYSTEM
   Guidelines: Subtle, Understated, Technical, Performance-First (<300ms UI)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. SCROLL TRIGGERED REVEALS (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
.delay-6 { transition-delay: 480ms; }

/* --------------------------------------------------------------------------
   02. SUBTLE ORBITAL & TECHNICAL PULSES
   -------------------------------------------------------------------------- */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.04);
  }
}

.pulse-glow {
  animation: subtlePulse 4s ease-in-out infinite;
}

/* Data Stream Flow Animation for Schematics */
@keyframes dataStream {
  0% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.data-flow-line {
  stroke-dasharray: 8 12;
  animation: dataStream 12s linear infinite;
}

/* --------------------------------------------------------------------------
   03. BUTTON & INTERACTION HOVERS
   -------------------------------------------------------------------------- */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-2px);
}

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

  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }

  .data-flow-line {
    animation: none !important;
  }

  .arch-packet {
    display: none !important;
  }
}
