/* /css/results-animations.css - Animações atualizadas */

/* Animações para a seção */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação específica para os números */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação para a barra de progresso */
@keyframes barFill {
  from {
    width: 0;
  }
  to {
    width: var(--percentage, 100%);
  }
}

/* Estados iniciais para animação */
.results-section {
  opacity: 0;
}

.results-header,
.result-card,
.results-cta {
  opacity: 0;
  transform: translateY(20px);
}

.result-number {
  opacity: 0;
}

.result-indicator {
  width: 0;
}

/* Classe aplicada quando a seção fica visível */
.results-section.animate-in {
  animation: fadeIn 1s ease forwards;
}

.results-section.animate-in .results-header {
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.results-section.animate-in .result-card {
  animation: fadeInUp 0.8s ease forwards;
}

/* Delays sequenciais para os cards */
.results-section.animate-in .result-card:nth-child(1) {
  animation-delay: 0.4s;
}

.results-section.animate-in .result-card:nth-child(2) {
  animation-delay: 0.6s;
}

.results-section.animate-in .result-card:nth-child(3) {
  animation-delay: 0.8s;
}

.results-section.animate-in .result-card:nth-child(4) {
  animation-delay: 1s;
}

.results-section.animate-in .results-cta {
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

/* Classes para animar elementos específicos */
.result-number.animate {
  animation: countUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.result-indicator.animate {
  animation: barFill 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
