/* Progress Animation */
@keyframes progress {
  0% {
    --percentage: 0;
  }
  100% {
    --percentage: var(--value);
  }
}

@property --percentage {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* Circular Progress */
[role="progressbar"] {
  --percentage: var(--value);
  --primary: #2DAB61;
  --secondary: #a9a9a9;
  --size: clamp(60px, 20vw, 100px); /* Responsive size */
  animation: progress 2s 0.5s forwards;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

[role="progressbar"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(
    var(--primary) calc(var(--percentage) * 1%),
    var(--secondary) 0
  );
  mask: radial-gradient(white 55%, transparent 0);
  mask-mode: alpha;
  -webkit-mask: radial-gradient(#0000 55%, #000 0);
  -webkit-mask-mode: alpha;
}

[role="progressbar"]::after {
  counter-reset: percentage var(--value);
  content: counter(percentage) '%';
  font-family: Helvetica, Arial, sans-serif;
  font-size: calc(var(--size) / 5);
  color: var(--primary);
}

/* Typography */
.title {
  font-size: clamp(1.2rem, 4vw, 2rem); /* Responsive font size */
}

.paragraph {
  font-size: clamp(0.875rem, 3vw, 1.25rem);
}

.step-box {
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.timeline-bar {
  height: 4px;
  background-color: #B7DEC5;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

.number-box {
  border: 2px solid #2C6E91;
  border-radius: 32px;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  color: #2C6E91;
}

/* Utility classes for mobile responsiveness */
@media (max-width: 768px) {
  .fs-5 {
    font-size: 1rem !important;
  }

  .text-end {
    text-align: right !important;
  }

  .text-center {
    text-align: center !important;
  }
}
