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

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    font-family: 'VT323', 'Courier New', 'Monaco', 'Lucida Console', monospace;
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.terminal-container {
    width: 100%;
    max-width: 1000px;
    background: #111;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    overflow: hidden;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #555;
    flex-shrink: 0;
    justify-content: space-between;
}

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

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

.btn.red {
    background: #ff5f57;
}

.btn.yellow {
    background: #ffbd2e;
}

.btn.green {
    background: #28ca42;
}

.terminal-title {
    color: #ccc;
    font-size: 14px;
    margin-left: 20px;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-toggle {
    background: #00ff00;
    color: #000;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mode-toggle:hover {
    background: #00cc00;
    transform: scale(1.05);
}

.bug-icon {
    font-size: 16px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bug-icon:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.1);
}

.terminal-lang-btn {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    transition: all 0.3s ease;
}

.terminal-lang-btn:hover {
    background: #00ff00;
    color: #000;
}

.language-switch-terminal {
    background: #444;
    color: #ccc;
    border: 1px solid #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch-terminal:hover {
    background: #555;
    color: #00ff00;
    border-color: #00ff00;
}

.terminal-content {
    padding: 20px;
    position: relative;
    scroll-behavior: smooth;
    overflow-y: auto;
    flex: 1;
    height: 0;
}

#terminal-output {
    margin-bottom: 30px;
}

.line {
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.typing-text {
    color: #fff;
    border-right: 2px solid #00ff00;
    animation: blink 1s infinite;
}

.typing-text.complete {
    border-right: none;
    animation: none;
}

.project-title {
    color: #00ff00;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.project-description {
    color: #ccc;
    margin-left: 20px;
    margin-bottom: 10px;
}

.ai-response {
    color: #00ccff;
    font-style: italic;
}

.command-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.cmd-btn {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cmd-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.cmd-btn:active {
    transform: translateY(1px);
}

.input-section {
    margin-top: 20px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #111;
    padding: 10px 0;
    border-top: 1px solid #333;
}

.input-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#user-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    border-bottom: 2px solid #00ff00;
    padding: 5px 10px;
    flex: 1;
    min-width: 200px;
}

#user-input::placeholder {
    color: #666;
}

#submit-question {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#submit-question:hover {
    background: #00cc00;
    transform: translateY(-1px);
}

.terminal-cursor {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #00ff00;
    font-size: 18px;
    animation: blink 1s infinite;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal-container {
        height: 85vh;
        max-height: 600px;
    }
    
    .terminal-header {
        padding: 8px 12px;
    }
    
    .terminal-title {
        font-size: 12px;
        margin-left: 10px;
    }
    
    .bug-icon {
        font-size: 14px;
        padding: 2px 6px;
    }
    
    .mode-toggle {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .command-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cmd-btn {
        width: 100%;
        text-align: center;
    }
    
    .input-line {
        flex-direction: column;
        align-items: stretch;
    }
    
    #user-input {
        min-width: unset;
        width: 100%;
        margin-bottom: 10px;
    }
    
    #submit-question {
        align-self: flex-end;
    }
    
    .line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prompt {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 8px 12px;
    }
    
    .terminal-title {
        font-size: 12px;
        margin-left: 15px;
    }
    
    .terminal-content {
        padding: 12px;
    }
    
    .cmd-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .terminal-cursor {
        bottom: 12px;
        right: 12px;
    }
}

/* Loading animation for content */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #111;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Terminal-style links */
.terminal-link {
    color: #00ff00;
    text-decoration: none;
    position: relative;
    font-family: inherit;
    padding: 2px 4px;
    transition: all 0.2s ease;
}

.terminal-link:hover {
    background: #00ff00;
    color: #000;
    text-decoration: none;
}

/* Contact links specific styling */
.contact-links a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 4px;
    margin: 0 1px;
}

.contact-links a:hover {
    background: #00ff00;
    color: #000;
}

/* Project detail styling */
.project-detail {
    color: #ccc;
    margin-left: 20px;
    line-height: 1.6;
}

/* VT323 font adjustments */
body {
    font-size: 18px;
    line-height: 1.4;
}

.terminal-content {
    font-size: 16px;
    line-height: 1.5;
}

.ai-response {
    font-size: 16px;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
}

.project-description {
    font-size: 16px;
    line-height: 1.5;
}

/* Text selection styling */
::selection {
    background: #00ff00;
    color: #000;
}

::-moz-selection {
    background: #00ff00;
    color: #000;
}

/* Project links styling */
.project-link {
    color: #00ff00;
    text-decoration: none;
    padding: 2px 4px;
    margin: 0 2px;
    transition: all 0.2s ease;
    display: inline-block;
}

.project-link:hover {
    background: #00ff00;
    color: #000;
    text-decoration: none;
}

/* FAQ specific styling */
.faq-link {
    color: #00ff00;
    text-decoration: none;
    padding: 2px 4px;
    margin: 0 2px;
    transition: all 0.2s ease;
    display: inline-block;
}

.faq-link:hover {
    background: #00ff00;
    color: #000;
    text-decoration: none;
}
