/* ============================================
   KOLDOGATE ARCHIVES - DARK MODE VAULT THEME
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #141414;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #ff6b35;
    --accent-hover: #ff8555;
    --accent-dim: #ff6b3533;
    --border: #333333;
    --border-light: #444444;
    --success: #4caf50;
    --warning: #ffc107;
    --danger: #f44336;
    --info: #2196f3;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
}

body.graph-fullscreen-open {
    overflow: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

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

/* ============================================
   DISCLAIMER MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.classified-stamp {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--danger);
    color: white;
    padding: 0.25rem 1rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.75rem;
    transform: rotate(5deg);
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.modal-header h2 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-body ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.modal-footer-text {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-dim);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-dim);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    max-width: 100vw;
    overflow-x: hidden;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent);
    font-size: 1.1rem;
}

.nav-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-search input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    width: 250px;
    border-radius: 2px;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

#search-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#search-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.97) 0%, rgba(26, 26, 26, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b35' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.classified-watermark {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: bold;
    color: var(--accent);
    opacity: 0.08;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 10px;
}

/* Glitch Effect */
.glitch {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: bold;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    letter-spacing: 4px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: var(--accent);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: var(--info);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, -2px); }
    20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 2px); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 2px); }
    20% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, -2px); }
    40% { clip-path: inset(5% 0 80% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    letter-spacing: 2px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.search-results.hidden {
    display: none;
}

.search-results h2 {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 2rem;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: var(--accent);
}

.result-item h3 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-item .result-type {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    margin-top: 0.5rem;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-header h2 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
    background: var(--bg-primary);
}

.timeline-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item.hidden {
    display: none;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: var(--border);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: var(--border);
}

.timeline-type {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.timeline-type.contrato {
    background: var(--accent-dim);
    color: var(--accent);
}

.timeline-type.judicial {
    background: rgba(33, 150, 243, 0.2);
    color: var(--info);
}

.timeline-type.politico {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.timeline-type.investigacion {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.timeline-content h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-amount {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
}

/* ============================================
   FUENTES SECTION
   ============================================ */
.fuentes-section {
    background: var(--bg-secondary);
}

.fuentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.fuente-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fuente-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.fuente-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fuente-card h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.fuente-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.fuente-links {
    list-style: none;
}

.fuente-links li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.fuente-links li:hover {
    border-left-color: var(--accent);
}

.fuente-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    transition: color 0.3s ease;
}

.fuente-links a:hover {
    color: var(--accent);
}

/* ============================================
   ACTORES SECTION
   ============================================ */
.actores-section {
    background: var(--bg-primary);
}

.actores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.actor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.actor-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.actor-header {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.actor-role {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.actor-role.politico {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.actor-role.empresario {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent);
}

.actor-role.intermediario {
    background: rgba(33, 150, 243, 0.2);
    color: var(--info);
}

.actor-role.funcionario {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.actor-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.actor-position {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.actor-body {
    padding: 1.5rem;
}

.actor-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.actor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.imputado {
    background: var(--warning);
    animation: pulse 2s infinite;
}

.status-indicator.investigado {
    background: var(--danger);
    animation: pulse 2s infinite;
}

.status-indicator.testigo {
    background: var(--info);
}

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

.actor-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.actor-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.actor-links a:hover {
    color: var(--accent);
}

/* ============================================
   CONEXIONES SECTION
   ============================================ */
.conexiones-section {
    background: var(--bg-secondary);
}

.graph-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.graph-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.graph-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.graph-btn:hover,
.graph-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.graph-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    height: min(600px, 70vh);
    position: relative;
    overflow: hidden;
}

.graph-container.graph-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 2000;
}

.graph-zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.graph-zoom-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.graph-zoom-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

#connection-graph {
    width: 100%;
    height: 100%;
}

.graph-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.graph-node:hover {
    filter: brightness(1.3);
}

.graph-link {
    stroke-opacity: 0.4;
    transition: all 0.3s ease;
}

.graph-link:hover {
    stroke-opacity: 0.8;
    stroke-width: 3;
}

.node-label {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--text-secondary);
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.graph-tooltip {
    position: absolute;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent);
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    max-width: 250px;
}

.graph-tooltip.visible {
    opacity: 1;
}

.graph-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.politico {
    background: var(--danger);
}

.legend-color.empresa {
    background: var(--accent);
}

.legend-color.intermediario {
    background: var(--info);
}

.legend-color.organismo {
    background: var(--success);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent);
}

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

.footer-legal p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }

    .nav-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-title {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55vw;
    }

    .nav-search {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-search input {
        width: 100%;
    }

    .nav-links {
        display: none;
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
        margin-left: 0.5rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        text-align: left !important;
    }

    .timeline-item .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    .timeline-item .timeline-content::before {
        left: -20px !important;
        right: auto !important;
        border-right-color: var(--border) !important;
        border-left-color: transparent !important;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .graph-container {
        height: 360px;
    }

    .classified-watermark {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .classified-watermark {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }
    
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-search {
        display: none;
    }

    .timeline-filters,
    .graph-controls {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn,
    .graph-btn {
        width: 200px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .modal,
    .scan-line,
    .graph-controls,
    .timeline-filters {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .timeline-container::before {
        background: #ccc;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scan-line {
        display: none;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--accent-dim);
    color: var(--text-primary);
}
