:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #808080;
    --font-stack: 'JetBrains Mono', 'Courier New', monospace;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: var(--font-stack);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if needed, though mostly visual */
}

/* Terminal Container */
.terminal-container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.7);
    /* Darker background to pop against lines */
    backdrop-filter: blur(5px);
    /* Reduced blur to keep lines distinct behind */
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(100, 100, 100, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.nick {
    font-size: 4rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Standard property */
    animation: glitch 3s infinite;
}

.motto {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--accent-color);
    border-right: 2px solid var(--accent-color);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    width: 100%;
    max-width: fit-content;
}

/* Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-color);
    }
}

/* CRT Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 20;
    opacity: 0.3;
}

@media (max-width: 600px) {
    .nick {
        font-size: 2.5rem;
    }

    .motto {
        font-size: 1rem;
    }
}