/* =========================================
   MODERN STATS SECTION (SCOPED)
   ========================================= */

.stats-modern-section {
    position: relative;
    overflow: hidden;
    background: #ffffff; /* Replaces old black container */
}

/* The Main Bento Box */
.stats-bento-container {
    background: hsla(var(--base-h), var(--base-s), var(--base-l), 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid hsla(var(--base-h), var(--base-s), var(--base-l), 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

/* Typography */
.stats-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.stats-heading .text--base {
    background: linear-gradient(135deg, hsl(var(--base-h), var(--base-s), var(--base-l)), hsl(var(--base-h), 80%, 40%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stats-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 40px;
    padding-right: 20px;
}

/* Glassmorphism Stat Cards */
.stat-bento-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    border: 1px solid hsla(var(--base-h), var(--base-s), var(--base-l), 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.stat-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px hsla(var(--base-h), var(--base-s), var(--base-l), 0.1);
}
.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--base-h), var(--base-s), var(--base-l));
    margin-bottom: 8px;
    line-height: 1;
}
.stat-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

/* Abstract Glowing Globe */
.stats-globe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stats-globe-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, hsla(var(--base-h), var(--base-s), var(--base-l), 0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(30px);
}
.stats-abstract-globe {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    /* Adds a modern, glowing drop shadow to the existing image */
    filter: drop-shadow(0 0 25px hsla(var(--base-h), var(--base-s), var(--base-l), 0.6));
    animation: rotateGlobe 20s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes rotateGlobe {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(15deg); }
}

@media (max-width: 991px) {
    .stats-bento-container {
        padding: 40px 20px;
    }
    .stats-heading {
        font-size: 2.5rem;
    }
    .stats-description {
        padding-right: 0;
    }
}
