@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --neon-green: #0f0;
    --neon-red: #f00;
    --bg-color: #050505;
    --term-color: #0a0a0a;
    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb: #1a1a1a;
    --scrollbar-thumb-hover: #0f0;
}

body {
    background-color: var(--bg-color);
    font-family: 'Share Tech Mono', monospace;
    color: #ccc;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    border: 1px solid #333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    box-shadow: 0 0 10px var(--neon-green);
}

/* Selection */
::selection {
    background: var(--neon-green);
    color: #000;
}

/* CRT Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Matrix Background Animation */
.matrix-bg {
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ctext%20x%3D%2210%22%20y%3D%2230%22%20fill%3D%22%230f0%22%20font-family%3D%22monospace%22%20font-size%3D%2220%22%20opacity%3D%220.2%22%3E1%3C%2Ftext%3E%3Ctext%20x%3D%2250%22%20y%3D%2270%22%20fill%3D%22%230f0%22%20font-family%3D%22monospace%22%20font-size%3D%2220%22%20opacity%3D%220.2%22%3E0%3C%2Ftext%3E%3C%2Fsvg%3E');
    animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
    font-weight: bold;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-green);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

/* Terminal Window */
.terminal-window {
    background-color: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.terminal-header {
    background-color: #1a1a1a;
    padding: 8px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
    align-items: center;
}

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

.terminal-body {
    padding: 20px;
    color: var(--neon-green);
    font-size: 0.95rem;
    height: 250px;
    overflow-y: auto;
    line-height: 1.5;
}

/* Neon Cards */
.hacker-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.hacker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    transition: 0.5s;
    box-shadow: 0 0 10px var(--neon-green);
}

.hacker-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.15), inset 0 0 10px rgba(0, 255, 0, 0.05);
    transform: translateY(-5px) scale(1.01);
}

.hacker-card:hover::before {
    left: 100%;
}

.hacker-card h3 {
    color: #fff;
    transition: color 0.3s;
}

.hacker-card:hover h3 {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Utilities */
.text-neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.text-neon-red {
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.btn-hacker {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-hacker:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 30px var(--neon-green);
    font-weight: bold;
}

.btn-download {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-top: auto;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-download:hover:not(:disabled) {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px var(--neon-green);
}

.btn-download:disabled {
    border-color: #555;
    color: #555;
    background: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

/* Animations */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(80px, 9999px, 90px, 0);
    }

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

    15% {
        clip: rect(50px, 9999px, 20px, 0);
    }

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

    25% {
        clip: rect(90px, 9999px, 30px, 0);
    }

    30% {
        clip: rect(60px, 9999px, 80px, 0);
    }

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

    40% {
        clip: rect(70px, 9999px, 50px, 0);
    }

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

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

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

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    5% {
        clip: rect(50px, 9999px, 20px, 0);
    }

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

    15% {
        clip: rect(80px, 9999px, 90px, 0);
    }

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

    25% {
        clip: rect(50px, 9999px, 20px, 0);
    }

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

    35% {
        clip: rect(90px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(60px, 9999px, 80px, 0);
    }

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

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

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

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loader V2 */
@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.animate-progress {
    animation: progress 1s ease-out forwards;
}