/* ==========================================================================
   NEXA — Animations & Smooth Micro-interactions
   ========================================================================== */

@keyframes auraPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

@keyframes fadeOutHero {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.96) translateY(-20px);
  }
}

@keyframes slideUpChat {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes laserScanLight {
  0% { top: 0%; }
  50% { top: 95%; }
  100% { top: 0%; }
}

@keyframes typingBounce {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

.animate-fade-out-hero {
  animation: fadeOutHero 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUpChat 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typing Indicator Dots */
.typing-dots-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.6rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-purple);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Scanning Beam Light */
.scanning-box-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.scanning-box-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-cyan), var(--primary-purple), transparent);
  box-shadow: 0 0 15px var(--secondary-cyan);
  animation: laserScanLight 2s ease-in-out infinite;
}
