/* ======== CERTIFICATIONS SECTION ======== */

.cert-section {
    padding: 80px 0;
    /* Subtle radial gradient for depth */
    background: radial-gradient(circle at center, #1F2937 0%, #111827 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.cert-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.cert-header p {
    font-size: 16px;
    color: #9CA3AF; /* Muted Grey */
    font-weight: 300;
}

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

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

.cert-card img {
    max-height: 60px;
    max-width: 100%;
    /* Start Grayscale & Dimmed */
    /* filter: grayscale(100%) opacity(0.6); */
    transition: all 0.3s ease;
}

/* --- HOVER EFFECTS --- */
.cert-card:hover {
    transform: translateY(-5px); /* Lift up */
    background: rgba(255, 255, 255, 0.06); /* Slightly lighter */
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); /* Shadow drop */
}

.cert-card:hover img {
    /* Reveal Color & Full Opacity */
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1); /* Slight zoom */
}

/* Add a subtle glow line on hover (Optional, removes if too flashy) */
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), 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%; /* 2 per row on mobile */
        height: 100px;
        padding: 15px;
    }

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