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

:root {
    /* Default theme (Tokyo Night) */
    --bg-primary: #1a1b26;
    --bg-secondary: #16161e;
    --bg-gradient: linear-gradient(135deg, #1a1b26 0%, #16161e 50%, #0f0f23 100%);
    --text-primary: #a9b1d6;
    --text-secondary: #c0caf5;
    --text-muted: #565a6e;
    --accent: #7aa2f7;
    --accent-secondary: #bb9af7;
    --error: #f7768e;
    --success: #9ece6a;
    --info: #7dcfff;
    --warning: #e0af68;
    --link: #7dcfff;
    --border: #292e42;
    --header-bg: linear-gradient(90deg, #292e42, #1a1b26);
    --button-close: #f7768e;
    --button-minimize: #e0af68;
    --button-maximize: #9ece6a;
    
    /* Global font family */
    --font-family: 'JetBrains Mono', 'Menlo', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

/* Apply font family globally */
html {
    font-family: var(--font-family);
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.terminal-container {
    width: 95vw;
    max-width: 1200px;
    height: 85vh;
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.terminal-container.maximized {
    /* Full screen styles (commented out)
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    */
    
    /* Larger but not full screen */
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
}

.terminal-header {
    background: var(--header-bg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    min-height: 40px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

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

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close {
    background: var(--button-close);
}

.minimize {
    background: var(--button-minimize);
}

.maximize {
    background: var(--button-maximize);
}

.button:hover {
    transform: scale(1.1);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-primary);
    min-height: 200px;
    height: 0; /* This forces the flex item to respect the container's height */
}

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

.terminal-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.welcome-message {
    margin-bottom: 20px;
}

.ascii-art {
    font-size: 8px;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 20px;
    white-space: pre;
    text-align: center;
}

.welcome-message p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.command {
    color: var(--accent);
    background: rgba(245, 194, 231, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(245, 194, 231, 0.3);
    box-shadow: 0 1px 3px rgba(245, 194, 231, 0.2);
}

.input-line {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
}

.prompt {
    color: var(--accent);
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    outline: none;
    caret-color: var(--accent);
    font-family: var(--font-family); /* Explicitly setting font for input */
    font-weight: 500; /* Medium weight for better readability */
    letter-spacing: 0.02em; /* Slight letter spacing for terminal feel */
}

#command-input::placeholder {
    color: var(--text-muted);
}

.command-output {
    margin: 10px 0;
    padding: 10px 0;
}

.command-line {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
    background: rgba(245, 194, 231, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.output-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 5px 0;
}

/* For help command specific styling to maintain compact layout */
.output-text div[style*="grid-template-columns"] {
    line-height: 1; /* Keep original line height for help command */
}

.error {
    color: var(--error);
}

.success {
    color: var(--success);
}

.info {
    color: var(--info);
}

.warning {
    color: var(--warning);
}

.link {
    color: var(--link);
    text-decoration: underline;
    cursor: pointer;
}

.link:hover {
    color: var(--info);
}

.clickable-link {
    color: var(--link);
    text-decoration: none;
    cursor: pointer;
}

.clickable-link:hover {
    color: var(--info);
}

/* Ensure theme list and other output doesn't have underlines */
.section strong,
.output-text strong,
.project-title,
.project-description,
.project-tech {
    text-decoration: none !important;
}

.section {
    margin: 15px 0;
    padding: 15px; /* Increased padding for better spacing */
    border-left: 3px solid var(--accent);
    background: rgba(0, 255, 0, 0.05);
    line-height: 1.6; /* Better readability for section content */
}

.section h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.skill-tag {
    background: var(--border);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid var(--accent);
}

.project-item {
    margin: 20px 0; /* Increased margin between items */
    padding: 18px; /* Increased padding inside items */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid var(--accent);
    line-height: 1.6; /* Consistent line height for all content */
}

.project-title {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px; /* Increased space between title and description */
    font-size: 1.05em; /* Slightly larger title */
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-tech {
    font-size: 12px;
    color: var(--text-muted);
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        width: 95vw;
        height: 90vh;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .input-line {
        padding: 10px 15px;
    }
    
    .prompt {
        font-size: 12px;
    }
    
    #command-input {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        font-size: 4px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .welcome-message p {
        font-size: 12px;
    }
}

/* Animation for new content */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Cursor blink animation */
.cursor-blink {
    animation: blink 1s infinite;
}

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

.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    z-index: 10;
    max-height: 180px;
    overflow-y: auto;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none;
}
.autocomplete-list.active {
    display: block;
}
.autocomplete-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.autocomplete-item.selected,
.autocomplete-item:hover {
    background: var(--accent);
    color: var(--bg-primary);
}