/* ============================================================
   engagement.css  —  Developer Engagement / Stats section
   ============================================================ */

#engagement {
    background: linear-gradient(135deg, rgba(138,43,226,0.02) 0%, rgba(0,217,255,0.02) 100%);
    min-height: auto;
    padding: 4rem 5%;
}

/* ── Stat cards grid ── */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(0,217,255,0.32);
}
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,217,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 50px rgba(0,217,255,0.15);
}

/* ── Stat icon ── */
.stat-icon-wrap {
    width: 52px; height: 52px;
    margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(0,217,255,0.08);
    border: 1px solid rgba(0,217,255,0.2);
    box-shadow: 0 0 20px rgba(0,217,255,0.08);
}
.stat-icon-wrap svg { width: 24px; height: 24px; color: var(--accent-cyan); }

/* ── Number + suffix ── */
.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.4rem;
}
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-suffix {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
}
.stat-suffix-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

/* ── Progress bar ── */
.stat-bar-wrap { height: 4px; background: rgba(0,217,255,0.08); border-radius: 10px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 10px; background: rgba(0,217,255,0.85); width: 0%; transition: width 1.8s ease; }

/* ── Responsive ── */
@media (max-width: 1024px) { .engagement-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 968px) {
    #engagement { padding-bottom: 1rem !important; }
    .engagement-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.9rem !important; }
    .stat-card  {
        padding: 1.25rem 0.9rem !important;
        border-radius: 14px !important;
        min-height: 0 !important;
        display: flex !important; flex-direction: column !important; align-items: center !important;
    }
    .stat-icon-wrap  { width: 38px !important; height: 38px !important; margin-bottom: 0.7rem !important; border-radius: 10px !important; }
    .stat-icon-wrap svg { width: 18px !important; height: 18px !important; }
    .stat-number     { font-size: 1.9rem !important; }
    .stat-suffix     { font-size: 1.2rem !important; }
    .stat-suffix-text { font-size: 0.72rem !important; }
    .stat-label      { font-size: 0.72rem !important; margin-bottom: 0.6rem !important; }
    .stat-bar-wrap   { width: 100% !important; }
}
@media (max-width: 640px) {
    .engagement-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
