body {
    margin: 0;
    padding: 0;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #f0f0f0;
    overflow-x: hidden;
    transition: all 200ms ease-out;
}

body.dark {
    background-color: #121212;
    color: #e4e4e7;
}

body.dark a > img, body.dark .header-data > img {
    filter: invert(90%);
}

* {
    box-sizing: border-box;
}

#page {
    padding: 3rem 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#header-container {
    gap: 1.5rem;
    align-items: center;
    flex-direction: column;
    display: flex;
    margin-bottom: 3rem;
}

body.dark #header-picture {
    border-color: #18181b;
}

#header-picture {
    border-width: 4px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    width: 8rem;
    height: 8rem;
    display: flex;
    position: relative;
}

#header-picture>img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    display: block;
    vertical-align: middle;
}

h1 {
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin: 0;
}

h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: #4b55633d solid 1px;
}

body.dark .subtitle {
    color: #9ca3af;
}

.subtitle {
    color: #4B5563;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin: 0;
    margin-top: 0.5rem;
}

#header-datas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    color: #4B5563;
}

body.dark .header-data {
    color: #d4d9e0;
}

.header-data {
    color: #4B5563;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.header-data>img {
    display: block;
    height: 1rem;
}

.header-data>span {}

.skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.dark .skill {
    background-color: #232327;
    color: #fafafa;
}

.skill {
    background-color: #18181b;
    color: #fafafa;
    padding: 2.5px 12.5px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

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

.career {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

body.dark .career::before {
    background-color: #fafafa;
}

.career::before {
    content: "";
    height: 1rem;
    width: 1rem;
    background-color: #18181b;
    position: absolute;
    border-radius: 50%;
    transform: translate(calc(-100% - 1rem));
}

body.dark .career::after {
    background-color: #fafafa;
}

.career::after {
    content: "";
    height: calc(100% + 1rem);
    width: 1px;
    background-color: #4b55633d;
    position: absolute;
    border-radius: 50%;
    transform: translate(calc(-100% - 1.5rem), .5rem);
    z-index: -1;
}

.career:last-child:after {
    display: none;
}

.career-date {
    font-weight: 600;
    margin: 0;
}

body.dark .career-date {
    color: #dbdbdb;
}

body.dark .career-desc {
    color: #9e9e9e;
}

.career-desc {
    margin: 0;
    color: #374151;
}

.projects {
    gap: 1.5rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

body.dark .project {
    background-color: #1e1e1e;
    border-color: #333339;
}

.project {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.project.starred::after {
    content: url("../star.svg");
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.project-name {
    letter-spacing: -0.025em;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin: 0;
}

body.dark .project-date {
    color: #a1a1aa;
}

.project-date {
    margin: 7.5px 0 0;
    color: #71717a;
}

body.dark .project-desc {
    color: #d7dbe0;
}

.project-desc {
    color: #4b5563;
    margin: 0;
}
.project-links {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body.dark .project-link {
    color: #dfd9d9;
}

.project-link {
    color: #18181B;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: .5rem 0 0;
}
.project-link:first-child {
    margin: 1rem 0 0;
}
.project-link > p {
    margin: 0;
}
.project-link > img {
    display: block;
    height: 1rem;
    margin-right: 0.3rem;
}

body.dark #project-selector-bg {
    background-color: #131314;
}

#project-selector-bg {
    position: absolute;
    top: .25rem;
    bottom: .25rem;
    border-radius: 99px;
    background-color: #18181B;
    z-index: 1;
    transition: all 200ms ease-out;
}

.project-selector-container {
    margin-bottom: 1rem;
}

body.dark .project-selector {
    background-color: #232325;
}

.project-selector {
    padding: 0.25rem;
    background-color: #e3e3e3;
    border-radius: 99px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}

.project-selector-button {
    font-weight: 500;
    font-size: 2.5vw;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: .5rem;
    padding-left: .5rem;
    cursor: pointer;
    z-index: 2;

    mix-blend-mode: difference;
    color: white;
}

@media (min-width: 768px) {
    #header-datas {
        justify-content: flex-start;
    }

    #header-container {
        justify-content: flex-start;
        flex-direction: row;
    }


    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .project-selector {
        display: inline-flex;
    }

    .project-selector-button {
        font-size: .875rem;
        line-height: 1.25rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

.dark-mode {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    z-index: 3;
}

body.dark .dark-mode {
    background-color: #18181b;
}

body.dark .dark-mode > img {
    filter: invert(90%);
}

.dark-mode > img {
    height: 1.5rem;
    display: block;
}

@media (min-width: 1400px) {
    #page {
        max-width: 1400px;
    }
}

@media (min-width: 1024px) {
    .projects {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}