*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: rgb(20, 20, 20);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
}

a{
    text-decoration: none;
    color: white;
    transition: .5s;
}

header{
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);

    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.747);
    max-width: 100%;

    border-bottom: 1px solid rgb(62, 62, 62);
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.links{
    list-style: none;
    display: flex;
    gap: 20px;
}
.links a:hover{
    color: rgb(108, 108, 108);
}
.logo{
    font-size: 25px;
    font-weight: bold;
}
.logo span{
    color: rgb(163, 109, 255);
}
.btn-header{
    padding: 12px 25px;
    border: 2px solid rgb(0, 21, 255);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0);
    color: white;
    transition: .3s;
}
.btn-header:hover{
    background-color: rgb(0, 21, 255);
}

.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    margin: 50px 20px;
}
.hero-text h2{
    color: rgb(177, 133, 255);
    font-size: 35px;
    margin-bottom: 20px;
    max-width: 600px;
}
.title-text{
    color: rgb(151, 92, 252);
    font-weight: bold;
    font-size: 15px;
}
.name{
    font-size: 70px;
}
.cursor{
    color: rgb(177, 93, 255);
    animation: blink 1s infinite;
}
@keyframes blink{
    50%{
        opacity: 0;
    }
}
.document{
    color: rgb(234, 233, 233);
    font-size: 20px;
}
.control{
    margin: 20px 0;
    display: flex;
    gap: 20px;
}
.control a{
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}
.btn{
    background-color: rgb(119, 121, 245);
}
.btn-two{
    border: 1px solid white;
}
.control-info{
    display: flex;
    gap: 20px;
}
.iconContact{
    width: 50px;
    height: 50px;

    border-radius: 50%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    background-color: white;
}
.facebook{
    background-image: url(icon/iconFace.png);
}
.neocities{
    background-image: url(icon/iconNeo.webp);
}
.email{
    background-image: url(icon/iconEmail.webp);
}
.hero-img{
    padding: 5px 10px;
}
.hero-img img{
    height: 300px;
    width: 300px;
    border-radius: 50%;
    transition: .3s;
}
.hero-img img:hover{
    border: 2px solid blueviolet;
    box-shadow: 0 0 30px rgb(191, 154, 255);
}

.skill-section{
    margin: 0 20px;
    padding: 20px;
    background-color: rgba(251, 251, 251, 0.056);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.293);
}
.title{
    font-size: 20px;
}
.logo-title{
    font-size: 30px;
    color: rgb(152, 109, 193);
}
.card{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.278);
}
.card:last-child{
    border: none;
}
.icon{
    height: 60px;
    width: 50px;
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 30px;
}
.Html{
    background-color: rgb(255, 85, 0);
}
.Css{
    background-color: rgb(0, 81, 255);
}
.Js{
    background-color: rgb(255, 255, 0);
    color: black;
}
.skill-card{
    display: flex;
    padding: 20px;
    gap: 10px;
}
.text-card p{
    color: grey;
    margin: 5px 0;
}

