/* Keyframe for dropping from top */
@keyframes dropIn {
  0% {
    transform: translateY(-300px);
    opacity: 0;
  }
  60% {
    transform: translateY(0);
    opacity: 1;
  }
  75% {
    transform: translateY(-30px); /* first bounce up */
  }
  88% {
    transform: translateY(0); /* back to ground */
  }
  95% {
    transform: translateY(-15px); /* second smaller bounce */
  }
  100% {
    transform: translateY(-5px); /* final slightly raised rest position */
  }
}
/* Stats wrapper Css Start Here */
.stats-wrapper {
  background: url('../../Images/1842/measures.bg.png');
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  padding:90px 100px 80px 100px;
}

/* Main circle */
.stat-circle {
  width: min(200px, 45vw);
  aspect-ratio: 1;
  position: relative;
  animation-name: dropIn;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  opacity:0;
}

.stats-wrapper > div:nth-child(2), .stats-wrapper > div:nth-child(4) {
  top: -40px;
}

/* Staggered animation delays */
.stats-wrapper > div:nth-child(1) {
  animation-delay: 0s;
}

.stats-wrapper > div:nth-child(2) {
  animation-delay: 1s;
}

.stats-wrapper > div:nth-child(3) {
  animation-delay: 2s;
}

.stats-wrapper > div:nth-child(4) {
  animation-delay: 3s;
}

/* Outer rotating ring */
.outer-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #e8b77a;
  border-radius: 50%;
  animation: rotate 8s linear infinite;
}

/* Pointer dot */
.pointer-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #9c6b1c;
  border-radius: 50%;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Inner filled circle */
.inner-circle {
  position: absolute;
  inset: 10%;
  background: #efd3a6;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.inner-circle h2 {
  margin: 0;
  color: #643B00;
  font-size: 28px;
  font-weight: bold;
  font-family: 'DM Sans', sans-serif;
}

.inner-circle p {
  font-size:16px;
  margin-top: 0.3rem;
  color: #643B00;
  font-weight: normal;
  font-family:'DM Sans',sans-serif;
}

/* Rotation animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.stat-circle:nth-child(2) .outer-ring { animation-duration: 10s; }
.stat-circle:nth-child(3) .outer-ring { animation-duration: 12s; }
.stat-circle:nth-child(4) .outer-ring { animation-duration: 9s; }

@media(max-width:1199px){
  .stats-wrapper { gap:2rem; padding:90px 50px 80px 50px; }
  .stat-circle { width: min(160px, 45vw); }
  .inner-circle h2 { font-size:22px; }
}
@media (max-width:991px) {
  .stat-circle { width: min(138px, 45vw); }
  .inner-circle p{ font-size:14px; }
}
@media(max-width:767px){
  .stats-wrapper { gap:14px; padding:90px 20px 40px 20px; }
  .stat-circle { width:min(120px, 45vw); }
  .inner-circle h2 { font-size:16px; }
  .inner-circle p{ font-size:12px; }
}
/* Stats wrapper Css End Here */
