:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-terminal: #0d1117;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-green: #3fb950;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --border-color: #30363d;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.terminal-container {
    width: 100%;
    max-width: 900px;
}

.terminal-window {
    background: var(--bg-terminal);
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 13px;
    margin-left: auto;
}

.terminal-body {
    padding: 24px;
    min-height: 500px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

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

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

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.terminal-content {
    font-size: 14px;
    min-height: 100%;
}

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

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt {
    color: var(--accent-green);
    font-weight: bold;
}

.command {
    color: var(--accent-blue);
}

.command-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--accent-blue) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    flex: 1;
    min-width: 200px;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.command-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.active-line {
    display: flex;
    align-items: center;
}

.cursor {
    color: var(--accent-green);
    animation: blink 1s infinite;
}

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

.output {
    margin: 16px 0 24px 0;
    padding-left: 0;
}

.terminal-heading {
    color: var(--accent-purple);
    font-size: 2.5em;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.terminal-text {
    color: var(--text-primary);
    margin: 8px 0;
}

.terminal-list {
    list-style: none;
    padding-left: 20px;
    margin: 12px 0;
}

.terminal-list li {
    color: var(--text-primary);
    margin: 6px 0;
    position: relative;
}

.terminal-list li::before {
    content: "→";
    color: var(--accent-green);
    position: absolute;
    left: -20px;
}

.contact-form {
    margin-top: 20px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--accent-green);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.terminal-button {
    background: var(--accent-green);
    color: var(--bg-terminal);
    border: none;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.terminal-button:hover {
    background: #2ea043;
    transform: translateY(-1px);
}

.terminal-button:active {
    transform: translateY(0);
}

.terminal-button .prompt {
    color: var(--bg-terminal);
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: rgba(63, 185, 80, 0.2);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    display: block;
}

.form-message.error {
    background: rgba(248, 81, 73, 0.2);
    border: 1px solid #f85149;
    color: #f85149;
    display: block;
}

/* Help section styles */
.help-section {
    margin-top: 8px;
}

.help-commands {
    margin-top: 12px;
    margin-left: 20px;
}

.help-command {
    margin: 8px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.command-name {
    color: var(--accent-blue);
    font-weight: bold;
    min-width: 120px;
}

.command-desc {
    color: var(--text-primary);
}

.accent-green {
    color: var(--accent-green);
}

/* Contact section */
.contact-section {
    margin-top: 8px;
}

.terminal-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.terminal-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* Services section */
.services-help-section {
    margin-top: 8px;
}

.services-commands {
    margin-top: 12px;
    margin-left: 20px;
}

.service-command {
    margin: 8px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.service-open-section {
    margin-top: 8px;
}

/* Email form section */
.email-form-section {
    margin-top: 8px;
}

.email-form {
    margin-top: 20px;
    max-width: 600px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cancel-button {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.cancel-button:hover {
    background: var(--border-color) !important;
    border-color: var(--text-secondary) !important;
}

/* Error section */
.error-section {
    margin-top: 8px;
}

.error-text {
    color: #f85149;
}

/* About section */
.about-section {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .terminal-heading {
        font-size: 2em;
    }
    
    .terminal-body {
        padding: 16px;
    }
    
    .terminal-content {
        font-size: 13px;
    }
}

