:root{
    --body-bg-color: #ffff;
    --color-text: black;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    background-color: var(--body-bg-color);
    color: var(--color-text);
}

ul,
nav {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: black;
}

/* Mobile-first approach below */

/* Layout */
.container {
    margin: 0 auto;
    margin-top: 1em;
}

.header-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-flex>* {
    margin-bottom: 1em;
}

.logo-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

nav {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1em;
    padding-bottom: 2em;
}

.reviews {
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.review-title {
    margin-bottom: 1em;
}

.review {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 1em;
}

.main-flex {
    display: flex;
    flex-direction: column;
}


.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-title {
    font-size: 1.5rem;
    padding: 1em 0;
    align-self: stretch;
}

.projects-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.project {
    padding: 1em 0;
    align-self: stretch;
}

.experience-opensource {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.work-experience {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.experience-heading {
    text-align: center;
    border-top: 1px solid black;
    padding-top: 0.5em;
}

.experience {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
}

.open-sources {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
}

.source {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.education {
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: 1em;
}

.education-jjay {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.review-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}



/* Typography */



.item::after {
    content: '/';
    margin-left: 0.5em;
}

.item:last-child::after {
    content: '';
}

.project-title {
    border-top: 1px solid black;
    text-align: center;
}

.project {
    text-align: center;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.experience {
    border: 1px solid black;
}

.open-sources,
.education {
    border-bottom: 1px solid black;
}

.experience-link a {
    color: blue;
}

.source-link a {
    color: blue;
}

.review-title {
    font-size: 1.9rem;
}

.review {
    border: 2px solid black;
    border-radius: 15px;
    padding: 1em;
}

@media (min-width: 900px) {
    .header-flex {
        width: 95%;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-name {
        flex-direction: row;
    }

    .hero {
        min-height: 50vh;
    }

    .main-flex {

        flex-direction: row;
    }

    .main-flex>* {
        flex: 1;
    }

    .projects {
        border: 1px solid black;
    }

    .project-title{
        text-align: start;
        padding-left: 1em;
    }

    .projects-list>* {
        text-align: start;
        flex: 1;
        padding-left: 1em;
    }

    .projects-list:last-child {
        flex: 2;
    }

    .experience-opensource {
        flex: 2;
    }

    .work-experience {
        flex: 1;
    }

    .open-sources {
        flex: 2;
    }

    .review-container {
        flex-direction: row;
        justify-content: space-around;
    }

    .review {
        width: clamp(400px, 10%, 900px);
        padding-top: 2em;
        padding-bottom: 2em;
    }

    .education{
        border-top: 1px solid black;
        border-left: 1px solid black;
    }

    .experience-heading{
        text-align: start;
        padding-left: 0.5em;
    }
    .experience{
        border-bottom: 1px solid black;
        border-right: none;
        border-left: none;
        border-top: none;
    }
}

@media (prefers-color-scheme: dark){
    :root{
        --body-bg-color: #00000;
        color: white;
    }
}