/* Google Font Oswald */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Luckiest+Guy&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Paletas de cores disponíveis */

:root, :root[data-theme="dark"]{
    --bg-body: #06060D;
    --bg-body-lighter: rgba(128, 128, 128, 0.199);
    --bg-header: #06060D;
    --bg-menu-desktop: #7070707d;
    --bg-menu-mobile: #252525;
    --bg-card: #8f8f8f1a;
    --bg-banner: #06060d1a;
    --border-color: #888686;
    --font-color-body: #ffffff;
    --font-color-banner: #ffffff;
}

:root[data-theme="light"]{
    --bg-body: #D9D9D9;
    --bg-body-lighter: #F2F2F2;
    --bg-header: #3F4859;
    --bg-menu-desktop: #d9d9d917;
    --bg-menu-mobile: #0B1426;
    --bg-card: #3f485960;
    --bg-banner: #73737375;
    --border-color: #3b3b3b;
    --font-color-body: #0B1426;
    --font-color-banner: #ffffff;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 62.5%;
}

body{
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
    font-family: Oswald;
    color: var(--font-color-body);
}

ul, li{
    list-style: none;
    margin: 0;
    padding: 0;
}

.icon-menu-mobile{
    font-size: 2.5rem;
    color: white
}

.icon-card{
    font-size: 2.5rem;
    color: var(--font-color-body);
}

a{
    text-decoration: none;
    color: var(--font-color-banner);
}

p{
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    text-align: justify;
}

/* h1, h2, h3, h4 */

h1, h2, h3, h4{
    letter-spacing: 0.3rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

h1{
    font-size: 2.5rem;
}

h2{
    font-size: 2.2rem;
}

h3{
    font-size: 2rem;
}

h4{
    font-size: 1.8rem;
}

span, ul li{
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

/* Container section */
.section-container{
    display: flex;
    flex-direction: column;
}

/* Header section */

header{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--bg-header);
    box-sizing: border-box;
    width: 100%;
}

header img{
    height: 2.4rem;
}

/* Home section */
#home{
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-body-lighter);
    padding: 0 0 2rem;
}

#home > img{
    width: 26rem;
}

#home p{
    text-align: center;
    font-weight: normal;
    width: 28.3rem;
    text-transform: uppercase;
}

#icon-change-theme{
    font-size: 3.5rem;
    color: var(--font-color-body);
    transition: ease-in-out 0.5s;
}

#icon-change-theme:hover{
    cursor: pointer;
}

#contact div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

#home div img, #contact div img{
    height: 3.5rem;
}

/* Skills section */
#skills{
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-header);
}

#skills h1{
    color: var(--font-color-banner);
}

.skills-icons-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 4rem;
    width: fit-content;
}

.skills-icons-list div{
    display: flex;
    justify-content: center;
}

.skills-icon{
    height: 3.5rem;
}

/* Projects section */
#projects{
    gap: 4rem;
    background-color: var(--bg-body-lighter);
}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem;
    border-top: 0.1rem solid var(--border-color);
}

.project-card > img{
    height: 15.5rem;
}

.project-card-resume{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card-resume p{
    width: 80%;
    text-align: justify;
    text-transform: uppercase;
}

.project-card-icons{
    display: flex;
    gap: 1rem;
    background-color: var(--bg-banner);
    padding: 2rem;
    border-radius: 2rem;
}

.project-card-icons img{
    height: 3.5rem;
}

.project-card-icons button{
    height: 3.5rem;
    width: 12rem;
    background-color:var(--bg-header);
    font-weight: bold;
    color: #ffffff;
    border: none;
    border-radius: 1rem;
}

/* About Section */
#about{
    gap: 4rem;
    flex-direction: column;
    align-items: center;
}

#about > img{
    height: 15.5rem;
}

#about > p{
    width: 80%;
}

#about > div > img{
    height: 3.5rem;
}

