/* ==========================================================================
   ANIMATIONS & DYNAMIC VISUAL EFFECTS
   Portfolio: Mahdi Nosrati Sahlan (mahdins.dev)
   ========================================================================== */

/* Glowing Gradient Orbs */
@keyframes floatOrb1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(120px, -80px) scale(1.15);
  }
  66% {
    transform: translate(-90px, 60px) scale(0.9);
  }
}

@keyframes floatOrb2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-100px, 90px) scale(1.1);
  }
  66% {
    transform: translate(80px, -70px) scale(0.95);
  }
}

@keyframes floatOrb3 {
  0%, 100% {
    transform: translate(0, 0) scale(1.05);
  }
  50% {
    transform: translate(-60px, -100px) scale(0.85);
  }
}

/* Pulse & Glow */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), 0 0 50px rgba(138, 43, 226, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.7), 0 0 70px rgba(138, 43, 226, 0.4);
  }
}

@keyframes liveStatusPing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
  }
}

/* Laser Timeline Scanner */
@keyframes laserSweep {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Gradient Text Shimmer */
@keyframes textShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle Floating Hover */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Rotating Hologram Ring */
@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scanline Overlay Effect */
@keyframes scanline {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

/* Blink Caret */
@keyframes blinkCaret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-cyan); }
}

/* Fade in up reveal */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Reduced motion preference */
@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-init {
    opacity: 1 !important;
    transform: none !important;
  }
}
