/* ==========================================================================
1. GERAL & VARIÁVEIS
========================================================================== */
:root {
    --principal: #32e7de; /* Ciano Neon */
    --alerta: #ff003c;    /* Vermelho Emergência */
    --fundo: #000000;
    --card: #0a0a0a;
    --texto: #ffffff;
    --texto-secundario: #b3b3b3;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--fundo);
    /* FUNDO DE GRADE DIGITAL (ESTILO PROGRAMADOR) */
    background-image: 
        linear-gradient(rgba(50, 231, 222, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 231, 222, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: var(--texto);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
2. SEÇÕES
========================================================================== */
section { 
    padding: 80px 0; 
    border-bottom: 1px solid #111; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

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

.titulo-sessao { 
    text-align: center; 
    margin-bottom: 50px; 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.2rem;
    color: var(--principal);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
header { 
    background: rgba(0, 0, 0, 0.95); 
    padding: 15px 0; 
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    border-bottom: 1px solid #1a1a1a;
    transition: 0.3s;
}

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

/* Estilo para Logo em texto se não usar imagem */
.logo {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo span { color: var(--principal); }

.logo img { height: 40px; }

.menu a { 
    color: #fff; 
    text-decoration: none; 
    margin-left: 25px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    transition: 0.3s;
}

.menu a:hover { color: var(--principal); }

.menu-mobile { 
    display: none; 
    font-size: 1.8rem; 
    color: var(--principal); 
    cursor: pointer; 
}

/* ==========================================================================
4. HOME / HERO
========================================================================== */
#home { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding-top: 100px; 
}

.flex-home { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
}

.home-content h1 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 3rem; 
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-content span { color: var(--principal); }

.badge-alerta {
    background: var(--alerta);
    color: #fff;
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.foto img { 
    width: 350px; 
    height: 350px; 
    border-radius: 30px; 
    border: 3px solid var(--principal); 
    object-fit: cover; 
    box-shadow: 0 0 30px rgba(50, 231, 222, 0.2);
}

/* ==========================================================================
5. GRID & CARDS
========================================================================== */
.grid-layout { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Força 3 colunas */
    gap: 30px; 
}

.card-item {
    background: var(--card);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #1a1a1a;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 300px;
}

.card-item:hover { 
    border-color: var(--principal); 
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(50, 231, 222, 0.15);
}

.card-item h3 {
    margin: 15px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.card-item p {
    color: var(--texto-secundario);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
}

.icon-neon { font-size: 3rem; color: var(--principal); margin-bottom: 20px; }
.icon-neon-sm { font-size: 2.5rem; color: var(--principal); margin-bottom: 15px; }

.badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: var(--principal); 
    color: #000; 
    font-size: 0.65rem; 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-weight: bold; 
}

/* ==========================================================================
6. BOTÕES
========================================================================== */
.btn-principal { 
    background: var(--principal); 
    color: #000; 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    display: inline-block; 
    transition: 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.btn-principal:hover { box-shadow: 0 0 25px var(--principal); transform: scale(1.05); }

.btn-link { 
    color: var(--principal); 
    border: 1px solid var(--principal); 
    padding: 10px 20px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: bold;
    display: inline-block; 
    margin-top: 20px;
}

.btn-link:hover { background: var(--principal); color: #000; }

.container-btn-unico { margin-top: 50px; text-align: center; }

.btn-me-chama-unico {
    background: transparent;
    color: var(--principal);
    border: 2px solid var(--principal);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.btn-me-chama-unico:hover {
    background: var(--principal);
    color: #000;
    box-shadow: 0 0 30px var(--principal);
}

/* ==========================================================================
7. CONTATO & REDES SOCIAIS (CORRIGIDO)
========================================================================== */
.botoes-contato-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espaço entre os círculos */
    margin-top: 30px;
    flex-wrap: nowrap; /* Garante que fiquem na mesma linha */
}

.btn-redes {
    text-decoration: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Formato circular para combinar com a foto */
    border: 2px solid var(--principal);
    background: rgba(50, 231, 222, 0.05);
    transition: 0.4s;
}

.btn-redes i {
    font-size: 1.8rem;
    color: var(--principal);
}

/* Efeito de destaque no Hover */
.btn-redes:hover {
    background: var(--principal);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--principal);
}

.btn-redes:hover i {
    color: #000;
}
/* ==========================================================================
8. BOTÃO DE EMERGÊNCIA (CORRIGIDO)
========================================================================== */
.btn-emergencia-principal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--alerta);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    z-index: 9999; 
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    animation: pulsar-emergencia 2s infinite;
}

.tooltip-emergencia {
    position: absolute;
    right: 80px;
    background: var(--alerta);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.btn-emergencia-principal:hover .tooltip-emergencia { opacity: 1; }

@keyframes pulsar-emergencia {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(255, 0, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); }
}

/* ==========================================================================
9. FOOTER
========================================================================== */
footer { 
    padding: 50px; 
    text-align: center; 
    background: #000; 
    border-top: 1px solid #111; 
    color: #555; 
    font-size: 0.9rem; 
}

/* ==========================================================================
10. RESPONSIVIDADE
========================================================================== */
@media (max-width: 992px) {
    .grid-layout { grid-template-columns: repeat(2, 1fr); }
    .home-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .flex-home { flex-direction: column-reverse; text-align: center; }
    .grid-layout { grid-template-columns: 1fr; }
    .foto img { width: 280px; height: 280px; }
    
    .menu { 
        display: none; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: rgba(0,0,0,0.98); 
        flex-direction: column; 
        padding: 30px; 
    }
    
    .menu.active { display: flex; }
    .menu a { margin: 15px 0; font-size: 1.1rem; margin-left: 0; }
    .menu-mobile { display: block; }
}

.vw-access-button {
    bottom: 100px !important; /* Move o botão mais para cima se necessário */
}