:root {
    --primary: #ff00ff;
    --secondary: #00ffff;
    --bg: #050505;
}

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

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Orbitron', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

h1.glitch {
    font-family: 'Monoton', cursive;
    font-size: 8rem;
    font-weight: 400;
    position: relative;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: pulse 3s infinite;
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 80px var(--primary);
}

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

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

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

.sub-text {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    animation: fadeIn 2s ease-out;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px var(--primary),
            0 0 80px var(--primary);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 15px var(--secondary),
            0 0 30px var(--secondary),
            0 0 60px var(--secondary),
            0 0 100px var(--secondary);
        transform: scale(1.02);
    }
}

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 56px, 0); }
    20% { clip: rect(89px, 9999px, 12px, 0); }
    40% { clip: rect(45px, 9999px, 87px, 0); }
    60% { clip: rect(100px, 9999px, 34px, 0); }
    80% { clip: rect(23px, 9999px, 67px, 0); }
    100% { clip: rect(67px, 9999px, 12px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 45px, 0); }
    40% { clip: rect(87px, 9999px, 23px, 0); }
    60% { clip: rect(34px, 9999px, 67px, 0); }
    80% { clip: rect(56px, 9999px, 12px, 0); }
    100% { clip: rect(23px, 9999px, 89px, 0); }
}

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

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