/* =================================================================
   CERTIFICATIONS SECTION — PCB RETRO THEME (VARIABLES)
   ================================================================= */

.cert-section {
    padding: 80px 0;

    /* Radial gradient using theme colors */
    background: radial-gradient(
        circle at center,
        var(--x-dark-light) 0%,
        var(--x-dark) 70%
    );

    /* Gold trace divider */
    border-bottom: 1px solid rgba(212, 175, 55, 0.10);
}

.cert-header {
    text-align: center;
    margin-bottom: 60px;
}

.cert-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--x-text);
    margin-bottom: 15px;

    /* Gentle CRT glow */
    text-shadow: 0 0 8px rgba(41, 255, 65, 0.12);
}

.cert-header p {
    font-size: 16px;
    color: var(--x-text-muted);
    font-weight: 300;
}

/* --- LOGO GRID --- */
.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* --- GLASS CARDS --- */
.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--x-border);
    border-radius: 16px;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 200px;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.cert-card img {
    max-height: 60px;
    max-width: 100%;
    transition: all 0.3s ease;

    /* PCB dimming tone */
    filter: grayscale(100%) opacity(0.5) brightness(1.3);
}

/* --- HOVER EFFECTS --- */
.cert-card:hover {
    transform: translateY(-5px);

    /* Slight brightening with PCB feel */
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--x-blue); /* Gold border highlight */

    /* Retro shadow */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.cert-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Light sweep animation */
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    /* Gold-ish sweep instead of white */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.08),
        transparent
    );

    transition: 0.5s;
}

.cert-card:hover::before {
    left: 100%;
}

/* --- RESPONSIVE --- */
@media only screen and (max-width: 768px) {
    .cert-grid {
        gap: 15px;
    }

    .cert-card {
        width: 45%;
        height: 100px;
        padding: 15px;
    }

    .cert-card img {
        max-height: 45px;
    }
}
