/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Matrix Font */
@font-face {
    font-family: 'Matrix Code';
    src: url('matrix code nfi.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --neon-green: #0f0;
    --dark-green: #003300;
    --bg-black: #050505;
    --terminal-bg: #0a0a0a;
    --red: #ff0040;
    --amber: #ffb000;
    --cyan: #00ffff;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg-black);
    color: var(--neon-green);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* CRT Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

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

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 999;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Glitch Header */
.glitch-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px solid var(--neon-green);
    background: rgba(0, 255, 0, 0.05);
    position: relative;
}

.glitch-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--neon-green);
    opacity: 0.1;
    z-index: -1;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--red), -0.05em -0.05em 0 var(--cyan);
    animation: glitch 2s infinite;
}

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

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

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

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--red), -0.05em -0.05em 0 var(--cyan); }
    14% { text-shadow: 0.05em 0 0 var(--red), -0.05em -0.05em 0 var(--cyan); }
    15% { text-shadow: -0.05em -0.025em 0 var(--red), 0.025em 0.025em 0 var(--cyan); }
    49% { text-shadow: -0.05em -0.025em 0 var(--red), 0.025em 0.025em 0 var(--cyan); }
    50% { text-shadow: 0.025em 0.05em 0 var(--red), 0.05em 0 0 var(--cyan); }
    99% { text-shadow: 0.025em 0.05em 0 var(--red), 0.05em 0 0 var(--cyan); }
    100% { text-shadow: -0.025em 0 0 var(--red), -0.025em -0.025em 0 var(--cyan); }
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(78px, 9999px, 23px, 0); }
    40% { clip: rect(12px, 9999px, 11px, 0); }
    60% { clip: rect(53px, 9999px, 87px, 0); }
    80% { clip: rect(7px, 9999px, 63px, 0); }
    100% { clip: rect(89px, 9999px, 37px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    20% { clip: rect(4px, 9999px, 30px, 0); }
    40% { clip: rect(91px, 9999px, 47px, 0); }
    60% { clip: rect(26px, 9999px, 6px, 0); }
    80% { clip: rect(73px, 9999px, 91px, 0); }
    100% { clip: rect(18px, 9999px, 54px, 0); }
}

.subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* Disclaimer */
.disclaimer {
    background: rgba(255, 0, 64, 0.1);
    border: 2px solid var(--red);
    color: var(--red);
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Terminal Window */
.terminal-window {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    position: relative;
    z-index: 10;
}

.terminal-header {
    background: rgba(0, 255, 0, 0.05);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--neon-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-green);
    opacity: 0.5;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.7;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    line-height: 1.8;
    min-height: 150px;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--cyan);
    margin-right: 0.5rem;
}

.target {
    color: var(--amber);
}

.success {
    color: var(--neon-green);
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Virus Menu */
.virus-menu {
    margin-bottom: 2rem;
}

.virus-menu h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.virus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.virus-card {
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid var(--neon-green);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
}

.virus-card:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.virus-card:hover .virus-icon {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.virus-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.virus-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--red);
}

.virus-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.threat-level {
    font-size: 0.8rem;
}

.threat-level span {
    display: block;
    margin-bottom: 0.3rem;
}

.threat-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.threat-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: var(--red);
    animation: threatPulse 1s ease-in-out infinite;
}

.threat-bar.max::after { width: 100%; }
.threat-bar.critical::after { width: 90%; }
.threat-bar.severe::after { width: 80%; }
.threat-bar.extreme::after { width: 95%; }
.threat-bar.apocalyptic::after { width: 100%; background: linear-gradient(90deg, var(--red), var(--amber)); }
.threat-bar.transcendent::after { width: 100%; background: linear-gradient(90deg, var(--cyan), var(--neon-green)); }

@keyframes threatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Injection Status */
.injection-status {
    background: var(--terminal-bg);
    border: 2px solid var(--neon-green);
    padding: 2rem;
    margin-bottom: 2rem;
}

.status-header h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    animation: blink 0.5s infinite;
}

.progress-container {
    position: relative;
    background: #222;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--cyan));
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.status-log {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.status-log .log-line {
    margin-bottom: 0.3rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--neon-green);
}

.success-message h2 {
    margin-bottom: 2rem;
}

.success-content {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--neon-green);
}

.reset-btn {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
}

.reset-btn:hover {
    background: var(--neon-green);
    color: var(--bg-black);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

/* Footer */
.hacker-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--neon-green);
}

.blink {
    animation: blink 1s infinite;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Crypto Section */
.crypto-section {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.crypto-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    animation: scan 8s linear infinite;
    pointer-events: none;
}

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

.crypto-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.crypto-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.crypto-section .crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.crypto-section .crypto-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-green);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.crypto-section .crypto-card:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.crypto-section .crypto-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.crypto-section .crypto-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--amber);
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
}

.crypto-section .crypto-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.crypto-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
}

.crypto-address code {
    flex: 1;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--cyan);
    overflow: hidden;
    text-overflow: ellipsis;
}

.crypto-section .copy-btn {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.crypto-section .copy-btn:hover {
    background: var(--neon-green);
    color: var(--bg-black);
}

.crypto-note {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--amber);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .virus-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
    
    .crypto-section {
        padding: 1.5rem;
    }
    
    .crypto-section .crypto-grid {
        grid-template-columns: 1fr;
    }
}
