/* Stats Section Redesign */

.stats {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: rotate 25s linear infinite;
  z-index: 0;
}

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

.section-header {
  text-align: center;
  width: 100%;
  margin-bottom: 4rem;
}

.section-title {
  width: 100%;
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
}

.section-subtitle {
  width: 100%;
  text-align: center;
  color: #94a3b8;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

section.animate-in .stats-grid {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.5);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

section.animate-in .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.2s; }
.stat-item:nth-child(3) { transition-delay: 0.3s; }
.stat-item:nth-child(4) { transition-delay: 0.4s; }

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  opacity: 0.9;
}

.stat-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.stat-item:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
  z-index: -1;
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover .stat-icon {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to right, #60a5fa, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 1.5rem;
  opacity: 0.95;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: white;
}

.stat-description {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Responsive Design */

/* Large Tablet Styles */
@media (max-width: 1024px) {
  .stats {
    padding: 100px 2rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-item {
    padding: 2rem;
  }
  
  .stat-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-number {
    font-size: 3.5rem;
  }
  
  .stat-label {
    font-size: 1.35rem;
  }
  
  .stat-description {
    font-size: 0.95rem;
  }
}

/* Tablet Styles */
@media (max-width: 768px) {
  .stats {
    padding: 80px 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .stat-item {
    padding: 1.75rem;
  }
  
  .stat-icon {
    width: 65px;
    height: 65px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-label {
    font-size: 1.25rem;
  }
  
  .stat-description {
    font-size: 0.9rem;
  }
}

/* Mobile Styles */
@media (max-width: 576px) {
  .stats {
    padding: 60px 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .stats-grid {
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1.15rem;
  }
  
  .stat-description {
    font-size: 0.85rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .stats {
    padding: 50px 0.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  .stat-item {
    padding: 1.25rem;
  }
  
  .stat-icon {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
  }
  
  .stat-number {
    font-size: 2.25rem;
  }
  
  .stat-label {
    font-size: 1.1rem;
  }
  
  .stat-description {
    font-size: 0.8rem;
  }
}

/* Ultra Small Mobile Styles */
@media (max-width: 360px) {
  .stats {
    padding: 40px 0.5rem;
  }
  
  .section-title {
    font-size: 1.35rem;
  }
  
  .section-subtitle {
    font-size: 0.8rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .stat-description {
    font-size: 0.75rem;
  }
}