.projects {
    display: flex;
    flex-direction: column;
    gap: var(--space6);
    list-style: none;
    padding: 0px;

    .project_box {
        display: block;
        background-color: var(--card_bg);
        padding: var(--space3);
        border-radius: var(--space3);
        height: 300px;
        width: 100%;

        &.main_project {
            background-color: var(--primary);
        }

        .content_container {
            display: flex;
            flex-direction: column;
            text-align: left;
            justify-content: space-between;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            height: 100%;
            padding: var(--space3);
            border-radius: var(--space2);
        }

        h5 {
            color: white;
            font-size: 1.2rem;
        }

        p {
            color: white;
        }

        .tags {
            display: flex;
            justify-content: end;
            gap: 12px;

            p {
                color: var(--text-light);
                border-radius: 50px;
                border: 1px solid var(--text-light);
                padding: 0px 22px;
            }
        }
    }
}

.project_details {
    padding: 2rem 0;
}

.project_details section {
    margin: 3rem 0;
}

.project_details p {
    margin-bottom: 30px;
}

.project_details h1 {
    font-weight: bold;
    text-align: center;
    font-size: var(--text2);
}

.project_details h2 {
    margin-bottom: 15px;
}

.proj_image {
    background-color: black;
    border: 2px solid var(--primary);
    /* height: 450px; */
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj_image video {
    width: 100%;
    height: 100%;
}

.problem {
    display: flex;
    gap: 60px;
}

.problem h3 {
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary);
}

.problem ul {
    margin-top: 0;
    margin-bottom: 10px;
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    flex-wrap: wrap;
}

.problem ul li {
    font-size: 10px;
    padding: 0px 20px;
    border-radius: 30px;
    border: 1px solid slateblue;
    text-transform: uppercase;
    text-wrap: nowrap;
}

.solution_image {
    background-color: black;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution_image img {
    width: 100%;
    height: auto;
}

.projects_links {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.projects_links .each {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--card_bg);
    padding: var(--space3);
    border-radius: 12px;
}

.projects_links p {
    margin: 0;
    font-weight: bold;
    color: var(text);
}

.projects_links .each a {
    color: var(--primary);
}

.work {
    background-color: var(--primary);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.work h3 {
    color: var(--text-light);
}

@media screen and (max-width: 762px) {

    .project_details h1 {
        text-align: left;
    }

    .problem {
        flex-direction: column;
    }
}

@media screen and (max-width: 550px) {
    .projects_links {
        flex-direction: column;
    }
}
