body {
    overflow-x: hidden !important;
}

.projects_container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10vw 5vw;
    max-width: 100%;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 5%;
        background-color: var(--foreground);
        width: 90%;
        height: 1px;
    }
}

.filter {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    z-index: 1;

    >ul {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: .25rem;
        list-style-type: none;

        &::after {
            content: "";
            position: absolute;
            right: -1vw;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 1px;
            height: 90%;
            background-color: var(--secondary-foreground);
            opacity: 0.3;
        }
    }
}

.filter_button {
    background-color: transparent;
    border: none;
    font-size: var(--font-size-content-XS);
    font-weight: var(--font-weight-button);
    color: var(--foreground);
    padding: .5rem .75rem;
    border-radius: .5rem;
    cursor: pointer;

    &:hover {
        background-color: var(--secondary);
    }
}

.selected {
    background-color: var(--secondary);
    font-weight: bolder;
}

.dropdown_container {
    position: relative;
    display: inline-block;
    width: fit-content;
    margin-top: .25rem;
}

.dropdown_menu {
    display: none;
    gap: 0.25rem;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    border-radius: 0.5rem;
    padding: 0.25rem;
    list-style-type: none;
    width: 100%;
}

.svg_button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    transition: transform 250ms ease;

    >svg {
        fill: none !important;
        stroke: var(--foreground);
    }
}

.service_button {
    >svg {
        display: none;
    }
}

.dropdown_button span {
    font-weight: bolder;
}

.dropdown_item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: .75rem;
    background-color: transparent;
    border: none;
    border-radius: .5rem;
    padding: .625rem 1.25rem;
    line-height: 1.25rem;
    width: 100%;
    cursor: pointer;
    white-space: nowrap;

    &:hover {
        background-color: var(--card);
    }
}

.filter_arrow {
    transition: transform 250ms ease;
}

.dropdown_container.show .dropdown_menu {
    display: block;
}

.dropdown_container.show .dropdown_button {
    background-color: var(--secondary);
}

.dropdown_container.show .filter_arrow {
    transform: rotate(180deg);
}

.navigation_wrapper {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.project h3,
.project_title h3 {
    position: relative;
    font-size: var(--font-size-content-S);
    font-weight: var(--font-weight-title);
    text-transform: uppercase;
    line-height: 100%;
    pointer-events: none;
}

#header h3 {
    color: var(--secondary-foreground);
    text-transform: none;
}

.projects {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project,
.project_title {
    width: 100%;
    padding: 3vw 2vw;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--foreground);
    cursor: none;
}

.project a {
    color: var(--foreground);
}

.project a,
.project_title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    cursor: none;

    >div {
        flex: 1;
    }
}

.project_title {
    cursor: auto;
}

.project img {
    position: absolute;
    width: auto;
    height: 400px;
    object-fit: cover;
    top: 50%;
    left: 80%;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.about {
    position: relative;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 5vw;
    padding: 10vw 15vw;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 5%;
        background-color: var(--foreground);
        width: 90%;
        height: 1px;
    }
}

.about_presentation {
    width: 100%;
}

.about_presentation h4 {
    padding-bottom: 1vw;
    font-size: var(--font-size-content-M);
}

.about_presentation h2 {
    font-size: var(--font-size-content-L);
    line-height: 130%;
    font-weight: var(--font-weight-text);
}

@media(max-width: 900px) {

    .type,
    .year {
        display: none;
    }

    .projects_container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5vw;
        padding: 15vw 10vw;
    }

    .filter {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 2vw;

        >ul {
            justify-content: flex-start;

            &::after {
                background-color: transparent;
            }
        }
    }

    .filter_button,
    .dropdown_menu,
    .dropdown_item {
        padding: .25rem .5rem;
        border-radius: .25rem;
    }

    .service_filters,
    .filter_list {
        display: none !important;
    }

    .project,
    .project_title {
        padding: 10vw 5vw;
    }

    .content .planet {
        scale: 0.7;
    }

    .about_presentation h2 {
        width: 100%;
        font-size: var(--font-size-content-M);
    }
}

@media(max-width: 700px) {
    .projects_container {
        min-height: 100dvh;
        justify-content: flex-start;
        padding: 25vw 10vw 15vw 10vw;
    }

    .project img{
        display: none;
    }
}