@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap');

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

body {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: auto;
}

.terminal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.terminal-header {
    border: 1px solid #00ff00;
    margin-bottom: 20px;
    padding: 10px;
}

.ascii-art {
    color: #ffff00;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    margin: 10px 0;
    white-space: pre;
}

.menu-bar {
    background: #333;
    color: #ffff00;
    padding: 5px;
    margin: 10px 0;
    border: 1px solid #00ff00;
}

.menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.menu-item {
    color: #00ff00;
    text-decoration: none;
    padding: 2px 4px;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: #00ff00;
    color: #000;
    border: 1px solid #00ff00;
}

.menu-divider {
    color: #ffff00;
    margin: 0 10px;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.theme-label {
    color: #ffff00;
    font-size: 14px;
}

.theme-link {
    color: #00ff00;
    text-decoration: none;
    padding: 2px 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.theme-link:hover {
    background: #00ff00;
    color: #000;
    border: 1px solid #00ff00;
}

.theme-current {
    color: #ffff00;
    padding: 2px 4px;
    border: 1px solid #ffff00;
    background: rgba(255, 255, 0, 0.1);
}

.section {
    margin: 30px 0;
    border: 1px solid #444;
    padding: 15px;
}

.section-header {
    color: #ffff00;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.prompt {
    color: #00ffff;
}

.prompt::before {
    content: "C:\\LEGACY> ";
    color: #ffff00;
}

.text-block {
    margin: 10px 0;
    padding-left: 20px;
}

.highlight {
    background: #333;
    border-left: 3px solid #ffff00;
    padding: 10px;
    margin: 10px 0;
}

/* Dynamic section control */
.section {
    margin: 30px 0;
    border: 1px solid #444;
    padding: 15px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Terminal animations */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

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

.cursor {
    display: inline-block;
    background: #00ff00;
    color: #000;
    animation: blink 1s infinite;
}

.cursor::after {
    content: "█";
}

/* Loading animation */
.loading-bar {
    display: none;
    color: #00ff00;
    margin: 20px 0;
}

.loading-bar.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border: 1px solid #00ff00;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00ff00;
    width: 0%;
    transition: width 2s ease;
}

/* Menu active state */
.menu-item.active {
    background: #00ff00;
    color: #000;
    border: 1px solid #00ff00;
}

/* Command output styling */
.command-output {
    color: #00ff00;
    font-family: 'Source Code Pro', monospace;
    margin: 10px 0;
    padding: 5px;
    border-left: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

/* Status line */
.status-line {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #00ff00;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #00ff00;
}

/* Additional styles for existing elements */
.success-box, .error-box, .warning-box {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #00ff00;
}

.success-box {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.error-box {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border-color: #ff0000;
}

.warning-box {
    background: rgba(255, 255, 0, 0.1);
    color: #ffff00;
    border-color: #ffff00;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-box {
    border: 1px solid #444;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
}

.feature-title {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 5px;
}

.code-block {
    background: #111;
    border: 1px solid #444;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Source Code Pro', monospace;
    color: #00ff00;
    overflow-x: auto;
}

.process-step {
    margin: 15px 0;
    padding: 10px;
    border-left: 3px solid #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.step-number {
    color: #ffff00;
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}

/* Contact Form Styles */
.contact-form-container {
    margin: 20px 0;
    border: 2px solid #00ff00;
    background: #111;
    padding: 20px;
}

.contact-form {
    color: #00ff00;
    font-family: 'Source Code Pro', monospace;
}

.form-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.field-label {
    color: #ffff00;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.required {
    color: #ff0000;
}

.terminal-input,
.terminal-select,
.terminal-textarea {
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    padding: 8px;
    margin-bottom: 5px;
}

.terminal-input:focus,
.terminal-select:focus,
.terminal-textarea:focus {
    outline: none;
    border-color: #ffff00;
    box-shadow: 0 0 5px #ffff00;
}

.terminal-input::placeholder,
.terminal-textarea::placeholder {
    color: #666;
}

.terminal-select {
    cursor: pointer;
}

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

.terminal-checkbox {
    margin-right: 8px;
    accent-color: #00ff00;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: #00ff00;
}

.field-error {
    color: #ff0000;
    font-size: 11px;
    min-height: 15px;
    margin-top: 2px;
}

.field-info {
    color: #ffff00;
    font-size: 11px;
    text-align: right;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.submit-button,
.reset-button {
    background: #333;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover,
.reset-button:hover {
    background: #00ff00;
    color: #000;
}

.submit-button:disabled {
    background: #333;
    border-color: #666;
    color: #666;
    cursor: not-allowed;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #444;
    background: rgba(0, 255, 0, 0.1);
    display: none;
}

.form-status.success {
    display: block;
    border-color: #00ff00;
    color: #00ff00;
}

.form-status.error {
    display: block;
    border-color: #ff0000;
    color: #ff0000;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-button,
    .reset-button {
        width: 100%;
        max-width: 250px;
    }
}