/* ============================================
   NEUROMIND SOLUTIONS — Animations
   Marquee, hover lifts, pulse, stroke-text, scanlines
   ============================================ */

/* ── Seamless Marquee Scroll ── */
@keyframes marqueeScroll {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ── Stroke / Outlined Brutalist Text ── */
.stroke-text {
  -webkit-text-stroke: 1.8px var(--color-charcoal);
  color: transparent;
  transition: all var(--transition-base);
}

.stroke-text:hover {
  color: var(--color-charcoal);
}

/* ── Hover Lift (cards & buttons) ── */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-lift:active {
  transform: translateY(0);
}

/* ── Button Hover Lift (smaller) ── */
.btn-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-lift:hover {
  transform: translateY(-2px);
}

.btn-lift:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Pulse Animation (live indicators) ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Terminal Scanlines Overlay ── */
.scanlines {
  position: relative;
}

.scanlines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(
      rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%
    ),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03)
    );
  background-size: 100% 3px, 6px 100%;
  border-radius: inherit;
  z-index: 1;
}

/* ── Fade-in on scroll (progressive enhancement) ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glow effect for founder avatars ── */
.glow-amber {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.glow-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.glow-rose {
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

/* ── Color transitions for links ── */
.color-transition {
  transition: color var(--transition-base);
}

/* ── Progress bar fill animation ── */
@keyframes fillBar {
  from { width: 0%; }
  to   { width: 78%; }
}

.progress-fill {
  animation: fillBar 1.5s ease-out forwards;
}

/* ── Reviews Continuous Horizontal Scroll ── */
@keyframes reviewsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

.reviews-carousel__track {
  display: flex;
  width: max-content;
  animation: reviewsScroll 36s linear infinite;
  will-change: transform;
}

.reviews-carousel__track:hover,
.reviews-carousel__track.is-paused {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-carousel__track {
    animation: none;
    overflow-x: auto;
  }
}
