/* ==========================================================================
   AI LAB / MODERN PORTFOLIO - ANIMATION SYSTEM
   Keyframes, Transitions, Drifting Ambient Backgrounds & Motion Rules
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Drifting Ambient Gradient Blobs
   -------------------------------------------------------------------------- */
/* Removed Drifting Ambient Gradient Blobs as they are no longer used */

/* --------------------------------------------------------------------------
   2. Rotating Conic Aura for Profile & Feature Cards
   -------------------------------------------------------------------------- */
@keyframes rotateConic {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   3. Subtle Pulse for Live / Active Status Dots
   -------------------------------------------------------------------------- */
@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(54, 209, 220, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(54, 209, 220, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(54, 209, 220, 0);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   4. Text Typing / Cursor Animation
   -------------------------------------------------------------------------- */
@keyframes blinkCursor {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   5. Scroll-Triggered Reveal Classes
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   6. Modal Transitions
   -------------------------------------------------------------------------- */
@keyframes modalBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* --------------------------------------------------------------------------
   7. Reduced Motion Support (Accessibility)
   -------------------------------------------------------------------------- */
@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;
  }

  .ambient-blob,
  .profile-aura::before,
  .status-dot,
  .hero-role-cursor {
    animation: none !important;
  }

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

  .skill-ring-progress {
    transition: none !important;
  }
}
