html {
    scroll-behavior: smooth;
}
/* Garante que o canvas de fundo não bloqueie cliques após a descida */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Fica atrás de tudo */
    opacity: 0.15; /* Deixa bem sutil para não cansar a vista */
    pointer-events: none;
}

/* ... (Manter variáveis anteriores) ... */
:root {
    --bg-color: #050505;
    --text-primary: #00ff00;
    --text-secondary: #008f00;
    --border-color: #004400;
}

body { background-color: var(--bg-color); color: var(--text-primary); font-family: 'Fira Code', monospace; margin: 0; }

.hidden { display: none !important; }

/* LAYOUT */
.main-container { max-width: 1400px; margin: 0 auto; padding: 20px; position: relative; z-index: 10; }
.content-wrapper { display: flex; flex-direction: row; gap: 40px; }
.main-content { flex: 1; display: flex; flex-direction: column; }
.side-navigation { flex: 0 0 250px; border-left: 1px solid var(--border-color); padding-left: 20px; }

/* VISUALIZADOR DE CONTEÚDO (Novo) */
.content-viewer {
    border: 1px solid var(--text-primary);
    background: rgba(0, 10, 0, 0.95);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}
.viewer-header {
    background: var(--text-primary);
    color: #000;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.viewer-body { padding: 20px; max-height: 500px; overflow-y: auto; line-height: 1.6; }
.close-btn { background: transparent; border: none; font-family: inherit; cursor: pointer; font-weight: bold; }

/* TERMINAL */
.terminal-window { border: 1px solid var(--border-color); background: #000; margin-bottom: 30px; position: relative; }
.terminal-content { height: 350px; overflow-y: auto; padding: 20px; position: relative; }
#terminal-matrix-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.terminal-content input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    flex: 1;
    margin-left: 10px;
    caret-color: var(--text-primary); /* Isso faz o cursor nativo piscar */
}
/* GRID E CARDS */
.bottom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-card { border: 1px solid var(--border-color); padding: 15px; cursor: pointer; transition: 0.2s; }
.grid-card:hover { border-color: var(--text-primary); background: rgba(0, 255, 0, 0.05); }

/* ASCII */
.ascii-logo { font-size: 8px; color: var(--text-primary); text-align: center; margin: 20px 0; }

.nav-list { list-style: none; padding: 0; }
.nav-list li { padding: 10px; cursor: pointer; margin-bottom: 5px; }
.nav-list li:hover { border: 1px solid var(--text-primary); }