/* ==========================================================================
   CSS KEYFRAMES
   ========================================================================== */

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

/* Availability Pulse Dot */
@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Page Entry Fade In */
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   HELPER CLASSES FOR ANIMATIONS
   ========================================================================== */

/* Optimization for Smooth GSAP Animations */
.gsap-reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

/* For elements that reveal with zero slide (just fade) */
.gsap-fade {
  opacity: 0;
  will-change: opacity;
}

/* Page load entrance utility */
.page-loaded {
  animation: page-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger headlining splits */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-word span {
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

/* Hover glow lines */
.hover-underline-animate {
  position: relative;
}

.hover-underline-animate::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-underline-animate:hover::after {
  width: 100%;
}
