@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

/* variáveis globais */
:root{
    --bg-color: #000000; /* cor de fundo principal */
    --second-bg-color: #161616; /*segunda cor de fundo*/
    --text-color: #fff;
    --main-color: rgb(32, 103, 211); /*cor principal*/
}

html{
    font-size: 70%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    font-family: "Poppins",sans-serif;
    color: var(--text-color)
}

html::webkit-scrollbar{
    width: 0.8rem;
}

html::-webkit-scrollbar-track{
    background: var(--bg-color);
    /* Estilização do fundo da barra de rolagem  */
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    /* Estilização do botão móvel da barra de rolagem  */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 0 10px var(--main-color);
}

/* Esconder o checkbox */
#menu-toggle {
    display: none;
}

/* Estilo do botão hamburger (label) */
.menu-btn {
    display: none; /* Só aparece em mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
    
    
}

/* Linhas do hamburger */
.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Estilo do menu de navegação */
.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    color: white;
    font-size: 3.0rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--main-color);
}

.logo{
    cursor: pointer;
    transition: transform 0.3s ease;
    
}

.logo img{
    width: 50%;
}

.logo:hover{
    transform: scale(1.1);
    scroll-behavior: smooth;
}

.menu a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
    font-size: 2rem; /* Valor absoluto em vez de porcentagem */
}


#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
    z-index: 1001;
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--bg-color);
    margin-bottom: -5%;
}
.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-img{
    border-radius: 50%;
    text-align: center;
}
.home-img img{
    position: relative;
    width: 20vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
}

.home-img img:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p{
    font-size: 2.3rem;
    font-weight: 500;
}

.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 9rem;
    height: 9rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}



.social-icon a:hover{
    color: white;
    transform: scale(1.3) translateX(-5px);
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.03);
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color);
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

span{
    color: var(--main-color);
}

.heading{
    text-align: center;
    font-size: 70px;
    margin-bottom: 100px;
    color: #fff;
    text-shadow:  0px 0px 40px var(--main-color);;
    padding-top: 200px;
    margin-top: -5px;
}



.about{
    align-items: center;
    gap: 2.5rem;
    margin: 30px 50px;
}

.about .container-sobre {
    border: 2px solid var(--main-color); 
    border-radius: 1rem; 
    padding: 1rem; 
    width: 900px; 
    height: 550px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(32, 103, 211, 0.3); 
    margin: 0 auto; 
    overflow: hidden;
}

.container-sobre:hover{
    transition: 0.3s ease;
    overflow: hidden;
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px #fff);
}

.about .container-sobre p{
    font-size: 22px;
    font-weight: 400;
    margin: auto; 
    text-align: justify;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    margin-top: 40px;
    line-height: 1.2; /* Espaçamento entre linhas */
}


/* Projects section */

.projects {
    padding: 10rem 3% 2rem; /* Adicione padding para espaçamento */
}

.projects-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 100px;
}

.projects-box{
    width: 425px;
    background-color: rgb(32, 103, 211);
    border-radius: 2rem;
    overflow: hidden; 
    box-sizing: border-box;
    transition: 0.3s ease;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    margin: 20px;
}

.projects-box:hover {
    background: transparent;
    color: var(--text-color);
    transform: scale(1.03);
    border: 1px solid rgb(32, 103, 211);
}

.projects-box video{
    width: 100%;
    height: auto;
}

.projects-info{
    padding: 16px;
    
}

.projects-info h4{
    font-size: 2rem;
}

.projects-info p{
    font-size: 1.5rem;
    line-height: 1.5;
}

.projects-info a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgb(32, 103, 211), #0066ff);
    color: white;
    font-size: 25px;
    border-radius: 50px;
    margin-top: 15px;
}

/* Certificados */

.certificates{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8rem;
}

.border-certificates{
    text-align: center;
    transition: transform 0.3s ease;
}

.button-link{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.button-link a{
    display: inline-block;
    padding: 24px 48px;
    background: linear-gradient(135deg, var(--main-color), #0066ff);
    color: white;
    font-size: 30px;
    border-radius: 50px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.button-link a:hover{
    transform: scale(1.2);
}


.button-link a{
    display: inline-block;
    padding: 24px 48px;
    background: linear-gradient(135deg, var(--main-color), #0066ff);
    color: white;
    font-size: 30px;
    border-radius: 50px;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.button-link a:hover{
    transform: scale(1.2);
}

/* Slider */

.slider{
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: 550px;
    overflow: hidden;
}

.slides{
    width: 400%;
    height: 400px;
    display: flex;
}

.slides input{
    display: none;
    
}

.slide{
    width: 25%;
    position: relative;
    transition: 2s;
}

.slide img{
    width: 100%;
    height: auto;
    object-fit: cover;
}


#radio1:checked ~.first{ /*Seleciona o irmão no mesmo do DOM que aparece depois dele*/
    margin-left: 0;
}

#radio2:checked ~.first{
    margin-left: -25%;
}

#radio3:checked ~.first{
    margin-left: -50%;
}


#radio1:checked ~ .auto-btn1{
    background-color: #fff;
}

#radio2:checked ~ .auto-btn2{
    background-color: #fff;
}

