/* Statistics Section Styles */
.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff6ea 100%);
  padding: 3rem 0;
  position: relative;
  border-top: 1px solid rgba(33, 95, 68, 0.1);
  border-bottom: 1px solid rgba(33, 95, 68, 0.1);
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 45%, rgba(33, 95, 68, 0.02) 50%, transparent 55%);
  z-index: 1;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
  background: transparent;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 180px;
  will-change: transform;
}

.stat-item:hover {
  transform: translateY(-2px) translateZ(0);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: #215f44;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
  display: inline-block;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2e7d5a;
  opacity: 0.8;
  margin-left: 0.15rem;
  display: inline-block;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a6741;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* Animation for counting up */
.stat-number.counting {
  animation: countPulse 0.1s ease-in-out;
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Optimized animation for section entrance */
.stats-section.animate-in .stat-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stats-section.animate-in .stat-item:nth-child(1) {
  transition-delay: 0.1s;
}

.stats-section.animate-in .stat-item:nth-child(2) {
  transition-delay: 0.2s;
}

.stats-section.animate-in .stat-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-section {
    padding: 2.5rem 0;
  }
  
  .stats-container {
    padding: 0 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 1.25rem 0.75rem;
    min-width: auto;
    width: 100%;
    max-width: 280px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-unit {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 2rem 0;
  }
  
  .stat-item {
    padding: 1rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-unit {
    font-size: 0.9rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Print styles */
@media print {
  .stats-section {
    background: white !important;
  }
  
  .stat-item {
    background: white !important;
    border: 1px solid #ccc !important;
  }
  
  .stat-number, .stat-unit, .stat-label {
    color: black !important;
  }
}
