/* XCASINOHU — animations.css (Transitions, keyframes and observer classes) */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background-color: var(--color-gold);
  margin-left: 4px;
  vertical-align: -0.05em;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  from, to { background-color: transparent }
  50% { background-color: var(--color-gold) }
}

/* Pulse on Jugar Now CTA */
.btn-pulse {
  animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Floating AI Chat typing indicator animation */
.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--color-text-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: dotFloat 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 dotFloat {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1.0);
  }
}

/* Form submitting spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Progress prediction bar grows */
.progress-bar-fill {
  width: 0%;
  height: 100%;
  transition: width 1s ease-out;
}

/* Floating stats and counters */
@keyframes statsFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.float-stat {
  animation: statsFloat 4s ease-in-out infinite;
}

/* Particle Canvas Backdrop */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
