/* =========================================================
   PROJECTS SECTION
========================================================= */

.public-projects-section {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #ffffff 100%
        );
}


.public-projects-heading {
    max-width: 760px;

    margin-bottom: 48px;
}


.public-projects-heading.align-center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.public-projects-heading.align-right {
    margin-left: auto;

    text-align: right;
}


/* =========================================================
   GRID
========================================================= */

.public-projects-grid {
    display: grid;

    gap: 22px;
}


.public-projects-grid.columns-2 {
    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );
}


.public-projects-grid.columns-3 {
    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );
}


.public-projects-grid.columns-4 {
    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );
}


/* =========================================================
   CARD
========================================================= */

.public-project-card {
    overflow: hidden;

    border:
        1px solid
        #e8edf4;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 10px 35px
        rgba(
            15,
            23,
            42,
            .045
        );

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.public-project-card:hover {
    transform:
        translateY(-7px);

    border-color:
        #d8d5ff;

    box-shadow:
        0 24px 55px
        rgba(
            15,
            23,
            42,
            .10
        );
}


/* =========================================================
   IMAGE
========================================================= */

.project-card-image {
    position: relative;

    overflow: hidden;

    width: 100%;

    aspect-ratio:
        16 / 10;

    background:
        linear-gradient(
            135deg,
            #eef0ff,
            #ebf8ff
        );
}


.project-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;
}


.public-project-card:hover
.project-card-image img {
    transform:
        scale(1.055);
}


.project-card-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #8d87ff;

    font-size: 42px;
}


.project-card-overlay {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(
                12,
                20,
                37,
                0
            ) 35%,
            rgba(
                12,
                20,
                37,
                .36
            ) 100%
        );
}


/* =========================================================
   CATEGORY
========================================================= */

.project-card-category {
    position: absolute;

    left: 16px;
    bottom: 16px;

    max-width:
        calc(
            100% - 80px
        );

    padding:
        7px 11px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .25
        );

    border-radius: 20px;

    overflow: hidden;

    color: #ffffff;

    background:
        rgba(
            15,
            23,
            42,
            .35
        );

    backdrop-filter:
        blur(10px);

    font-size: 9px;

    font-weight: 600;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   OPEN BUTTON
========================================================= */

.project-card-open {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #283345;

    background:
        rgba(
            255,
            255,
            255,
            .92
        );

    box-shadow:
        0 6px 18px
        rgba(
            15,
            23,
            42,
            .13
        );

    transition:
        transform .2s ease,
        color .2s ease;
}


.project-card-open:hover {
    transform:
        translate(2px,-2px);

    color: #635bff;
}


/* =========================================================
   CONTENT
========================================================= */

.project-card-content {
    padding: 23px 24px 24px;
}


.project-card-client {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 9px;

    color: #8c98a8;

    font-size: 9px;

    font-weight: 500;
}


.project-card-content h3 {
    margin:
        0 0 10px;

    color: #172033;

    font-family:
        'Manrope',
        sans-serif;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 750;

    letter-spacing:
        -.4px;
}


.project-card-content p {
    margin:
        0 0 18px;

    color: #7b8798;

    font-size: 11px;

    line-height: 1.75;
}


/* =========================================================
   TECHNOLOGIES
========================================================= */

.project-card-technologies {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 4px;
}


.project-card-technologies span {
    padding:
        6px 9px;

    border-radius: 20px;

    color: #635bff;

    background: #f1efff;

    font-size: 8px;

    font-weight: 600;
}


/* =========================================================
   LINK
========================================================= */

.project-card-link {
    margin-top: 20px;

    padding-top: 15px;

    border-top:
        1px solid
        #f0f2f6;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    color: #253044;

    font-size: 10px;

    font-weight: 650;

    transition:
        color .2s ease;
}


.project-card-link span {
    width: 31px;
    height: 31px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #635bff;

    background: #f0efff;

    transition:
        transform .2s ease,
        background .2s ease;
}


.project-card-link:hover {
    color: #635bff;
}


.project-card-link:hover span {
    transform:
        translateX(3px);

    background:
        #e5e2ff;
}


/* =========================================================
   EMPTY
========================================================= */

.public-projects-empty {
    min-height: 280px;

    border:
        1px dashed
        #dce2e9;

    border-radius: 22px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        rgba(
            255,
            255,
            255,
            .8
        );
}


.public-projects-empty > div {
    width: 65px;
    height: 65px;

    margin-bottom: 15px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #635bff;

    background: #f0efff;

    font-size: 27px;
}


.public-projects-empty strong {
    color: #475569;

    font-size: 14px;
}


.public-projects-empty span {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .public-projects-grid.columns-4 {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

}


@media (max-width: 850px) {

    .public-projects-grid.columns-3,
    .public-projects-grid.columns-4 {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }


    .public-projects-heading {
        margin-bottom: 35px;
    }

}


@media (max-width: 580px) {

    .public-projects-grid.columns-2,
    .public-projects-grid.columns-3,
    .public-projects-grid.columns-4 {
        grid-template-columns:
            1fr;
    }


    .public-project-card {
        border-radius: 17px;
    }


    .project-card-content {
        padding: 20px;
    }


    .project-card-image {
        aspect-ratio:
            16 / 10;
    }

}