:root {
    --primary-color-dark: #0078AA;
    --primary-color: #3AB4F2;
    --accent-color: #F2DF3A;
    --accent-color-2: #F46D80;
    --white-color: #F6F6F6;
    --black-background: #192734;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    box-sizing: block;
}

.title {
    color: var(--accent-color);
    font-size: 4rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.motto {
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-color);                                                
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.link_general {
    text-decoration: none;
}

a:visited a:link, a:active, a:hover {
    text-decoration: none;
}



/* HERO */

.background_gradient {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color), var(--accent-color));
    background-size: 180% 180%;
    animation: gradient-animation 8s ease infinite;
}
  
@keyframes gradient-animation {
    0% {
      background-position: 0% 20%;
    }
    50% {
      background-position: 50% 20%;
    }
    100% {
      background-position: 0% 20%;
    }
}

.hero_container {
    display: grid;
    grid-template-columns: 9fr 6fr 3fr;
    height: 100vh;
}

.hero, .resume, .projects, .about, .footer {
    display: flex;
}

.hero_text {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10%;
}

.hero_image {
    justify-content: center;
    align-items: center;
}

.hero_image > img {
    width: 80%;
    height: 80%;
    object-fit: scale-down;
    flex: 0 1 200px;
}

.hero_text a {
    animation-name: slide-in-left;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero_nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 7%;
    bottom: 33vh;
    z-index: 1;
    animation-name: slide-in-right;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero_nav .container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
  
.hero_nav .container ul li.active a .button_nav {
    background-color: var(--accent-color);
    color: var(--primary-color-dark);
}

.hero_button, .button_nav {
    background-color: var(--primary-color-dark);
    color: var(--white-color);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
    font-size: 1rem;
    display: inline-block;
}

.hero_button {
    border-radius: 10px;
    padding: 0.5rem;
}

.button_nav {
    border-radius: 50%;
    height: 50px;
    width: 50px;
    margin: 0.5rem;
}

.hero_button:hover, .button_nav:hover {
    background-color: var(--accent-color);
    color: var(--primary-color-dark);
    transform: scale(1.2);
}

.hero_button:active, .button_nav:active {
    transform: scale(0.9);
}



/* RESUME */

.resume_container {
    display: grid;
    grid-template-columns: 9fr 6fr 3fr;
    background: linear-gradient(135deg, var(--black-background), #0e161e);
    height: 100vh;
}

.resume_title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.resume_title > h1 {
    text-align: center;
}

.resume_list {
    align-items: center;
    padding-left: 10%;
}

.resume_list li {
    color: var(--white-color);
    list-style: none;
}

.resume_list_item {
    display:inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 2rem 2rem;
}

.resume_list_img {
    width: 3rem;
    height: 3rem;
    object-fit: scale-down;
}

.resume_list_title {
    font-size: 1.5rem;
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-color-2);
}

.resume_list_subtitle {
    font-size: 1rem;
    font-family: 'Source Code Pro', monospace;
    color: var(--primary-color);
}

.resume_list_subtitle:hover {
    color: var(--accent-color);
}



/* PROJECTS */

.projects_container {
    display: grid;
    grid-template-columns: 6fr 9fr 3fr;
    background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color));
    height: 100vh;
}

.projects_title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects_title > h1 {
    text-align: center;
}

.projects_list {
    align-items: center;
    padding-left: 10%;
}

.projects_list li {
    color: var(--white-color);
    list-style: none;
}

.projects_list_item {
    display:inline-flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.projects_list_title {
    margin-bottom: 0;
}

.projects_list_img {
    width: 3rem;
    height: 3rem;
    object-fit: scale-down;
}

.projects_list_date {
    max-width: 600px;
    font-size: 1rem;
    font-family: 'Source Code Pro', monospace;
    color: var(--black-background);
    margin-bottom: 1rem;
}

.projects_list_subtitle {
    font-size: 1.2rem;
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-color);
    padding-right: 10%;
    margin-bottom: 2rem;
}

