/*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
.index-projects-section {
    width: 100%;
    height: auto;
    padding: 104px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 104px;
}

.projects-section {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 228px 8px 80px 8px;
}

.projects-tabs-container {
    margin-top: 120px;
    width: 100%;
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--grey-15);
}

.projects-tabs-container::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cfilter id='noise-news' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.85' numOctaves='1' seed='7' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='saturate' values='0' result='mono'/%3E%3CfeComponentTransfer in='mono' result='threshold'%3E%3CfeFuncR type='discrete' tableValues='0 0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 0 1'/%3E%3CfeFuncA type='table' tableValues='0 0.25'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='64' height='64' fill='%23000000' filter='url(%23noise-news)'/%3E%3C/svg%3E");
    background-size: 96px 96px;
    background-repeat: repeat;
    background-position: 0 0;
    opacity: 0.8;
    pointer-events: none;
    mix-blend-mode: multiply;
    animation: service-noise-live 16s ease-in-out infinite alternate;
    will-change: transform, background-position, opacity;
    transform: translate3d(0, 0, 0) scale(1.02);
}

.project-tabs-width-container {
    width: 1280px;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.project-categories-title {
    font-size: 14px;
    font-weight: var(--bold);
    color: var(--text-70);
    text-transform: uppercase;
}

.project-categories-tabs-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.project-cattegory-tab {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: var(--semiBold);
    color: var(--white);
    border: solid 1px var(--text-70);
    transition: 0.5s;
}

.project-cattegory-tab.active {
    background-color: var(--grey-3);
    border: solid 1px #333333;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.65);

}


.project-cattegory-tab:is(:hover, :focus-visible, :focus-within) {
    background-color: var(--grey-10);
    border: solid 1px #333333;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.65);

}



.projects-page-section-main-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 80px;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #161616;
}

.projects-page-section-main-container::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cfilter id='noise-news' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.85' numOctaves='1' seed='7' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='saturate' values='0' result='mono'/%3E%3CfeComponentTransfer in='mono' result='threshold'%3E%3CfeFuncR type='discrete' tableValues='0 0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 0 1'/%3E%3CfeFuncA type='table' tableValues='0 0.25'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='64' height='64' fill='%23000000' filter='url(%23noise-news)'/%3E%3C/svg%3E");
    background-size: 96px 96px;
    background-repeat: repeat;
    background-position: 0 0;
    opacity: 0.8;
    pointer-events: none;
    mix-blend-mode: multiply;
    animation: service-noise-live 16s ease-in-out infinite alternate;
    will-change: transform, background-position, opacity;
    transform: translate3d(0, 0, 0) scale(1.02);
}

.projects-main-container {
    width: 1280px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 64px;
}

.projects-grid-container {
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.projects-grid-container.index {

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.single-project {
    width: 100%;
    height: 432px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 40px 32px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


.projects-grid-container.index .single-project {
    width: 100%;
    height: 624px;
    padding: 56px 48px;


}

/* Scale a separate image layer so cover cropping and card dimensions stay stable. */
.single-project::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: inherit;
    background-position: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.single-project:is(:hover, :focus-visible, :focus-within)::after {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .single-project::after {
        transition: none;
    }

    .single-project:is(:hover, :focus-visible, :focus-within)::after {
        transform: none;
    }
}



.single-project::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}


.projects-grid-container.index .project-type {
    font-size: 18px;
    font-weight: var(--semiBold);
    letter-spacing: -1%;
    color: var(--white);
}


.project-type {
    font-size: 16px;
    font-weight: var(--semiBold);
    letter-spacing: -1%;
    color: var(--white);
}


.projects-grid-container.index .project-name {
    font-size: 24px;
    font-weight: var(--extraBold);
    letter-spacing: -1%;
    color: var(--white);
}

.project-name {
    font-size: 20px;
    font-weight: var(--extraBold);
    letter-spacing: -1%;
    color: var(--white);
}

.single-project[hidden],
.projects-load-more[hidden] {
    display: none;
}

.projects-empty-state {
    width: 100%;
    padding: 48px 24px;
    color: var(--text-50);
    font-size: 18px;
    font-weight: var(--semiBold);
    line-height: 140%;
    text-align: center;
}

