:root {
    --header-height: 60px;
    --terminal-green: #00ff00;
    --accent: #0ea5e9;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    overflow-x: hidden;
}

/* Matrix Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    z-index: -1;
}
.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: matrix-line 1.5s infinite;
}
@keyframes matrix-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.error-section {
    min-height: calc(100vh - var(--header-height));
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 2rem; position: relative;
}
.error-code {
    font-size: clamp(8rem, 20vw, 16rem);
    font-family: 'Courier New', monospace;
    color: var(--terminal-green);
    text-shadow: 0 0 20px var(--terminal-green), 0 0 40px var(--terminal-green), 0 0 60px var(--terminal-green);
    margin-bottom: 2rem;
    animation: glitch-404 2s infinite;
}
@keyframes glitch-404 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

.error-message { font-size: 1.5rem; margin-bottom: 1rem; opacity: 0.8; }
.error-description { font-size: 1.1rem; margin-bottom: 3rem; max-width: 600px; opacity: 0.7; line-height: 1.6; }

.error-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.glow-button {
    background-color: transparent;
    border: 2px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
}
.glow-button::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: rgba(0, 255, 0, 0.1);
    transition: transform 0.4s;
    border-radius: 50%;
    z-index: 0;
    transform: translate(-50%, -50%) scale(0);
}
.glow-button:hover::before { transform: translate(-50%, -50%) scale(1); }
.glow-button:hover { color: black; }

.ascii-art {
    font-family: 'Courier New', monospace;
    color: var(--terminal-green);
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.3;
    margin-top: 3rem;
    white-space: pre;
    text-shadow: 0 0 5px var(--terminal-green);
}

@media (max-width: 768px) {
    .error-actions { flex-direction: column; align-items: center; }
    .ascii-art { font-size: 0.6rem; margin-top: 2rem; }
}
