
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
html, body {
    margin: 0;
    padding: 0;
    background: #000;
}
.o {
    position: relative;
    display: inline-block;
}

/* barra della Ø */
.o::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 3px;
    background: #39FF14;
    transform: rotate(-25deg);
}

/* BASE */
body {
    margin: 0;
    background-color: #000; /* nero reale */
    color: #39FF14;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
}

/* RIGHE VERDI SOPRA IL NERO */
.lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: repeating-linear-gradient(
        0deg,
        rgba(57,255,20,0.1),
        rgba(57,255,20,0.1) 1px,
        transparent 1px,
        transparent 6px
    );

    animation: scan 6s linear infinite;

    pointer-events: none;
    z-index: 1;
}

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

/* CONTENUTO */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    text-align: center;
    z-index: 2;
}
.logo {
    width: 150px;
    margin-bottom: 20px;

    filter: 
        drop-shadow(0 0 10px #39FF14)
        drop-shadow(0 0 20px #39FF14)
        drop-shadow(0 0 40px #8A2BE2);

    animation: logoGlitch 2s infinite;
}@keyframes logoGlitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 1px);
    }
    40% {
        transform: translate(2px, -1px);
    }
    60% {
        transform: translate(-1px, 2px);
    }
    80% {
        transform: translate(1px, -2px);
    }
}
/* TITOLO */
h1 {
    font-size: 120px;
    letter-spacing: -5px;
    position: relative;

    color: #39FF14;

    animation: glitch 0.15s infinite, pulse 2s infinite;

    text-shadow:
        0 0 10px #39FF14,
        0 0 20px #39FF14,
        0 0 40px #39FF14,
        0 0 80px #8A2BE2; /* viola */
}

/* GLITCH VERDE + VIOLA */
h1::before,
h1::after {
    content: "KHA\00D8S";
    position: absolute;
    left: 0;
    top: 0;
}

h1::before {
    color: #8A2BE2;
    transform: translate(6px, 0);
    mix-blend-mode: screen;
}

h1::after {
    color: #39FF14;
    transform: translate(-6px, 0);
    mix-blend-mode: screen;
}

/* ANIMAZIONI */
@keyframes glitch {
    0% { transform: skew(0deg); }
    25% { transform: skew(5deg); }
    50% { transform: skew(-5deg); }
    75% { transform: skew(3deg); }
    100% { transform: skew(0deg); }
}

@keyframes pulse {
    0%, 100% {
        text-shadow:
            0 0 10px #39FF14,
            0 0 20px #39FF14,
            0 0 40px #39FF14,
            0 0 80px #8A2BE2;
    }
    50% {
        text-shadow:
            0 0 20px #39FF14,
            0 0 40px #39FF14,
            0 0 80px #39FF14,
            0 0 120px #8A2BE2;
    }
}

/* TESTO */
p {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.8;
    animation: flicker 2s infinite;
}

/* FLICKER */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.2; }
}
body::after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    animation: strobe 6s infinite;
}

@keyframes strobe {
    0%, 95%, 100% { opacity: 0; }
    96% { opacity: 0.15; }
    97% { opacity: 0; }
    98% { opacity: 0.2; }
    99% { opacity: 0; }
}
/* MOBILE VERSION PRO */
@media (max-width: 768px) {

    body {
        overflow: hidden;
    }

    .container {
        width: 90%;
        max-width: 400px;
        padding: 0 15px;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        text-align: center;
    }

    h1 {
        font-size: clamp(48px, 14vw, 80px); /* adattivo */
        line-height: 0.9;
        letter-spacing: -2px;

        animation: glitchMain 1.5s infinite; /* più fluido */
    }

    h1::before,
    h1::after {
        animation: mobileGlitch 2s infinite;
    }
    
    @keyframes mobileGlitch {
        0%, 90%, 100% {
            transform: translate(0, 0);
            opacity: 0;
        }
        92% {
            transform: translate(2px, 0);
            opacity: 0.6;
        }
        94% {
            transform: translate(-2px, 0);
            opacity: 0.6;
        }
    }

    p {
        font-size: 12px;
        line-height: 1.4;
    }

    .lines {
        background: repeating-linear-gradient(
            0deg,
            rgba(57,255,20,0.04),
            rgba(57,255,20,0.04) 1px,
            transparent 1px,
            transparent 7px
        );
    }
    .logo {
        width: 80px;
        margin-bottom: 15px;
    }
}