/* ...existing code... */

.stats-marquee {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-dark);
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.marquee-viewport {
  width: 1000px; /* Show 4 cards at 250px each, adjust as needed */
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-rtl 30s linear infinite;
}

.stat {
  min-width: 230px;
  max-width: 230px;
  flex: 0 0 230px;
 background: rgba(20, 30, 50, 0.4); /* lighter transparency */
 backdrop-filter: blur(10px);       /* blur effect for glass look */
 -webkit-backdrop-filter: blur(10px); /* Safari support */
 border-radius: 12px;
 padding: 1.5rem 1rem;
 display: flex;
 flex-direction: column;
 align-items: center;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: bold;
  color: #00e5ff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.stat-label {
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
}

/* Animation for infinite scroll */
@keyframes scroll-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1200px) {
  .marquee-viewport { width: 800px; }
  .stat { min-width: 180px; max-width: 180px; }
}
@media (max-width: 900px) {
  .marquee-viewport { width: 100vw; }
  .stat { min-width: 140px; max-width: 140px; }
}

.stats-marquee .stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  min-height: 220px;
  height: 100%;
  width: 100%;
  gap: 1rem;
}

.stats-marquee .stat-box .stat-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-marquee .stat-box .stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(0,229,255,0.08);
  box-shadow: 0 0 8px rgba(0,229,255,0.15);
}

.stats-marquee .stat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stats-marquee .stat-num {
  font-size: 1.3rem;
  font-weight: bold;
  color: #00e5ff;
  margin-bottom: 0.2rem;
  text-align: center;
}

.stats-marquee .stat-label {
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
}