/* #region Base */
.stats-wrapper .stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    margin: 4rem auto;
}

.stats-wrapper .stats-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(248, 152, 0, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-wrapper .stats-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(248, 152, 0, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-wrapper .stats-section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.stats-wrapper .stats-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.stats-wrapper .stats-section__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* #endregion */

/* #region Stats Grid */
.stats-wrapper .stats-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* #endregion */

/* #region Stats Cards */
.stats-wrapper .stats-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    position: relative;
    overflow: hidden;
}

.stats-wrapper .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stats-wrapper .stats-card:hover::before {
    transform: scaleX(1);
}

.stats-wrapper .stats-card.animated {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.stats-wrapper .stats-card.animated:nth-child(1) {
    transition-delay: 0.1s;
}

.stats-wrapper .stats-card.animated:nth-child(2) {
    transition-delay: 0.2s;
}

.stats-wrapper .stats-card.animated:nth-child(3) {
    transition-delay: 0.3s;
}

.stats-wrapper .stats-card.animated:nth-child(4) {
    transition-delay: 0.4s;
}

.stats-wrapper .stats-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(248, 152, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(248, 152, 0, 0.1);
}

.stats-wrapper .stats-card__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 1rem;
    background: rgba(248, 152, 0, 0.1);
    border: 1px solid rgba(248, 152, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: all 0.4s ease;
}

.stats-wrapper .stats-card:hover .stats-card__icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
}

.stats-wrapper .stats-card__value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stats-wrapper .stats-card__value::after {
    content: '%';
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-left: 0.2rem;
    font-weight: 700;
}

.stats-wrapper .stats-card__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-weight: 500;
}

/* #endregion */

/* #region Responsive */
@media screen and (max-width: 1024px) {
    .stats-wrapper .stats-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        max-width: 90%;
        margin: auto;
    }

    .stats-wrapper .stats-card__value {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .stats-wrapper .stats-section {
        padding: var(--spacing-lg) 0;
    }

    .stats-wrapper .stats-section__title {
        font-size: 1.5rem;
    }

    .stats-wrapper .stats-section__subtitle {
        font-size: 0.9375rem;
    }

    .stats-wrapper .stats-section__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stats-wrapper .stats-card {
        padding: 1.5rem 1rem;
    }

    .stats-wrapper .stats-card__icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .stats-wrapper .stats-card__value {
        font-size: 2.5rem;
    }

    .stats-wrapper .stats-card__label {
        font-size: 0.9rem;
    }
}

/* #endregion */