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

body {
    background-color: #000;
    color: #fff;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 400%;
    top: -150%;
    left: -50%;
    background-image: 
        linear-gradient(to right, #111 1px, transparent 1px),
        linear-gradient(to bottom, #111 1px, transparent 1px);
    background-size: 50px 50px;
    /* On incline la grille pour créer la profondeur */
    transform: perspective(500px) rotateX(60deg);
    /* Animation de mouvement infini */
    animation: move-grid 20s linear infinite;
    z-index: -2;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgb(0 0 0 / 84%) 60%, #00000026 100%);
    z-index: -1;
}

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

@keyframes move-grid {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hidden {
    display: none;
}


#intro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1) 2s; 
    font-family: 'Consolas', 'Monaco', monospace;
}

#intro-overlay.fade-out {
    transform: translateY(100%);
}

.intro-text {
    font-size: 5rem;
    font-weight: 900;
    color: #DFFF00;
    text-transform: uppercase;
    letter-spacing: 15px;
    overflow: hidden;
    position: relative;
    padding: 0 10px;
    animation: text-appear 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.intro-text::before,
.intro-text::after {
    content: "FURTIV";
    position: absolute;
    top: 0; left: 0;
    color: #DFFF00;
    width: 100%; height: 100%;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.intro-text::before {
    left: 2px;
    text-shadow: -1px 0px #6b6b6b;
    animation: glitch-anim-1 1.5s infinite alternate-reverse;
}

.intro-text::after {
    left: -2px;
    text-shadow: -1px 0px #00ffff; /* Glitch Cyan */
    animation: glitch-anim-2 1.5s infinite alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 5px, 0); }
    10% { clip: rect(61px, 9999px, 47px, 0); }
    15% { clip: rect(78px, 9999px, 83px, 0); }
    20% { clip: rect(51px, 9999px, 89px, 0); }
    25% { clip: rect(25px, 9999px, 55px, 0); }
    30% { clip: rect(25px, 9999px, 78px, 0); }
    35% { clip: rect(25px, 9999px, 12px, 0); }
    40% { clip: rect(25px, 9999px, 55px, 0); }
    45% { clip: rect(25px, 9999px, 78px, 0); }
    50% { clip: rect(25px, 9999px, 12px, 0); }
    55% { clip: rect(25px, 9999px, 55px, 0); }
    60% { clip: rect(25px, 9999px, 78px, 0); }
    65% { clip: rect(25px, 9999px, 12px, 0); }
    70% { clip: rect(25px, 9999px, 55px, 0); }
    75% { clip: rect(25px, 9999px, 78px, 0); }
    80% { clip: rect(25px, 9999px, 12px, 0); }
    85% { clip: rect(25px, 9999px, 55px, 0); }
    90% { clip: rect(25px, 9999px, 78px, 0); }
    95% { clip: rect(25px, 9999px, 12px, 0); }
    100% { clip: rect(42px, 9999px, 44px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(45px, 9999px, 16px, 0); }
    5% { clip: rect(64px, 9999px, 4px, 0); }
    10% { clip: rect(98px, 9999px, 63px, 0); }
    15% { clip: rect(65px, 9999px, 71px, 0); }
    20% { clip: rect(104px, 9999px, 20px, 0); }
    25% { clip: rect(104px, 9999px, 20px, 0); }
    30% { clip: rect(104px, 9999px, 20px, 0); }
    35% { clip: rect(104px, 9999px, 20px, 0); }
    40% { clip: rect(104px, 9999px, 20px, 0); }
    45% { clip: rect(104px, 9999px, 20px, 0); }
    50% { clip: rect(104px, 9999px, 20px, 0); }
    55% { clip: rect(104px, 9999px, 20px, 0); }
    60% { clip: rect(104px, 9999px, 20px, 0); }
    65% { clip: rect(104px, 9999px, 20px, 0); }
    70% { clip: rect(104px, 9999px, 20px, 0); }
    75% { clip: rect(104px, 9999px, 20px, 0); }
    80% { clip: rect(104px, 9999px, 20px, 0); }
    85% { clip: rect(104px, 9999px, 20px, 0); }
    90% { clip: rect(104px, 9999px, 20px, 0); }
    95% { clip: rect(104px, 9999px, 20px, 0); }
    100% { clip: rect(45px, 9999px, 16px, 0); }
}


@keyframes text-appear {
    0% { transform: scale(0.5) translateY(20px); opacity: 0; filter: blur(20px); }
    100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}