:root {
    --bg-color: #030305;
    --accent-cyan: #00f2ff;
    --accent-pink: #ff00ea;
    --text-primary: #e0e0e0;
    --text-muted: #888888;
    --terminal-bg: rgba(10, 10, 15, 0.8);
    --border-color: rgba(0, 242, 255, 0.2);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(3, 3, 5, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.05) 50%),
        url('https://grainy-gradients.vercel.app/noise.svg');
    background-size: 100% 4px, 150px 150px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 2;
}

main {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.status-container {
    text-align: center;
    margin-bottom: 4rem;
}

.glitch-text {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0.05em 0 0 var(--accent-cyan), -0.05em -0.025em 0 var(--accent-pink);
    animation: glitch 2s infinite;
}

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

.glitch-text::before {
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.glitch-text::after {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--accent-cyan), -0.05em -0.025em 0 var(--accent-pink);
    }

    14% {
        text-shadow: 0.05em 0 0 var(--accent-cyan), -0.05em -0.025em 0 var(--accent-pink);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent-cyan), 0.025em 0.025em 0 var(--accent-pink);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent-cyan), 0.025em 0.025em 0 var(--accent-pink);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent-cyan), 0.05em 0 0 var(--accent-pink);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent-cyan), 0.05em 0 0 var(--accent-pink);
    }

    100% {
        text-shadow: -0.025em 0 0 var(--accent-cyan), -0.025em -0.025em 0 var(--accent-pink);
    }
}

.progress-wrapper {
    width: 400px;
    max-width: 90vw;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
    box-shadow: 0 0 15px var(--accent-cyan);
    transition: width 0.3s ease, background 1s ease, box-shadow 1s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

#status-label {
    transition: color 1s ease;
}

.terminal {
    position: absolute;
    bottom: 4rem;
    left: 2rem;
    width: 450px;
    height: 250px;
    background: var(--terminal-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.terminal-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.terminal-content {
    flex-grow: 1;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-y: auto;
    color: var(--text-primary);
}

.log-line {
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.log-line::before {
    content: '> ';
    color: var(--accent-cyan);
}

.system-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 3rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border-top: 1px solid var(--border-color);
    z-index: 20;
}

.footer-item .label {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.footer-item .value {
    color: var(--accent-cyan);
}

/* Scrollbar Styles */
.terminal-content::-webkit-scrollbar {
    width: 4px;
}

.terminal-content::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 3rem;
    }

    .terminal {
        width: calc(100% - 4rem);
        left: 2rem;
    }

    .system-footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
}%   
