/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
    width: 100%;
    height: auto;
    position: relative;
    padding: var(--spacing-xxxl) 0;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center; /* Center by default */
    align-items: center;
}

/* Background Elements
-------------------------------------------------- */
.stats-section .background-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.stats-section .background-image {
    position: absolute;
    inset: 0;
    background: url('/assets/global-assets/stats/statistics-bg.webp') center/cover no-repeat;
    z-index: 1;
}

.stats-section .crosses-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Decorative Elements
-------------------------------------------------- */
.stats-section .bottle-image {
    position: absolute;
    left: 14.4%;
    bottom: 0;
    transform: translateX(-50%);
    width: 55vw; /* Large and centered */
    max-width: 580px;
    min-width: 250px;
    aspect-ratio: 604/481;
    background: url('/assets/global-assets/stats/bottle_edited_1.webp') center/contain no-repeat;
    mix-blend-mode: passthrough;
    z-index: 2;
}

.stats-section .leaf-image {
    position: absolute;
    left: 18%;
    top: 0;
    transform: translateX(-50%);
    width: 70vw; /* Large and centered */
    max-width: 800px;
    min-width: 300px;
    aspect-ratio: 940/602;
    background: url('/assets/global-assets/stats/leaf.webp') center/contain no-repeat;
    mix-blend-mode: passthrough;
    z-index: 1;
}

/* .stats-section .droplet-image {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translateX(-50%);
    width: 10vw;
    max-width: 120px;
    min-width: 60px;
    aspect-ratio: 190/205;
    background: url('/assets/images/home-assets/droplet.png') center/contain no-repeat;
    mix-blend-mode: screen;
    z-index: 3;
    filter: brightness(1.2);
} */

/* Stats Content
-------------------------------------------------- */
.stats-boxes {
    position: relative;
    width: clamp(26.9vw, 518px, 80vw);
    margin: 0 auto; /* Center by default */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    z-index: 3;
}

.stat-box {
    width: 100%;
    height: 11em;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-xxl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.stat-icon-container img {
    width: 5.8125em;
    height: auto;
}

.stat-text {
    font-size: var(--font-size-xxxxl);
    color: var(--color-text);
    line-height: var(--line-height-normal);
    width: clamp(18vw, 309px, 80vw);
    padding-left: var(--spacing-md);
}

.stat-text strong {
    color: var(--color-text);
    font-weight: 700;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loader Styles
-------------------------------------------------- */
.loader-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

/* Responsive Adjustments
-------------------------------------------------- */
@media screen and (max-width: 1536px) { 
    .stats-section .leaf-image {
        left: 19%;
    }
   
}




@media screen and (max-width: 1440px) {
    .stat-text {
        font-size: var(--font-size-xxl);
    }

    .stats-section .bottle-image {
        width: 48vw;
        max-width: 480px;
        left: 18%;
    }
    .stats-section .leaf-image {
        width: 60vw;
        max-width: 650px;
        left: 22%;
    }
    .stats-section .droplet-image {
        width: 8vw;
        max-width: 90px;
    }
}

@media screen and (max-width: 1024px) {
    .stat-text {
        font-size: var(--font-size-xl);
        text-align: center;
        padding-left: 0;
    }

       
    .stat-icon-container img {
        width: 3.5em;
        height: auto;
    }

    .stats-section .bottle-image {
        width: 68vw;
        max-width: 540px;
        left: 25%;
        opacity:  0.3;
        transform: translateX(-50%);
    }
    .stats-section .leaf-image {
        width: 85vw;
        max-width: 1000px;
        left: 32.3%;
           opacity:  0.3;
        transform: translateX(-50%);
    }
    .stats-section .droplet-image {
        width: 7vw;
        max-width: 70px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    
    .stat-text {
        font-size: var(--font-size-xl);
        margin-left: 0.5rem;
    }

  
    .stat-icon-container img {
        width: 4.5em;
        height: auto;
    
    }

    .stats-section .bottle-image {
        width: 80vw;
        max-width: 580px;
        left: 30%;
        opacity: 0.3;
        transform: translateX(-50%);
    }
    .stats-section .leaf-image {
        width: 100vw;
        max-width: 1000px;
        left: 38%;
        opacity: 0.3;
        transform: translateX(-50%);
    }
    .stats-section .droplet-image {
        width: 15vw;
        max-width: 50px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 576px) {
        
    
    .stat-text {
        font-size: var(--font-size-sm);
    }
   
    .stat-icon-container img {
        width: 4.5em;
        height: auto;
    }


    .stats-section .bottle-image {
        width: 150vw;
        max-width: 1100px;
        left: 50%;
        opacity: 0.2;
        transform: translateX(-50%);
    }
    .stats-section .leaf-image {
        width: 200vw;
        max-width: 1520px;
        left: 63%;
        opacity: 0.2;
        transform: translateX(-50%);
    }
    .stats-section .droplet-image {
        width: 20vw;
        max-width: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
}










