body, html { 
    margin: 0; padding: 0; 
    background-color: #0a0a12; 
    overflow-x: hidden; 
    overflow-y: auto; 
    font-family: 'Segoe UI', sans-serif; 
    min-height: 100%; width: 100%; 
}

#matrixCanvas { position: fixed; top: 0; left: 0; z-index: -1; opacity: 0.6; pointer-events: none; }

.container { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    z-index: 10; 
    padding: 40px 20px; 
    box-sizing: border-box; 
}

.logo-img { width: 260px; max-width: 80%; margin-bottom: 20px; filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.4)); }

h2 {
    color: #00f7ff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 25px; text-align: center; text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.terminal { background: rgba(5, 5, 8, 0.96); border: 1px solid #00f7ff; border-radius: 8px; width: 100%; max-width: 650px; font-family: 'Courier New', monospace; box-shadow: 0 0 30px rgba(0,0,0,1); }
.terminal-header { background: #1a1a2e; padding: 10px; display: flex; gap: 6px; border-bottom: 1px solid #333; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-body { padding: 15px; text-align: left; }

/* FIX: Command line wraps on mobile to prevent running off screen */
.command-line { 
    display: flex; 
    flex-wrap: wrap; 
    margin-bottom: 10px; 
    line-height: 1.6; 
}

.command-prompt { color: #00f7ff; white-space: nowrap; margin-right: 8px; font-weight: bold; }

.typing-container {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
}

.typing-text {
    color: #00f7ff; text-shadow: 1px 1px 2px rgba(0,0,0,1); display: inline-block;
    white-space: nowrap; overflow: hidden; border-right: 3px solid #00f7ff; width: 0;
    animation: typing 2.5s steps(30, end) forwards, blink 0.8s step-end infinite;
}

.delayed-output { opacity: 0; animation: fadeIn 0.5s ease forwards; animation-delay: 3s; color: #33ff00; font-size: 0.9rem; }
.system-ready { color: #00f7ff; margin-top: 15px; }

@keyframes typing { from { width: 0 } to { width: 310px } }
@keyframes blink { 50% { border-color: transparent } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Mobile Scaling and Wrap Fixes */
@media screen and (max-width: 600px) {
    .container { justify-content: flex-start; padding-top: 50px; }
    h2 { font-size: 0.85rem; }
    .terminal-body { font-size: 0.8rem; }
    
    /* Forces the command string to break if it still hits the edge after wrapping */
    .typing-text { 
        word-break: break-all; 
        white-space: normal; 
    }
    
    @keyframes typing { from { width: 0 } to { width: 100% } }
}