:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-color: #050510;
    --text-color: #ffffff;
    --scanline-color: rgba(0, 243, 255, 0.5);
}

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

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

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

.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

h1.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
    letter-spacing: 5px;
    text-shadow:
        2px 2px 0px var(--secondary-color),
        -2px -2px 0px var(--primary-color);
    margin-bottom: 1rem;
}

/* 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);
}

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

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

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(98px, 9999px, 12px, 0);
    }

    40% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    60% {
        clip: rect(2px, 9999px, 69px, 0);
    }

    80% {
        clip: rect(66px, 9999px, 19px, 0);
    }

    100% {
        clip: rect(32px, 9999px, 47px, 0);
    }
}

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

    20% {
        clip: rect(32px, 9999px, 47px, 0);
    }

    40% {
        clip: rect(13px, 9999px, 81px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(2px, 9999px, 69px, 0);
    }
}

.welcome-container {
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

#welcome-text {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    min-height: 3.5rem;
    /* Reserve space for text changes */
    transition: opacity 0.5s ease;
    text-transform: uppercase;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100%;
    }
}

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

    #welcome-text {
        font-size: 1.5rem;
    }
}

/* Magic Login Key */
/* Magic Login Key */
.magic-key {
    position: absolute;
    /* Relative to content-wrapper */
    bottom: 5px;
    right: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease, text-shadow 0.3s ease;
    z-index: 100;
    font-family: 'Times New Roman', serif;
}

.magic-key:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-color);
    cursor: default;
}