/*estilo--geral */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body{
    background-color: black;
    height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* ===== DESKTOP ===== */
#contato-desktop {
  scroll-margin-top: 240px; /* mantenha este valor que já funciona para você */
}

/* Isso arredonda as bordas de TODOS os projetos no Desktop e Mobile */
.img-port {
    border-radius: 20px !important; /* Arredondamento dos cantos */
    overflow: hidden !important;    /* Garante que o conteúdo/fundo não "vaze" pelas bordas */
}

.logo-ajustada {
    background-size: contain !important; 
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #000 !important; 
    
    /* Forçando o arredondamento */
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid #333; /* Adicione uma borda fina cinza para testar se ela aparece */
}

/* ===== MOBILE ===== */
@media (max-width: 1020px) {
  #contato-mobile {
    scroll-margin-top: 780px; 
  }
}

@media screen and (max-width: 1020px) {
    .flex {
        display: flex;
        flex-direction: column; /* Garante que a ANVEE apareça primeiro no topo */
    }

    .img-port {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        border-radius: 20px; /* Mantém o arredondado no mobile */
    }

    section.portfolio .flex {
        gap: 40px; /* Espaço entre os cards no celular */
    }
}


.interface{
    max-width: 1280px;
    margin: 0 auto;
}

.flex{
    display: flex;
}

