@font-face {
    font-family: 'Terminal';
    src: url('../fonts/FreeSerif-YO4a.woff') format('woff');
}

:root {
    --primary: #00ffff;
    --secondary: #666666;
    --warning: #ff3300;
    --text: #ffffff;
    --glow: rgba(0, 255, 255, 0.8);
    --background: #000000;
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    color: var(--text);
    font-family: 'Terminal', monospace;
    margin: 0;
    padding: 20px;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 255, 0.02) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 255, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 0, 255, 0.02) 3px
        );
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.boot-sequence {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: Terminal !important;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s forwards;
}

.logo {
    margin-bottom: 20px;
    text-align: center;
}

.logo img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 0, 255, 0.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 0, 255, 0.5));
    }
    100% { 
        filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.7)) drop-shadow(0 0 80px rgba(0, 255, 255, 0.5));
    }
}

.version {
    color: var(--neon-cyan);
    font-size: 0.9em;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.system-info {
    color: var(--neon-cyan);
    font-size: 0.85em;
    margin-top: 10px;
    font-family: monospace;
    letter-spacing: 1px;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.boot-log {
    font-size: 1em;
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
    margin: 5px 0;
    text-shadow: 0 0 8px var(--glow);
    font-family: 'Terminal', monospace !important;
    position: relative;
}

.boot-log::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 10px var(--glow);
}

.boot-log.success::before {
    content: "[OK] ";
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.boot-log.warning::before {
    content: "[!!] ";
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 51, 0, 0.8);
}

.boot-log.info::before {
    content: "[--] ";
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.memory-check {
    margin: 20px 0;
    font-family: monospace;
    animation: fadeIn 1s forwards;
    animation-delay: 2s;
}

.memory-block {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 1px;
    background: var(--secondary);
    animation: memoryTest 0.15s ease-in-out forwards;
    opacity: 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 1px;
}

@keyframes memoryTest {
    0% { 
        background: #ff0000; 
        opacity: 1;
        box-shadow: 0 0 5px #ff0000;
    }
    50% { 
        background: #ff00ff;
        opacity: 0.9;
        box-shadow: 0 0 8px #ff00ff;
    }
    100% { 
        background: #00ffff;
        opacity: 0.9;
        box-shadow: 0 0 10px #00ffff;
    }
}

.progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-cyan));
    background-size: 200% 100%;
    box-shadow: 0 0 20px var(--glow), 0 0 40px rgba(255, 0, 255, 0.5);
    animation: progress 4s linear forwards, shimmerProgress 2s linear infinite;
}

@keyframes shimmerProgress {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.status {
    text-align: center;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2em;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards, shimmerStatus 3s linear infinite;
    animation-delay: 4s, 4s;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 0, 255, 0.6));
    font-weight: bold;
    letter-spacing: 4px;
}

@keyframes shimmerStatus {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), var(--neon-cyan), transparent);
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.6);
    animation: scanline 0.8s linear;
    animation-delay: 3.8s;
    animation-fill-mode: forwards;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); opacity: 0; }
}

.click-prompt {
    text-align: center;
    color: var(--neon-cyan);
    font-size: 1em;
    margin-top: 15px;
    opacity: 0;
    animation: fadeIn 0.5s forwards, blink 1.5s ease-in-out infinite;
    animation-delay: 4.5s, 5s;
    text-shadow: 0 0 15px var(--glow);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
