/* ==========================================================================
   DR. ILANGOVAN VEERAPPAN | CHIEF NEPHROLOGIST
   Animations & Interactions CSS - Matching Vide Infra / Grigoriak Doctor
   ========================================================================== */

/* Fade In & Up Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* Parallax Scale Animation */
.parallax-scale {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glow Keyframe */
@keyframes softPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.04);
  }
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: softPulse 8s ease-in-out infinite;
}

/* Ambient Neon Glow Variations */
.ambient-glow--bronze {
  background: radial-gradient(circle, rgba(196, 154, 130, 0.18) 0%, transparent 70%);
}

.ambient-glow--dark {
  background: radial-gradient(circle, rgba(137, 104, 92, 0.12) 0%, transparent 70%);
}

.ambient-glow--neon-orange {
  background: radial-gradient(circle, rgba(255, 69, 0, 0.22) 0%, rgba(255, 87, 34, 0.08) 50%, transparent 75%);
  filter: blur(100px);
}

.ambient-glow--neon-coral {
  background: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, transparent 70%);
  filter: blur(80px);
}

/* Pulse Keyframes */
@keyframes heroPulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px #ff5722, 0 0 18px rgba(255, 87, 34, 0.85);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.85;
    box-shadow: 0 0 16px #ff5722, 0 0 28px rgba(255, 87, 34, 1);
  }
}

@keyframes neonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes heroMouseWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(8px);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes borderGlowPulse {
  0%, 100% {
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.1);
  }
  50% {
    border-color: rgba(255, 87, 34, 0.65);
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.3);
  }
}

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

.float-slow {
  animation: floatY 6s ease-in-out infinite;
}

/* Interactive Card Glow Effect */
.card-interactive-glow {
  position: relative;
  overflow: hidden;
}

.card-interactive-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 87, 34, 0.08), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-interactive-glow:hover::after {
  opacity: 1;
}

/* Horizontal Card Scroll Snap */
.horizontal-scroll-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  scrollbar-width: thin;
}

.horizontal-scroll-track > * {
  scroll-snap-align: start;
  flex: 0 0 calc(85% - 1rem);
}

@media (min-width: 768px) {
  .horizontal-scroll-track > * {
    flex: 0 0 calc(45% - 1rem);
  }
}

@media (min-width: 1200px) {
  .horizontal-scroll-track > * {
    flex: 0 0 calc(30% - 1rem);
  }
}

/* Page Transition Overlay */
.page-transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0b0908;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s ease;
}

.page-transition-curtain.is-transitioning {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
