/* Boot Sequence Enhancer CSS - CRT Effects & Hacker Aesthetics */

/* CRT Screen Effects */
.boot-enhanced {
    position: relative;
    overflow: hidden;
}

.boot-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 0, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.boot-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 3;
}

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

/* Text Glow Effect */
.boot-text-enhanced {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00,
        0 0 20px #00ff00;
    animation: textGlow 2s ease-in-out infinite alternate;
}

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

/* Typing Cursor Effect */
.typing-cursor::after {
    content: '_';
    animation: cursor-blink 1s infinite;
    color: #00ff00;
}

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

/* Glitch Effect for Facts */
.fact-glitch {
    position: relative;
    animation: glitch 0.3s ease-in-out;
}

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

/* Matrix-style background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

.matrix-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Boot Sequence Container */
.boot-sequence-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, #001100 0%, #000 70%),
        linear-gradient(0deg, transparent 24%, rgba(32, 255, 77, 0.04) 25%, rgba(32, 255, 77, 0.04) 26%, transparent 27%, transparent 74%, rgba(32, 255, 77, 0.04) 75%, rgba(32, 255, 77, 0.04) 76%, transparent 77%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

/* Enhanced Loading Text */
.boot-loading-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    animation: textPulse 2s ease-in-out infinite;
    letter-spacing: 2px;
}

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

/* Fact Display Styling */
.boot-fact {
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    padding: 10px 20px;
    border: 1px solid #00ffff;
    border-radius: 5px;
    background: rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 5px #00ffff;
    animation: factAppear 0.5s ease-in-out;
    max-width: 600px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

@keyframes factAppear {
    0% { 
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress Bar */
.boot-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.boot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00aa00);
    width: 0;
    animation: progressFill 8s ease-in-out;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes progressFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* System Status Indicators */
.system-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: statusBlink 1.5s infinite;
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Network Animation */
.network-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 10s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Terminal Window Effect */
.terminal-window {
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    background: 
        rgba(0, 20, 0, 0.9),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* Data Stream Effect */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.data-stream::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 50%,
        transparent 100%
    );
    animation: dataFlow 3s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .boot-loading-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .boot-fact {
        font-size: 14px;
        max-width: 90%;
        margin: 10px auto;
    }
    
    .boot-progress {
        width: 250px;
    }
    
    .system-status {
        flex-wrap: wrap;
        gap: 10px;
    }
}
