/* ESTILO GERAL */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body{
    background: radial-gradient(circle at center, #1a0101 0%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

.flex{
    display: flex;
}

/* TÍTULOS GERAIS */
h2.title, .txt-sobre h2, .titulo-footer h3 {
    color: #fff;
    font-size: 45px;
    text-align: center;
    margin-bottom: 50px;
}

h2.title span, .txt-sobre h2 span, .titulo-footer h3 span {
    color: #880808;
}

/* CABEÇALHO */
header{
    padding: 10px 4%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    transition: transform 0.4s ease;
}

header.hide {
    transform: translateY(-100%);
}

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

.logo img {
    width: 65px;
    height: auto;
    border-radius: 50%;
    display: block;
}

header nav.menu-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: .2s;
}

header nav ul li a:hover {
    color: #880808;
}

.btn-contato button {
    padding: 8px 25px;
    font-size: 15px;
    font-weight: 600;
    background-color: #880808;
    color: #fff;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

.btn-contato button:hover {
    box-shadow: 0px 0px 15px #ff0000;
    transform: scale(1.05);
}

/* TOPO DO SITE */
section.topo-do-site {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4%;
    position: relative;
}

.topo-do-site .flex {
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
}

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

.topo-do-site h1 span { color: #880808; }

.topo-do-site p {
    color: #ccc;
    margin: 30px 0;
    font-size: 20px;
}

.img-topo-site img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    animation: flutuar 2.5s ease-in-out infinite alternate;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #880808;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

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

/* EXPERIENCES */
section.especialidades {
    padding: 100px 4%;
}

section.especialidades .flex {
    gap: 30px;
    justify-content: center;
}

.especialidades-box {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    background-color: rgba(8, 8, 8, 0.8);
    border: 2px solid transparent;
    transition: .3s ease-in-out;
    cursor: pointer;
    position: relative;
}

.especialidades-box:hover {
    transform: scale(1.05);
    border: 2px solid #880808;
    box-shadow: 0 0 20px rgba(136, 8, 8, 0.4);
}

.especialidades-box i {
    font-size: 50px;
    color: #880808;
    margin-bottom: 20px;
}

.video-container { width: 100%; position: relative; margin-top: 20px; }

.video-container video {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* OVERLAY CUSTOMIZADO */
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    transition: 0.3s;
    z-index: 2;
}

.play-button i {
    font-size: 60px !important;
    color: #fff !important;
    margin-bottom: 0 !important;
}

/* LÓGICA QUANDO O VÍDEO ESTÁ RODANDO */
.especialidades-box.playing .video-overlay {
    opacity: 0;
    pointer-events: none; /* Deixa os cliques passarem para os controles do vídeo */
}

/* SOBRE */
section.sobre { padding: 100px 4%; }
section.sobre .flex { align-items: center; justify-content: center; gap: 80px; }
.sobre .txt-sobre { text-align: left; }
.sobre .txt-sobre h2 { text-align: left; margin-bottom: 20px; }
.sobre .img-sobre img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
}

/* RODAPÉ */
footer.social-footer {
    padding: 60px 4%;
    border-top: 1px solid rgba(136, 8, 8, 0.2);
    text-align: center;
}
.social-icons { margin: 25px 0; }
.social-icons i { color: #fff; font-size: 35px; margin: 0 15px; transition: .3s; }
.social-icons i:hover { color: #880808; transform: translateY(-5px); }
.txt-footer p { color: #666; font-size: 13px; }

/* RESPONSIVIDADE CORRIGIDA (VÍDEOS EMBAIXO DO OUTRO NO CELULAR) */
@media screen and (max-width: 768px) {
    header nav.menu-desktop, .btn-contato, .scroll-indicator { display: none; }
    header > .interface { justify-content: center; }
    
    section.topo-do-site { height: auto; padding: 150px 4% 80px 4%; }
    .topo-do-site .flex { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .topo-do-site h1 { font-size: 38px; }

    section.especialidades .flex {
        flex-direction: column; /* Força um abaixo do outro */
        align-items: center;
    }

    .especialidades-box {
        width: 100%;
        max-width: 450px;
        margin-bottom: 20px;
    }

    section.sobre .flex { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .sobre .txt-sobre h2 { text-align: center; }
}