:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --primary-color: #ff3e3e; /* Trap Red */
    --secondary-color: #1a1a1a;
    --accent-color: #00ff9d; /* Hacker Green for success/terminal */
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header / Hero */
header {
    background: linear-gradient(180deg, rgba(255,62,62,0.1) 0%, rgba(13,13,13,0) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

h1 {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Trap Grid */
.trap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Trap Card */
.trap-card {
    background-color: var(--secondary-color);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.trap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 62, 62, 0.2);
    border-color: var(--primary-color);
}

.trap-card h3 {
    margin-top: 0;
    color: #fff;
    font-family: var(--font-mono);
}

.trap-card p {
    color: #aaa;
    font-size: 0.9rem;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    text-transform: uppercase;
    transition: background 0.2s;
    margin-top: 1rem;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Console / Terminal */
#terminal {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    height: 300px;
    overflow-y: auto;
    color: #ccc;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.log-entry {
    margin-bottom: 0.5rem;
}

.log-info { color: #888; }
.log-warn { color: #ffeb3b; }
.log-error { color: var(--primary-color); text-shadow: 0 0 5px rgba(255,62,62,0.5); }
.log-success { color: var(--accent-color); }
.log-system { color: #00bfff; font-weight: bold; }

/* Glitch Effect */
.glitch {
    position: relative;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 0.8rem;
    margin-top: 4rem;
    border-top: 1px solid #222;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Matrix Canvas */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* CLI Line */
.cli-line {
    display: flex;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.prompt {
    color: var(--accept-color);
    color: #00ff9d;
    margin-right: 0.5rem;
    font-weight: bold;
}

#cli-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex-grow: 1;
    outline: none;
}