/* --- Statistics Section Styles (Glassmorphic Redesign) --- */
.statistics-section {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  padding: 70px 0 50px 0;
  display: flex;
  justify-content: center;
  position: relative;
}
.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(30,40,80,0.10) 0%, rgba(255,255,255,0.00) 100%);
  /* You can adjust the color/opacity for a softer or stronger effect */
}
.statistics-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stat-box {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 48px 38px 32px 38px;
  min-width: 260px;
  flex: 1 1 0;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1), background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects only after staggered animation completes */
.stat-box.hover-enabled:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
  transition-delay: 0ms !important;
}

/* Force all boxes to fall back at the same speed when hover ends */
.stat-box.hover-enabled {
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
  transition-delay: 0ms !important;
}

/* Force hover to work regardless of other styles */
.stat-box.hover-enabled:hover {
  transform: translateY(-4px) !important;
  background: rgba(255,255,255,0.25) !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
  z-index: 10 !important;
}

/* Ensure hover works even without the class (fallback) */
.stat-box:hover {
  transform: translateY(-3px) !important;
  background: rgba(255,255,255,0.2) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25) !important;
  z-index: 5 !important;
}

/* Specifically force the second and third boxes to have no delay */
.stat-box.hover-enabled:nth-child(2),
.stat-box.hover-enabled:nth-child(3) {
  transition-delay: 0ms !important;
}

/* Mobile hover effect (always enabled) */
@media (max-width: 767px) {
  .stat-box:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  }
}


.stat-number-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: #1a232f;
  letter-spacing: -2px;
  line-height: 1;
}
.stat-suffix {
  font-size: 2.1rem;
  font-weight: 600;
  color: #1a232f;
  opacity: 0.7;
  margin-bottom: 0.2em;
}
.stat-label {
  font-size: 1.18rem;
  color: #5a6473;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 22px;
  font-weight: 400;
}
.stat-graphic {
  margin-top: auto;
  width: 80px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stat-avatars {
  display: flex;
  gap: -12px;
  margin-top: auto;
}
.stat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-left: -12px;
  background: #eee;
}
@media (max-width: 1200px) {
  .statistics-container {
    gap: 24px;
    padding: 0 12px;
  }
  .stat-box {
    min-width: 220px;
    max-width: 1fr;
    padding: 32px 12px 20px 12px;
  }
}
@media (max-width: 900px) {
  .statistics-container {
    gap: 18px;
    padding: 0 6px;
  }
  .stat-box {
    min-width: 180px;
    padding: 24px 6px 16px 6px;
  }
}
@media (max-width: 768px) {
  .statistics-container {
    display: block;
    padding: 0;
    gap: 0;
  }
  .stat-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 2rem 0;
    box-sizing: border-box;
    padding: 2rem;
    border-radius: 8px;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1), background 0.3s ease, box-shadow 0.3s ease;
  }
}
@media (min-width: 768px) {
  .stat-box:nth-child(1) { transition-delay: 0ms !important; }
  .stat-box:nth-child(2) { transition-delay: 200ms !important; }
  .stat-box:nth-child(3) { transition-delay: 400ms !important; }
} 