/* Custom CSS for PHP Version */

/* Cursor */
* {
    cursor: none;
}

.cursor-dot {
    width: 20px;
    height: 20px;
    background-color: #ccff00;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

body:active .cursor-dot {
    width: 50px;
    height: 50px;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.07;
    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)'/%3E%3C/svg%3E");
}

/* Glitch Animations */
@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 1px);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 2px);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, -2px);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(1px, -1px);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-1px, 1px);
    }
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #bd00ff;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00f3ff;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* Button Crazy */
.btn-crazy {
    background: #ccff00;
    color: #000000;
    padding: 1rem 3rem;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    border: none;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.1s linear;
}

.btn-crazy:hover {
    background: #ffffff;
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #bd00ff;
}

/* Glass Box */
.glass-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Glow Utils */
.glow-blue {
    box-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;
}

.glow-purple {
    box-shadow: 0 0 10px #bd00ff, 0 0 20px #bd00ff;
}