/* ===================================================
   RESET E ESTILOS GERAIS
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #000;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

.flex {
    display: flex;
    align-items: center;
}

/* BOTÕES GERAIS E HEADER */
.btn-contato {
    display: flex;
    gap: 10px;
}

.btn-contato button,
.btn-acoes-topo button {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    background-color: #00FF08;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    color: #000;
}

.btn-contato button:hover,
.btn-acoes-topo button:hover,
form .btn-enviar input:hover {
    box-shadow: 0 0 10px #00ff08;
    transform: scale(1.05);
}

/* BOTÕES DA SECÇÃO TOPO DO SITE */
.btn-acoes-topo {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* TÍTULOS */
h2.titulo {
    color: #fff;
    font-size: 38px;
    text-align: center;
    margin-bottom: 2rem;
}

h2.titulo span {
    color: #00FF08;
}

/* CABEÇALHO */
header {
    padding: 20px 4%;
    background: #111;
    position: sticky;
    top: 0;
    z-index: 9999;
}

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

header a {
    color: #a8a8a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

header nav.menu-desktop a:hover {
    color: #00FF08;
}

header nav ul {
    list-style-type: none;
}

header nav.menu-desktop ul li {
    display: inline-block;
    padding: 0 20px;
    font-weight: 600;
    font-size: 16px;
}

/* BOTÃO E MENU MOBILE */
.btn-abrir-menu {
    display: none;
    cursor: pointer;
}

.btn-abrir-menu i {
    color: #00FF08;
    font-size: 36px;
}

.menu-mobile {
    background-color: #000;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: width 0.4s ease;
    display: flex;
    flex-direction: column;
}

.menu-mobile.abrir-menu {
    width: 75%;
}

.menu-mobile .btn-fechar {
    padding: 20px 5%;
    align-self: flex-end;
}

.menu-mobile .btn-fechar i {
    color: #00FF08;
    font-size: 30px;
    cursor: pointer;
}

.menu-mobile nav ul {
    text-align: right;
    margin-top: 1rem;
}

.menu-mobile nav ul li a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 8%;
    display: block;
}

.overlay-menu {
    background-color: rgba(0, 0, 0, 0.85);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

.menu-mobile.abrir-menu ~ .overlay-menu {
    display: block;
}

/* TOPO DO SITE */
section.topo-do-site {
    padding: 60px 4%;
}

section.topo-do-site .flex {
    justify-content: space-between;
    gap: 40px;
}

.topo-do-site .txt-topo-site {
    max-width: 650px;
}

.topo-do-site h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.2;
}

.topo-do-site .txt-topo-site h1 span {
    color: #00FF08;
}

.topo-do-site .txt-topo-site h2 {
    margin-top: 15px;
    font-size: 22px;
    font-weight: 500;
}

.topo-do-site .txt-topo-site h2 span {
    color: #00FF08;
}

.topo-do-site .txt-topo-site p {
    color: #ccc;
    margin: 15px 0;
    line-height: 1.6;
}

.topo-do-site .img-topo-site img {
    max-width: 380px;
    animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
    0% { transform: translateY(0); }
    100% { transform: translateY(15px); }
}

/* ESPECIALIDADES */
.especialidades {
    padding: 60px 4%;
    background-color: #111;
}

.especialidades .flex {
    justify-content: space-between;
    gap: 20px;
}

.especialidades-box {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background-color: #181818;
    border-radius: 15px;
}

.especialidades-box i {
    font-size: 45px;
    color: #00FF08;
    margin-bottom: 15px;
}

.especialidades-box h3 {
    color: #00FF08;
    margin-bottom: 10px;
}

.especialidades-box p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.5;
}

/* SOBRE */
.sobre {
    padding: 60px 4%;
}

.sobre .flex {
    gap: 50px;
}

.img-sobre img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #00FF08;
}

.txt-sobre {
    max-width: 600px;
}

.txt-sobre h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 15px;
}

.txt-sobre h2 span {
    color: #00FF08;
}

.txt-sobre p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-social button {
    background: transparent;
    border: none;
    color: #00FF08;
    font-size: 28px;
    cursor: pointer;
    margin-right: 15px;
}

/* PORTFÓLIO */
.portfolio {
    padding: 60px 4%;
}

.carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.img-port {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.img-port .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* FORMULÁRIO */
.formulario {
    padding: 60px 4%;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 15px;
    background-color: #181818;
    color: #fff;
}

form textarea {
    min-height: 120px;
}

.btn-enviar {
    text-align: center;
}

form .btn-enviar input {
    padding: 12px 40px;
    font-weight: 700;
    background-color: #00FF08;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: #000;
}

/* ===================================================
   POPUP MODAL FLUTUANTE (AJUSTADO PARA MOBILE)
   =================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #121212;
    border: 2px solid #00FF08;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 85%;
    box-shadow: 0 0 20px rgba(0, 255, 8, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-icon i {
    font-size: 50px;
    color: #00FF08;
}

.modal-box h2 {
    color: #ffffff;
    margin: 15px 0 10px 0;
    font-size: 22px;
}

.modal-box p {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-box button {
    background-color: #00FF08;
    color: #000000;
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-box button:hover {
    background-color: #00cc06;
    transform: scale(1.05);
}

/* RODAPÉ */
footer {
    padding: 40px 4%;
    background-color: #111;
}

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

footer .line-footer.borda {
    border-top: 1px solid #222;
}

footer a {
    color: #00FF08;
    text-decoration: none;
}

/* ===================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   =================================================== */

@media screen and (max-width: 1024px) {
    header nav.menu-desktop,
    header .btn-contato {
        display: none;
    }

    .btn-abrir-menu {
        display: block;
    }

    .topo-do-site .flex,
    .sobre .flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .btn-acoes-topo {
        justify-content: center;
    }

    .especialidades .flex {
        flex-direction: column;
        gap: 20px;
    }

    .especialidades-box {
        width: 100%;
    }

    .txt-sobre {
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .topo-do-site h1 {
        font-size: 24px;
    }

    .topo-do-site .txt-topo-site h2 {
        font-size: 16px;
    }

    h2.titulo {
        font-size: 24px;
    }

    .btn-acoes-topo {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-acoes-topo button {
        width: 100%;
    }

    .img-topo-site img {
        max-width: 220px;
    }

    .img-sobre img {
        width: 200px;
        height: 200px;
    }

    .img-port {
        width: 100%;
        max-width: 320px;
    }
}
