/* =====================================================
                    PROJECTS HERO
====================================================== */

.projects-hero {
    position: relative;

    width: 100%;
    min-height: 82vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 120px 20px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.68)
        ),
        url("images/project-hero.jpg");

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


/* =====================================================
                    HERO OVERLAY
====================================================== */

.projects-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.38),
        rgba(0, 0, 0, 0.68)
    );

    z-index: 1;
}


/* =====================================================
                HERO CONTENT
====================================================== */

.projects-hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    text-align: center;

    color: #ffffff;
}


/* =====================================================
                HERO SUBTITLE
====================================================== */

.hero-subtitle {
    display: inline-block;

    margin-bottom: 20px;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 4px;

    color: #d2b46a;
}


/* =====================================================
                    HERO TITLE
====================================================== */

.projects-hero-content h1 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.12;

    font-weight: 600;

    letter-spacing: -0.5px;

    color: #ffffff;
}


/* =====================================================
                    HERO TEXT
====================================================== */

.projects-hero-content p {
    max-width: 760px;

    margin: 30px auto 0;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 15px;

    line-height: 1.9;

    font-weight: 400;

    color: rgba(255, 255, 255, 0.86);
}



/* =====================================================
                SCROLL INDICATOR
====================================================== */

.scroll-indicator {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 35px;

    width: 28px;
    height: 45px;

    transform: translateX(-50%);

    border: 1px solid rgba(255, 255, 255, 0.65);

    border-radius: 20px;
}


.scroll-indicator span {
    position: absolute;

    top: 8px;
    left: 50%;

    width: 4px;
    height: 8px;

    border-radius: 10px;

    background: #d2b46a;

    transform: translateX(-50%);

    animation: scrollDown 1.8s infinite ease-in-out;
}


@keyframes scrollDown {

    0% {
        opacity: 0;

        transform:
            translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;

        transform:
            translate(-50%, 20px);
    }
}



/* =====================================================
            PROJECT CATEGORIES SECTION
====================================================== */

.project-categories {
    width: 100%;

    padding: 110px 20px;

    background: #ffffff;
}


.project-categories-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}



/* =====================================================
                    SECTION HEADING
====================================================== */

.project-categories .section-heading {
    max-width: 760px;

    margin: 0 auto 65px;

    text-align: center;
}


.project-categories .section-heading > span {
    display: inline-block;

    margin-bottom: 17px;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #b08d3c;
}


.project-categories .section-heading h2 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.2;

    font-weight: 600;

    color: #171717;
}


.project-categories .gold-line {
    width: 60px;
    height: 3px;

    margin: 27px auto 28px;

    background: #b08d3c;

    border-radius: 10px;
}


.project-categories .section-heading p {
    max-width: 700px;

    margin: 0 auto;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 15px;

    line-height: 1.85;

    color: #707070;
}



/* =====================================================
                    CATEGORY GRID
====================================================== */

.category-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}



/* =====================================================
                    CATEGORY CARD
====================================================== */

.category-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e8e8e8;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


.category-card:hover {
    transform: translateY(-8px);

    border-color: #d9c99f;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.10);
}



/* =====================================================
                    CATEGORY IMAGE
====================================================== */

.category-image {
    position: relative;

    width: 100%;

    height: 285px;

    overflow: hidden;

    background: #eeeeee;
}


.category-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.65s ease;
}


.category-card:hover .category-image img {
    transform: scale(1.07);
}



/* =====================================================
                    IMAGE OVERLAY
====================================================== */

.image-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    padding-bottom: 25px;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.05) 65%
        );

    opacity: 0;

    transition:
        opacity 0.4s ease;
}


.category-card:hover .image-overlay {
    opacity: 1;
}


.image-overlay span {
    padding: 10px 20px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    font-family: "Poppins", Arial, sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.5px;

    color: #ffffff;

    background: rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(4px);

    transform: translateY(10px);

    transition:
        transform 0.4s ease;
}


.category-card:hover .image-overlay span {
    transform: translateY(0);
}



/* =====================================================
                CATEGORY CONTENT
====================================================== */

.category-content {
    padding: 30px 28px 32px;

    text-align: left;

    background: #ffffff;
}


.category-content h3 {
    margin: 0 0 13px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 22px;

    line-height: 1.3;

    font-weight: 600;

    color: #202020;
}


