@import url('https://fonts.googleapis.com/css2?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&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: "Poppins", sans-serif;
}

body{
    background-color: rgb(0, 0, 0);
    height: 100vh;
}

.interface{
    max-width: 1280px;
    margin: 0 auto;
}

.flex{
    display: flex;
}

header{
    padding: 40px 4%;
}

header > .interface{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo h1{
    color: white;
    transition: .2s;
}

header .logo h1 span{
    color: red;
}

header .logo h1:hover{
    color: rgb(255, 255, 255);
}

header a{
    color: rgb(78, 78, 78);
    display: inline-block;
    transition: .2s;
}

header a:hover{
    color: white;
    transform: scale(1.05);
}

header nav ul li{
    display: inline-block;
    padding: 0 40px;
}

.btn-contato button{
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: rgb(255, 0, 0);
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

button:hover, form .btn-enviar input[type=submit]:hover{
    box-shadow: 0px 0px 8px rgba(255, 0, 0, 0.658);
    transform: scale(1.05);
    color:white;
}

h2.titulo{
    color: white;
    font-size: 38px;
    text-align: center;
}

h2.titulo span{
    color: red;
}

section.topo-do-site{
    padding: 40px 4%;
}

.txt-topo h3{
    font-size: 3.5rem;
}

.text-animation{
    color: red;
    font-size: 20px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Web Developer";
    color: red;
    animation: words 20s infinite;
}

.text-animation span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid red;
    }
}

@keyframes words{
    0%,20%{
        content: "Web Developer";
    }
    21%,40%{
        content: "UI/UX Designer";
    }
    41%,60%{
        content: "Web Designer";
    }61%,80%{
        content: "FullStack Dev";
    }81%,100%{
        content: "Software Tester";
    }
}

@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}

section.topo-do-site .flex{
    align-items: center;
    justify-content: center;
}

.topo-do-site .txt-topo h1{
    color: white;
    font-size: 30px;
    font-weight: 700;
}

.topo-do-site .txt-topo h1 span{
    color: red;
}

.topo-do-site .txt-topo p{
    color: white;
    margin: 40px 0;
}

.topo-do-site .img-topo-site img{
    width: 100%;
    border-radius: 300px;
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar{
    0%{
        top: 0;
    }
    100%{
        top: 30px;
    }
}


section.especialidades{
    padding: 40px 4%;
    margin-top: 200px;
}

section.especialidades .flex{
    gap: 60px;
}

.especialidades .especialidades-box{
    color: white;
    padding: 40px;
    margin-top:45px;
    border-radius: 25px;
    transition: .2s;
    cursor: pointer;
}

.especialidades .especialidades-box:hover{
    transform: scale(1.05);
    box-shadow: 0 0 9px #ffffff8f;
}

.especialidades .especialidades-box i{
    font-size: 70px;
    color: red;
}

.especialidades .especialidades-box h3{
    font-size: 28px;
    margin: 15px 0;
}

section.sobre{
    padding: 40px 4%;
}

section.sobre .flex{
    align-items: center;
    gap: 80px;
}

.img-sobre img{
    width: 100%;
    border-radius: 100px;
}

.sobre .txt-sobre{
    color: white;
}

.sobre .txt-sobre h2{
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre span{
    display: block;
    color: red;
}

.sobre .txt-sobre p{
    margin: 20px 0;
    text-align: justify;
}

.btn-social button{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: red;
    font-size: 22px;
    cursor: pointer;
    margin: 0 5px;
    transition: .2s;
}

section.portifolio{
    padding: 80px 4%;
    box-shadow: 0 0 40px 10px #ffffff31;
}

section.portifolio .flex{
    justify-content: space-around;
    margin-top: 60px;
}

.img-port{
    width: 360px;
    height: 460px;
    background-size: cover;
    background-position: 0% 50%;
    transition: 8s;
    cursor: pointer;
    border-radius: 40px;
    position: relative;
}

.img-port:hover{
    background-position: 100% 100%;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000094;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    opacity: 0;
    transition: .5s;
}

.overlay a{
    color: white;
}

.overlay:hover{
    opacity: 1;
}

section.formulario{
    padding: 80px 4%;
}

form{
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
}

form input, form textarea{
    width: 100%;
    background-color: rgb(51, 49, 49);
    border: 0;
    outline: 0;
    padding: 20px 15px;
    border-radius: 15px;
    color: white;
    font-size: 18px;
}

form input::placeholder{
    color: white;
}

form textarea{
    resize: none;
    max-height: 600px;
}

form .btn-enviar{
    margin-top: 20px;
    text-align: center;
}

form .btn-enviar input[type=submit]{
    width: 120px;
    background-color: red;
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.logo-footer h2{
    color: white;
    font-size: 36px;
}

.logo-footer span{
    color: red;
}

footer{
    padding: 60px 4%;
    box-shadow: 0 0 40px 10px #ffffff31;
}

footer .flex{
    justify-content: space-between;
}

footer .line-footer{
    padding: 20px 0;
}

.borda{
    border-bottom: 2px solid red;
}

footer .line-footer p i{
    color: red;
    font-size: 22px;
}

footer .line-footer p a{
   color: white; 
}

@media screen and (max-width: 1020px){
    .flex{
        flex-direction: column;
    } 

    .menu-desktop, .btn-contato{
        display: none;
    }

    section.topo-do-site .flex{
        gap: 40px;
    }

    section.topo-do-site{
        padding: 20px 8%;
    }

    .topo-site h1{
        font-size: 30px;
    }

    .topo-do-site .img-topo-site img{
        width: 100%;
    }

}