/* ==========================================================================
   Umesh Gangwar Portfolio - Animations & Micro-Interactions
   ========================================================================== */

/* Keyframe Animations */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px var(--cyan-primary);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
    box-shadow: 0 0 4px var(--cyan-primary);
  }
}

@keyframes wave {
  0%, 100% {
    height: 3px;
  }
  50% {
    height: 10px;
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes borderGlowPulse {
  0%, 100% {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
  }
  50% {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
  }
}

/* Scroll Animation Initial States (Driven by GSAP ScrollTrigger) */
.gsap-reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.gsap-reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

.gsap-reveal-clip {
  clip-path: inset(0 100% 0 0);
}

/* Card Hover Light Reflection Effect */
.card-shine-effect {
  position: relative;
  overflow: hidden;
}

.card-shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 3;
}

.card-shine-effect:hover::before {
  left: 150%;
}

/* Magnetic Button Smooth Feel */
.magnetic-btn {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced Motion Override for 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;
  }
  .eyebrow-dot, .sound-btn.playing .sound-icon-waves span {
    animation: none !important;
  }
  #custom-cursor, #custom-cursor-follower {
    display: none !important;
  }
  .gsap-reveal, .gsap-reveal-up, .gsap-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
