:root {
    --bg-color: #050510;
    --text-color: #e0e0e0;
    --primary-color: #00f3ff;
    /* Neon Cyan */
    --secondary-color: #bc13fe;
    /* Deep Purple */
    --accent-color: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.container {
    position: relative;
    z-index: 10;
    background: rgba(5, 5, 16, 0.4);
    /* Slightly improved transparency */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.05);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    /* Wider for the large text */
    width: 90%;
    animation: fadeIn 1.5s ease-in-out;
}

.logo-container {
    margin-bottom: 3rem;
}

.logo {
    max-width: 180px;
    /* Slightly larger logo */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
}

/* Glitch Effect Heading */
.glitch {
    font-family: var(--font-display);
    font-size: 4rem;
    /* Much larger */
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 0.2em;
    /* Spaced out */
    text-transform: uppercase;
    margin: 0;
}

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

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

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

footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    font-size: 0.8rem;
    color: #505060;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
    }

    20% {
        clip: rect(70px, 9999px, 95px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 10px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(80px, 9999px, 5px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(70px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 95px, 0);
    }

    60% {
        clip: rect(70px, 9999px, 15px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 20px, 0);
    }
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }

    .container {
        padding: 2rem;
    }
}