/* -------------------------------------------------------------
   ZUBAIR IJAZ — KEYFRAME ANIMATIONS & DYNAMIC MICRO-INTERACTIONS
   ------------------------------------------------------------- */

/* Reveal on Scroll Transitions */
.reveal-on-scroll {
  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-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Pulse Green Status Indicator */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(0.95);
  }
}

/* General Pulse Dot */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Floating Slow Animation */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* Marquee Infinite Scroll */
@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Shimmer Loading / Highlight Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, #f8fafc 0%, #f5b754 50%, #f8fafc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Rotating Ambient Gradient Ring */
@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ambient-rotating-border {
  position: relative;
}

.ambient-rotating-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(from 0deg, #f5b754, #ff8a00, #00f0ff, #9d4edd, #f5b754);
  border-radius: inherit;
  z-index: -1;
  animation: rotate-glow 6s linear infinite;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.ambient-rotating-border:hover::before {
  opacity: 0.8;
}

/* Number Counter Animation Highlight */
.counter-counting {
  transition: color 0.3s ease;
  color: var(--accent-gold);
}

/* Button Ripple & Hover micro-animations */
.btn-magnetic {
  position: relative;
  overflow: hidden;
}

.btn-magnetic span {
  position: relative;
  z-index: 2;
}

.btn-magnetic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease-out, height 0.5s ease-out;
  z-index: 1;
}

.btn-magnetic:hover::after {
  width: 300px;
  height: 300px;
}
