@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;600&display=swap');

:root {
    --bg: #050505;
    --text: #e0e0e0;
    --accent: #33ff00;
    --dim: #333;
    --warning: #ff6b00;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scanlines Overlay */
.scanlines::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 9999;
}

/* Background Grid */
.grid-bg {
    background-image: 
        linear-gradient(to right, #0a0a0a 1px, transparent 1px),
        linear-gradient(to bottom, #0a0a0a 1px, transparent 1px);
    background-size: 60px 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(14px, 9999px, 68px, 0); }
    40% { clip: rect(42px, 9999px, 83px, 0); }
    60% { clip: rect(67px, 9999px, 38px, 0); }
    80% { clip: rect(48px, 9999px, 12px, 0); }
    100% { clip: rect(33px, 9999px, 79px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(67px, 9999px, 28px, 0); }
    20% { clip: rect(54px, 9999px, 3px, 0); }
    40% { clip: rect(11px, 9999px, 72px, 0); }
    60% { clip: rect(36px, 9999px, 61px, 0); }
    80% { clip: rect(27px, 9999px, 88px, 0); }
    100% { clip: rect(8px, 9999px, 73px, 0); }
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.boot-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.boot-line {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--dim);
}

.boot-line.accent {
    color: var(--accent);
}

.boot-line.warning {
    color: var(--warning);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

/* Blinking Cursor */
.cursor::after {
    content: '█';
    animation: blink 1s infinite;
    color: var(--accent);
    margin-left: 4px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Content Fade In */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.visible {
    opacity: 1;
}

/* Hover Effects */
.hover-invert:hover {
    background-color: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Utility */
.text-accent { color: var(--accent); }
.text-dim { color: var(--dim); }
.text-warning { color: var(--warning); }
