/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
}

/* Boot Screen Styles */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1s ease-out;
}

.boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

.boot-logo {
    margin-bottom: 30px;
}

#boot-ascii {
    color: #00ff00;
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 0 0 10px #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
}

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

.boot-messages {
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.boot-line {
    color: #00ff00;
    margin: 8px 0;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    font-size: 14px;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.5s; }
.boot-line:nth-child(4) { animation-delay: 2s; }
.boot-line:nth-child(5) { animation-delay: 2.5s; }
.boot-line:nth-child(6) { animation-delay: 3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boot-progress {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 30px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #00ff00;
}

/* Terminal Screen Styles */
.terminal-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease-in;
}

.terminal-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.btn.close { background: #ff5f56; }
.btn.minimize { background: #ffbd2e; }
.btn.maximize { background: #27ca3f; }

.terminal-title {
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    background: #000;
    overflow-y: auto;
    position: relative;
}

.terminal-content {
    min-height: calc(100% - 30px);
    padding-bottom: 20px;
}

.terminal-line {
    margin: 8px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.4;
}

.prompt {
    color: #00ff00;
    margin-right: 8px;
    font-weight: 500;
}

.command {
    color: #fff;
    margin-right: 8px;
}

.output {
    color: #ccc;
    margin-left: 20px;
    white-space: pre-wrap;
    word-break: break-word;
}

.error {
    color: #ff6b6b;
}

.success {
    color: #51cf66;
}

.info {
    color: #74c0fc;
}

.terminal-input-line {
    position: sticky;
    bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #333;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    flex: 1;
    caret-color: #00ff00;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    display: none;
}

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

/* SHAXDB Content Styles */
.shaxdb-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #00ff00;
    padding: 40px;
    overflow-y: auto;
    transition: opacity 0.5s ease-in;
}

.shaxdb-content.hidden {
    opacity: 0;
    pointer-events: none;
}

.content-section {
    margin-bottom: 40px;
    max-width: 800px;
}

.content-section h2 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px #00ff00;
}

.content-section h3 {
    color: #00cc00;
    margin-bottom: 10px;
    font-size: 18px;
}

.content-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding-left: 20px;
}

.content-section li {
    color: #ccc;
    margin: 8px 0;
    position: relative;
}

.content-section li:before {
    content: '▶';
    color: #00ff00;
    position: absolute;
    left: -15px;
}

.project {
    background: #1a1a1a;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #333;
    border-radius: 5px;
}

/* Restart Button Styles */
.restart-section {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.restart-button {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restart-button:hover {
    background: linear-gradient(45deg, #00cc00, #00aa00);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.restart-button:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    #boot-ascii {
        font-size: 8px;
    }
    
    .boot-content {
        padding: 10px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .shaxdb-content {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #boot-ascii {
        font-size: 6px;
    }
    
    .terminal-header {
        padding: 6px 10px;
    }
    
    .terminal-title {
        font-size: 10px;
    }
    
    .btn {
        width: 10px;
        height: 10px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}