#radio3:checked ~ .auto-btn3{
    background-color: #fff;
}

/* Habilidades */
.skills{
    background: var(--bg-color);
}

.skills .container{
    background: rgb(32, 103, 211); 
    color: var(--text-color);
    border-radius: 1rem;
    padding: 2rem; 
     width: 50%; 
     margin: auto; 
    margin-top: 2rem;
    flex-direction: row;
    display: flex;
}

.skills .container .bar{
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    transition: 0.3s ease;
}

.skills .container .bar:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px #fff);
}

.skills .container .bar .info{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.skills .container .bar .info span{
    font-size: 2rem;
    font-weight: 500;
    margin-left: 0.5rem;
    color: var(--text-color);
}


.info img{
    width: 100px;
}
.info img:hover{
    width: 120px;
    transition: 0.3s ease;
} *


/* Contatos */
.contatos h2{
    margin-bottom: 3rem;
    color: white;
}
.contatos form{
    max-width: 70rem;
    margin: 1rem auto;
    margin-bottom: 3rem;
    text-align: center;
}
.contatos form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contatos form .input-box input,
.contatos form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 3.1rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 2px solid var(--main-color);
    margin: 1rem 0;
    resize: none;
}

.contatos form .btn{
    margin-top: 2rem;
}

/* footer  */

    .footer{
        position: relative;
        bottom: 0;
        width: 100%;
        padding: 40px 0;
        background-color: var(--main-color);
    }
    .footer .social{
        text-align: center;
        padding-bottom: 25px;
        color: black;
    }
    .footer .social a{
        font-size: 35px;
        color: #000000;
        border: 2px solid black;
        width: 50px;
        height: 50px;
        display: inline-block;
        text-align: center;
        border-radius: 50%;
        margin: 0 10px;
        transform: 0.3s ease;
    }
    .footer .social a:hover{
        transform: scale(1.2) translateY(-5px);
        background: #000000;
        color: var(--main-color);
    }

    .copyright{
        margin-top: 0;
        padding: 0;
        font-size: 25px;
        line-height: 1.8;
        margin-bottom: 0;
        text-align: center;
    }
    /* menu-obrigado */
    .footer-thanks{
        position: relative;
        bottom: 0;
        width: 100%;
        padding: 50px 0;
        margin-top: 20%;
        background-color: var(--main-color);
    }

    .footer-thanks .social{
        text-align: center;
        padding-bottom: 90px;
        color: black;
    }
    .footer-thanks .social a{
        font-size: 80px;
        color: #000000;
        border: 2px solid black;
        width: 120px;
        height: 120px;
        display: inline-block;
        text-align: center;
        border-radius: 50%;
        margin: 0 10px;
        transform: 0.3s ease;
    }
    .footer-thanks .social a:hover{
        transform: scale(1.2) translateY(-5px);
        background: #000000;
        color: var(--main-color);
    }
   

    @media(max-width:2000px){
        .skills .container {
            grid-template-columns: repeat(2,1fr);
            padding: auto;
            display: flex;
            justify-content: center;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
        }
    }

    @media(min-width:2000px){
        html {
        font-size: 120%;
        }


        .skills .container {
            grid-template-columns: repeat(2,1fr);
            padding: auto;
            display: flex;
            justify-content: center;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
        }


        .border-certification img{
        width: 30vw;
        }

        .about .container-sobre p{
            font-size: 30px;
            font-weight: 400;
            margin: auto; 
            text-align: justify;
            max-width: 80%;
            margin-top: 40px;
            line-height: 1.2; /* Espaçamento entre linhas */
        }

    .about .container-sobre {
        border: 2px solid var(--main-color); 
        border-radius: 1rem; 
        padding: 1rem; 
        width: 1000px; 
        height: 850px;
        text-align: center; 
        box-shadow: 0 4px 10px rgba(32, 103, 211, 0.3); 
        margin: 0 auto; 
        overflow: hidden;
        }

    }



/* Responsividade geral */
@media (max-width: 1200px)    {
    html {
        font-size: 75%;
    }

    
}

@media (min-width: 1200px){
    .home-content h1{
        margin-top: 30%;
    }

}

@media(min-width: 1300px){  

        .border-certificates img{
            width: 100%;
        }

        .about .container-sobre{
            margin: 0 auto;
        }

        .menu a{
            font-size: 20px;
        }

}



