:root {
    --bg-color: #050505;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    /* Prevent scrollbars for the canvas */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D space */
}

#canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-container {
    position: relative;
    z-index: 10;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
    /* remove float animation, we will use JS tilt */
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
}

.robot-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    opacity: 0;
    animation: slideUpFade 1s ease-out forwards 0.3s;
}

.robot-mascot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-color);
}

h1.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-cyan);

    /* Entrance Animation */
    opacity: 0;
    animation: slideUpFade 1s ease-out forwards 0.5s;
}

/* Glitch Effect */
h1.glitch-text::before,
h1.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Matches styling of card if needed, or transparent */
    background: transparent;
}

h1.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

h1.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    font-weight: 500;
    margin-top: 1rem;
    text-transform: uppercase;

    /* Entrance Animation */
    opacity: 0;
    animation: slideUpFade 1s ease-out forwards 0.8s;
}

/* New Entrance Animation */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scanline effect */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 243, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 20;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    15% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    25% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    30% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    35% {
        clip: rect(90px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(40px, 9999px, 10px, 0);
    }

    45% {
        clip: rect(60px, 9999px, 50px, 0);
    }

    50% {
        clip: rect(20px, 9999px, 20px, 0);
    }

    55% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    65% {
        clip: rect(50px, 9999px, 50px, 0);
    }

    70% {
        clip: rect(30px, 9999px, 60px, 0);
    }

    75% {
        clip: rect(60px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 90px, 0);
    }

    85% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    90% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    95% {
        clip: rect(70px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    10% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    20% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    25% {
        clip: rect(90px, 9999px, 60px, 0);
    }

    30% {
        clip: rect(30px, 9999px, 30px, 0);
    }

    35% {
        clip: rect(70px, 9999px, 70px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 50px, 0);
    }

    45% {
        clip: rect(40px, 9999px, 80px, 0);
    }

    50% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    55% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 60px, 0);
    }

    65% {
        clip: rect(20px, 9999px, 90px, 0);
    }

    70% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    75% {
        clip: rect(30px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 40px, 0);
    }

    85% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    90% {
        clip: rect(70px, 9999px, 10px, 0);
    }

    95% {
        clip: rect(40px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(80px, 9999px, 30px, 0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    h1.glitch-text {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }
}