#clients {
    display: inline-block;
    background-repeat: repeat-y;
    background-size: cover;
    padding-bottom: 100px;
}

#clients .header {
    margin-top: 115px;
    margin-bottom: 60px;
}
#clients .header .small {
    font-size: 20px;
    margin-bottom: 15px;
}
#clients .header .big {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
}

#clients .clients_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    row-gap: 10px;
}

#clients .clients_list .client {
    width: calc(100% / 8 - 40px);
    height: 100px;
    margin: 0 20px;
    object-fit: contain;
}

#clients .more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}

.line {
    height: 1px;
    background-color: white;
}

#projects {
    margin-bottom: 120px;
}
#projects .header .small {
    font-size: 20px;
}
#projects .header .big {
    font-size: 48px;
    color: var(--primary);
}

#projects .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
    margin-right: 30px;
    margin-bottom: 20px;
    row-gap: 20px;
}
#projects .categories .category {
    text-wrap: nowrap;
    cursor: url(../images/pointer.svg) , pointer;
    padding: 10px 20px;
    border-radius: 10px;
}
#projects .categories .category.selected {
    color: var(--primary);
    background-color: black;
    box-shadow: 0px 0px 5px 0px rgb(255 255 255 / 17%);
}

#projects .project_tab {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
}
#projects .project_tab.show {
    display: flex;
    animation: fade-in-up 500ms;
}

#projects .project_tab .project {
    width: 350px;
    height: calc(350px * 2/3);
    display: inline-block;
    font-size: 26px;
    margin: 5px;
    cursor: url(../images/pointer.svg) , pointer;
}
#projects .project_tab .project.img {
    background-size: cover;
}

#projects .project_tab .project .cat {
    font-size: 10px;
    background: #0000006e;
    padding: 10px;
    border-radius: 5px;
    margin: 10px;
    text-shadow: 0px 0px 2px rgba(0,0,0,1);
    text-wrap: wrap;
    display: inline-block;
    color: white;
}
#projects .project_tab .project .cat:hover{
    background: var(--background);
}

@media only screen and (max-width: 900px) {
    #clients .clients_list {
        width: calc(100% - (2 * 20px));
        margin: 0 20px;
        row-gap: 20px;
    }
    #clients .header {
        margin-left: 20px;
    }
    #clients .clients_list .client {
        width: calc(100% / 4 - 40px);
    }
    #projects {
        margin: 100px 20px;
        width: calc(100% - (2*20px));
    }
    #projects .project_tab .project {
        width: 350px;
        height: calc(350px * 2/3);
    }
}
