/* ===========================
   STATS SECTION
   =========================== */

.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg,
            rgba(130, 43, 140, 0.05) 0%,
            rgba(130, 43, 140, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(130, 43, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(130, 43, 140, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--accent-tertiary) 0%,
            var(--accent-primary) 50%,
            var(--accent-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(130, 43, 140, 0.3),
        0 0 40px rgba(168, 85, 247, 0.2);
    border-color: var(--accent-tertiary);
}

.stat-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    color: var(--accent-tertiary);
    /* System Purple */
    filter: drop-shadow(0 4px 8px rgba(130, 43, 140, 0.3));
}

.stat-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-card:nth-child(1) .stat-icon {
    animation-delay: 0s;
}

.stat-card:nth-child(2) .stat-icon {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) .stat-icon {
    animation-delay: 0.4s;
}

.stat-card:nth-child(4) .stat-icon {
    animation-delay: 0.6s;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 15px;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}