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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow: hidden;
    position: relative;
    height: 100vh;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Loading container */
.loading-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Virus container */
.virus-container {
    position: relative;
    margin-bottom: 60px;
    animation: virus-float 4s ease-in-out infinite;
}

.virus-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.8));
    animation: virus-pulse 2s ease-in-out infinite;
    z-index: 10;
    position: relative;
    background: transparent;
}

.virus-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: 5;
}

.virus-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    animation: particle-orbit 6s linear infinite;
}

.particle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 25%;
    right: 0;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 25%;
    right: 0;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

.particle:nth-child(5) {
    bottom: 25%;
    left: 0;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    top: 25%;
    left: 0;
    animation-delay: 5s;
}

/* Loading text */
.loading-text {
    text-align: center;
    margin-bottom: 60px;
}

.infection-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00ff41;
    margin-bottom: 20px;
    animation: text-glitch 4s infinite;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.poison-token {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #ff0040;
    animation: token-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 0, 64, 0.7);
}

/* Progress container */
.progress-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 60px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 255, 65, 0.3);
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #ffff00, #ff0040);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s linear infinite;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-fill.active .progress-glow {
    opacity: 1;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.progress-percentage {
    color: #00ff41;
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-label {
    text-transform: uppercase;
    animation: label-flicker 3s infinite;
}

/* Loading status */
.loading-status {
    text-align: center;
    opacity: 0;
    animation: status-fade-in 2s ease-in-out 1s forwards;
}

.status-line {
    margin-bottom: 15px;
    font-family: 'JetBrains Mono', monospace;
    animation: status-typewriter 0.5s ease-in-out forwards;
    opacity: 0;
}

.status-line:nth-child(1) { animation-delay: 2s; }
.status-line:nth-child(2) { animation-delay: 2.5s; }
.status-line:nth-child(3) { animation-delay: 3s; }

.status-prompt {
    color: #00ff41;
    margin-right: 10px;
}

.status-command {
    color: #fff;
}

/* Animations */
@keyframes virus-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes virus-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes particle-orbit {
    0% { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes text-glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes token-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes label-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes status-fade-in {
    to { opacity: 1; }
}

@keyframes status-typewriter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Matrix rain effect for background */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

/* Responsive design */
@media (max-width: 768px) {
    .infection-title {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }
    
    .poison-token {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .virus-image {
        width: 225px;
        height: 225px;
        object-fit: contain;
        background: transparent;
    }
    
    .virus-glow {
        width: 200px;
        height: 200px;
    }
    
    .virus-particles {
        width: 300px;
        height: 300px;
    }
    
    .particle {
        width: 6px;
        height: 6px;
    }
    
    .progress-container {
        max-width: 90%;
    }
}