.projects-load-more {
    cursor: pointer;
}

@media(max-width: 1320px) {
    .project-tabs-width-container {
        width: 1000px;
    }
}

@media(max-width: 1080px) {
    .projects-section {
        padding-right: 32px;
        padding-left: 32px;
    }

    .projects-tabs-container {
        height: auto;
        padding: 24px 0;
    }

    .project-tabs-width-container {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .project-categories-tabs-container {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .project-cattegory-tab {
        flex: 0 0 auto;
    }

    .projects-page-section-main-container {
        padding-right: 32px;
        padding-left: 32px;
    }

    .projects-grid-container:not(.index) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media(max-width: 700px) {
    .projects-section {
        padding: 180px 20px 64px;
    }

    .projects-tabs-container {
        margin-top: 72px;
    }

    .projects-page-section-main-container {
        padding: 48px 20px;
    }

    .projects-grid-container:not(.index) {
        grid-template-columns: minmax(0, 1fr);
    }

    .projects-grid-container:not(.index) .single-project {
        height: 480px;
        padding: 32px 24px;
    }
}

@media(max-width: 500px) {
    .projects-section {
        padding-right: 16px;
        padding-left: 16px;
    }

    .projects-page-section-main-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .projects-grid-container:not(.index) .single-project {
        height: 400px;
    }
}

@media(max-width: 1320px) {

    /*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
    .index-projects-section {

        padding: 104px 0;

        gap: 104px;
    }


    .projects-main-container {
        width: 1000px;
        gap: 64px;
    }

    .projects-grid-container.index {

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }



    .projects-grid-container.index .single-project {
        width: 100%;
        height: 560px;
        padding: 56px 32px;


    }


    .projects-grid-container.index .project-type {
        font-size: 18px;
        font-weight: var(--semiBold);
        letter-spacing: -1%;
        color: var(--white);
    }




    .projects-grid-container.index .project-name {
        font-size: 24px;
        font-weight: var(--extraBold);
        letter-spacing: -1%;
        color: var(--white);
    }

}


@media(max-width: 1080px) {

    /*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
    .index-projects-section {

        padding: 104px 48px;
        gap: 80px;
    }


    .projects-main-container {
        width: 100%;
        gap: 64px;
    }

    .projects-grid-container.index {

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }



    .projects-grid-container.index .single-project {
        width: 100%;
        height: 480px;
        padding: 48px 32px;


    }


    .projects-grid-container.index .project-type {
        font-size: 16px;
    }




    .projects-grid-container.index .project-name {
        font-size: 20px;

    }

}


@media(max-width: 970px) {

    /*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
    .index-projects-section {

        padding: 104px 32px;
        gap: 80px;
    }


    .projects-main-container {
        width: 100%;
        gap: 64px;
    }

    .projects-grid-container.index {

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }



    .projects-grid-container.index .single-project {
        width: 100%;
        height: 420px;
        padding: 48px 20px;


    }


    .projects-grid-container.index .project-type {
        font-size: 16px;
    }




    .projects-grid-container.index .project-name {
        font-size: 20px;

    }

}



@media(max-width: 700px) {

    /*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
    .index-projects-section {

        padding: 64px 20px;
        gap: 64px;
    }


    .projects-main-container {
        width: 100%;
        gap: 48px;
    }

    .projects-grid-container.index {

        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }



    .projects-grid-container.index .single-project {
        width: 100%;
        height: 620px;
        padding: 48px 24px;


    }


    .projects-grid-container.index .project-type {
        font-size: 16px;
    }




    .projects-grid-container.index .project-name {
        font-size: 20px;

    }

}




@media(max-width: 500px) {

    /*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
    .index-projects-section {

        padding: 64px 16px;
        gap: 64px;
    }


    .projects-main-container {
        width: 100%;
        gap: 48px;
    }

    .projects-grid-container.index {

        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }



    .projects-grid-container.index .single-project {
        width: 100%;
        height: 400px;
        padding: 32px 24px;


    }


    .projects-grid-container.index .project-type {
        font-size: 14px;
    }




    .projects-grid-container.index .project-name {
        font-size: 18px;

    }

}
