:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --bg-color: #050505;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Orbitron', sans-serif;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: white;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
}

h1.glitch {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    position: relative;
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    margin: 0;
    padding: 0;
}

/* Glitch Effect */
h1.glitch::before, h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color); /* Matches bg to hide main text momentarily */
}

h1.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    20% { clip: rect(60px, 9999px, 80px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(80px, 9999px, 100px, 0); }
    80% { clip: rect(30px, 9999px, 60px, 0); }
    100% { clip: rect(50px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(80px, 9999px, 10px, 0); }
    40% { clip: rect(30px, 9999px, 60px, 0); }
    60% { clip: rect(70px, 9999px, 90px, 0); }
    80% { clip: rect(20px, 9999px, 40px, 0); }
    100% { clip: rect(90px, 9999px, 10px, 0); }
}

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