.projects_list_title:hover {
    color: var(--accent-color);
}



/* ABOUT */

.about_container {
    display: grid;
    grid-template-columns: 9fr 6fr 3fr;
    background: linear-gradient(135deg, var(--black-background), #0e161e);
    height: 90vh;
}

.about_title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about_title > h1 {
    text-align: center;
}

.about_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
}

.about_list li {
    color: var(--white-color);
    list-style: none;
}

.about_list_item {
    display:inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem 0;
}

.about_list_title {
    font-size: 1rem;
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-color-2);
}

.about_list_title span {
    font-family: 'Source Code Pro', monospace;
    color: var(--primary-color) !important;
}

.about_contact_buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.about_contact_picture {
    filter: invert(100%);
    max-width: 50%;
    align-items: center;
    justify-content: center;
}



/* FOOTER */

.footer_container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: var(--accent-color);
    height: 10vh;
}

.footer_container a, .footer_container p {
    margin: 0;
}

.footer_container > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer_container p {
    color: var(--black-background);
    font-size: 1rem;
}

.footer_copyright a {
    color: var(--accent-color-2);
    /* font-family: 'Source Code Pro', monospace; */
}

.footer_img {
    width: 3rem;
    height: 3rem;
    object-fit: scale-down;
}

.footer_img_container > a {
    width: 3rem;
    height: 3rem;
}

.footer_img_container a:hover .footer_img {
    content: url('../assets/images/linkedin-icon-2048x2048-ya5g47j2.png');
}

.footer_legal p {
    color: var(--black-background);
    font-size: 1rem;
    font-family: 'Source Code Pro', monospace;
}

.footer_copyright a:hover, .footer_legal p:hover {
    color: var(--accent-color-2);
}


@media screen and (max-width: 960px) {
    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .motto {
        font-size: 1rem;
    }



    /* HERO */

    .hero_container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .hero_image {
        justify-content: center;
        align-items: center;
        margin-top: 10vh;
        order: 0;
    }

    .hero_image img {
        max-width: 300px;
        height: auto;
        margin-bottom: 2rem;
    }

    .hero_text {
        order: 1;
        align-items: center;
        text-align: center;
        margin-bottom: 10vh;
        padding: 0 1rem 0 1rem;
    }

    .hero_nav {
        order: 2;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: fixed;
        left: 7%;
        bottom: 5vh;
        z-index: 1;
    }

    .hero_nav .container ul {
        display: inline-flex;
    }

    .button_nav {
        background-color: var(--accent-color-2);
    }



    /* RESUME */

    .resume_container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .resume_title {
        margin-top: 10vh;
        order: 0;
    }

    .resume_list {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        padding: 0 2rem 0 2rem;
        text-align: center;
        margin-bottom: 10vh;
    }

    .resume_list_item {
        gap: 1rem;
        margin: 0 0 2rem 0;
    }

    .resume_list_title {
        font-size: 1rem;
    }

    .resume_list_img {
        width: 2rem;
        height: 2rem;
    }



    /* PROJECTS */

    .projects_container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .projects_title {
        margin-top: 10vh;
        order: 0;
    }

    .projects_list {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        padding: 0 2rem 0 2rem;
        text-align: center;
        margin-bottom: 10vh;
    }

    .projects_list_date {
        max-width: 100%;
    }

    .projects_list_subtitle {
        font-size: 1rem;
        padding: 0;
    }



    /* ABOUT */

    .about_container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .about_title {
        margin-top: 10vh;
        order: 0;
        margin-bottom: 3rem;
    }

    .about_list {
        order: 1;
        padding: 0 2rem 0 2rem;
        text-align: center;
        margin-bottom: 10vh;
    }



    /* FOOTER */

    .footer_container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .footer_img_container {
        height: 0;
    }

    .footer_img_container a img {
        display: none;
    }

    .footer_copyright {
        order: 0;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .footer_legal {
        order: 1;
        margin-bottom: 15vh;
    }
}