/* =========================================================
   DIVINE CREATIONS
   HOME PAGE — PROJECTS / OUR WORK
   ========================================================= */


/* =========================================================
   PROJECTS SECTION
   ========================================================= */

.projects {
    position: relative;
    width: 100%;
    background: #f5f1e8;
    color: #101a31;
    padding: 120px 0 115px;
    overflow: hidden;
}

.projects .container {
    width: min(100% - 128px, 1400px);
    margin: 0 auto;
}


/* =========================================================
   SECTION INTRO
   ========================================================= */

.projects .section-tag {
    display: block;

    margin: 0 0 18px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 4px;
    text-transform: uppercase;

    color: #cda766;
}

.projects .section-title {
    max-width: 850px;

    margin: 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -2px;

    color: #101a31;
}


/* =========================================================
   FILTER TABS
   ========================================================= */

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 38px;

    margin-top: 52px;

    padding-bottom: 17px;

    border-bottom: 1px solid rgba(16, 26, 49, 0.15);

    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tabs button {
    position: relative;

    flex: 0 0 auto;

    padding: 0 0 15px;

    border: 0;
    outline: 0;

    background: transparent;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: rgba(16, 26, 49, 0.58);

    cursor: pointer;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.filter-tabs button:hover {
    color: #101a31;
}

.filter-tabs button::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -18px;

    width: 0;
    height: 2px;

    background: #cda766;

    transition: width 0.3s ease;
}

.filter-tabs button.active {
    color: #101a31;
}

.filter-tabs button.active::after {
    width: 100%;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;

    margin-top: 52px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {
    position: relative;

    min-width: 0;

    aspect-ratio: 1.48 / 1;

    overflow: hidden;

    background: #ded9cf;

    cursor: pointer;

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* Slightly varied composition */

.project-card:nth-child(3n + 1) {
    aspect-ratio: 1.55 / 1;
}

.project-card:nth-child(3n + 2) {
    aspect-ratio: 1.38 / 1;
}


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.project-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.045);
}


/* =========================================================
   DARK IMAGE OVERLAY
   ========================================================= */

.project-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(7, 12, 22, 0.78) 0%,
            rgba(7, 12, 22, 0.28) 38%,
            rgba(7, 12, 22, 0) 70%
        );

    pointer-events: none;

    opacity: 0.95;

    transition: opacity 0.4s ease;
}

.project-card:hover::after {
    opacity: 1;
}


/* =========================================================
   PROJECT OVERLAY CONTENT
   ========================================================= */

.project-overlay {
    position: absolute;

    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    padding: 34px 34px 30px;

    color: #ffffff;
}

.project-overlay h4 {
    margin: 0 0 7px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 500;
    line-height: 1.05;

    color: #ffffff;
}

.project-overlay span {
    display: block;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   PROJECT ARROW
   ========================================================= */

.project-overlay::after {
    content: "↗";

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;

    color: #ffffff;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.project-card:hover .project-overlay::after {
    background: #cda766;
    border-color: #cda766;

    color: #101a31;

    transform: translate(3px, -3px);
}


/* =========================================================
   FILTER ANIMATION
   ========================================================= */

.project-card.is-hidden {
    display: none;
}

.project-card.is-filtering {
    opacity: 0;
    transform: translateY(12px);
}


/* =========================================================
   PROJECT CTA
   ========================================================= */

.projects-cta {
    display: flex;
    justify-content: center;

    margin-top: 55px;
}

.projects .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 32px;

    border: 1px solid #cda766;

    background: transparent;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.7px;
    text-transform: uppercase;

    text-decoration: none;

    color: #101a31;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.projects .btn-outline:hover {
    background: #cda766;
    border-color: #cda766;

    color: #101a31;
}


/* =========================================================
   DESKTOP — LARGE
   ========================================================= */

