/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #9b59b6 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.stats .container {
  position: relative;
  z-index: 2;
}

.stats .section-title {
  text-align: center;
  margin-bottom: 60px;
  color: white;
}

.stats .section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Raleway', sans-serif;
}

.stats .section-title p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Ubuntu', sans-serif;
}

.stats .stats-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stats .stats-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.stats .stats-item:hover::before {
  left: 100%;
}

.stats .stats-item:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.stats .stats-item .icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.8;
  transition: all 0.4s ease;
  color: rgba(255, 255, 255, 0.9);
}

.stats .stats-item:hover .icon {
  transform: scale(1.2) rotateY(360deg);
  opacity: 1;
  color: #fff;
}

.stats .stats-item .purecounter {
  font-size: 4rem;
  font-weight: 800;
  display: block;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  font-family: 'Raleway', sans-serif;
  background: linear-gradient(45deg, #fff, #f8f9fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.stats .stats-item p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
  font-family: 'Ubuntu', sans-serif;
}

/* Pulse animation for numbers */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stats .stats-item.counting .purecounter {
  animation: pulse 2s ease-in-out;
}

/* Responsive Design */
@media (max-width: 992px) {
  .stats .section-title h2 {
    font-size: 2.5rem;
  }
  
  .stats .stats-item {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .stats {
    padding: 60px 0;
  }
  
  .stats .section-title h2 {
    font-size: 2rem;
  }
  
  .stats .section-title p {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .stats .stats-item {
    padding: 30px 20px;
    border-radius: 15px;
  }
  
  .stats .stats-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .stats .stats-item .purecounter {
    font-size: 3rem;
  }
  
  .stats .stats-item p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .stats .stats-item {
    padding: 25px 15px;
  }
  
  .stats .stats-item .purecounter {
    font-size: 2.5rem;
  }
  
  .stats .stats-item .icon {
    font-size: 2.5rem;
  }
}

/* Animation for when counters start */
.stats .stats-item.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

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