/* =========================================================
   PROJECTS SECTION
   Modern / Professional / Responsive
========================================================= */


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

#projects {
    width: 100%;

    padding: 110px 0;

    background: #ffffff;

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.projects-container {
    width: min(1200px, 90%);

    margin: 0 auto;
}


/* =========================================================
   PROJECTS HEADER
========================================================= */

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 50px;
}


.projects-header > div {
    flex: 1;
}


.projects-header p {
    max-width: 430px;

    margin: 0 0 3px;

    color: #667085;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.75;
}


/* =========================================================
   PROJECT LABEL
========================================================= */

.projects-label {
    display: inline-block;

    margin-bottom: 13px;

    color: #0057d9;

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

    letter-spacing: 1.5px;

    line-height: 1.4;
}


/* =========================================================
   PROJECTS HEADING
========================================================= */

.projects-header h2 {
    margin: 0;

    color: #111827;

    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1.4px;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.projects-grid {
    display: grid;

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

    gap: 22px;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {
    overflow: hidden;

    border: 1px solid #e2e7ef;
    border-radius: 13px;

    background: #ffffff;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);

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


.project-card:hover {
    border-color: #cbd9ee;

    transform: translateY(-6px);

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eef2f7;
}


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

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}


.project-card:hover .project-image img {
    transform: scale(1.04);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
    padding: 25px;
}


/* =========================================================
   PROJECT TAGS
========================================================= */

.project-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 15px;
}


.project-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 0 9px;

    border: 1px solid #d9e4f5;
    border-radius: 5px;

    background: #f4f8ff;
    color: #0057d9;

    box-sizing: border-box;

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

    letter-spacing: 0.5px;

    line-height: 1;
}


/* =========================================================
   PROJECT TITLE
========================================================= */

.project-content h3 {
    margin: 0;

    color: #1f2937;

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

    line-height: 1.35;

    letter-spacing: -0.4px;
}


/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.project-content > p {
    margin: 12px 0 0;

    color: #667085;

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

    line-height: 1.8;
}


/* =========================================================
   PROJECT FOOTER
========================================================= */

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid #edf0f4;
}


/* =========================================================
   PROJECT LINK
========================================================= */

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #0057d9;

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

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.project-link i {
    font-size: 11px;

    transition: transform 0.25s ease;
}


.project-link:hover {
    color: #003f9e;

    transform: translateX(2px);
}


.project-link:hover i {
    transform: translate(2px, -2px);
}


/* =========================================================
   PROJECT CODE
========================================================= */

.project-code {
    display: flex;
    align-items: center;
    cursor: pointer;
}


.project-code a {
    width: 36px;
    height: 36px;

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

    border: 1px solid #dfe4ec;
    border-radius: 7px;

    background: #ffffff;
    color: #374151;

    font-size: 15px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.project-code a:hover {
    border-color: #0057d9;

    background: #0057d9;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   MORE PROJECTS
========================================================= */

.more-projects {
    display: flex;
    justify-content: center;

    margin-top: 42px;
}


.more-projects a {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding-bottom: 5px;

    border-bottom: 1px solid #0057d9;

    color: #0057d9;

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

    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.more-projects a i {
    font-size: 12px;
}


.more-projects a:hover {
    color: #003f9e;

    gap: 14px;
}


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

@media (max-width: 1100px) {

    #projects {
        padding: 90px 0;
    }


    .projects-grid {
        gap: 18px;
    }


    .project-content {
        padding: 22px;
    }


    .project-content h3 {
        font-size: 20px;
    }


    .project-content > p {
        font-size: 13.5px;
    }
}


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

@media (max-width: 900px) {

    #projects {
        padding: 85px 0;
    }


    .projects-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;

        margin-bottom: 42px;
    }


    .projects-header h2 {
        font-size: clamp(30px, 5vw, 40px);
    }


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

        font-size: 14px;
    }


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

        gap: 18px;
    }


    .project-content {
        padding: 22px;
    }


    .project-content h3 {
        font-size: 20px;
    }


    .project-content > p {
        font-size: 13px;
    }
}


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

@media (max-width: 600px) {

    #projects {
        padding: 70px 0;
    }


    .projects-container {
        width: 90%;
    }


    .projects-header {
        margin-bottom: 35px;
    }


    .projects-label {
        margin-bottom: 10px;

        font-size: 10px;

        letter-spacing: 1.2px;
    }


    .projects-header h2 {
        font-size: clamp(28px, 8vw, 35px);

        letter-spacing: -0.9px;
    }


    .projects-header p {
        font-size: 13.5px;

        line-height: 1.7;
    }


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

        gap: 18px;
    }


    .project-card {
        border-radius: 11px;
    }


    .project-content {
        padding: 21px;
    }


    .project-tags {
        gap: 6px;

        margin-bottom: 13px;
    }


    .project-tags span {
        min-height: 24px;

        padding: 0 8px;

        font-size: 8.5px;
    }


    .project-content h3 {
        font-size: 19px;
    }


    .project-content > p {
        margin-top: 10px;

        font-size: 13px;

        line-height: 1.75;
    }


    .project-footer {
        margin-top: 21px;

        padding-top: 16px;
    }


    .project-link {
        font-size: 12.5px;
    }


    .project-code a {
        width: 34px;
        height: 34px;

        font-size: 14px;
    }


    .more-projects {
        margin-top: 32px;
    }


    .more-projects a {
        font-size: 13px;
    }
}


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

@media (max-width: 480px) {

    #projects {
        padding: 60px 0;
    }


    .projects-container {
        width: 92%;
    }


    .projects-header h2 {
        font-size: 28px;
    }


    .projects-header p {
        font-size: 13px;
    }


    .project-content {
        padding: 19px;
    }


    .project-content h3 {
        font-size: 18px;
    }


    .project-content > p {
        font-size: 12.5px;
    }


    .project-tags span {
        font-size: 8px;
    }


    .project-link {
        font-size: 12px;
    }


    .more-projects a {
        font-size: 12px;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .projects-header h2 {
        font-size: 26px;
    }


    .projects-header p {
        font-size: 12px;
    }


    .project-content {
        padding: 17px;
    }


    .project-content h3 {
        font-size: 17px;
    }


    .project-content > p {
        font-size: 12px;
    }


    .project-footer {
        margin-top: 18px;
    }
}