/* =========================
   Work Page Hero / Banner
========================= */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    color: #fff;
    background:
        linear-gradient(90deg,
            rgba(6, 12, 24, 0.82) 0%,
            rgba(6, 12, 24, 0.72) 28%,
            rgba(6, 12, 24, 0.48) 48%,
            rgba(6, 12, 24, 0.22) 68%,
            rgba(6, 12, 24, 0.08) 85%,
            rgba(6, 12, 24, 0.03) 100%
        ),
        linear-gradient(180deg,
            rgba(6,12,24,0.35) 0%,
            rgba(6,12,24,0.10) 45%,
            rgba(6,12,24,0.25) 100%
        ),
        url("../../images/work-banner.jpg") center center / cover no-repeat;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(37, 99, 235, 0.12), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.05), transparent 16%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero h1 {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 17px;
    line-height: 1.8;
    color: #dbe7f6;
    max-width: 700px;
}

/* =========================
   Credentials Overview
========================= */
.credentials-overview {
    background: linear-gradient(180deg, #edf2f8 0%, #e6ecf4 100%);
    border-top: 1px solid #dde5ef;
    border-bottom: 1px solid #dfe7f0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.credential-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e4edf7;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: all 0.28s ease;
}

.credential-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.credential-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: #c7dafb;
}

.credential-card h3 {
    font-size: 21px;
    color: var(--dark);
    margin-bottom: 10px;
}

.credential-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

/* =========================
   Work Scope
========================= */
.work-scope {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.scope-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 24px;
    padding: 30px 24px;
    border: 1px solid #e8eef6;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.28s ease;
    overflow: hidden;
    min-height: 250px;
}

.scope-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    opacity: 0.95;
}

.scope-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 68%);
    pointer-events: none;
}

.scope-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(37, 99, 235, 0.12);
    border-color: #c6dafd;
}

.scope-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.scope-subtitle {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.scope-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* =========================
   Project Gallery
========================= */
.project-gallery {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    min-height: 220px;
}

.gallery-large {
    grid-row: span 2;
    min-height: 460px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.02) 0%,
        rgba(15, 23, 42, 0.14) 100%
    );
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.03);
}

.gallery-caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
}

/* =========================
   Certifications
========================= */
.certifications-section {
    background: linear-gradient(180deg, #eef3f8 0%, #e7edf4 100%);
    border-top: 1px solid #dde5ef;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.cert-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #e7edf5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.28s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.1);
    border-color: #c6dafd;
}

.cert-image {
    background: #f8fafc;
    padding: 18px;
    border-bottom: 1px solid #e8eef6;
}

.cert-image a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.cert-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.cert-content {
    padding: 24px;
}

.cert-content h3 {
    font-size: 21px;
    color: var(--dark);
    margin-bottom: 8px;
}

.cert-content p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 14px;
}

.cert-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}

.text-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}
/* =========================
   Work Responsive
========================= */
@media (max-width: 1100px) {
    .credentials-grid,
    .scope-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .page-hero {
        padding: 86px 0 70px;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 320px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cta-box h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .page-desc {
        font-size: 16px;
    }

    .credentials-grid,
    .scope-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-large {
        grid-column: span 1;
        min-height: 260px;
    }

    .gallery-item {
        min-height: 220px;
        border-radius: 18px;
    }

    .credential-card,
    .scope-card,
    .cert-content {
        padding: 22px 20px;
    }

    .cert-image {
        padding: 14px;
    }

    .cta-box {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }
}