:root {
    --bg-color: #010101; /* Almost pure black */
    --text-color: #CCCCCC; /* Desaturated light grey */
    --accent-violet: #BB00FF; /* Brighter, intense violet */
    --accent-cyan: #00E0FF; /* Electric cyan */
    --dark-grey-border: #1a1a1a;
    --medium-grey-bg: #0a0a0a;
    --alert-red: #FF4444; /* Brighter red */
    --font-stack: "Space Mono", "Courier New", Courier, monospace; /* Changed font to a more futuristic feel, assuming a system font or later a custom font can be added. */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6; /* Slightly increased line height for readability */
    overflow-x: hidden;
}

.container {
    max-width: 1100px; /* Slightly wider container */
    margin: 0 auto;
    padding: 20px;
}

/* Typography & Glows */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 3px; /* Increased letter spacing */
    font-weight: 700; /* Bolder headings */
}

h1 {
    font-size: 3rem; /* Larger hero title */
    color: #DCDCDC;
    text-shadow: 0 0 15px var(--accent-violet), 0 0 25px rgba(187, 0, 255, 0.4); /* Enhanced glow */
    margin-bottom: 0.8rem;
}

.subtitle {
    color: var(--accent-cyan);
    font-size: 1.2rem; /* Slightly larger subtitle */
    margin-bottom: 2.5rem;
    text-shadow: 0 0 8px var(--accent-cyan), 0 0 15px rgba(0, 224, 255, 0.3); /* Enhanced glow */
    letter-spacing: 1.5px;
}

.section-title {
    border-bottom: 1px solid var(--accent-violet);
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: var(--accent-violet);
    text-shadow: 0 0 10px var(--accent-violet), 0 0 20px rgba(187, 0, 255, 0.3); /* Enhanced glow */
    font-size: 1.8rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px; /* More vertical padding */
    border-bottom: 1px solid var(--dark-grey-border);
    position: relative;
    background: linear-gradient(180deg, rgba(1,1,1,1) 0%, rgba(10,10,10,1) 100%); /* Subtle gradient background */
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-cyan);
    opacity: 0.4;
    animation: scan 3s infinite linear;
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes scan {
    0% { top: -2%; opacity: 0; }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
}

.status-panel {
    margin-top: 3rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 30px; /* Increased gap */
    color: #aaa; /* Darker grey for status text */
}

.status-panel span {
    border: 1px solid var(--dark-grey-border);
    padding: 8px 15px; /* More padding */
    background-color: var(--medium-grey-bg);
    box-shadow: 0 0 8px rgba(0, 224, 255, 0.1); /* Subtle box shadow */
}

/* Grid & Cards */
.grid-section {
    margin: 80px 0; /* More margin */
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger min-width for cards */
    gap: 30px; /* Increased gap */
}

.card {
    border: 1px solid var(--dark-grey-border);
    padding: 25px; /* More padding */
    background: var(--medium-grey-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before { /* Subtle internal glow for cards */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0,224,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px); /* More pronounced lift */
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2), 0 0 30px rgba(187, 0, 255, 0.1); /* Stronger glow */
}

.card h3 {
    font-size: 1.2rem;
    margin: 18px 0 12px 0;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

.card p {
    font-size: 0.95rem;
    color: #b0b0b0; /* Slightly darker text for card content */
}

.card-media {
    width: 100%;
    height: 180px;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #404040;
    font-size: 0.85rem;
    border: 1px dashed #303030; /* Can be removed if not desired */
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    object-fit: cover;
}

img.card-media {
    border-style: solid;
    border: none;
}

/* Text Sections */
.text-section {
    margin: 80px 0;
    padding: 0 20px; /* Add some horizontal padding for text sections */
}

.content-block {
    background-color: var(--medium-grey-bg);
    padding: 25px;
    border: 1px solid var(--dark-grey-border);
}

.content-block p {
    margin-bottom: 1.2rem;
}

.alert-border {
    border-left: 5px solid var(--accent-violet); /* Thicker border */
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(187,0,255,0.08) 0%, transparent 100%); /* Stronger gradient */
    box-shadow: 0 0 10px rgba(187, 0, 255, 0.1); /* Subtle shadow for alert */
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    color: #AAA; /* Brighter grey for footer text */
    border-top: 1px solid var(--dark-grey-border);
    margin-top: 80px;
    background: linear-gradient(0deg, rgba(1,1,1,1) 0%, rgba(10,10,10,1) 100%); /* Subtle gradient background */
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .subtitle { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; } /* Stack cards on smaller screens */
    .hero { padding: 80px 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .subtitle { font-size: 0.9rem; }
    .status-panel { flex-direction: column; gap: 15px; }
    .text-section { padding: 0 10px; }
}

/* Glitch Effect - Controlled via JS for randomness */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.05s;
}

.glitch.glitch-active::before, .glitch.glitch-active::after {
    opacity: 0.8; /* Visible when active */
}

.glitch::before {
    left: 4px;
    text-shadow: -2px 0 var(--accent-violet);
    clip: rect(0, 0, 0, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -4px;
    text-shadow: -2px 0 var(--accent-cyan);
    clip: rect(0, 0, 0, 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

/* Define some custom properties for more dynamic glitching, if desired via JS */
body {
    --glitch-offset-1: 20;
    --glitch-offset-2: 80;
    --glitch-offset-3: 120;
    --glitch-offset-4: 160;
}

/* Chaotic Keyframes Restored */
@keyframes glitch-anim-1 {
    0% { clip: rect(var(--glitch-offset-1) * 1px, 9999px, var(--glitch-offset-2) * 1px, 0); }
    20% { clip: rect(calc(var(--glitch-offset-1) * 2px), 9999px, calc(var(--glitch-offset-2) * 0.5px), 0); }
    40% { clip: rect(calc(var(--glitch-offset-1) * 0.5px), 9999px, calc(var(--glitch-offset-2) * 1.5px), 0); }
    60% { clip: rect(calc(var(--glitch-offset-1) * 1.2px), 9999px, calc(var(--glitch-offset-2) * 0.8px), 0); }
    80% { clip: rect(calc(var(--glitch-offset-1) * 0.7px), 9999px, calc(var(--glitch-offset-2) * 1.3px), 0); }
    100% { clip: rect(var(--glitch-offset-1) * 1px, 9999px, var(--glitch-offset-2) * 1px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(var(--glitch-offset-3) * 1px, 9999px, var(--glitch-offset-4) * 1px, 0); }
    25% { clip: rect(calc(var(--glitch-offset-3) * 0.6px), 9999px, calc(var(--glitch-offset-4) * 1.4px), 0); }
    50% { clip: rect(calc(var(--glitch-offset-3) * 1.5px), 9999px, calc(var(--glitch-offset-4) * 0.7px), 0); }
    75% { clip: rect(calc(var(--glitch-offset-3) * 0.9px), 9999px, calc(var(--glitch-offset-4) * 1.1px), 0); }
    100% { clip: rect(var(--glitch-offset-3) * 1px, 9999px, var(--glitch-offset-4) * 1px, 0); }
}
