.stats-section {
    background-color: #EAF7F9;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Background-01.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Spiral Container - Separate and centered */
.spiral-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.spiral-icon {
    width: auto;
    height: 100%;
    object-fit: contain;
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats Container */
.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 0;
    min-height: 100vh;
    padding: 100px 60px;
}

/* Left Stats */
.stats-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 200px;
}

/* Right Stats */
.stats-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    gap: 200px;
    margin-top: 170px;
}

/* Stat Items */
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-left .stat-item {
    align-items: flex-start;
    text-align: left;
}

.stats-right .stat-item {
    align-items: flex-end;
    text-align: right;
}

.stat-number {
    font-family: 'Comfortaa', cursive;
    font-size: 64px;
    font-weight: 700;
    color: transparent;
    margin: 0;
    line-height: 1;
    background: linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: revealNumber 5s ease-in-out forwards;
}

.stats-right .stat-number {
    background: linear-gradient(to right, transparent 50%, #000000 50%);
    background-size: 200% 100%;
    background-position: 0% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: revealNumberRight 4s ease-in-out forwards;
}

@keyframes revealNumberRight {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes revealNumber {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0% 0;
    }
}


.stat-description {
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    font-weight: 400;
    color: transparent;
    margin: 0;
    line-height: 1.4;
    max-width: 400px;
    background: linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: revealDescription 6s ease-in-out forwards;
}

.stats-right .stat-description {
    background: linear-gradient(to right, transparent 50%, #000000 50%);
    background-size: 200% 100%;
    background-position: 0% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: revealDescriptionRight 6s ease-in-out forwards;
}

@keyframes revealDescription {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

@keyframes revealDescriptionRight {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* Divider with line and dot */
.stat-divider {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.stats-left .stat-divider {
    justify-content: flex-start;
}

.stats-right .stat-divider {
    justify-content: flex-end;
}

.stat-line {
    height: 1px;
    background-color: transparent;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat-line::before {
    content: '';
    position: absolute;
    top: 0;
    height: 1px;
    background: #000000;
    animation-play-state: var(--line-animation-state, paused);
}

.stats-left .stat-line::before {
    left: 0;
    width: 0%;
    animation: expandLineLeft 8s ease-in-out forwards;
    animation-play-state: var(--line-animation-state, paused);
}

.stats-right .stat-line::before {
    right: 0;
    width: 0%;
    animation: expandLineRight 8s ease-in-out forwards;
    animation-play-state: var(--line-animation-state, paused);
}

@keyframes expandLineLeft {
    0% {
        width: 0%;
    }
    100% {
        width: calc(100% - 20px);
    }
}

@keyframes expandLineRight {
    0% {
        width: 0%;
    }
    100% {
        width: calc(100% - 20px);
    }
}

.stat-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.stat-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stats-left .stat-divider {
    position: relative;
}

.stats-left .stat-dot {
    left: 0;
    animation: moveDotStatLeft 8s ease-in-out forwards;
}

@keyframes moveDotStatLeft {
    0% {
        left: 0%;
    }
    100% {
        left: calc(100% - 20px);
    }
}

.stats-right .stat-divider {
    position: relative;
}

.stats-right .stat-dot {
    left: 0;
    animation: moveDotStatRight 8s ease-in-out forwards;
}

@keyframes moveDotStatRight {
    0% {
        left: calc(100% - 20px);
    }
    100% {
        left: 0%;
    }
}

/* Tablet */
@media (max-width: 1200px) {
    .stats-container {
        padding: 80px 40px;
    }

    .stats-left,
    .stats-right {
        gap: 150px;
    }

    .stats-right {
        margin-top: 170px;
    }

    .stat-number {
        font-size: 56px;
    }

    .stat-description {
        font-size: 15px;
        max-width: 350px;
    }

    .stat-divider {
        max-width: 450px;
    }
}

@media (max-width: 992px) {
    .stats-left,
    .stats-right {
        gap: 120px;
    }

    .stats-right {
        margin-top: 190px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-description {
        font-size: 14px;
        max-width: 300px;
    }

    .stat-divider {
        max-width: 400px;
    }

    .stat-dot {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .stats-section {
        min-height: auto;
    }

    .spiral-container {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        height: 100%;
        padding: 0;
        align-items: center;
        padding-left: 20px;
    }

    .spiral-icon {
        width: auto;
        height: 100%;
    }

    .stats-container {
        padding: 80px 30px 80px 100px;
        display: flex;
        flex-direction: column;
        gap: 50px;
        min-height: auto;
    }

    .stats-left,
    .stats-right {
        gap: 50px;
        margin-top: 0;
        flex: none;
    }

    .stats-left .stat-item,
    .stats-right .stat-item {
        align-items: flex-start;
        text-align: left;
    }

    .stats-left .stat-divider,
    .stats-right .stat-divider {
        justify-content: flex-start;
        flex-direction: row;
    }

    .stats-left .stat-divider .stat-dot {
        order: -1;
    }

    .stats-right .stat-dot {
        animation: moveDotStatLeft 6s ease-in-out forwards;
    }

    .stats-right .stat-line::before {
        left: 0;
        right: auto;
        animation: expandLineLeft 6s ease-in-out forwards;
    }

    .stats-left .stat-dot {
        animation: moveDotStatLeft 6s ease-in-out forwards;
    }

    .stats-left .stat-line::before {
        left: 0;
        right: auto;
        animation: expandLineLeft 6s ease-in-out forwards;
    }

    .stat-number {
        font-size: 40px;
    }

    .stats-left .stat-number {
        background: linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
        background-size: 200% 100%;
        background-position: 0% 0;
        -webkit-background-clip: text;
        background-clip: text;
        animation: revealNumberRight 4s ease-in-out forwards;
    }

    .stats-right .stat-number {
        background: linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
        background-size: 200% 100%;
        background-position: 0% 0;
        -webkit-background-clip: text;
        background-clip: text;
        animation: revealNumberRight 4s ease-in-out forwards;
    }

    @keyframes revealNumberRight {
        0% {
            background-position: 100% 0;
        }
        100% {
            background-position: 0% 0;
        }
    }

    .stats-left .stat-description {
        background: linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
        background-size: 200% 100%;
        background-position: 100% 0;
        -webkit-background-clip: text;
        background-clip: text;
        animation: revealDescription 6s ease-in-out forwards;
    }

    .stats-right .stat-description {
        background: linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
        background-size: 200% 100%;
        background-position: 100% 0;
        -webkit-background-clip: text;
        background-clip: text;
        animation: revealDescription 6s ease-in-out forwards;
    }

    .stat-description {
        font-size: 13px;
        max-width: 100%;
    }

    .stat-divider {
        max-width: 100%;
    }

    .stat-dot {
        width: 16px;
        height: 16px;
    }

    @keyframes moveDotStatLeft {
        0% {
            left: 0%;
        }
        100% {
            left: calc(100% - 16px);
        }
    }

    @keyframes expandLineLeft {
        0% {
            width: 0%;
        }
        100% {
            width: calc(100% - 16px);
        }
    }
}

@media (max-width: 480px) {
    .spiral-container {
        padding-left: 15px;
    }

    .spiral-icon {
        width: auto;
        height: 100%;
    }

    .stats-container {
        padding: 60px 20px 60px 80px;
        gap: 40px;
    }

    .stats-left,
    .stats-right {
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-description {
        font-size: 12px;
    }

    .stat-dot {
        width: 14px;
        height: 14px;
    }
}