@media (max-width: 990px){
    .header {
        padding: 1.5rem 5%;
    }

    

    .menu-btn {
        display: flex;
        position: absolute;
        right: 5%; 
        top: 1.8rem; 
    }
    
    /* Quando o checkbox estiver marcado, mostrar o menu */
    #menu-toggle:checked ~ .menu {
        left: 0;
    }
    
    /* Transformar hamburger em X quando menu aberto */
    #menu-toggle:checked ~ .menu-btn .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    #menu-toggle:checked ~ .menu-btn .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-btn .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    
    .logo img {
        width: 70%; 
        margin-bottom: 50px; 
        max-width:20%;
    }
    
    
    .home-content h1 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        margin-top: 25px;
    }
    
    .home-content h3 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .home-content p {
        font-size: 1.6rem;
    }


    #menu-icon {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        transition: .3s ease;
        padding-top: 80px; 
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu a {
        display: block;
        margin: 1.5rem 0;
        font-size: 2rem;
    }

}

@media (max-width: 790px) {
     .header {
        padding: 1.5rem 5%;
    }

    
    
    .menu-btn {
        display: flex;
        position: absolute;
        right: 5%; 
        top: 1.8rem; 
    }

     .logo img {
        width: 70%; 
        margin-bottom: 50px; 
        max-width:20%;
    }
    
    
    .home-content h1 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        margin-top: 25px;
    }
    
    .home-content h3 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .home-content p {
        font-size: 1.6rem;
    }


    #menu-icon {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        transition: .3s ease;
        padding-top: 80px; 
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu a {
        display: block;
        margin: 1.5rem 0;
        font-size: 2rem;
    }
    
    
    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }
    
    
    .home-img img {
        width: 50vw;
        margin-top: 2rem;
    }
    
    .social-icon {
        justify-content: center;
    }

    .about .container-sobre {
        width: 100%;
        padding: 2rem;
        height: 100%;
    }
    
    /*slicers for certificates*/


    .slide{
       height: 200px;
    }
    

    .skills .container {
        grid-template-columns: repeat(1, 1fr);
    }    

}

/* Responsividade para tablets e celulares grandes */
@media (max-width: 768px) {

    .header {
        padding: 1.5rem 5%;
    }

    
    
    .menu-btn {
        display: flex;
        position: absolute;
        right: 5%; 
        top: 1.8rem; 
    }
    
    /* Quando o checkbox estiver marcado, mostrar o menu */
    #menu-toggle:checked ~ .menu {
        left: 0;
    }
    
    /* Transformar hamburger em X quando menu aberto */
    #menu-toggle:checked ~ .menu-btn .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    #menu-toggle:checked ~ .menu-btn .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-btn .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    
    .logo img {
        width: 70%; 
        margin-bottom: 50px; 
        max-width:20%;
    }
    
    
    .home-content h1 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        margin-top: 25px;
    }
    
    .home-content h3 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .home-content p {
        font-size: 1.6rem;
    }


    #menu-icon {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        transition: .3s ease;
        padding-top: 80px; 
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu a {
        display: block;
        margin: 1.5rem 0;
        font-size: 2rem;
    }
    
    
    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }
    
    
    .home-img img {
        width: 50vw;
        margin-top: 2rem;
    }
    
    .social-icon {
        justify-content: center;
    }

    .about .container-sobre {
        width: 100%;
        padding: 2rem;
        height: 100%;
    }
    
    /*slicers for certificates*/


    .slide{
       height: 200px;
    }
    

    .skills .container {
        grid-template-columns: repeat(1, 1fr);
    }

}

/* Responsividade para celulares pequenos (a partir de 400px) */
@media (max-width: 480px) {
    html {
        font-size: 60%;
    }
    
    .header {
        padding: 1.5rem 4%;
    }

     .hamburger-line {
        height: 2.5px;
    }

    
    .home-content h1 {
        font-size: 3rem;
    }
    
    .logo img {
        width: 40%;
        height: auto;
        margin-bottom: 0;
        display: block;

    }
    
    .home .home-content h1 {
        font-size: 4rem;
        margin-top: 25%;
    }
    
    .home-content h3 {
        font-size: 2.5rem;
    }
    
    .home-img img {
        width: 70vw;
    }

    .menu-btn{
        display: flex;
        margin-right: 10%;
        margin-top: 7%;
        top: 1.5rem;
        width: 25px;
        height: 18px;
    }

    .heading {
        font-size: 4rem;
        padding-top: 10rem;
        margin-bottom: 5rem;
    }
    
    .about .container-sobre {
        width: 100%;
        padding: 2rem;
        height: 100%;
    }
    
    .about .container-sobre p {
        font-size: 1.6rem;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }


    /*slicers for certificates*/


    .slide{
       height: 200px;
    }

    .manual-navigation{
        position: absolute;
        width: 100%;
        bottom: 20px;
        display: flex;
        justify-content: center;
        margin-top: 0;
    }



    /* skills */
    .skills .container .row{
        grid-template-columns: repeat(1,1fr);
        padding: auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .button-link a{
        padding: 24px 48px;
        font-size: 20px;
    }

    .button-link{
        margin-top: -40%;
    }
    
    .info img {
        width: 80px;
    }
    
    .contatos form {
        width: 95%;
    }

    .contatos form .input-box input,
    .contatos form textarea{
        font-size: 2rem;
    }
    
    .footer .social a {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .copyright {
        font-size: 1.4rem;
    }


}