@media (min-width: 1400px) {

    .projects {
        padding: 135px 0 125px;
    }

    .projects .container {
        width: min(100% - 160px, 1450px);
    }

    .projects-grid {
        gap: 32px;
        margin-top: 58px;
    }

    .project-overlay {
        padding: 40px 38px 34px;
    }
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1199px) {

    .projects {
        padding: 100px 0 95px;
    }

    .projects .container {
        width: min(100% - 80px, 1100px);
    }

    .projects .section-title {
        font-size: clamp(48px, 5.5vw, 68px);
    }

    .filter-tabs {
        gap: 30px;
    }

    .projects-grid {
        gap: 24px;
        margin-top: 45px;
    }

    .project-overlay {
        padding: 28px 28px 25px;
    }

    .project-overlay h4 {
        font-size: 28px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .projects {
        padding: 85px 0 80px;
    }

    .projects .container {
        width: min(100% - 56px, 850px);
    }

    .projects .section-title {
        max-width: 700px;

        font-size: clamp(44px, 7vw, 62px);
    }

    .filter-tabs {
        gap: 28px;

        margin-top: 42px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 20px;

        margin-top: 40px;
    }

    .project-card,
    .project-card:nth-child(3n + 1),
    .project-card:nth-child(3n + 2) {
        aspect-ratio: 1.3 / 1;
    }

    .project-overlay {
        padding: 24px 22px 22px;
    }

    .project-overlay h4 {
        font-size: 25px;
    }

    .project-overlay span {
        font-size: 9px;
    }

    .project-overlay::after {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .projects {
        padding: 70px 0 70px;
    }

    .projects .container {
        width: min(100% - 40px, 600px);
    }

    .projects .section-tag {
        margin-bottom: 14px;

        font-size: 9px;
        letter-spacing: 3px;
    }

    .projects .section-title {
        font-size: clamp(42px, 12vw, 56px);

        line-height: 0.98;
        letter-spacing: -1px;
    }

    .filter-tabs {
        gap: 25px;

        margin-top: 36px;
        padding-bottom: 13px;
    }

    .filter-tabs button {
        font-size: 10px;
        letter-spacing: 1.2px;

        padding-bottom: 12px;
    }

    .filter-tabs button::after {
        bottom: -14px;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 34px;
    }

    .project-card,
    .project-card:nth-child(3n + 1),
    .project-card:nth-child(3n + 2) {
        aspect-ratio: 1.15 / 1;
    }

    .project-overlay {
        padding: 24px 20px 20px;

        gap: 15px;
    }

    .project-overlay h4 {
        margin-bottom: 6px;

        font-size: 27px;
    }

    .project-overlay span {
        font-size: 8px;
        letter-spacing: 1.6px;
    }

    .project-overlay::after {
        width: 36px;
        height: 36px;

        font-size: 15px;
    }

    .projects-cta {
        margin-top: 38px;
    }

    .projects .btn-outline {
        min-height: 46px;

        padding: 0 25px;

        font-size: 9px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .projects {
        padding: 60px 0 60px;
    }

    .projects .container {
        width: calc(100% - 30px);
    }

    .filter-tabs {
        gap: 22px;
    }

    .projects-grid {
        gap: 15px;
    }

    .project-card,
    .project-card:nth-child(3n + 1),
    .project-card:nth-child(3n + 2) {
        aspect-ratio: 1 / 1.05;
    }

    .project-overlay {
        padding: 20px 17px 17px;
    }

    .project-overlay h4 {
        font-size: 24px;
    }

    .project-overlay::after {
        width: 34px;
        height: 34px;
    }
}
/* =========================================================
   FINAL PROJECT GRID OVERRIDE
   ========================================================= */

.projects .projects-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 28px !important;
    row-gap: 28px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    overflow: visible !important;
}

.projects .project-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}

.projects .project-card img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;
}


/* Tablet */
@media (max-width: 991px) {

    .projects .projects-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 20px !important;
        row-gap: 20px !important;
    }
}


/* Mobile */
@media (max-width: 767px) {

    .projects .projects-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }
}