:root {
    --primary-color: #00f3ff;
    --secondary-color: #bd00ff;
    --bg-color: #050505;
    --text-color: #ffffff;
    --font-main: 'Orbitron', sans-serif;
    --font-sec: 'Rajdhani', 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;
    perspective: 1000px;
}

/* Background Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9;
    opacity: 0.4;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen;
}

/* Main Layout */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    transform-style: preserve-3d;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Glitch Text */
.glich-text {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    position: relative;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    margin: 0;
    /* mix-blend-mode: hard-light; */
}

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

.glich-text::before {
    color: var(--primary-color);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glich-text::after {
    color: var(--secondary-color);
    z-index: -2;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(-2px, 2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Mirror Apparition */
.mirror-wrapper {
    margin-top: -30px;
    /* Pull closer to the main text */
    transform: perspective(500px) rotateX(60deg) scaleY(-1);
    opacity: 0.4;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 80%);
    pointer-events: none;
    filter: blur(2px);
}

.mirror-text {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
    animation: glitch-anim-2 4s infinite linear alternate-reverse;
    /* Slightly syncopated */
}

/* Status & Loading */
.status-container {
    margin-top: 4rem;
    font-family: var(--font-sec);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-text {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    text-transform: uppercase;
    min-height: 1.5em;
    /* Prevent layout shift when scrambling */
}

.progress-bar {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        left: -50%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }

    /* Pauses briefly */
}

.coming-soon {
    margin-top: 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.7);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px white;
    }
}

/* Tablet/Mobile Responsive */
@media (max-width: 1024px) {

    .glich-text,
    .mirror-text {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .glich-text,
    .mirror-text {
        font-size: 3.5rem;
        /* Much smaller, cleaner size */
        letter-spacing: 0.1em;
    }

    .mirror-wrapper {
        margin-top: -10px;
        transform: perspective(500px) rotateX(40deg) scaleY(-1);
        -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 60%);
        /* Fades out faster */
        mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 60%);
    }

    .status-container {
        margin-top: 3rem;
    }

    .progress-bar {
        width: 80%;
        max-width: 250px;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {

    .glich-text,
    .mirror-text {
        font-size: 2.2rem;
        /* perfectly fitted for small screens */
    }

    .mirror-wrapper {
        margin-top: -5px;
    }

    .status-text {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .coming-soon {
        font-size: 0.9rem;
    }
}