/* ==========================================================================
   KISHAN KUMAR SHARMA — ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Reveal on Scroll Transitions */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

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

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 3D Card Hover Glare Sheen */
.card-glare-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.project-card:hover .card-glare-effect,
.bento-card:hover .card-glare-effect {
  opacity: 1;
}

/* Ambient Blue Core Pulsing */
@keyframes ambientPulse {
  0%, 100% {
    transform: scale(1) translate(-50%, -50%);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.12) translate(-50%, -50%);
    opacity: 0.9;
  }
}

.ambient-pulse-active {
  animation: ambientPulse 8s ease-in-out infinite;
}

/* Shimmer Highlight on Buttons */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.75s ease-in-out;
}

.btn-shimmer:hover::after {
  transform: translateX(100%);
}

/* Floating Vertical Indicator */
@keyframes scrollPrompt {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-indicator-pulse {
  animation: scrollPrompt 2s ease-in-out infinite;
}
