/* ==========================================================================
   Career Trek Global LLC - Animations & Micro-Interactions (Refactored)
   ========================================================================== */

/* Keyframes */
@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(21, 154, 183, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(21, 154, 183, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(21, 154, 183, 0);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(21, 154, 183, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(21, 154, 183, 0.65);
  }
}

/* Utility Animation Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-glow {
  animation: glowPulse 2.5s infinite;
}

.fade-in-element {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card hover transitions */
.path-card-image-box,
.audience-image-card,
.program-card,
.story-card,
.resource-card,
.timeline-step-card {
  will-change: transform, box-shadow;
}

/* Button ripple / hover shine */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 0;
  padding-bottom: 120%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}