.project-section{
    margin: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.355);
}
.header-project{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.header-project a{
    font-size: 13px;
    color: rgb(177, 133, 255);
}
.title-project{
    font-size: 30px;
}
.icon-project{
    color: rgb(151, 92, 252);
}
.project-card{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 10px;
}
.card-project-me{
    height: 350px;
    width: 300px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.111);
    border: 1px solid rgba(255, 255, 255, 0.383);
    border-radius: 10px;
}
.card-project-me p{
    margin: 10px 0;
    font-size: 14px;
    color: rgb(198, 198, 198);
}
.project-card img{
    width: 100%;
    border-radius: 9px;
}
.name-project{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.name-project h3{
    font-size: 20px;
}
.name-project a{
    font-size: 25px;
}
.tag{
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.tag span{
    padding: 6px 13px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
}
.tagHtml{
    background-color: rgba(255, 102, 0, 0.399);
    color: rgb(255, 181, 181);
}
.tagCss{
    background-color: rgba(0, 140, 255, 0.382);
    color: rgb(179, 225, 255);
}
.tagJs{
    background-color: rgba(255, 255, 0, 0.32);
    color: rgb(255, 255, 175);
}

.section-about{
    margin: 50px 20px;
}
.about-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.about-text{
    max-width: 600px;
}
.about-text p{
    color: rgb(176, 176, 176);
}
.title-about{
    margin: 10px 0;
    font-size: 40px;
}
.about-title{
    display: flex;
    gap: 20px;
}
.text{
    font-size: 30px;
}
.text h2{
    color: blueviolet;
}
.text p{
    font-size: 15px;
    color: rgb(108, 108, 108);
}

.contactMe{
    margin: 20px 20px;
    background-color: rgba(35, 43, 89, 0.089);
}
.contact-box{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(23, 23, 54, 0.127);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.323);
}
.title-contact{
    margin: 30px 0;
}
.contact-title{
    font-size: 45px;
    margin-bottom: 20px;
}
.text-contact{
    color: rgb(108, 108, 108);
    margin-bottom: 40px;
}
.contact-btn{
    padding: 10px 20px;
    border: none;
    background-color: rgb(0, 81, 255);
    border-radius: 8px;
    transition: .3s;
    display: inline-block;
}
.contact-btn{
    transform: translateY(-8px);
}

footer{
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: black;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px){

    /* HEADER */
    header{
        padding: 15px 20px;
    }

    .header{
        gap: 15px;
    }

    .logo{
        font-size: 20px;
    }

    .links{
        display: none;
    }

    .btn-header{
        padding: 9px 15px;
        font-size: 13px;
    }


    /* HERO */
    .hero{
        flex-direction: column;
        text-align: center;
        margin: 40px 20px;
        gap: 35px;
    }

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

    .name{
        font-size: 55px;
    }

    .hero-text h2{
        font-size: 28px;
        margin-bottom: 15px;
    }

    .document{
        font-size: 16px;
        max-width: 350px;
    }

    .control{
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .control a{
        padding: 10px 15px;
    }

    .control-info{
        justify-content: center;
    }

    .hero-img{
        order: -1;
    }

    .hero-img img{
        width: 220px;
        height: 220px;
    }


    /* SKILLS */
    .skill-section{
        margin: 0 15px;
        padding: 15px;
    }

    .skill-card{
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }

    .card{
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.2);
        padding: 10px 0 15px;
    }

    .card:last-child{
        border-bottom: none;
    }

    .text-card h3{
        font-size: 17px;
    }

    .text-card p{
        font-size: 13px;
    }


    /* PROJECTS */
    .project-section{
        margin: 40px 0;
    }

    .header-project{
        padding: 15px;
    }

    .title-project{
        font-size: 24px;
    }

    .project-card{
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
        margin: 20px 15px;
    }

    .card-project-me{
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 350px;
    }


    /* ABOUT */
    .section-about{
        margin: 40px 20px;
    }

    .about-box{
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .title-about{
        font-size: 30px;
    }

    .about-text p{
        font-size: 15px;
    }

    .about-title{
        width: 100%;
        justify-content: space-around;
    }

    .text{
        text-align: center;
        font-size: 25px;
    }


    /* CONTACT */
    .contactMe{
        margin: 20px 15px;
    }

    .contact-box{
        text-align: center;
        padding: 30px 15px;
    }

    .contact-title{
        font-size: 32px;
    }

    .text-contact{
        font-size: 14px;
        margin-bottom: 30px;
    }


    /* FOOTER */
    footer{
        margin-top: 60px;
        padding: 30px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 13px;
    }
}


/* SMALL PHONE */
@media (max-width: 400px){

    .name{
        font-size: 45px;
    }

    .hero-text h2{
        font-size: 24px;
    }

    .hero-img img{
        width: 180px;
        height: 180px;
    }

    .btn,
    .btn-two{
        font-size: 13px;
    }

    .contact-title{
        font-size: 27px;
    }

    .title-about{
        font-size: 27px;
    }
}