/* Matrix Rain Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
    opacity: 0.8;
}

/* Matrix Characters */
.matrix-char {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 5px #00ff41;
    animation: matrix-fall 3s linear infinite;
}

@keyframes matrix-fall {
    0% {
        opacity: 1;
        transform: translateY(-100vh);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

/* Matrix Glow Effects */
.matrix-glow {
    color: #00ff41;
    text-shadow: 
        0 0 5px #00ff41,
        0 0 10px #00ff41,
        0 0 15px #00ff41,
        0 0 20px #00ff41;
}

.matrix-glow-red {
    color: #ff0040;
    text-shadow: 
        0 0 5px #ff0040,
        0 0 10px #ff0040,
        0 0 15px #ff0040,
        0 0 20px #ff0040;
}

/* Matrix Text Effects */
.matrix-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #00ff41;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 1px solid #00ff41;
    border-radius: 3px;
    text-shadow: 0 0 5px #00ff41;
}

/* Matrix Scanlines */
.matrix-scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 65, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

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

/* Matrix Flicker */
.matrix-flicker {
    animation: matrix-flicker 0.15s infinite linear alternate;
}

@keyframes matrix-flicker {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Matrix Code Rain Columns */
.matrix-column {
    position: absolute;
    top: -100px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
    white-space: pre;
    line-height: 14px;
    animation: matrix-rain linear infinite;
}

@keyframes matrix-rain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Matrix Terminal Glow */
.matrix-terminal-glow {
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        0 0 20px rgba(0, 255, 65, 0.2),
        0 0 30px rgba(0, 255, 65, 0.1),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

/* Matrix Pulse Animation */
.matrix-pulse {
    animation: matrix-pulse 2s ease-in-out infinite;
}

@keyframes matrix-pulse {
    0%, 100% {
        text-shadow: 
            0 0 5px #00ff41,
            0 0 10px #00ff41,
            0 0 15px #00ff41;
    }
    50% {
        text-shadow: 
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 30px #00ff41,
            0 0 40px #00ff41;
    }
}

/* Matrix Data Stream */
.matrix-stream {
    position: relative;
    overflow: hidden;
}

.matrix-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 65, 0.4),
        transparent
    );
    animation: matrix-stream-flow 3s infinite;
}

@keyframes matrix-stream-flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Matrix Grid Pattern */
.matrix-grid {
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Matrix Noise Effect */
.matrix-noise {
    position: relative;
}

.matrix-noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0.4 0 0 0 0 0.2 0 0 0 0.1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.3"/></svg>');
    pointer-events: none;
    animation: matrix-noise-anim 0.2s infinite;
}

@keyframes matrix-noise-anim {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Matrix Border Glow */
.matrix-border {
    border: 1px solid #00ff41;
    box-shadow: 
        0 0 5px rgba(0, 255, 65, 0.5),
        inset 0 0 5px rgba(0, 255, 65, 0.2);
}

.matrix-border-red {
    border: 1px solid #ff0040;
    box-shadow: 
        0 0 5px rgba(255, 0, 64, 0.5),
        inset 0 0 5px rgba(255, 0, 64, 0.2);
}

/* Matrix Loading Animation */
.matrix-loading {
    position: relative;
    color: #00ff41;
}

.matrix-loading::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: #00ff41;
    animation: matrix-loading-blink 1s infinite;
}

@keyframes matrix-loading-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Matrix Hologram Effect */
.matrix-hologram {
    position: relative;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 65, 0.1) 50%,
        transparent 70%
    );
    background-size: 20px 20px;
    animation: matrix-hologram-move 4s linear infinite;
}

@keyframes matrix-hologram-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

