/* Stats component */

.w3l-stats-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--stats-bg, linear-gradient(135deg, var(--primary, #886ab5) 0%, var(--primary-dark, #6d5591) 100%));
}

.w3l-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.w3l-stats-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-stats 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-stats {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.stats-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.stats-decoration-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation: pulse-stats 8s ease-in-out infinite;
}

.stats-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: pulse-stats 6s ease-in-out infinite 1s;
}

@keyframes pulse-stats {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.w3l-stats-inner-inf { position: relative; z-index: 2; }

.stats-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stats-section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stats-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    height: 100%;
}

.stats-card .stats-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.stats-card .stats-info {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.stats-card .counter {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.stats-card .counter-no-anim {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1;
}

.stats-card h3 {
    margin: 0.5rem 0 0;
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-weight: 600;
}
