.circle-progress {
  transition: stroke-dashoffset 10s ease-in-out, stroke 0.3s ease;
  stroke-dashoffset: calc(2 * 3.14159 * 85);
}

.circle-progress.animate {
  stroke-dashoffset: calc(2 * 3.14159 * 85 * (1 - var(--percentage) / 100));
}

.stats-section {
  width: 100%;
  background-image: url('/advert-info/animation_BG._bluepng.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 4px;
  padding-top: 60px;
  padding-bottom: 30px;
}

@media(max-width: 1350px){
  .stats-section {
    width: 100%;
    background-image: url('/advert-info/animation_BG._bluepng.png');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 30px 20px;
    min-height: 400px;
  }
}

.stats-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  width: 100%;
  flex-wrap: wrap;
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-container {
  position: relative;
  width: 210px;
  height: 130px;
}

.circle-svg {
  width: 100%;
  height: 100%;
}

.circle-bg {
  transition: all 0.3s ease;
}

.circle-progress {
  transition: stroke-dashoffset 10s ease-in-out, stroke 0.3s ease;
}

.circle-progress.animate {
  animation: fillCircle 10s ease-in-out forwards;
}

/* @keyframes fillCircle {
  from {
    stroke-dashoffset: calc(2 * 3.14159 * 85);
  }
  to {
    stroke-dashoffset: calc(2 * 3.14159 * 85 * (1 - var(--percentage) / 100));
  }
} */

.circle-content {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 100%;
  padding: 20px;
}

.stat-value {
  font-size: clamp(2.0625rem, 4vw, 2.0625rem);
  line-height: 1.2;
  margin-bottom: 8px;
  color: #ffffff;
  /* font-family: "Acumin Pro SemiCondensed Regular"; */
  font-family: 'Acumin Pro SemiCondensed Medium';
  opacity: 0;
  transform: rotate(0deg);
}

/* Clock-like rotation animation for numbers */
.stat-value.clock-rotate {
  animation: clockRotateIn 3s ease-out forwards;
}

@keyframes clockRotateIn {
  0% {
    opacity: 0;
    transform: rotate(360deg) scale(0.5);
  }
  50% {
    opacity: 0.5;
    transform: rotate(360deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: rotate(360deg) scale(1);
  }
}

.stat-label {
  font-size: clamp(1.2rem, 2vw, 1.2rem);
  font-family: "Acumin Pro Bold";
  color: #d1d3d4;
  line-height: 1.3;
  text-align: center;
  margin-top: 2px;
  word-break: break-word; 
  white-space: pre-line; 
}

.stat-item:hover .stat-value {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stats-container {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .stats-section {
    padding: 50px 15px 25px 15px;
  }
  
  .stats-container {
    gap: 10px;
  }
  
  .circle-container {
    width: 180px;
    height: 115px;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 40px 10px 20px 10px;
    min-height: 350px;
  }
  
  .stats-container {
    gap: 15px;
    justify-content: space-around;
  }
  
  .circle-container {
    width: 160px;
    height: 105px;
  }
  
  .stat-item {
    flex: 0 1 calc(50% - 10px);
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 30px 10px 20px 10px;
    min-height: auto;
  }
  
  .stats-container {
    gap: 15px;
    flex-direction: row;
    justify-content: center;
  }
  
  .stat-item {
    flex: 0 1 calc(50% - 10px);
    width: auto;
    max-width: 180px;
  }
  
  .circle-container {
    width: 160px;
    height: 110px;
  }
}