/* =========================================================
   LEOGN PROJECTS
========================================================= */

.projects-page {
    --projects-blue: #006fca;
    --projects-black: #080808;
    --projects-text: #111111;
    --projects-muted: #777777;
    --projects-border: #e7e7e7;
    --projects-soft: #f5f5f5;

    background: #ffffff;

    color: var(--projects-text);
}


.projects-container {
    width: min(92%, 1320px);

    margin: 0 auto;
}


/* =========================================================
   Fix Navbar Stacking
========================================================= */

.navbar-wrapper {
    position: relative;

    z-index: 1000;
}


/* =========================================================
   Existing LEOGN Services Dropdown
========================================================= */

.dropdown {
    position: relative;

    display: flex;
    flex-direction: column;
}


.dropdown-menu {
    display: none;

    width: 100%;

    padding: 10px 0;

    overflow: hidden;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.10);

    opacity: 0;

    max-height: 0;

    transition:
        max-height 0.3s ease,
        opacity 0.3s ease;
}


.dropdown-menu a {
    display: block;

    padding: 12px 20px;

    color: #333333;

    font-size: 14px;

    text-decoration: none;

    transition:
        background 0.2s ease;
}


.dropdown-menu a:hover {
    background: #f6f6f6;
}


.dropdown-icon {
    margin-left: 5px;

    font-size: 10px;
}


@media (min-width: 992px) {

    .dropdown:hover
    .dropdown-menu {

        position: absolute;

        top: 100%;
        left: 0;

        display: block;

        min-width: 230px;

        max-height: none;

        opacity: 1;
    }

}


/* =========================================================
   HERO
========================================================= */

.projects-hero {
    padding:
        clamp(55px, 11vw, 55px)
        0
        clamp(65px, 8vw, 110px);
}


.projects-hero .projects-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        220px;

    gap: 80px;

    align-items: end;
}


.projects-hero-copy {
    max-width: 930px;
}


.projects-eyebrow {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 23px;

    color: #727272;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.projects-eyebrow span {
    width: 27px;
    height: 1px;

    background: var(--projects-blue);
}


.projects-hero h1 {
    max-width: 980px;

    margin: 0;

    color: #080808;

    font-size:
        clamp(50px, 6.7vw, 104px);

    font-weight: 500;

    line-height: 0.96;

    letter-spacing: -0.06em;
}


.projects-hero h1 span {
    display: block;

    color: #8b8b8b;
}


.projects-hero-copy > p {
    max-width: 610px;

    margin:
        clamp(28px, 4vw, 52px)
        0
        0;

    color: #666666;

    font-size:
        clamp(15px, 1.25vw, 18px);

    line-height: 1.7;
}


.projects-hero-meta {
    padding-bottom: 5px;
}


.projects-hero-meta > span {
    display: block;

    margin-bottom: 13px;

    color: #999999;

    font-size: 17px;
    font-weight: 600;

    letter-spacing: 0.15em;
}


.projects-hero-meta strong {
    display: block;

    margin-bottom: 8px;

    color: #080808;

    font-size: 47px;
    font-weight: 500;

    line-height: 1;
}


.projects-hero-meta p {
    margin: 0;

    color: #858585;

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   FILTERS
========================================================= */

.projects-filter-section {
    position: sticky;

    top: 0;

    z-index: 50;

    padding: 13px 0;

    border-top:
        1px solid
        var(--projects-border);

    border-bottom:
        1px solid
        var(--projects-border);

    background:
        rgba(255, 255, 255, 0.93);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);
}


.projects-filter-scroll {
    display: flex;
    align-items: center;

    gap: 7px;

    overflow-x: auto;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}


.projects-filter-scroll::-webkit-scrollbar {
    display: none;
}


