:root {
    --primary-color: #bae6fd;
    --secondary-color: #0ea5e9;
    --bg-color: #051c2c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition-duration: 200ms;
}

body {
    background: var(--bg-color);
    color: var(--primary-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding: 14px;
}

.darker-text {
    color: var(--secondary-color)
}

header, 
main, 
footer {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

p {
    font-size: 1.5em;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

nav {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    cursor: pointer;
    text-decoration: none;
}

nav a:hover {
    opacity: 0.7;
}

main, 
section, 
.name-container {
    display: flex;
    flex-direction: column;
}

main {
    gap: 64px;
    padding-bottom: 64px;
}

section {
    gap: 48px;
}

.name-container {
    gap: 8px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.img-container {
    border-radius: 100%;
    max-width: 114px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stats>div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats div i {
    font-size: 1.4em;
}

.stats div div {
    display: grid;
    place-items: center;
    min-width: 40px;
}

.about-me {
    line-height: 1.5em;
}

.outreach {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    width: fit-content;
    margin-right: auto;
}

.outreach:hover {
    opacity: 0.7;
}

.outreach i {
    transform: rotate(-45deg);
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.header-text {
    margin-bottom: 24px;
}

.project-item {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.project-item div:first-child {
    display: flex;
    flex-direction: column;
    max-width: 647px;
    gap: 14px;
}

.project-item>div:last-child {
    aspect-ratio: 16/9;
    max-width: 30%;
    overflow: hidden;
    border-radius: 8px;
}

.project-item>div:last-child img {
    width: 120%;
    height: 100%;
    object-fit: cover;
}

.link-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.link-item {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 14px !important;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.link-item:hover {
    opacity: 0.7;
}

.link-item p {
    font-size: 0.9em;
}

@media (min-width: 640px) {
    .stats-container {
        flex-direction: row;
    }

    .stats {
        gap: 0px;
    }

    .about-me {
        width: 85%;
        margin-right: auto;
    }
}