.btn-contato button{
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: #00ff08;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

h2.titulo{
    color: #fff;
    font-size: 38px;
    text-align: center;
}

h2.titulo span{
    color: #00ff08;
}

button:hover, form .btn-enviar input:hover{
    box-shadow: 0px 0px 8px #00ff22; 
    transform: scale(1.05);
    
}


/*estilo do cabeçalho */

header{
    padding: 40px 4%;
}

header > .interface{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a{
    color: #5c5c5c;
    text-decoration: none;
    display: inline-block;
    transition: .2s;
}

header nav.menu-desktop a:hover{
    color: #fff;
    transform: scale(1.05);
}

header nav ul{
    list-style-type: none;
}

.especialidades-box p, .sobre .txt-sobre p{  
    text-align: left;
    line-height: 1.6;
}

header nav.menu-desktop ul li{
    display: inline-block;
    padding: 0 40px;
}

/* ESTILO DO MENU MOBILE*/
.btn-abrir-menu i{
    color: #00ff08;
    font-size: 40px;
}

.btn-abrir-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;

    background: transparent; /* remove a bola preta */
    padding: 0;
    border-radius: 0;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Ícone */
.btn-abrir-menu i {
    font-size: 40px;
    color: #00ff08;
    transition: transform 0.3s ease;
}

/* efeito suave ao passar o dedo/mouse */
.btn-abrir-menu:hover i {
    transform: scale(1.15);
}

/* quando menu estiver aberto, esconde suavemente */
.menu-mobile.abrir-menu ~ .btn-abrir-menu {
    opacity: 0;
    pointer-events: none;
}

.btn-abrir-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;

    background: transparent; /* remove a bola preta */
    padding: 0;
    border-radius: 0;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Ícone */
.btn-abrir-menu i {
    font-size: 40px;
    color: #00ff08;
    transition: transform 0.3s ease;
}

/* efeito suave ao passar o dedo/mouse */
.btn-abrir-menu:hover i {
    transform: scale(1.15);
}

/* quando menu estiver aberto, esconde suavemente */
.menu-mobile.abrir-menu ~ .btn-abrir-menu {
    opacity: 0;
    pointer-events: none;
}

.menu-mobile{
    background-color: #000;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: .4s;
}

.menu-mobile.abrir-menu{
    width: 70%;
}

.menu-mobile.abrir-menu ~ .over-menu{
    display: block;
}

.menu-mobile .btn-fechar{
    padding: 20px 4%;
}

.menu-mobile .btn-fechar i{
    color: #00ff08;
    font-size: 30px;


}

.menu-mobile nav ul{
    text-align: right;

}

.menu-mobile nav ul li a{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 20px 8%;
    display: block;
}

.menu-mobile nav ul li a:hover{
    background-color: #00ff08;
    color: #000;
}

.over-menu{
    background-color: #000000a7;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;

}


/* ESTILO DO TOPO DO SITE */

section.topo-do-site{
    padding: 40px 4%;
}

section.topo-do-site .flex{
    align-items: center;
    justify-content: center;
    gap: 90px;
}

.topo-do-site h1{
    color: #fff;
    font-size: 42px;
    line-height: 40px;
}

.topo-do-site .txt-topo-site h1 span{
    color: #00ff08;
}

.topo-do-site .txt-topo-site p{
    color: #fff;
    margin: 40px 0;
}

.topo-do-site .img-topo-site img{
    animation: flutuar 6s ease-in-out infinite;
    will-change: transform;
}

/* --- Ajuste do Texto no Portfólio (ANVEE) --- */

/* 1. Organiza o container do texto */
.overlay {
    display: flex !important;
    flex-direction: column !important; /* Coloca ANVEE em cima e o status em baixo */
    justify-content: center !important; /* Centraliza verticalmente no meio do card */
    align-items: center !important;    /* Centraliza horizontalmente */
    text-align: center;
    line-height: 1.2; /* Ajusta o espaçamento entre as linhas */
}

/* 2. Ajusta o tamanho e cor do (EM DESENVOLVIMENTO) */
.overlay span {
    display: block; /* Força a quebra de linha */
    font-size: 0.65em; /* Deixa o status menor e elegante */
    margin-top: 10px;  /* Dá uma distância do nome ANVEE */
    font-weight: 600;
    color: #00ff08;    /* Azul para destacar a fase do projeto */
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes flutuar {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ESTILO DAS ESPECIALIDADES */
section.especialidades{
    padding: 40px 4%;
}

section.especialidades .flex {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
}

.especialidades-box {
    flex: 1;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    color: #fff;
    border-radius: 20px;
    margin-top: 45px;
    transition: .2s;
}

.especialidades-box:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffffff78;
}

.especialidades-box i{
    font-size: 70px;
    color: #00ff08;
}

.especialidades-box h3{
    font-size: 28px;
    margin: 15px 0;
}

.especialidades-box p{
    text-align: left;
    line-height: 1.6;
}

/* MOBILE */
@media screen and (max-width: 1020px){
    section.especialidades .flex {
        flex-direction: column;
        align-items: center;
    }

    .especialidades-box {
        width: 100%;
        max-width: 420px;
    }

    .especialidades-box p{
        text-align: left;
    }
}

/* TAMANHO MENOR NO MOBILE */
@media (max-width: 1020px) {
    .btn-abrir-menu i {
        font-size: 28px; /* ajuste fino: 26px / 28px / 30px */
    }

    .btn-abrir-menu {
        top: 15px;
        right: 15px;
    }
}

/*ESTILO DO SOBRE*/

section.sobre .flex {
    justify-content: center;
}

.sobre .txt-sobre {
    text-align: center;
    max-width: 600px;
}

.sobre .txt-sobre p {
    text-align: center;
}

.btn-social {
    justify-content: center;
    display: flex;
    margin-top: 20px;
}

section.sobre{
    padding: 80px 4%;
}

section.sobre .flex{
    align-items: center;
    gap: 40px;
}

.sobre .txt-sobre{
    color: #fff;
}

.sobre .txt-sobre h2{
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre h2 span{
    color: #00ff08;
    display: block;
}

.sobre .txt-sobre p{
    margin: 20px 0;
    text-align: justify;
}

.btn-social button{
    width: 60px;
    height: 60px;
    border-radius: 30px;
    border: none;
    background-color: #00ff08;
    font-size: 22px;
    cursor: pointer;
    margin: 0 5px;
    transition: .2s;
}

.sobre .img-sobre img{
    border-radius: 30px;
    border: none;
}

@media (min-width: 1021px) {
    .sobre .img-sobre {
        transform: translateX(-180px); /* ajuste fino aqui */
    }
}


/*ESTILO DO PORTFÓLIO */
section.portfolio{
    padding: 80px 4%;
    box-shadow: 0 0 40px 10px #ffffff1d;
}

section.especialidades .flex{
    display: flex;
    gap: 60px;
    justify-content: center;
}

.especialidades-box{
    flex: 1;
    max-width: 380px;
    padding: 40px;
    text-align: center;
}

section.portfolio .flex{
    justify-content: space-around;
    margin-top: 60px;

}



.img-port{
    width: 360px;
    height: 460px;
    background-color: #00ff08;
    background-size: cover;
    background-position: 100% 0%;
    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: #000000b8;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: .5s;
}

.overlay:hover{
    opacity: 1;
}

/* ESTILO DO FORMULÁRIO DE CONTATO */
section.formulario{
    padding: 80px 4%;
}

form{
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

}

form input, form textarea{
    width: 100%;
    background-color: #242424;
    border: 0;
    outline: 0;
    padding: 20px 15px;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    
}

form textarea{
    resize: none;
    max-height: 200px;
}

form .btn-enviar{
    margin-top: 20px;
    text-align: center;
}

form .btn-enviar input{
    width: 120px;
    background-color: #00ff08;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

/* ESTILO DO RODAPÉ */
footer{
    padding: 40px 4%;
    box-shadow: 0 0 40px 10px #ffffff1d;
}

footer .flex{
    justify-content: space-between;
}

footer .line-footer{
    padding: 20px 0;
    
}

.borda{
    border-top: 2px solid #00ff08;
}

footer .line-footer p i{
    color: #00ff08;
    font-size: 22px;
}

footer .line-footer p a{
    color: #fff;
}

@media screen and (max-width: 1020px){
    /* CLASSES GERAIS */ 
    .topo-do-site .flex {
        flex-direction: column;
    }    
    
/* 2. FORÇA a ordem correta APENAS no Portfólio */
section.portfolio .flex {
    display: flex !important;
    flex-direction: column !important; /* Aqui a ANVEE ficará no topo */
}

/* 3. Garante o arredondamento em tudo (como você pediu) */
.img-port, .logo-ajustada {
    border-radius: 25px !important;
    overflow: hidden !important;
}

    .flex {
        flex-direction: column-reverse;
    }  

    h2.titulo {
        font-size: 34px;
        line-height: 30px;
    }

    /* CORRIGE ESPECIALIDADES NO MOBILE */
section.especialidades .flex {
    flex-direction: column;
    align-items: center;
}

.especialidades-box {
    width: 100%;
    max-width: 420px;
    margin: 20px auto;
}

.especialidades-box p, .sobre .txt-sobre p{
    text-align:left;
    line-height: 1.6;
    word-break: normal;
    hyphens: auto;
}

.especialidades-box {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}



    /* CABEÇALIO */
    .menu-desktop, .btn-contato {
        display: none;
    }

    /* TOPO DO SITE */
    section.topo-do-site {
        padding: 20px 8%;
    }

    .topo-do-site h1 {
        font-size: 30px;
    }

    .topo-do-site .img-topo-site img {
        width: 100%;
    }

    /* TOPO DO SITE*/

    section.topo-do-site .flex {
        gap: 40px;
    }

    /* ESTILO DAS ESPECIALIDADES */
    section.especialidades {
        padding: 40px 8%;
    }

    /* sobre */

    section.sobre {
        padding: 80px 8%;
    }

    .sobre .txt-sobre h2 {
        font-size: 34px;
        line-height: 35px;
        text-align: center;
    }

    .btn-social {
        text-align: center;
    }

    .img-sobre img {
        width: 100%;
    }

    /* PORTFOLIO */

    section.portfolio {
        padding: 80px 8%;
    }

    .img-port {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    section.portfolio .flex {
        gap: 60px;
    }

    /*RODAPE*/

    footer .flex {
        flex-direction: column;
        gap: 30px;
    }

    footer .line-footer {
        text-align: center;
    }
    
.especialidades .especialidades-box i {
    font-size: 50px;
}

.especialidades .especialidades-box h3 {
    font-size: 22px;
}

.sobre .txt-sobre{
    max-width: 600px;
}


}
