* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #0a0e27;
    background-image: 
        radial-gradient(ellipse at top, #1a1f3a 0%, #0a0e27 50%),
        radial-gradient(ellipse at bottom, #0f1628 0%, #0a0e27 50%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #00ff00;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.terminal-window {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    min-height: 600px;
    background: #0c1021;
    border-radius: 8px;
    box-shadow: 
        0 0 40px rgba(0, 255, 0, 0.1),
        0 0 80px rgba(0, 255, 0, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid #1a1f3a;
}

.terminal-header {
    background: linear-gradient(180deg, #1a1f3a 0%, #151933 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a3f5f;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-button.close {
    background: #ff5f56;
    box-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
}

.terminal-button.minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px rgba(255, 189, 46, 0.5);
}

.terminal-button.maximize {
    background: #27c93f;
    box-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
}

.terminal-button:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.terminal-title {
    color: #8892b0;
    font-size: 14px;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    height: calc(100% - 45px);
    overflow-y: auto;
    background: #0c1021;
    position: relative;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1f3a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #2a3f5f;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #3a4f6f;
}

.ascii-art {
    color: #00ff00;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 30px;
    animation: glowPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 30px rgba(0, 255, 0, 0.6);
    }
}

.loading-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.loading-line {
    color: #8892b0;
    opacity: 0;
    animation: fadeInLine 0.5s ease-in-out forwards;
}

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

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

.terminal-content {
    animation: fadeIn 0.5s ease-in-out;
}

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

.command-line {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

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

.typed-text {
    color: #ffffff;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff00;
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

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

.output {
    margin: 20px 0;
}

.help-menu {
    color: #8892b0;
    line-height: 1.6;
    font-size: 14px;
}

.help-menu::first-line {
    color: #00ff00;
    font-weight: 600;
}

.command-input-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    background: rgba(26, 31, 58, 0.3);
    border-radius: 4px;
    border: 1px solid #1a1f3a;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    outline: none;
    margin-left: 10px;
}

.command-input::placeholder {
    color: #4a5568;
    font-style: italic;
}

.content-output {
    color: #8892b0;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.content-output .green {
    color: #00ff00;
    font-weight: 600;
}

.content-output .yellow {
    color: #ffbd2e;
    font-weight: 600;
}

.content-output .cyan {
    color: #00bcd4;
    font-weight: 500;
}

.content-output .red {
    color: #ff5f56;
}

.content-output a.link {
    color: #00bcd4;
    text-decoration: none;
    border-bottom: 1px dashed #00bcd4;
    transition: all 0.3s ease;
}

.content-output a.link:hover {
    color: #00ff00;
    border-bottom-color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.section {
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00ff00, #00bcd4);
    color: #0c1021;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 0, 0.5);
}

@media (max-width: 768px) {
    .terminal-window {
        height: 90vh;
        max-width: 100%;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .content-output {
        font-size: 12px;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.5s steps(40, end);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.glitch {
    position: relative;
    color: #00ff00;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}