.project-filter {
    flex: 0 0 auto;

    min-height: 38px;

    padding: 0 17px;

    border:
        1px solid
        #dedede;

    border-radius: 100px;

    background: #ffffff;

    color: #666666;

    font-family: inherit;

    font-size: 11px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.project-filter:hover {
    border-color: #bfbfbf;

    color: #111111;
}


.project-filter.active {
    border-color: #080808;

    background: #080808;

    color: #ffffff;
}


/* =========================================================
   PROJECT SHOWCASE
========================================================= */

.projects-showcase {
    padding:
        clamp(32px, 7vw, 32px)
        0
        clamp(90px, 10vw, 90px);
}


.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        clamp(49px, 7vw, 49px)
        clamp(20px, 3vw, 46px);
}


.public-project-card[hidden] {
    display: none !important;
}


.public-project-link {
    display: block;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.public-project-image {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius:
        clamp(14px, 1.6vw, 25px);

    background: #eeeeee;
}


.public-project-image > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}


.public-project-link:hover
.public-project-image > img {
    transform: scale(1.035);
}


.project-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #efefef,
            #dcdcdc
        );
}


.project-image-placeholder span {
    color: #a2a2a2;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.15em;
}


.featured-project-label {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 8px 12px;

    border:
        1px solid
        rgba(255,255,255,0.35);

    border-radius: 100px;

    background:
        rgba(0,0,0,0.56);

    color: #ffffff;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.05em;
}


.project-view-button {
    position: absolute;

    right: 18px;
    bottom: 18px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        10px
        13px;

    border-radius: 100px;

    background:
        rgba(255,255,255,0.93);

    color: #0c0c0c;

    opacity: 0;

    transform:
        translateY(7px);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.project-view-button span {
    font-size: 9px;
    font-weight: 600;
}


.project-view-button svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
}