/* academic-info */
.academic-info{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.academic-info-card{
    justify-content: flex-start;
    max-width: 100%;
}

.academic-info-card-list{
    margin: 0 1.5rem 0;
}

.academic-info-card-list li{
    list-style: square;
}

.academic-info-card, .job-card{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--bg-card);
}

.academic-list-cards{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.academic-grade, .job-experience{
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.academic-grade img, .job-experience img{
    height: 3rem;
}

/* jobs */
.job-card{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.job-card ul, .job-card p{
    margin: 0;
    padding: 0;
    width: fit-content;
    padding-left: 2rem;
}

.job-card-paragraph{
    padding-left: 0;
    font-size: 1.3rem;
    text-align: justify;
    width: 100%;
}

/* Courses */
#courses h4{
    text-align: left;
}

#courses .academic-info-card ul{
    margin: 0;
    padding-left: 1.8rem;
}

/* Contact */
#contact{
    background-color: var(--bg-body-lighter);
    align-items: center;
    gap: 2rem;
    padding: 2rem 0 10rem;
}

#contact p{
    width: 80%;
    text-align: justify;
}

.banner-email{
    background-color: var(--bg-header);
    color: var(--font-color-banner);
    width: 40rem;
    font-size: 2rem;
}

/* Common styles of some containers */
#projects, #about{
    padding: 3rem 2rem;
}

/* Mobile menu, Desktop menu */
.mobile-menu{
    display: flex;
    background-color: var(--bg-menu-mobile);
    width: 100vw;
    position: fixed;
    bottom: 0;
}

.mobile-menu ul{
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background-color: var(--bg-menu-mobile);
}

.menu-item-label{
    font-size: 1rem;
    color: var(--font-color-banner);
    margin-top: 0.3rem;
}

.desktop-menu{
    display: none;
    background-color: var(--bg-menu-desktop);
}

.desktop-menu-list{
    display: flex;
}

.menu-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-item:hover{
    background-color: rgba(173, 216, 230, 0.46);
    transition: all 1s ease;
}

.icons-banner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 0 2rem;
}

.icons-social-banner{
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 50%;
}

.icons-social-banner i{
    font-size: 4rem;
    color: var(--font-color-body);
}

@media screen and (min-width: 768px) {
    
    /* Icons banner */
    .icons-banner {
        display: flex;
        justify-content: center;
        width: fit-content;
        padding: 0;
        gap: 2rem;
    }

    .icons-social-banner{
        width: 22rem;
    }

    /* Desktop Menu */
    .desktop-menu {
        display: flex;
        max-width: 50rem;
    }


    /* Mobile menu */
    .mobile-menu {
        display: none;
    }

    /* header */
    header{
        position: fixed;
        top: 0;
        display: flex;
        justify-content: space-between;
        height: 8rem;
        box-sizing: border-box;
    }

    #home{
        padding-bottom: 2rem;
    }

    /* Estilos comuns a #home, #projects e #about */

    #home, #projects, #about{
        padding-top: 10rem;
    }

    /* Seção Skills */

    #skills{
        align-items: center;
        background-color: var(--bg-header);
    }

    .skills-icons-list{
        width: 48rem;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    /* Seção Projetos */

    .card.project-card:nth-child(odd){
        flex-direction: row-reverse;
        align-items: flex-start;
    }

    .card.project-card:nth-child(odd) .project-card-resume{
        align-items: flex-end;
    }
    
    .card.project-card:nth-child(even){
        justify-content: center;
        align-items: flex-start;
    }

    .card.project-card:nth-child(even) .project-card-resume{
        align-items: flex-start;
    }

    .project-card{
        flex-direction: row;
        align-items: flex-start;
        padding: 4rem;
    }

    .about-paragraph{
        max-width: 60%;
    }

    .academic-info{
        flex-direction: column;
    }

    .academic-list-cards{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .academic-info-card{
        align-items: flex-start;
    }

    #contact p{
        width: 40%;
        text-align: center;
    }

}