@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Indie+Flower&family=Kaushan+Script&family=Michroma&family=Orbitron:wght@500&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

a:hover{
    opacity: 0.8;
}

:root{
    --darkBlue: #0c0c45;
    --bgBlue: #0049ae;
    --lightBlue: #75c2f6;
    --xlBlue: rgb(187, 221, 245);
    --bgYellow: #FFDE59;
    --lightYellow: #FBEEAC;
    --orange: #FF914D;
    --bgOrange: #ec5f08;
    --white: #fff;
    --lightGray: rgb(221, 221, 221);
    --gray: rgb(138, 143, 163);
}

@media screen and (min-width: 320px) {
    /* Header + Nav */
    header{
        background: var(--darkBlue);
        height: 80px;
        width: 100%;
        position: sticky;
    }

    .nav__container{
        height: 100%;
        width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        opacity: 0.85;
    }
    
    img.logo{
        border-radius: 30px;
        border: 2px solid var(--orange)
    }

    input#menu, .nav__list{
        display: none;
    }

    label.menu{
        cursor: pointer;
    }

    .nav__list-item a{
        color: var(--orange);
        opacity: 1;
    }

    .nav__list-item {
        padding: 1rem;
    }

    .nav__list-item:hover{
        width: 100%;
        text-align: center;
        background-color: rgba(39,39,150,1);
    }

    .nav__list{
        position: absolute;
        top: 79px;
        background-color: var(--darkBlue);
        width: 100%;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: 'Orbitron', sans-serif; font-size: 1.2rem;
        font-size: 1rem;
        padding: 1.2rem 0;
        justify-content: center;
        clip-path: polygon(0 0 , 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease-in-out;
    }
    
    input#menu:checked + .nav__list {
        clip-path: polygon(0 0 , 100% 0, 100% 100%, 0 100%);
    }


    /* Hero + Social */
    .hero{
        font-family: 'Michroma', sans-serif;
        background: var(--darkBlue);
    }

    .hero__container{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        margin: 0 auto;
        gap: 1rem;
        width: 90vw;
        padding: 3rem 1rem;
    }

    .hero__social{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__profile{
        width: 350px;
        overflow: hidden;
    }

    .hero__profile img{
        width: 100%;
        height: 100%;
    }

    .hero__feature{
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--white);
        text-shadow: 1px 1px 1px rgba(12, 12, 69, 0.5);
    }

    h1.name{
        color: var(--bgYellow);
        font-size: 2.5rem;
        font-weight: bold;
        text-align: center;
    }

    h3.hero__bio{
        color: var(--lightBlue);
    }

    .hero__network{
        display: flex;
        gap: 2rem;
        padding: 3rem 0;
        align-self: center;
    }
    
    .hero__network-item img{
        width: 30px;
    }

    .hero__cv{
        padding: 1rem 0;
        align-self: center;
    }

    .hero__cv a{
        border-radius: 25px;
        color: var(--white);
        background-color: var(--bgBlue);
        padding: 1rem;
        font-size: 0.8rem;
    }

    /*     About */
    .about{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--lightGray);
        margin: 0 auto;
        background-color: var(--darkBlue);
        font-family: 'Bricolage Grotesque', sans-serif;
    }

    .about__container{
        padding: 5rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .about__header{
        display: flex;
        gap: 2rem;
        padding: 2rem 0;
        flex-direction: column;
        margin: 0 auto;
        line-height: 1.5;
        width: 80vw;
    }

    .about__header-title{
        font-family: 'Michroma', sans-serif;
        color: var(--bgOrange);
        text-align: center;
        padding: 2rem 0 1rem 0;
        font-size: 1.5rem;
        text-shadow: 1px 1px rgba(12, 12, 69, 0.5);
    }

    .about__skills{
        width: 300px;
        margin: 0 15px;
        padding: 10px 20px;
        border-radius: 5px;
        color: var(--darkBlue);
        background: var(--white);
    }

    .about__skills-item{
        width: 100%;
        margin: 25px 0;
        font-weight: 600;
    }

    .skill-title{
        display: block;
        font-size: 1rem;
        color: var(--darkBlue);
    }

    .skill-bar{
        height: 10px;
        width: 100%;
        border-radius: 5px;
        margin-top: 5px;
        background: rgba(12, 12, 69, 0.2);
    }

    .skill-1{
        position: relative;
        display: block;
        height: 100%;
        width: 30%;
        border-radius: 5px;
        background: var(--bgOrange);
    }

    .skill-2{
        position: relative;
        display: block;
        height: 100%;
        width: 40%;
        border-radius: 5px;
        background: var(--bgOrange);
    }

    .skill-3{
        position: relative;
        display: block;
        height: 100%;
        width: 60%;
        border-radius: 5px;
        background: var(--bgOrange);
    }

    .skill-4{
        position: relative;
        display: block;
        height: 100%;
        width: 85%;
        border-radius: 5px;
        background: var(--bgOrange);
    }

    .counter{
        position: absolute;
        top: -25px;
        right: -25px;
    }

    .about__footer{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 2rem 0;
    }

    .about__footer-title{
        font-family: 'Michroma', sans-serif;
        color: var(--bgOrange);
        padding: 2rem 0;
        font-size: 1.8rem;
        text-align: center;
        text-shadow: 1px 1px rgba(12, 12, 69, 0.5);
    }

    .about__footer-info{
        color: var(--darkBlue);
        background-color: var(--xlBlue);
        padding: 1.5rem;
        text-align: center;
        width: 280px;
        border-radius: 5px;
    }

    .about__footer-info:hover{
        box-shadow: 1px 1px 1px 1px rgba(12, 12, 69, 0.2);
        opacity: 0.9;
    }

    .info-icon{
        margin-bottom: 10px;
    }



    /* Projects */

    .projects{
        font-family: 'Bricolage Grotesque', sans-serif;
        background: var(--darkBlue);
        padding: 5rem 0;
    }

    .projects__container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    
    .projects__title{
        font-family: 'Michroma', sans-serif;
        color: var(--bgOrange);
        padding: 2rem 0;
        font-size: 1.7rem;
        text-align: center;
        text-shadow: 1px 1px rgba(12, 12, 69, 0.5);
    }

    .projects__text{
        width: 80%;
        color: var(--lightGray);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .projects__box{
        width: 300px;
        padding: 1rem;
        background-color: var(--xlBlue);
        border: 2px solid black;
        box-shadow: 0px 0px 20px 5px rgb(54, 110, 147);
        border-bottom: 12px solid black;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .projects__info-title{
        color: var(--bgBlue);
    }
    
    .projects__img{
        width: 270px;
        height: 150px;
        border: 2px solid var(--darkBlue);
    }

    .projects__info-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .projects__description{
        display: flex;
        padding: 1rem 0;
    }

    .projects__button-repo{
        background-color: var(--bgBlue);
        color: var(--white);
        padding: 0.8rem;
    }

    .projects__button-web{
        color: var(--bgBlue);
        background-color: var(--white);
        padding: 0.8rem;
        margin: 0 0.3rem;
        border: 1.5px solid var(--bgBlue);
    }


    /* Education*/

    .education{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 5rem;
        padding-bottom: 2rem;
        background: var(--darkBlue);
        font-family: 'Roboto Mono', monospace;
        color: var(--lightGray);
    }

    .education__title{
        font-family: 'Michroma', sans-serif;
        color: var(--bgOrange);
        padding: 2rem 0;
        font-size: 1.8rem;
        text-shadow: 1px 1px rgba(12, 12, 69, 0.5);
    }

    .education__courses{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 2rem 0;
    }

    .education__courses-text{
        width: 80%;
        color: var(--lightGray);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .education__courses__box{
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        background-color: rgba(12, 12, 69, 0.5);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.125);
        width: 280px;
        height: 320px;
        padding: 2rem 0;
        text-align: center;
    }

    .education__courses__box:hover{
        box-shadow: 0px 0px 5px 5px rgba(12,12,69,0.1);
        transition: all 0.3s ease-in-out;
    }

    .education__courses__item__img img{
        width: 100%;
        overflow: hidden;
    }

    .education__courses__item-title{
        color: var(--bgYellow);
        font-weight: bold;
        margin: 0.5rem 0;
    }

    .course-img{
        border-radius: 12px;
    }


    /* Contact */
    .contact{
        background: var(--darkBlue);
        padding: 4rem 0;
        color: var(--lightGray);
        text-align: center;
        margin: 0 auto;
        font-family: 'Bricolage Grotesque', sans-serif;
    }

    .contact__title{
        font-family: 'Michroma', sans-serif;
        color: var(--bgOrange);
        padding: 1rem 0;
        font-size: 1.5rem;
        text-shadow: 1px 1px rgba(12, 12, 69, 0.5);
    }

    .contact__subtitle{
        color: var(--bgYellow);
        padding: 1rem 0;
    }

    .contact__container{
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 4rem 0;
        gap: 1rem;
    }
    
    .contact__box{
        display: flex;
        padding: 2rem 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: 280px;
        height: 240px;
        background-color: var(--bgBlue);
    }

    .contact__box:hover{
        box-shadow: 0px 0px 12px 0px rgba(221, 221, 221, 0.5);
        transition: all 0.3s ease-in-out;
    }

    .contact__box-content, .contact__info{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        font-size: 0.8rem;
    }

    .contact__box-content a{
        color: var(--lightGray);
    }
    
    .contact__form{ 
        display: flex;
        flex-direction: column;
        padding: 0;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

    .single-form{
        width: 280px;
        display: flex;
        align-items: center;
    }

    .single-form input, .single-form textarea {
        width: 100%;
        height: 55px;
        border: 1px solid #ddd;
        padding: 0 25px;
        font-size: 16px;
        color: var(--darkBlue);
    }

    .single-form textarea{
        resize: none;
        padding-top: 15px;
    }

    .main-btn {
        font-weight: 500;
        text-align: center;
        border: 1px solid var(--xlBlue);
        padding: 0 30px;
        margin: 0 auto;
        font-size: 15px;
        line-height: 48px;
        color: var(--white);
        cursor: pointer;
        z-index: 5;
        transition: all 0.3s ease-out 0s;
        box-shadow: 0px 5px 8px 0px rgba(152, 152, 152, 0.46);
        background-color: var(--bgBlue);
        text-transform: uppercase;
    }

    .contact__map .gmap_canvas iframe {
        width: 80vw;
        height: 335px;
        padding: 10px;
        margin: 2rem;
        background-color: var(--white);
        box-shadow: 0px 0px 12px 0px rgba(152, 152, 152, 0.46);
    }

    .contact__box-icon .fa-solid{
        font-size: 3rem;
        color: var(--orange);
    }


    /* Footer */
    footer{
        background-color: var(--darkBlue);
        color: var(--white);
        font-family: 'Michroma', sans-serif;
        
    }

    .credits{
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-top: 10rem;
    }

    .credits__content{
        display: flex;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

    .credits__content-text{
        color: var(--bgOrange);
        font-size: 1rem;
        font-weight: bold;
    }

    .credits__content-img img{
        width: 150px;
    }

    .credits__social{
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin: 1rem 0;
    }

    .credits__social-item img{
        width: 35px;
    }

    .copyright{
        text-align: center;
        font-size: 0.65rem;
        padding: 3rem 0;
        color: var(--lightBlue);
    }

    .back-to-top{
        position: fixed;
        width: 30px;
        height: 30px;
        right: 2%;
        bottom: 4%;
        z-index: 100;
    }

    .icon-up{
        width: 100%;
    }

}


@media screen and (min-width: 768px)  {

    .nav__list{
        clip-path: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        position: static;
    }

    .nav__list-item:hover{
        width: auto;
    }

    label.menu{
        display: none;
    }

    .hero__container{
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 5px;
        width: 80vw;
    }

    h1.name{
        text-align: left;
    }

    .hero__feature{
        display: flex;
        align-items: flex-start;
    }

    .hero__social{
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }

    .about__header{
        width: 60%;
    }

    .about__footer{
        flex-direction: row;
    }

    .about__footer-info{
        width: 220px;
        padding: 2rem 0;
    }

    .education__courses{
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 80vw;
    }


}

@media screen and (min-width: 1024px) {

    .about__container{
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 10px;
        justify-items: left;
    }

    .about__footer-info{
        width: 280px;
    }

    .projects__title{
        width: 100%;
        margin: 1rem 0;
    }

    .projects__container{
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 80%;
        margin: 0 auto;
    }

    .contact__container{
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact__info{
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
        padding-top: 2rem;
    }

    .single-form{
        width: 400px;
    }

    .contact__map .gmap_canvas iframe{
        width: 400px;
        margin: 0;
    }

    .education__courses{
        width: 70vw;
    }
}

@media screen and (min-width: 1199px) {

    .nav__container{
        width: 80%;
    }
    
    .hero__container{
        height: 70vh;
    }

    .hero__profile{
        width: 500px;
    }

    .education__courses-text{
        width: 60vw;
    }
}