.projects-section {
    height: 100dvh;   
    overflow: hidden;
}

.projects-section-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.projects-section-container:-webkit-scrollbar {
    display: none;
}

.project-card {
    transition: 0.5s ease-in-out;
    overflow: hidden;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.project-card legend {
    opacity: 0%;
}

.project-stacks-container {
    transition: 0.6s ease-in-out;
}

.project-stack {
    background-color: var(--white-bg);
    height: 100%;
    min-height: 100%;
    width: 30%;
    min-width: 30%;
}

.project-card button {
    background-color: var(--highlights);
    border: unset;
    font-family: var(--font);
    font-weight: bold;
    border-radius: 5px;
}

@media (max-width: 1440px) {
    .projects-section {
        margin-top: 180px;
        text-align: center;
        flex-direction: column;
        padding: 0% 5%;
        align-items: center;
        justify-content: center;
    }

    .projects-section-container {
        display: flex;
        flex-direction: row;
        column-gap: 20px;
        height: 70%;
    }

    .projects-section-container legend {
        opacity: 100%;
    }

    .project-stack {
        min-height: 60px;
        min-width: 60px;
    }

    .project-card {
        background-color: var(--bg-secondary);
        border-radius: 5px;
        flex-direction: column;
        row-gap: 15px;
        min-width: 50%;
        flex: 0 0 60%;
        justify-content: center;
        align-items: center;
    }

    .project-card legend {
        width: 90%;
    }

    .project-card button {
        padding: 3%;
        width: 30%;
        font-size: 18px;
    }
}

@media (max-width: 1025px) {
    .project-card button {
        width: 50%;
    }
}


@media (max-width: 770px) {
    .projects-section {
        display: flex;
        flex-direction: column;
    }

    .projects-section-container {
        display: flex;
        justify-content: space-around;
        column-gap: 20px;
    }

    .project-card {
        flex: 0 0 50%;
        min-width: 40%;
        padding: 1.5%;
        padding-bottom: 3%;
        row-gap: 10px;
    }

    .project-stacks-container {
        height: 20%;
    }

    .project-stack {
        min-height: 80px;
        background-color: var(--white-bg);
    }

    .project-card button {
        padding-top: 5%;
        padding: 5%;
    }
}

@media (max-width: 440px) {
    
    .projects-section {
        height: 100dvh;
        display: flex;
        flex-direction: column;
        padding: 0% 5%;
        align-items: center;
        justify-content: center;
        row-gap: 20px;
    }

    .projects-section-container {
        height: 100%;
        display: flex;
        column-gap: 5%;
        justify-content: space-around;
    }

    .project-card {
        background-color: var(--bg-secondary);
        padding: 4%;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
        row-gap: 10px;
        flex: 0 0 85%;
        height: 40%;
        justify-content: flex-start;
    }

    .project-stacks-container {
        display: flex;
        width: 100%;
        height: 17%;
        opacity: 0%;
        justify-content: center;
    }

    .project-card button {
        padding: 3%;
        width: 50%;
        font-size: 17px;
    }

}