/* =========================================
   ESTILOS GERAIS - CYBERSECURE (VERSÃO FINAL COMPLETA)
   ========================================= */

/* 1. VARIÁVEIS DE CORES E ESTILOS BASE */
:root {
    --bg-dark: #0A0A0A;
    --text-light: #E0E0E0;
    --accent-red: #FF3333;
    --accent-hover: #FF6666;
    --card-dark: #1A1A1A;
    --border-dark: #303030;
}

/* Configurações do Corpo da página */
body {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Estilos de Links Globais */
a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Linha Separadora (HR) */
hr {
    border: 0;
    border-top: 1px dashed var(--border-dark);
    margin: 40px 0;
}

/* =========================================
   2. CABEÇALHO E NAVEGAÇÃO
   ========================================= */
header {
    background-color: var(--card-dark);
    padding: 10px 0;
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.0em;
    font-weight: bold;
    color: var(--accent-red);
}

.nav-links a {
    margin-left: 30px;
    font-size: 1.0em;
    text-transform: uppercase;
    position: relative;
}

/* Indicador visual de página ativa */
.nav-links a.active-nav::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
}

/* =========================================
   3. SECÇÃO HERO (O TOPO DA PÁGINA)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 500px; /* Altura fixa para PC */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

/* Canvas para o efeito Matrix */
#matrix-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background-color: var(--bg-dark);
}

/* Conteúdo de Texto do Hero */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    padding: 20px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

.hero p {
    font-size: 1.4em;
    color: var(--text-light);
}

/* =========================================
   4. ANIMAÇÕES (KEYFRAMES)
   ========================================= */
@keyframes slideInFromBottom {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-text {
    opacity: 0;
    animation: slideInFromBottom 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* =========================================
   5. TÍTULOS E ESTRUTURA
   ========================================= */
.section-title {
    font-size: 2.2em;
    color: var(--accent-red);
    border-left: 5px solid var(--accent-red);
    padding-left: 15px;
    margin-bottom: 30px;
    font-weight: 600;
}

.summary-text {
    font-style: italic;
    margin-bottom: 30px;
    color: #999999;
    border-bottom: 1px dashed var(--border-dark);
    padding-bottom: 15px;
}

/* Grid Padrão */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Grid de 2 colunas (usada em Ataques) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

section {
    clear: both;
    margin-top: 20px;
}

/* =========================================
   6. CARTÕES (PRODUTOS / NOTÍCIAS)
   ========================================= */
.card {
    background-color: var(--card-dark);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.4);
}

.product-image-placeholder {
    height: 200px;
    background-color: #2a0a0a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    border: 1px solid var(--accent-red);
    border-radius: 4px;
    overflow: hidden;
}

.product-image-placeholder img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.price {
    color: #39FF14;
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    border: 2px solid var(--accent-red);
    background-color: var(--accent-red);
    color: var(--bg-dark);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-accent:hover {
    background-color: var(--bg-dark);
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.hidden-card { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in { opacity: 1; transform: translateY(0); }

/* =========================================
   7. CARROSSEL (SLIDER) - QUE TINHA SIDO APAGADO
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background-color: var(--card-dark);
    padding: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    margin: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 51, 51, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 5px;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-button:hover { background-color: var(--accent-red); }
.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }

/* =========================================
   8. RODAPÉ E FORMULÁRIOS
   ========================================= */
footer {
    background-color: var(--card-dark);
    color: #666666;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid var(--border-dark);
    margin-top: 50px;
}

.contact-form-container {
    background-color: var(--card-dark);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.contact-form-container label {
    display: block; margin-bottom: 8px; font-weight: bold; color: var(--accent-red);
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-dark);
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form-container textarea {
    resize: vertical; min-height: 150px;
}

.contact-info {
    margin-top: 40px; border-top: 1px dashed var(--border-dark); padding-top: 20px;
}

/* =========================================
   9. LAYOUT ZIGUEZAGUE (BOAS PRÁTICAS) - QUE TINHA SIDO APAGADO
   ========================================= */
.practice-section {
    display: flex; flex-direction: column; gap: 80px; padding: 40px 0;
}

.practice-row {
    display: flex; align-items: center; justify-content: space-between; gap: 50px;
    opacity: 1; transform: none; transition: all 0.8s ease-out;
}

.practice-row.reverse { flex-direction: row-reverse; }

.practice-text { flex: 1; padding: 20px; }

.practice-text h3 {
    color: var(--accent-red); font-size: 1.8em; margin-bottom: 15px;
    border-left: 4px solid var(--accent-red); padding-left: 15px;
}

.practice-text p { font-size: 1.1em; color: #cccccc; margin-bottom: 20px; }

.practice-text ul { list-style: none; padding: 0; }
.practice-text ul li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.practice-text ul li::before {
    content: '➤'; color: var(--accent-red); position: absolute; left: 0;
}

.practice-image { flex: 1; position: relative; }
.practice-image img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-dark);
    transition: transform 0.3s ease;
}
.practice-image img:hover { transform: scale(1.02); border-color: var(--accent-red); }

/* =========================================
   10. MEDIA QUERIES (CORREÇÃO MOBILE)
   Substitui a secção antiga por esta
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. CORREÇÃO DO CABEÇALHO GIGANTE */
    header {
        position: relative; /* IMPORTANTE: Deixa de ser fixo (sticky) para poderes fazer scroll */
        height: auto;
        padding: 15px 0;
    }

    nav { 
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 15px;
        font-size: 1.8em; /* Logo um pouco mais pequeno */
    }

    .nav-links { 
        display: flex;
        flex-direction: column;
        width: 100%;            
        gap: 8px; /* Reduzi o espaço entre botões */
        margin-top: 5px;
        margin-left: 0; /* Remove a margem esquerda do PC */
        padding: 0 20px; /* Margem lateral de segurança */
        box-sizing: border-box;
    }

    .nav-links a {
        display: block;
        background-color: #1a1a1a; 
        padding: 10px; /* Padding reduzido para não ocupar tanto espaço */
        margin: 0;              
        text-align: center;     
        border: 1px solid #333; 
        border-radius: 4px;
        font-size: 0.95em; /* Letra ligeiramente mais pequena */
    }

    /* 2. CORREÇÃO DO HERO (TEXTO) */
    .hero {
        height: auto;       
        min-height: 400px;      
        padding: 80px 0 40px 0;    
        align-items: center;    
    }

    .hero-content {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .hero h1 { 
        font-size: 2.2em; /* Tamanho ajustado para não quebrar palavras */
        line-height: 1.2;       
        margin-bottom: 20px;
    } 

    .hero p { 
        font-size: 1.1em;       
        line-height: 1.5;
        padding: 15px;
        background: rgba(0,0,0,0.7);
        border-radius: 8px;
    }

    /* 3. GRELHAS EM UMA COLUNA */
    .grid-3, .grid-2 { 
        grid-template-columns: 1fr;
    }
    
    /* 4. AJUSTE ZIGUEZAGUE */
    .practice-row, .practice-row.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .practice-text h3 {
        border-left: none;
        border-bottom: 3px solid var(--accent-red);
        display: inline-block;
        padding-left: 0;
        padding-bottom: 5px;
    }
    
    .practice-text ul {
        text-align: left; /* Mantém as listas alinhadas à esquerda para leitura fácil */
    }

    /* 5. CONTENTOR GERAL */
    .container { width: 92%; }
}