
.service-stats-wrapper {
  background: #eef1fb;
  overflow: hidden;
}

/* Each box: modern glass card with gradient */
.stats-box {
    background: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: fadeInUpScale 0.8s forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-right: 15px;
    height: 150px;
}

/* Slight fade-up + scale */
@keyframes fadeInUpScale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Delays for staggered effect */
.stats-box:nth-child(1) { animation-delay: 0.1s; }
.stats-box:nth-child(2) { animation-delay: 0.2s; }
.stats-box:nth-child(3) { animation-delay: 0.3s; }
.stats-box:nth-child(4) { animation-delay: 0.4s; }

/* Hover: lift + glow border */
.stats-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #7cc3d1; /* subtle highlight */
}

/* SVG inside: gentle scale */
.stats-box:hover .stats-svg svg {
  transform: scale(1.1);
}

.stats-svg svg {
  transition: transform 0.3s ease;
}

/* Optional: SVG color stays same, but you can tint on hover */
.stats-box:hover .stats-svg svg path,
.stats-box:hover .stats-svg svg rect,
.stats-box:hover .stats-svg svg circle {
  stroke: #4f8fa3;
}

/* Headline styling */
.stats-detail h5 {
  margin: 5px;
  font-weight: 600;
  color: black;
}

/* Remove right border since cards have border & shadow */
.stats-box {
  border-right: none !important;
}

/* Responsive: two per row below md */
@media (max-width: 767px) {
  .stats-box {
    margin-bottom: 12px;
  }
}

