* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Lato", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --asphalt: #343a40;
    --red: #f44336;
}

/* Header (navbar) */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: var(--asphalt);
    text-align: center;

}

.nav-content {
    width: 100px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
}

.nav-content:hover {
    transition: 0.2s;
    background-color: var(--red);
}

/* Home section */
.home-header {
    background-color: var(--asphalt);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 16px;
}

.profile-picture {
    max-width: 250px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 0px 5px white;
}

.personal-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.personal-info-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* About me */
.home-body {
    background-color: white;
    padding: 16px;
}

.about-container {
    max-width: 750px;
}

.about-content {
    margin: 16px 0px;
    text-align: justify;
}

.professional-info {
    margin: 16px 0px;
}

.carrer-content {
    margin: 16px 0px;
}

.carrer-text {
    margin: 16px 0px;
}

.courses-content {
    margin: 16px 0px;
}

.courses-text {
    margin: 16px 0px;
}

.courses-list {
    margin: 16px 0;
    list-style-type: none;
}

.list-title {
    margin-top: 16px;
}

.courses-list li {
    padding: 8px;
    border-bottom: 1px solid rgb(168, 168, 168);
}

.courses-list li:hover {
    background-color: rgb(230, 228, 228);
}

.additional-abilities {
    margin: 16px 0px;
}

/* Projects */
.projects {
    height: 100vh;
}

.projects-container {
    background-color: var(--asphalt);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 16px 16px 16px;
    height: 100%;
    width: 100%;
}

.projects-title {
    text-align: center;
    margin-bottom: 24px;
}

table {
    border-collapse: collapse;
    max-width: 800px;
    width: 100%;
}

.table-header-row td,
.table-body-row td {
    text-align: center;
    border-bottom: 1px solid white;
    padding: 16px 4px;
}

.table-header-row td {
    background-color: var(--red);
}

.project-link-btn {
    width: 100%;
    display: block;
    padding: 4px;
    border: 1px solid var(--red);
    background-color: #f44336;
    color: white;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
}

.project-link-btn:hover {
    transition: 0.2s;
    border: 1px solid white;
    background-color: var(--asphalt);
}

/* Contact */
#contact {
    padding: 16px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
}

#contact-form {
    width: 100%;
    max-width: 800px;
}

.form-title {
    width: 100%;
    text-align: center;
    margin: 16px 0px;
}

.form-section {
    margin: 16px 0px;
}

.form-input {
    margin-top: 8px;
    width: 100%;
    padding: 12px 4px;
    border: none;
    border-bottom: 1px solid gray;
    font-size: 14px;
}

#message-area {
    width: 400px;
    max-width: 100%;
    max-height: 100%;
    height: 180px;
    padding: 8px;
}

#form-btn {
    width: 120px;
    padding: 16px;
    color: white;
    background-color: var(--asphalt);
    border: 1px solid var(--asphalt);
    font-size: 14px;
    border-radius: 4px;
}

#form-btn:hover {
    transition: 0.2s;
    background-color: var(--red);
    color: white;
    border-color: var(--red);
}

#feedback {
    font-size: small;
    margin-left: 16px;
}

/* Footer */
footer {
    padding: 24px 16px;
    background-color: var(--asphalt);
    color: white;
}

.footer-list {
    list-style-type: none;
}

.footer-list li {
    margin: 8px 0px;
}

.footer-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 120px;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    border-radius: 8px;
}

.footer-link:hover {
    transition: 0.2s;
    background-color: var(--red);
    border-color: var(--red);
}

span.footer-icon {
    font-size: 16px;
}

/* Media queries */
@media screen and (min-width: 425px) {
    .nav-content {
        width: auto;
    }
}

@media screen and (min-width: 768px) {

    section,
    footer {
        margin-left: 120px;
    }

    nav {
        position: fixed;
        display: block;
        width: 120px;
        height: 100vh;
    }

    .nav-content {
        display: block;
        width: 100%;
    }

    span.aside-item {
        font-size: 32px;
    }

    .home-header {
        flex-direction: row;
        justify-content: center;

    }


    .contact {
        margin-left: 120px;
    }
}