.category-content p {
    margin: 0;

    font-family: "Poppins", Arial, sans-serif;

    font-size: 14px;

    line-height: 1.8;

    color: #747474;
}



/* =====================================================
                CARD GOLD ACCENT
====================================================== */

.category-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    background: #b08d3c;

    transition:
        width 0.4s ease;
}


.category-card:hover::after {
    width: 100%;
}



/* =====================================================
                TABLET / LARGE SCREEN
====================================================== */

@media (max-width: 1050px) {

    .projects-hero {
        min-height: 75vh;
    }


    .category-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 22px;
    }


    .category-image {
        height: 270px;
    }

}



/* =====================================================
                    TABLET
====================================================== */

@media (max-width: 768px) {

    .projects-hero {
        min-height: 72vh;

        padding: 100px 20px;
    }


    .projects-hero-content {
        max-width: 650px;
    }


    .hero-subtitle {
        font-size: 11px;

        letter-spacing: 3px;

        margin-bottom: 15px;
    }


    .projects-hero-content h1 {
        font-size: 43px;

        line-height: 1.16;
    }


    .projects-hero-content p {
        margin-top: 23px;

        font-size: 14px;

        line-height: 1.8;
    }


    .project-categories {
        padding: 85px 18px;
    }


    .project-categories .section-heading {
        margin-bottom: 48px;
    }


    .project-categories .section-heading h2 {
        font-size: 36px;
    }


    .project-categories .section-heading p {
        font-size: 14px;

        line-height: 1.8;
    }


    .category-grid {
        gap: 18px;
    }


    .category-image {
        height: 245px;
    }


    .category-content {
        padding: 25px 23px 28px;
    }


    .category-content h3 {
        font-size: 20px;
    }


    .category-content p {
        font-size: 13.5px;
    }

}



/* =====================================================
                    MOBILE
====================================================== */

@media (max-width: 600px) {

    .projects-hero {
        min-height: 78vh;

        padding: 90px 17px;
    }


    .projects-overlay {
        background:
            linear-gradient(
                rgba(0, 0, 0, 0.68),
                rgba(0, 0, 0, 0.72)
            );
    }


    .projects-hero-content h1 {
        font-size: 35px;

        line-height: 1.2;
    }


    .projects-hero-content p {
        font-size: 13.5px;

        line-height: 1.8;

        margin-top: 22px;
    }


    .scroll-indicator {
        bottom: 25px;

        width: 25px;
        height: 40px;
    }


    .project-categories {
        padding: 70px 16px;
    }


    .project-categories .section-heading {
        margin-bottom: 40px;
    }


    .project-categories .section-heading > span {
        font-size: 11px;

        letter-spacing: 2.5px;
    }


    .project-categories .section-heading h2 {
        font-size: 30px;

        line-height: 1.25;
    }


    .project-categories .gold-line {
        width: 50px;
        height: 2px;

        margin: 22px auto 25px;
    }


    .project-categories .section-heading p {
        font-size: 13.5px;

        line-height: 1.8;
    }


    .category-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .category-image {
        height: 245px;
    }


    .category-content {
        padding: 25px 22px 28px;
    }


    .category-content h3 {
        font-size: 20px;

        margin-bottom: 11px;
    }


    .category-content p {
        font-size: 13.5px;

        line-height: 1.75;
    }


    /* Always show a subtle overlay on touch devices */

    .image-overlay {
        opacity: 1;

        padding-bottom: 18px;

        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 0.55),
                transparent 55%
            );
    }


    .image-overlay span {
        padding: 8px 15px;

        font-size: 11px;

        transform: translateY(0);

        background: rgba(0, 0, 0, 0.25);
    }

}



/* =====================================================
                SMALL MOBILE
====================================================== */

@media (max-width: 400px) {

    .projects-hero {
        min-height: 80vh;

        padding: 80px 15px;
    }


    .projects-hero-content h1 {
        font-size: 31px;
    }


    .projects-hero-content p {
        font-size: 13px;

        line-height: 1.75;
    }


    .project-categories {
        padding: 60px 14px;
    }


    .project-categories .section-heading h2 {
        font-size: 27px;
    }


    .category-image {
        height: 220px;
    }


    .category-content {
        padding: 23px 20px 26px;
    }

}