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

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background-color: #0a0e14;
    color: #1793d1;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Terminal Container */
.terminal-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0d1117;
    border: 2px solid #1793d1;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(23, 147, 209, 0.3),
                0 0 60px rgba(23, 147, 209, 0.15),
                inset 0 0 20px rgba(23, 147, 209, 0.05);
    overflow: hidden;
}

/* Terminal Header */
.terminal-header {
    background-color: #161b22;
    border-bottom: 2px solid #1793d1;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(23, 147, 209, 0.2);
}

.terminal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo img {
    height: 40px;
    width: auto;
    border: 2px solid #1793d1;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(23, 147, 209, 0.5);
}

.nav-btn {
    background-color: #0d1117;
    color: #1793d1;
    border: 2px solid #1793d1;
    padding: 10px 20px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(23, 147, 209, 0.5);
}

.nav-btn:hover {
    background-color: #1793d1;
    color: #0d1117;
    box-shadow: 0 0 15px rgba(23, 147, 209, 0.6),
                0 0 30px rgba(23, 147, 209, 0.4);
    text-shadow: none;
    transform: translateY(-2px);
}

.nav-btn.active {
    background-color: #1793d1;
    color: #0d1117;
    box-shadow: 0 0 20px rgba(23, 147, 209, 0.8),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    text-shadow: none;
    font-weight: bold;
}

/* Terminal Main Content */
.terminal-main {
    padding: 30px;
    min-height: 0;
}

.terminal-section {
    display: none;
    animation: fadeIn 0.3s ease;
    min-height: 0;
}

.terminal-section.active {
    display: block;
}

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

/* Terminal Output */
.terminal-output {
    margin-bottom: 25px;
}

.prompt {
    color: #1793d1;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(23, 147, 209, 0.6);
}

.prompt .user {
    color: #7dcfff;
    text-shadow: 0 0 8px rgba(125, 207, 255, 0.6);
}

.prompt .path {
    color: #86e1fc;
    text-shadow: 0 0 8px rgba(134, 225, 252, 0.6);
}

.content {
    color: #c9d1d9;
    padding-left: 20px;
}

.content h1 {
    color: #1793d1;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(23, 147, 209, 0.7);
}

.content p {
    margin-bottom: 15px;
    color: #8b949e;
}

/* Terminal Demo Box */
.terminal-demo {
    margin-top: 30px;
    margin-bottom: 0;
    border: 2px solid #1793d1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(23, 147, 209, 0.3);
    background-color: #161b22;
}

.demo-header {
    background-color: #0d1117;
    padding: 10px 15px;
    border-bottom: 1px solid #1793d1;
}

.demo-title {
    color: #1793d1;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(23, 147, 209, 0.6);
}

.demo-content {
    padding: 20px;
}

.demo-prompt {
    color: #7dcfff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(125, 207, 255, 0.6);
}

.demo-output {
    color: #8b949e;
    padding-left: 10px;
    border-left: 3px solid #1793d1;
    margin-left: 5px;
}

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

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #1793d1;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(23, 147, 209, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #7dcfff;
    box-shadow: 0 0 15px rgba(125, 207, 255, 0.7);
}

/* File List Styling (ls -la output) */
.file-list {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
}

.file-item {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    transition: background-color 0.2s ease;
    border-radius: 3px;
}

.file-item:hover {
    background-color: rgba(23, 147, 209, 0.1);
}

.permissions {
    color: #7dcfff;
    min-width: 90px;
}

.links {
    color: #86e1fc;
    min-width: 20px;
    text-align: right;
}

.owner, .group {
    color: #8b949e;
    min-width: 60px;
}

.size {
    color: #c9d1d9;
    min-width: 50px;
    text-align: right;
}

.date {
    color: #8b949e;
    min-width: 100px;
}

.file-name {
    color: #1793d1;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(23, 147, 209, 0.4);
    transition: all 0.2s ease;
}

.file-name:hover {
    color: #7dcfff;
    text-shadow: 0 0 10px rgba(125, 207, 255, 0.8);
    text-decoration: underline;
}

/* Blinking Cursor */
.cursor {
    animation: blink 1s step-end infinite;
    color: #1793d1;
    text-shadow: 0 0 8px rgba(23, 147, 209, 0.6);
}

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

/* Interactive Terminal - Global (shown on all pages) */
.interactive-terminal {
    margin: 30px;
    background-color: #0d1117;
    border: 2px solid #1793d1;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(23, 147, 209, 0.3);
    min-height: 250px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.terminal-history {
    flex: 1;
    overflow-y: auto;
}

.history-item {
    margin-bottom: 15px;
}

.history-item .output {
    color: #8b949e;
    padding-left: 20px;
    margin-top: 5px;
    line-height: 1.6;
}

.history-item .output.error {
    color: #ff6b6b;
}

.history-item .output .file-name {
    color: #1793d1;
    font-weight: bold;
}

.history-item .output .command {
    color: #7dcfff;
    font-weight: bold;
}

.terminal-input-line {
    flex-shrink: 0;
    margin-top: 10px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 16px;
    outline: none;
    caret-color: #1793d1;
}

.terminal-input::selection {
    background-color: rgba(23, 147, 209, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal-header {
        padding: 10px;
    }

    .terminal-main {
        padding: 15px;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .content h1 {
        font-size: 20px;
    }

    .file-list {
        font-size: 12px;
    }

    .file-item {
        flex-wrap: wrap;
        gap: 5px;
    }

    .permissions, .links, .owner, .group, .size, .date {
        min-width: auto;
    }

    .file-name {
        flex-basis: 100%;
        margin-top: 5px;
    }
}
