/* Animations & Micro-interactions */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 45px rgba(0, 210, 255, 0.55);
  }
}

@keyframes floatElement {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

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

@keyframes radarWave {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.animate-float {
  animation: floatElement 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.pulsing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-brand-cyan);
  border-radius: 50%;
  position: relative;
  margin-right: 6px;
}

.pulsing-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-brand-cyan);
  animation: radarWave 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Typing dots */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background-color: var(--color-brand-cyan);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Marquee Ticker */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 24px;
  padding: 16px 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 24px;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}