.public-project-link:hover
.project-view-button {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.public-project-content {
    padding:
        21px
        3px
        0;
}


.public-project-meta {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;

    color: #00a7a6;

    font-size: 20px;
    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.public-project-content h2 {
    margin: 0;

    color: #111111;

    font-size:
        clamp(25px, 2.4vw, 37px);

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -0.035em;
}


.public-project-content > p {
    max-width: 560px;

    margin:
        -4px
        0
        0;

    color: #757575;

    font-size: 20px;

    line-height: 1.7;
}


.project-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 5px;
    padding-top: 0px;

    border-top:
        1px solid
        #e9e9e9;
}


.project-card-bottom > span {
    color: #8a8a8a;

    font-size: 10px;
}


.project-card-arrow {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        #dddddd;

    border-radius: 50%;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.project-card-arrow svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
}


.public-project-link:hover
.project-card-arrow {
    border-color: #080808;

    background: #080808;

    color: #ffffff;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.public-projects-empty,
.filter-empty {
    padding:
        100px
        20px;

    text-align: center;
}


.public-projects-empty > span {
    display: block;

    margin-bottom: 15px;

    color: var(--projects-blue);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.15em;
}


.public-projects-empty h2,
.filter-empty h3 {
    margin: 0 0 12px;

    font-size:
        clamp(30px, 4vw, 50px);

    font-weight: 500;

    letter-spacing: -0.04em;
}


.public-projects-empty p,
.filter-empty p {
    max-width: 520px;

    margin: 0 auto;

    color: #777777;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.projects-cta {
    padding:
        0
        0
        clamp(70px, 9vw, 125px);
}


.projects-cta-inner {
    min-height: 390px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    padding:
        clamp(35px, 5vw, 70px);

    overflow: hidden;

    border-radius:
        clamp(20px, 2vw, 32px);

    background: #080808;

    color: #ffffff;
}


.projects-cta-eyebrow {
    display: block;

    margin-bottom: 17px;

    color: #7bbff6;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.15em;
}


.projects-cta h2 {
    max-width: 670px;

    margin: 0;

    font-size:
        clamp(42px, 5vw, 78px);

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.projects-cta p {
    max-width: 500px;

    margin:
        22px
        0
        0;

    color: #a8a8a8;

    font-size: 13px;

    line-height: 1.7;
}


.projects-cta-button {
    flex: 0 0 auto;

    width: 150px;
    height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 20px;

    border-radius: 50%;

    background:
        var(--projects-blue);

    color: #ffffff;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.projects-cta-button:hover {
    transform:
        scale(1.04);

    background: #057ad7;
}


.projects-cta-button span {
    font-size: 11px;
    font-weight: 600;
}


.projects-cta-button svg {
    width: 27px;
    height: 27px;

    align-self: flex-end;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.3;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .dropdown {
        align-items: flex-start;
    }


    .dropdown
    .nav-menu-link {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: flex-start;

        text-align: left !important;
    }


    .dropdown-icon {
        margin-left: auto;

        padding-left: 15px;

        cursor: pointer;

        transition:
            transform 0.3s ease;
    }


    .dropdown-menu {
        width: 100%;
    }


    .dropdown.active
    .dropdown-menu {
        display: block;

        max-height: 500px;

        opacity: 1;
    }


    .dropdown.active
    .dropdown-icon {
        transform: rotate(180deg);
    }


    .projects-hero
    .projects-container {

        grid-template-columns: 1fr;

        gap: 48px;
    }


    .projects-hero-meta {
        display: none;
    }


    .projects-grid {
        gap:
            65px
            22px;
    }


    .projects-cta-inner {
        min-height: 340px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .projects-container {
        width:
            calc(100% - 32px);
    }


    .projects-hero {
        padding:
            90px
            0
            54px;
    }


    .projects-eyebrow {
        margin-bottom: 19px;

        font-size: 9px;
    }


    .projects-hero h1 {
        font-size:
            clamp(46px, 13vw, 67px);

        line-height: 0.98;
    }


    .projects-hero-copy > p {
        margin-top: 28px;

        font-size: 14px;

        line-height: 1.65;
    }


    .projects-filter-section {
        padding: 10px 0;
    }


    .project-filter {
        min-height: 36px;

        padding:
            0
            15px;

        font-size: 10px;
    }


    .projects-showcase {
        padding:
            42px
            0
            90px;
    }


    .projects-grid {
        grid-template-columns: 1fr;

        gap: 58px;
    }


    .public-project-image {
        border-radius: 16px;
    }


    .featured-project-label {
        top: 12px;
        left: 12px;
    }


    /*
     * Mobile does not have hover.
     * Keep the project CTA visible.
     */

    .project-view-button {
        right: 12px;
        bottom: 12px;

        opacity: 1;

        transform: none;
    }


    .public-project-content {
        padding-top: 17px;
    }


    .public-project-meta {
        margin-bottom: 10px;
    }


    .public-project-content h2 {
        font-size:
            clamp(28px, 8vw, 38px);
    }


    .public-project-content > p {
        font-size: 12px;
    }


    .projects-cta {
        padding-bottom: 60px;
    }


    .projects-cta-inner {
        min-height: auto;

        display: block;

        padding:
            38px
            25px;

        border-radius: 20px;
    }


    .projects-cta h2 {
        font-size:
            clamp(41px, 12vw, 59px);
    }


    .projects-cta-button {
        width: 100%;
        height: auto;

        flex-direction: row;
        align-items: center;

        margin-top: 38px;

        padding:
            16px
            18px;

        border-radius: 100px;
    }


    .projects-cta-button svg {
        width: 19px;
        height: 19px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .projects-container {
        width:
            calc(100% - 24px);
    }


    .projects-hero {
        padding-top: 76px;
    }


    .projects-hero h1 {
        font-size:
            clamp(42px, 13.5vw, 58px);
    }


    .project-view-button span {
        display: none;
    }


    .project-view-button {
        width: 38px;
        height: 38px;

        justify-content: center;

        padding: 0;
    }


    .public-project-meta {
        font-size: 9px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .public-project-image img,
    .project-card-arrow,
    .project-view-button,
    .projects-cta-button {
        transition: none;
    }

}