/* stats.css */
.stats {
  background: #1e293b;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.stats-top {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  color: #ccc;
}

.stats-top .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}


.stat p {
  font-size: 0.95rem;
  color: #ccc;
}

/* Gradiente animado nos números */
.stat h3 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #6c63ff, #4fa3ff, #6c63ff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s linear infinite, scalePulse 2s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

.stats-top {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  color: #ccc;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center; /* centraliza ícone + texto */
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  flex: 1 1 250px;/* permite ajuste automático */
  text-align: center;  
  white-space: normal; /* permite quebra de linha */
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

.stat-item i {
  color: #9e9aee;
  font-size: 1.4rem;
  flex-shrink: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
  .stats-top {
    justify-content: space-around;
    gap: 1.5rem;
  }

  .stat-item {
    flex: 1 1 45%; /* dois por linha em telas médias */
    justify-content: flex-start;
  }
}

/* Responsividade aprimorada */
@media (max-width: 480px) {
  .stats-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .stat-item {
    flex: none;
    width: 100%;
    justify-content: flex-start;
  }

  .stat-item i {
    font-size: 1.2rem;
  }
}
/* Efeito ao passar o mouse */
.stat-item:hover i {
  transform: scale(1.2) rotate(8deg);
  color: #4fa3ff;
  text-shadow: 0 0 10px rgba(79, 163, 255, 0.6);
}

/* Efeito no texto também */
.stat-item:hover span {
  color: #fff;
  transition: color 0.3s ease;
}




@keyframes gradientMove {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Responsivo */
@media (max-width: 768px) {
  .stats-top {
    flex-direction: column;
    gap: 1rem;
  }
}
