* {
    box-sizing: border-box;
    font-size: 9px;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: #dee7fc;
}

html{
    scroll-behavior: smooth;
}

body,
html,
img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

button:hover {
    opacity: .9;
}

body {
    background-color: #0f172a;
}

main {
    display: flex;
    flex-wrap: wrap;
}

#presentation {
    width: 46%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding: 100px 10px 0;
    max-height: 100vh;
    min-width: 300px;
    position: fixed;
}

#presentation-container {
    width: 46%;
}

#main-content {
    width: 54%;
    height: 100vh;
    padding: 100px 10px 0;
}

#me {
    max-width: 400px;
    margin-bottom: 100px;
}

#name {
    font-size: 5.2em;
    max-width: 100%;
}

#role {
    font-size: 2.2em;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
}

#work {
    font-size: 1.9em;
    color: #6F7C91;
    line-height: 24px;
    font-weight: 500;
    max-width: 100%;
}

#sections {
    width: 100%;
    max-width: 400px;
    margin-bottom: 80px;
}

#sections-list {
    list-style: none;
}

.section-item {
    font-size: 1.7em;
    margin: 20px 0;
    font-weight: bold;
    color: #6F7C91;
    cursor: pointer;
    transition: color .4s ease;
}

.section-item::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: #6F7C91;
    position: relative;
    bottom: 5px;
    margin-right: 8px;
    border-radius: 3px;
    transition: .3s ease;
}

.section-active {
    color: white;
}

.section-active::before {
    width: 75px;
    background-color: white;
}

#social {
    width: 100%;
    max-width: 400px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#social i {
    font-size: 4em;
    color: #6F7C91;
    cursor: pointer;
}

#social i:hover {
    color: rgb(211, 211, 211);
}

#social .social-wrapper {
    margin: 10px;
}

#about {
    max-width: 580px;
    margin: 0 0 100px 60px;
}

.section-title {
    font-size: 2.2em;
    margin-bottom: 10px;
}

#about p {
    font-size: 1.9em;
    line-height: 26px;
    margin-bottom: 20px;
    color: #6F7C91;
}

#projects {
    max-width: 580px;
    margin: 0 0 100px 60px;
}

#skills {
    height: 500px;
}

.project {
    max-width: 100%;
    display: flex;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 25px 20px;
    border-radius: 10px;
    transition: linear .1s;
}

.project:hover {
    background-color: #141f37;
}

.project-picture {
    max-width: 35%;
}

.project-picture img {
    border-radius: 6px;
}

.project-description {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
}

.project-link {
    margin-bottom: 10px;
    font-size: 2em;
}

.project-link::after {
    content: "\2794";
    transform: rotate(-45deg);
    position: relative;
    left: 6px;
    bottom: 6px;
    color: white;
    font-size: 15px;
    display: inline-block;
    transition: linear .1s;
}

.project:hover .project-link,
.project:hover .project-link::after {
    bottom: 10px;
    left: 10px;
    color: #28dde4;
}

.project:hover .project-picture img {
    border: 2px solid #333234;
}

.project-text {
    font-size: 1.8em;
    color: #6F7C91;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #333234 #ffffff;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 13px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .1);
}

*::-webkit-scrollbar-thumb {
    background-color: #0e1931;
    border-radius: 8px;
}

@media screen and (max-width:900px) {
    #presentation,
    #main-content {
        width: 100%;
    }
    #presentation {
        position: static;
        max-width: 100%;
        min-width: 0
    }
    #presentation-container {
        display: none;
    }
    #main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
    }
    #about,
    #projects {
        margin-left: 0;
        max-width: 90%;
    }
    #social {
        height: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
    #sections,
    #me {
        margin-bottom: 50px;
    }
    .project {
        flex-direction: column;
        align-items: center;
    }
    .project-picture {
        margin-bottom: 10px;
        min-width: 200px;
    }
    .project-description {
        text-align: center;
    }
    .section-title {
        text-align: center;
    }
}