





/* =========================================
   PORTFOLIO
========================================= */

.portfolio-section {
    padding: 120px 0;
    background: #fff;
}

.portfolio-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


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

.portfolio-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.portfolio-heading__label {
    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;

    color: #765087;
}

.portfolio-heading__title {
    margin: 0 0 18px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 500;

    color: #1d2c3d;
}

.portfolio-heading__description {
    max-width: 600px;
    margin: 0;

    font-size: 17px;
    line-height: 1.7;

    color: #77727a;
}


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

.portfolio-grid {
    display: grid;

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

    gap: 56px 28px;
}


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

.project-card {
    min-width: 0;
}

.project-card__link {
    display: block;

    color: inherit;
    text-decoration: none;
}


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

.project-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 18 / 12;
    overflow: hidden;
    border-radius: 14px;

    background: #f4f2f4;

    box-shadow:
        0 12px 35px rgba(29, 44, 61, 0.10),
        0 3px 10px rgba(29, 44, 61, 0.05);

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

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}



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

.project-card__content {
    padding: 22px 4px 0;
}

.project-card__title {
    margin: 0 0 8px;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;

    color: #1d2c3d;
}

.project-card__description {
    max-width: 520px;

    margin-bottom: 16px;

    font-size: 14px;
    line-height: 1.6;

    color: #77727a;
}


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

.project-card__tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;
}

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

    padding: 6px 10px;

    border: 1px solid #e3d9e7;
    border-radius: 20px;

    font-size: 11px;
    line-height: 1;

    color: #765087;
    background: #fff;
}


/* =========================================
   BOTTOM
========================================= */

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

    padding-top: 15px;

    border-top: 1px solid #ece9ec;
}

.project-card__more {
    font-size: 13px;
    font-weight: 500;

    color: #1d2c3d;
}

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

    width: 30px;
    height: 30px;

    border: 1px solid #ddd7df;
    border-radius: 50%;

    font-size: 15px;

    color: #765087;

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

.project-card__link:hover .project-card__arrow {
    background: #765087;
    color: #fff;

    transform: translate(2px, -2px);
}


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

@media (max-width: 700px) {

    .portfolio-section {
        padding: 80px 0;
    }

    .portfolio-container {
        width: min(100% - 40px, 600px);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .portfolio-heading__title {
        font-size: 40px;
    }

    .project-card__title {
        font-size: 22px;
    }

}





/* =========================================
   FILTERS
========================================= */

.portfolio-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 55px;
}


.portfolio-filter {
    appearance: none;
    -webkit-appearance: none;

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

    min-height: 38px;

    padding: 0 16px;

    border: 1px solid #ded9df !important;
    border-radius: 100px !important;

    background: #ffffff !important;

    color: #625d64 !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1;

    cursor: pointer;

    box-shadow: none !important;

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


.portfolio-filter:hover {
    border-color: #765087 !important;

    color: #765087 !important;

    transform: translateY(-1px);
}


.portfolio-filter.is-active {
    border-color: #765087 !important;

    background: #765087 !important;

    color: #ffffff !important;
}


/* =========================================
   FILTERS — MOBILE
========================================= */

@media (max-width: 700px) {

    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;

        gap: 8px;

        margin-bottom: 40px;

        overflow: visible;
        padding: 0;
    }


    .portfolio-filter {
        flex: 0 0 auto;

        white-space: nowrap;
    }

}






.project-card.is-hidden {
    display: none !important;
}