/* Matrix Rain Preloader Styles */
.matrix-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.matrix-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.preloader-content {
    position: relative;
    z-index: 10000;
    text-align: center;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.preloader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(2000%) hue-rotate(90deg) brightness(1.2);
    animation: pulse 2s infinite;
}

.preloader-text {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    animation: glow 2s infinite alternate;
    margin-bottom: 10px;
}

.preloader-subtitle {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    width: 0%;
    transition: width 0.3s ease;
    animation: loading-shimmer 2s infinite;
}

.loading-percentage {
    font-size: 14px;
    margin-top: 10px;
    color: #00ff00;
    opacity: 0.8;
}

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

@keyframes glow {
    from { 
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; 
    }
    to { 
        text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; 
    }
}

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Cyberpunk scanning lines effect */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%,
        rgba(0, 255, 0, 0.03) 51%,
        transparent 51%
    );
    background-size: 100% 4px;
    animation: scan 0.1s linear infinite;
    pointer-events: none;
}

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

/* Additional matrix-style effects */
.matrix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}
