:root {
    --bg-color: #020617; /* Very dark slate blue */
    --primary-glow: rgba(56, 189, 248, 0.6); /* Sky blue */
    --secondary-glow: rgba(139, 92, 246, 0.6); /* Violet */
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* Subtle radial gradient background */
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
}

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

.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Glassmorphism panel effect */
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4rem 6rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fade-in 2s ease-out forwards;
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.glitch {
    font-size: 7rem;
    font-weight: 700;
    letter-spacing: 0.8rem;
    position: relative;
    color: white;
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--secondary-glow);
    animation: float 6s ease-in-out infinite;
    text-transform: uppercase;
    line-height: 1;
}

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

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

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

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 86px, 0); }
    10% { clip: rect(31px, 9999px, 21px, 0); }
    20% { clip: rect(98px, 9999px, 55px, 0); }
    30% { clip: rect(56px, 9999px, 12px, 0); }
    40% { clip: rect(45px, 9999px, 34px, 0); }
    50% { clip: rect(66px, 9999px, 2px, 0); }
    60% { clip: rect(21px, 9999px, 15px, 0); }
    70% { clip: rect(74px, 9999px, 44px, 0); }
    80% { clip: rect(61px, 9999px, 28px, 0); }
    90% { clip: rect(84px, 9999px, 19px, 0); }
    100% { clip: rect(52px, 9999px, 38px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.4rem;
    color: var(--accent-color);
    opacity: 0.9;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.3s ease;
}

.content-wrapper:hover .subtitle::after {
    width: 100%;
}

.dots {
    display: inline-block;
    width: 20px;
    text-align: left;
    animation: typing 2s steps(4, end) infinite;
    overflow: hidden;
    vertical-align: bottom;
}

@keyframes typing {
    0%, 100% { content: ''; width: 0px; }
    25% { content: '.'; width: 5px; }
    50% { content: '..'; width: 10px; }
    75% { content: '...'; width: 15px; }
}

/* Responsiveness */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 3rem 2rem;
    }
    .glitch {
        font-size: 4rem;
        letter-spacing: 0.4rem;
    }
    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.2rem;
    }
}
