* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: black;
    height: 100vh;
}

h2 span {
    color: #ff0000; 
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.btn-contato button {
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: red;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
}

h2.titulo {
    color: #ffffff;
    font-size: 38px;
    text-align: center;
    font-weight: 700; 
}

h2.titulo span {
    color: red;
}

button:hover,
form .btn-enviar input:hover {
    box-shadow: 0px 0px 8px red;
    transform: scale(1.05);
}

/* Cabeçalho */
header {
    padding: 40px 4%;
}

header > .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: #929292;
    text-decoration: none;
    display: inline-block;
}

header a:hover {
    color: #ffffff;
    transform: scale(1.05);
    transition: .2s;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    padding: 0 40px;
}

.btn-contato button:hover {
    box-shadow: 0px 0px 8px red;
    transform: scale(1.05);
    transition: .2s;
}

header img {
    width: 100px;
    height: auto;
}

/* Topo do site */
section.topo-do-site {
    padding: 40px 4%;
}

section.topo-do-site .flex {
    align-items: center;
    justify-content: flex-start;
    gap: 90px;
}

.topo-do-site h1 {
    color: #ffffff;
    font-size: 40px;
}

main img {
    width: 500px;
}

.topo-do-site h1 span {
    color: red;
}

.topo-do-site .txt-topo-site p {
    color: #ffffff;
    margin: 20px 0;
}

.topo-do-site .txt-topo-site {
    text-align: left;
    margin-left: 0;
}

.topo-do-site .img-topo-site img {
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
    0% {
        top: 0;
    }
    100% {
        top: 30px;
    }
}

/* Estilo das especialidades */
section.especialidades {
    padding: 200px 4%;
}

section.especialidades .flex {
    gap: 60px;
}

.especialidades .especialidades-box {
    color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    margin-top: 45px;
    transition: .2s;
}

.especialidades .especialidades-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff5b5b;
}

.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: 60px;
}

.sobre .txt-sobre {
    color: #ffffff;
}

.sobre .txt-sobre h2 {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
    color: red;
    display: block;
}

.sobre .txt-sobre p {
    margin: 20px 0;
    text-align: justify;
}

.rede-social button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: red;
    font-size: 22px;
    cursor: pointer;
    margin: 0 5px;
    transition: .2s;
}

.btn-cv {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    color: #000000;
    background-color: #ff0000;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-cv:hover {
    background-color: #ff0000;
    transform: scale(1.05);
    box-shadow: 0px 0px 8px red;
}

.portfolio {
    margin-top: 150px; 
}

.portfolio-title {
    font-size: 2.5rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
}
.portfolio-title span {
    color: #ff0000;
    font-weight: normal;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.2rem;
    padding: 20px;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.portfolio-box img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease-in-out;
}

.portfolio-box:hover img {
    transform: scale(1.1); 
}

.portfolio-layer {
    position: absolute;
    bottom: -100%; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: bottom 0.5s ease-in-out;
    opacity: 0;
}

.portfolio-box:hover .portfolio-layer {
    bottom: 0; /* Sobe ao passar o mouse */
    opacity: 1;
}

.portfolio .portfolio-layer h4 p {
    color: #ffffff;   
}

.portfolio-layer h4,
.portfolio-layer p {
    color: white;
}


.portfolio-layer h4 {
    font-size: 1.8rem;
}

.portfolio-layer p {
  margin: 0.2rem 0 0.5rem;
}

.portfolio-layer i {
    font-size: 1.2rem;
    color: #ff0000;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--text-color);
    border-radius: 50%;
}



/* Formulário */

section.formulario {
    padding: 80px 4%;
    margin-top: 150px;
}

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: #242424;
    border: 0;
    outline: 0;
    padding: 20px 15px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 18px;
}

form textarea {
    height: 200px;
    resize: none;
}

form .btn-enviar {
    margin-top: 40px;
    text-align: center;
}

form .btn-enviar input {
    width: 120px;
    background-color: red;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

/* Footer */
footer {
    padding: 60px 4%; 
    box-shadow: 0 0 40px 10px #0e0e0e;
    background-color: black; 
}

footer .flex {
    justify-content: space-between; 
    align-items: center; 
}

footer .logo-final {
    flex: 1; 
}

footer .rede-social {
    display: flex; 
    justify-content: flex-end; 
    flex: 1; 
}
.rede-social button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: red;
    font-size: 22px;
    cursor: pointer;
    margin: 0 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

.rede-social button:hover {
    transform: scale(1.05); 
    box-shadow: 0px 0px 8px red; 
}

.logo-final img {
    width: 100px;
    height: auto;
}

@media screen and (max-width: 1020px){
    /* Geral */
    .flex{
        flex-direction: column-reverse;
    }

    /* Cabeçalho */
    .menu-desktop, .btn-contato{
        display: none;
    }

    /* Topo */
    .topo-do-site h1{
        font-size: 30px;
    }
   
    .topo-do-site .img-topo-site img {
        width: 100%;
    }

    /* Especialidades */
    .especialidades {
        padding: 40px 8%;
    }

    /* Sobre */
    .sobre {
    padding: 80px 8%;
    }

    .sobre .txt-sobre h2 {
        font-size: 34px;
        line-height: 35px;
        text-align: center;
    }
    .rede-social {
        text-align: center;
    }

    .img-sobre img {
        width: 100%;
    }

    /* Meus projetos */
    .portfolio-container {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .portfolio-box {
        margin-bottom: 20px;
    }

    .portfolio-layer {
        bottom: -100%;
        opacity: 0;
    }

    .portfolio-box:hover .portfolio-layer {
        bottom: 0;
        opacity: 1;
    }
    .portfolio-layer h4 {
        font-size: 30px;
    }

    .portfolio-layer p {
        display: none;
    }
}