/* ==========================================================================
   ARQUIVO: css/sobre.css
   DESCRIÇÃO: Estilos exclusivos da página Sobre Nós (Seção DNA Tech)
   ========================================================================== */

/* --- VARIÁVEIS LOCAIS (Para não depender de arquivos externos) --- */
:root {
    --neon-green: #00FFC2;
    --neon-purple: #BD93F9;
    --bg-dark: #05050A;     /* Fundo Preto Profundo */
    --bg-card: #0F0F14;     /* Fundo Cards */
    --code-bg: #141419;     /* Fundo Editor */
    --terminal-bg: #0D0D12; /* Fundo Terminal */
}

/* ================= ESTRUTURA E BACKGROUND ================= */
.about-dna {
    padding: 140px 0;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
    perspective: 1000px; /* Essencial para o efeito 3D */
    font-family: 'Inter', sans-serif; /* Garante a fonte correta */
}

/* Grid de Fundo Animado */
.dna-bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

/* Orbs de Luz Ambiente (Glow) */
.dna-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.2;
    animation: floatOrb 8s infinite ease-in-out alternate;
    pointer-events: none;
}
.orb-1 { width: 400px; height: 400px; background: var(--neon-green); top: -10%; left: -10%; }
.orb-2 { width: 300px; height: 300px; background: var(--neon-purple); bottom: 10%; right: -5%; animation-delay: -2s; }

/* Container Principal */
.dna-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Esquerda levemente maior */
    gap: 80px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= COLUNA ESQUERDA (TEXTO) ================= */
.badge-wrapper { margin-bottom: 24px; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 194, 0.08);
    border: 1px solid rgba(0, 255, 194, 0.2);
    border-radius: 6px;
    color: var(--neon-green);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1.5px;
}

/* Efeito Neon Glitch no Texto "O Futuro" */
.text-neon-glitch {
    color: #FFF;
    position: relative;
    display: inline-block;
}
.text-neon-glitch::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--neon-green);
    opacity: 0.4;
    z-index: -1;
    transform: skewX(-20deg);
}

