@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");
/*para poner variables que necesitamos de google*/

/*variables*/
:root{ /*--es para poner varianles*/
    --font-family: "Roboto", sans-serif;
    --normal-font: 400;
    --bold-font: 700;
    --bolder-font: 900;
    --bg-color: #fcfcfc;
    --primary-color: #4756df;
    --secondary-color: #ff7235;
    --primary-shadow: #8b8eaf;
    --secondary-shadow: #a17a69;
    --bottom-margin: 0.5rem; /*1rem equivale a 16pixeles*/
    --bottom-margin-2: 1rem;
    --line-height: 1.7rem;
    --transition: 0.3s;
}
 
html{
    scroll-behavior: smooth;
}
/*css resets: el asterisco sirve para aplicar a todo el documento*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul{
    list-style-type: none;
}

a{
    text-decoration: none;
    color: var(--primary-color);
}

a:hover{
    color: var(--secondary-color);
}
body{
    font-family: var(--font-family);
}

/*NavBar*/
nav{
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3.5rem;
    background-color: var(--bg-color);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /*0.1para transparencia*/
}

nav h1{
    color: var(--primary-color);
}

nav a{/*transición suave*/
    transition: var(--transition);
}

nav a:hover{
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

nav ul{
    display: flex;
    gap: 1.5rem;
}

nav ul li{
    font-weight: var(--bold-font);
}
/*Esconder botón de hamburguesa*/
.burger-menu{
    color: var(--primary-color);
    font-size: 2rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    display: none;
}

/*fin de NavBar*/

/*inicio de hero*/
.hero{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 68.75rem;
    margin: auto;
}

.hero img{
    padding: 10px;
    height: 25%;
    width: 25%;
    border-radius: 30px;
    
}

.bio{
    width: 22rem;
    padding: 0.625rem;
    box-shadow: 0px 2px 15px 2px var(--primary-shadow);
    border-radius: 8px;

}
.bio h1{
    margin-bottom: var(--bottom-margin);
    text-align: center;
}
.bio p{
    line-height: var(--line-height);
    padding: 0.3rem 0;
    text-align: center;
}
/*more about me*/
.more-about{
    background-color: var(--bg-color);
    padding: 1rem 6rem;
}

.more-about h2{
    margin-bottom: var(--bottom-margin);
    text-align: center;
}

.more-about p{
    line-height: var(--line-height);
    padding: 0.4rem;
    text-align: center;
}
/*skills section*/
.skills{
    max-width: 68.75rem;
    margin: auto;
    text-align: center;
    margin-top: 2.5rem;
}
.skill-header{
    margin-bottom: 1rem;
}

.skills-wrapper img{
    padding: 1.25rem;
}

.icon{
    width: 11.87rem;
    height: 11.25rem;
}

.icon-card{
    background-color: #fff;
    box-shadow: 0 3px 10px var(--secondary-shadow);
    border-radius: 11px;
    padding: 20px;
    margin: 10px;
}

/*project section*/
.projects{
    background-color: var(--bg-color);
    padding: 32px 0;
    margin-top: 2rem;
}
.project-pic1{
    width: 295px;
    height: 160px;
    align-items: center;
}
.project-pic2{
    width: 250px;
    height: 160px;
    align-items: center;
}

.projects-container{
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-tittle{
    text-align: center;
    margin-bottom: 1rem;
}
.project-container{
    text-align: center;
    width: 21.875rem;
    padding: 1rem;
    align-items: center;
}
.projects-container p{
    padding: 0.4rem;
}
.project-tittle{
    margin-bottom: var(--bottom-margin);
}
.project-details{
    margin-bottom: var(--bottom-margin);
}
.project-card{
    background-color: #fff;
    box-shadow: 0 3px 10px var(--primary-color);
    border-radius: 11px;
    padding: 20px;
    margin: 10px;
}
.socials{
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 1%;
    bottom: 50%;
}
.socicon{
    width: 2.6rem;
    height: 2.6rem;
}
footer{
    background-color: var(--bg-color);
    padding: 1.25rem;
    text-align: center;
    margin: 2rem 0 0;
}

/*scroll button*/
.scroll-up{
    position: fixed;
    right: 0.5%;
    bottom: 3%;
    cursor: pointer;
}

.up-arrow{
    width: 3rem;
    height: 3rem;
    margin-right: 10px;
}

.cv{
    text-align: center;
    background-color: var(--bg-color);
    padding: 0.3rem;
}

/*media queries for responsiveness*/
@media screen and (max-width: 720px){
    nav{
        padding: 1.5rem 1rem;
    }
    nav ul{
        position: fixed;
        background-color: var(--bg-color);
        flex-direction: column;
        top: 86px;
        left: 10%;
        width: 80%;
        text-align: center;
        transform: translateX(120%);
        transition: transform 0.5s ease-in;
    }
    nav ul li{
        margin: 8px;
    }
    
    .burger-menu{
        display: block;
    }

    nav ul.show{
        transform: translateX(0);
    }

    .hero{
        margin-top: -4rem;
        flex-direction: column;
        gap: 0;
    }

    .hero img{
        height: 22rem;
        width: 20rem;
    }

    .bio{
        margin-top: 1rem;
        width: 20.5rem;
    }

    .more-about{
        margin-top: 2rem;
        padding: 1rem 3.5rem;
    }

    .more-about h2{
        text-align: center;
    }

    .more-about p{
        text-align: justify;
    }

    .icon{
        width: 5.875rem;
        height: 5.25rem;
    }

    .projects-container{
        flex-direction: column;
    }

    .project-container{
        width: 20.875rem;
    }

    @media screen and (max-width: 420px){
        .hero img{
            height: 20rem;
            width: 18rem;
        }

        .bio{
            width: 18.3rem;
        }

        .project-container{
            width: 17.875rem;
        }
    }
}