:root {
    --neon-green: #00ff66;
    --neon-cyan: #0bd3d3;
    --neon-magenta: #ff00ff;
    --dark-bg: #050806;
    --glass-bg: rgba(5, 12, 8, 0.45);
    --glass-border: rgba(0, 255, 102, 0.15);
}

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

body {
    background-color: var(--dark-bg);
    background-image: url('cyberpunk_forest_bg.png');
    /* Will copy generated image here */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Overlays */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.1) 0%, rgba(11, 211, 211, 0.05) 50%, rgba(5, 8, 6, 0.85) 100%);
    z-index: 1;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 51%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 11;
    opacity: 0.04;
    background: url('data:image/svg+xml;utf8,%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');
}

/* Main Content container */
.container {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 800px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 0 40px rgba(0, 255, 102, 0.1), inset 0 0 20px rgba(11, 211, 211, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scan-line 4s linear infinite;
}

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

    100% {
        transform: translateY(1500%);
    }
}

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

.glitch {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(20px, 9999px, 86px, 0);
    }

    10% {
        clip: rect(10px, 9999px, 19px, 0);
    }

    20% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    30% {
        clip: rect(66px, 9999px, 13px, 0);
    }

    40% {
        clip: rect(2px, 9999px, 46px, 0);
    }

    50% {
        clip: rect(88px, 9999px, 66px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 86px, 0);
    }

    70% {
        clip: rect(10px, 9999px, 19px, 0);
    }

    80% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    90% {
        clip: rect(66px, 9999px, 13px, 0);
    }

    100% {
        clip: rect(2px, 9999px, 46px, 0);
    }
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: #b0c4de;
    margin-bottom: 2rem;
}

.status {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 8px var(--neon-cyan);
    }

    50% {
        opacity: 0.5;
        text-shadow: none;
    }
}

/* Terminal Element */
.terminal {
    width: 100%;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(11, 211, 211, 0.2);
    border-radius: 6px;
    text-align: left;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.terminal-header {
    background: rgba(26, 26, 26, 0.8);
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(11, 211, 211, 0.2);
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.close {
    background: #ff5f56;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.expand {
    background: #27c93f;
}

.terminal-body {
    padding: 1.2rem;
    color: var(--neon-green);
}

.terminal-body p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.blinking {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Cyberpunk Buttons */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cyber-button {
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    color: #fff;
    padding: 12px 28px;
    border: 1px solid var(--neon-cyan);
    background: rgba(11, 211, 211, 0.05);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cyber-button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(11, 211, 211, 0.6);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.cyber-button:hover::before {
    left: 100%;
}

@media (max-width: 600px) {
    .glitch {
        font-size: 2.2rem;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Snowcrash Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-overlay.hidden {
    display: none;
}

.snowcrash-popup {
    background: #0a0a0a;
    border: 2px solid #ff003c;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.4), inset 0 0 15px rgba(255, 0, 60, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    color: #ff003c;
    animation: popup-shake 0.3s cubic-bezier(.25, .46, .45, .94) infinite;
}

@keyframes popup-shake {
    0% {
        transform: translate(0)
    }

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

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

    60% {
        transform: translate(1px, 1px)
    }

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

    100% {
        transform: translate(0)
    }
}

.snowcrash-popup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 10;
}

.popup-header {
    background: #ff003c;
    color: #000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    letter-spacing: 2px;
}

.warning-blink {
    animation: blink 0.5s infinite step-end;
}

.close-btn {
    cursor: pointer;
    color: #000;
    font-weight: bold;
    padding: 0 5px;
}

.close-btn:hover {
    background: #000;
    color: #ff003c;
}

.popup-body {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2rV7928GAgQMDAwwAAgwAHhQA+G1O+XAAAAAAElFTkSuQmCC');
}

.glitch-red {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #ff003c;
    text-shadow: 2px 0 #00ffff, -2px 0 #00ffff;
    position: relative;
    animation: text-glitch 1.5s infinite linear alternate-reverse;
}

@keyframes text-glitch {
    0% {
        transform: skewX(0deg);
    }

    5% {
        transform: skewX(-15deg);
    }

    10% {
        transform: skewX(0deg);
    }

    15% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.popup-body p {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 5px #ff0000;
}

.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="1" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
}