/* =========================================================
   PROJECTS PAGE
========================================================= */


/* HERO */

.projects-hero {
    min-height: 430px;

    padding: 100px 8%;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.28),
            transparent 35%
        ),
        #0b1220;
}

.projects-hero-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}

.projects-hero-content > span {
    display: block;

    margin-bottom: 18px;

    color: #60a5fa;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
}

.projects-hero h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(45px, 6vw, 72px);
    font-weight: 800;

    line-height: 1.05;
}

.projects-hero h1 strong {
    color: #3b82f6;
}

.projects-hero p {
    max-width: 650px;

    margin: 0;

    color: #94a3b8;

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   PROJECT LIST
========================================================= */

.all-projects {
    padding: 100px 8%;

    background: #f8fafc;
}


/* Heading */

.projects-heading {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}

.projects-heading > span {
    color: #2563eb;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
}

.projects-heading h2 {
    margin: 8px 0 12px;

    color: #0f172a;

    font-size: 42px;
    font-weight: 800;
}

.projects-heading p {
    margin: 0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.7;
}


/* Grid */

.projects-list {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* Card */

.portfolio-card {
    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.12);
}


/* Image */

.portfolio-image {
    position: relative;

    width: 100%;
    height: 240px;

    overflow: hidden;

    background: #e2e8f0;
}

.portfolio-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.portfolio-card:hover
.portfolio-image img {
    transform: scale(1.06);
}


/* Category */

.portfolio-category {
    position: absolute;

    top: 16px;
    left: 16px;

    padding: 7px 12px;

    background:
        rgba(15, 23, 42, 0.88);

    color: #ffffff;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;

    backdrop-filter: blur(5px);
}


/* No Image */

.portfolio-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #2563eb
        );

    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
}


/* Content */

.portfolio-content {
    padding: 27px;
}

.portfolio-content h2 {
    margin: 0 0 12px;

    color: #0f172a;

    font-size: 22px;
    font-weight: 750;
}

.portfolio-content p {
    margin: 0 0 20px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.75;
}


/* Technology */

.portfolio-tech {
    margin-bottom: 22px;
}

.portfolio-tech span {
    display: inline-block;

    padding: 7px 11px;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;
}


/* Button */

.portfolio-btn {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #2563eb;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.portfolio-btn:hover {
    gap: 12px;

    color: #1d4ed8;
}


/* Empty */

.projects-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;
}

.projects-empty h2 {
    margin-bottom: 10px;

    color: #0f172a;
}

.projects-empty p {
    color: #64748b;
}


/* =========================================================
   CTA
========================================================= */

.projects-cta {
    padding: 90px 8%;

    text-align: center;

    background: #0b1220;
}

.projects-cta > span {
    color: #60a5fa;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
}

.projects-cta h2 {
    margin: 10px 0 15px;

    color: #ffffff;

    font-size: 40px;
    font-weight: 800;
}

.projects-cta p {
    margin: 0 0 28px;

    color: #94a3b8;

    font-size: 16px;
}

.projects-cta a {
    display: inline-block;

    padding: 13px 23px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.projects-cta a:hover {
    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .projects-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .projects-hero {
        min-height: 350px;

        padding: 70px 6%;
    }

    .projects-hero {
        text-align: center;
    }

    .projects-hero p {
        margin-left: auto;
        margin-right: auto;
    }


    .all-projects {
        padding: 70px 6%;
    }

    .projects-heading {
        margin-bottom: 40px;
    }

    .projects-heading h2 {
        font-size: 34px;
    }


    .projects-list {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .portfolio-image {
        height: 220px;
    }

    .portfolio-content {
        padding: 23px;
    }


    .projects-cta {
        padding: 70px 6%;
    }

    .projects-cta h2 {
        font-size: 32px;
    }

}