/* Counters Component - Circular Progress Design */
.counters-section {
    position: relative;
    padding: var(--section-padding-y) 0;
    background: #1e40af;
    overflow: hidden;
}

.counters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); */
    z-index: 1;
}

.counters-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.9));
    z-index: 2;
}

.counters-section__content {
    position: relative;
    z-index: 3;
}

/* Section Header */
.counters-section__header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.counters-section__title {
    font-size: var(--section-title-main);
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    color: white;
    line-height: var(--line-height-tight);
    font-family: var(--font-heading);
}

.counters-section__description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

/* Counters Grid */
.counters-grid {
    display: grid;
    gap: var(--spacing-xl, 48px);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

@media (min-width: 768px) {
    .counters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Counter Item */
.counter-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Progress Container */
.counter-item__progress {
    position: relative;
    width: 200px;
    height: 200px;
}

.progress-circle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.progress-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-track {
    stroke: rgba(255, 255, 255, 0.2);
}

.progress-fill {
    stroke: #ef4444; /* Red/orange color as shown in image */
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s ease;
}

/* Color variations for different counters */
.counter-item:nth-child(1) .progress-fill {
    stroke: #ef4444; /* Red */
}

.counter-item:nth-child(2) .progress-fill {
    stroke: #f97316; /* Orange */
}

.counter-item:nth-child(3) .progress-fill {
    stroke: #eab308; /* Yellow */
}

.counter-item:nth-child(4) .progress-fill {
    stroke: #22c55e; /* Green */
}

/* Counter Content */
.counter-item__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.counter-item__percentage {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    /* margin-bottom: var(--spacing-sm, 8px); */
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.percentage-value {
    color: white;
}

.counter-item__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: var(--line-height-snug);
    margin-top: var(--spacing-5);
    text-align: center;
}

/* Animation Classes */
.counter-item.animate-in {
    animation: slideUpFade 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .counters-section {
        padding: var(--spacing-16, 64px) 0;
    }

    .counters-section__header {
        margin-bottom: var(--spacing-10, 40px);
    }

    .counters-section__title {
        font-size: var(--heading-h3);
    }

    .counters-section__description {
        font-size: var(--font-size-base);
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-8, 32px) var(--spacing-6, 24px);
        padding: 0 var(--spacing-4, 16px);
    }

    .counter-item {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }

    .counter-item__progress {
        width: 140px;
        height: 140px;
    }

    .counter-item__percentage {
        font-size: 2rem;
    }

    .counter-item__title {
        font-size: 13px;
        margin-top: var(--spacing-3, 12px);
        max-width: none;
        padding: 0 4px;
    }

    .counter-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .counters-section {
        padding: var(--spacing-12, 48px) 0;
    }

    .counters-section__header {
        margin-bottom: var(--spacing-8, 32px);
        padding: 0 var(--spacing-4, 16px);
    }

    .counters-section__title {
        font-size: var(--heading-h4);
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6, 24px) var(--spacing-4, 16px);
        padding: 0 var(--spacing-3, 12px);
    }

    .counter-item {
        width: 100%;
        max-width: 160px;
    }

    .counter-item__progress {
        width: 110px;
        height: 110px;
    }

    .counter-item__percentage {
        font-size: 1.65rem;
    }

    .counter-item__title {
        font-size: 11.5px;
        margin-top: var(--spacing-2, 8px);
        line-height: 1.3;
        max-width: none;
        padding: 0 2px;
        word-break: break-word;
    }

    .counter-item:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

@media (max-width: 375px) {
    .counters-grid {
        gap: var(--spacing-5, 20px) var(--spacing-3, 12px);
    }

    .counter-item {
        max-width: 145px;
    }

    .counter-item__progress {
        width: 100px;
        height: 100px;
    }

    .counter-item__percentage {
        font-size: 1.5rem;
    }

    .counter-item__title {
        font-size: 11px;
        margin-top: var(--spacing-2, 8px);
    }
}
