:root {
    --bg-color: #030303;
    --card-bg: rgba(12, 12, 12, 0.85);
    --red-primary: #ff003c;
    --red-dim: #990024;
    --red-glow: rgba(255, 0, 60, 0.4);
    --white-pure: #ffffff;
    --white-off: #d0d0d0;
    --white-muted: #808080;
    --font-display: 'Chakra Petch', sans-serif;
    --font-code: 'Share Tech Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--white-off);
    font-family: var(--font-display);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 0, 60, 0.15), transparent 70%),
        linear-gradient(rgba(255, 0, 60, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 60, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-position: 0 0, -1px -1px, -1px -1px;
    padding: 2rem 1rem;
}

/* CRT Scanline Effect Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.6;
}

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

/* Cyberpunk Header Frame */
header {
    border: 2px solid var(--red-primary);
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 0 20px var(--red-glow), inset 0 0 15px rgba(255, 0, 60, 0.2);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

header::after {
    content: 'SYS.STATUS // ONLINE';
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--red-primary);
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white-pure);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    text-shadow: 2px 2px 0px var(--red-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: var(--font-code);
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.subtitle span {
    color: var(--red-primary);
}

/* Section Layout */
section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--red-dim);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--white-pure);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--red-primary);
    box-shadow: 0 0 8px var(--red-primary);
}

/* Grid Cards Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.cyber-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--white-pure);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.15), transparent);
    transition: left 0.5s ease;
}

.cyber-card:hover {
    border-color: var(--red-primary);
    border-left: 3px solid var(--red-primary);
    transform: translateY(-3px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px var(--red-glow);
}

.cyber-card:hover::before {
    left: 100%;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white-pure);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

.cyber-card:hover .card-title {
    color: var(--red-primary);
}

.card-desc {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--white-muted);
    margin-bottom: 1rem;
}

.card-meta {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--white-pure);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.card-meta .tag {
    background-color: var(--red-dim);
    color: var(--white-pure);
    padding: 2px 6px;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.card-meta .action {
    color: var(--red-primary);
    font-weight: bold;
}

/* Unique Accent for Game/Discord Cards */
.cyber-card.highlight {
    border-left-color: var(--red-primary);
}

footer {
    margin-top: 4rem;
    text-align: center;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--white-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

footer p span {
    color: var(--red-primary);
}

/* Glitch Animation Utility */
.glitch {
    position: relative;
}

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

.glitch:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--red-primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch:hover::after {
    left: -2px;
    text-shadow: -2px 0 #ffffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 52px, 0); }
    20% { clip: rect(78px, 9999px, 12px, 0); }
    40% { clip: rect(34px, 9999px, 89px, 0); }
    60% { clip: rect(90px, 9999px, 5px, 0); }
    80% { clip: rect(15px, 9999px, 60px, 0); }
    100% { clip: rect(67px, 9999px, 30px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(89px, 9999px, 10px, 0); }
    20% { clip: rect(2px, 9999px, 70px, 0); }
    40% { clip: rect(55px, 9999px, 15px, 0); }
    60% { clip: rect(10px, 9999px, 80px, 0); }
    80% { clip: rect(80px, 9999px, 25px, 0); }
    100% { clip: rect(30px, 9999px, 95px, 0); }
}