.dna-text p {
    color: #A8A8B3;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.dna-text strong { color: #FFF; font-weight: 600; }

/* --- STATS GRID (System Status) --- */
.dna-stats-grid {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 40px;
}

.stat-box {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    background: rgba(0, 255, 194, 0.05);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    color: #FFF;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}


/* ================= COLUNA DIREITA (ECOSSISTEMA 3D) ================= */
.dna-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Wrapper que segura Terminal + Código + Chips */
.visual-stack-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 450px; /* Altura fixa para permitir camadas */
    perspective: 1000px;
    margin: 0 auto;
}

/* --- CAMADA 1 (FUNDO): TERMINAL DE COMANDO --- */
.terminal-card {
    position: absolute;
    top: -30px;
    left: 40px;
    width: 90%;
    background: var(--terminal-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0.6;
    transform: rotateZ(-3deg) scale(0.95);
    transition: all 0.5s ease;
}

.visual-stack-container:hover .terminal-card {
    opacity: 0.9;
    transform: rotateZ(-5deg) translateX(-20px);
}

.terminal-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}
.term-dot { width: 8px; height: 8px; background: #333; border-radius: 50%; }
.term-title { color: #555; font-size: 0.7rem; font-family: monospace; }

.terminal-body {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}
.term-line { margin-bottom: 4px; }
.term-line .green { color: #27C93F; }
.term-line .blue { color: #57B6F3; }
.blink { animation: blink 1s infinite; }


/* --- CAMADA 2 (FRENTE): JANELA PRINCIPAL (VS CODE) --- */
.code-window.main-window {
    position: absolute;
    top: 20px;
    left: 0;
    width: 90%;
    background: var(--code-bg);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    z-index: 5;
    transform: rotateY(-5deg); /* Leve 3D */
    transition: transform 0.5s ease;
}

.visual-stack-container:hover .main-window {
    transform: rotateY(0) scale(1.02);
}

.window-header {
    background: #1F1F26;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.5);
}

.window-controls { display: flex; gap: 8px; margin-right: 20px; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.control.red { background: #FF5F56; }
.control.yellow { background: #FFBD2E; }
.control.green { background: #27C93F; }

.window-title {
    font-family: 'Inter', sans-serif;
    color: #8F93A2;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.window-body {
    padding: 24px 0;
    display: flex;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    border-right: 1px solid rgba(255,255,255,0.05);
    color: #4B4B55;
    text-align: right;
    user-select: none;
}

.code-content { padding-left: 20px; color: #A6ACCD; width: 100%; }

.line { white-space: pre; display: flex; }
.indent { padding-left: 20px; }
.indent-2 { padding-left: 40px; }

/* Sintaxe Neon Theme */
.k { color: #C792EA; font-style: italic; } /* Roxo */
.v { color: #FFCB6B; } /* Amarelo */
.s { color: #C3E88D; } /* Verde */
.c { color: var(--neon-green); font-weight: 600; } /* Class */
.f { color: #82AAFF; } /* Azul */
.p { color: #F07178; } /* Rosa */
.t { color: #89DDFF; } /* Ciano */
.cursor { color: var(--neon-green); animation: blink 1s step-end infinite; font-weight: 700; }


/* --- CAMADA 3: CHIPS FLUTUANTES --- */
.tech-chip {
    position: absolute;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: floatChip 6s infinite ease-in-out;
}

.tech-chip i { color: var(--neon-green); font-size: 1rem; }

/* Posicionamento dos Chips */
.chip-1 { top: 0; right: 0; animation-delay: 0s; border-color: rgba(189, 147, 249, 0.3); }
.chip-1 i { color: #BD93F9; } /* Icon Roxo */

.chip-2 { bottom: 40px; right: -20px; animation-delay: 2s; background: rgba(0, 255, 194, 0.1); border-color: var(--neon-green); }

.chip-3 { bottom: 80px; left: -30px; animation-delay: 4s; border-color: rgba(255, 189, 46, 0.3); }
.chip-3 i { color: #FFBD2E; } /* Icon Amarelo */

.status-indicator {
    width: 6px; height: 6px; background: #27C93F;
    border-radius: 50%; box-shadow: 0 0 5px #27C93F;
    animation: pulse 2s infinite;
}

/* Glow Central da pilha */
.ecosystem-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(0, 255, 194, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}


/* ================= ANIMAÇÕES (KEYFRAMES) ================= */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(39, 201, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -30px); }
}

@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


/* ================= RESPONSIVIDADE ================= */

/* 1. NOTEBOOK (1024px a 1400px) - Ajuste de Escala */
@media (min-width: 1024px) and (max-width: 1400px) {
    .dna-container {
        gap: 40px; 
        padding: 0 30px;
    }

    .section-title { font-size: 2.5rem; }
    
    .dna-stats-grid { gap: 12px; }
    .stat-box { padding: 15px; }
    .stat-value { font-size: 1.4rem; }

    /* Zoom Out no componente visual para caber na tela */
    .visual-stack-container {
        transform: scale(0.85); 
        transform-origin: center right; 
        max-width: 100%;
    }
}

/* 2. TABLET (Max 1023px) */
@media (max-width: 1023px) {
    .dna-container {
        grid-template-columns: 1fr; /* Coluna única */
        text-align: center;
    }

    .badge-wrapper { display: flex; justify-content: center; }

    .dna-content { margin-bottom: 60px; }
    
    .visual-stack-container {
        height: 350px;
        transform: scale(0.9);
        margin: 0 auto;
    }
    
    /* Reposiciona chips para não vazar a tela */
    .chip-2 { right: 0; }
    .chip-3 { left: 0; }
}

/* 3. MOBILE (Max 600px) */
@media (max-width: 600px) {
    .about-dna { padding: 80px 0; }

    .section-title { font-size: 2.2rem; }
    
    .dna-stats-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-box { display: flex; align-items: center; gap: 15px; text-align: left; padding: 15px; }
    .stat-icon { margin-bottom: 0; font-size: 1.2rem; }
    .stat-value { font-size: 1.4rem; margin-bottom: 0; }

    .visual-stack-container {
        height: 300px;
        transform: scale(0.85);
        transform-origin: top center;
    }
    
    /* Esconde o terminal no mobile para limpar visual */
    .terminal-card { display: none; }
    
    .code-window.main-window {
        width: 100%;
        left: 0;
        transform: rotateY(0); /* Remove efeito 3D */
    }
    
    .tech-chip { padding: 6px 12px; font-size: 0.7rem; }
    .chip-2 { bottom: -10px; right: 0; }
}