/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Code Pro', 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #f0f0f0;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 400;
    overflow: hidden;
    height: 100vh;
    letter-spacing: 0.5px;
}

/* Terminal Container */
.terminal-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0c0c0c 0%, #161b22 100%);
    box-shadow: inset 0 0 100px rgba(0, 255, 144, 0.02);
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(90deg, #1c1c1c 0%, #242424 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2d333b;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.terminal-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close {
    background-color: #ff5f56;
}

.control.minimize {
    background-color: #ffbd2e;
}

.control.maximize {
    background-color: #27ca3f;
}

.terminal-title {
    color: #7d8590;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    touch-action: manipulation;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.input-container {
    background: rgba(0, 255, 144, 0.03);
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 14px;
    margin-top: 12px;
    cursor: text;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input-container:hover {
    border-color: #238636;
    background: rgba(0, 255, 144, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.input-container:focus-within {
    border-color: #238636;
    background: rgba(0, 255, 144, 0.08);
    box-shadow: 0 0 16px rgba(35, 134, 54, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.input-display {
    color: #eaeaea;
    font-family: inherit;
    font-size: inherit;
    white-space: pre;
}

#terminal-input {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border: none;
    color: transparent;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    caret-color: transparent;
    z-index: 1;
}


.input-cursor {
    color: #00ff41;
    animation: blink 1.2s infinite;
    font-weight: bold;
    margin-left: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

.input-hint {
    color: #666;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

/* Welcome Message */
.welcome-message {
    margin-bottom: 20px;
    color: #888;
}

.highlight {
    color: #00ff41;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Text Styling */
.user-name {
    color: #00bfff;
    font-weight: 600;
    display: block;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

.user-title {
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    color: #00ff41;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

.status-available {
    color: #00ff41;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

.section-title {
    color: #00bfff;
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

.subsection-title {
    color: #ff8c00;
    font-weight: 600;
    display: block;
    margin: 10px 0 5px 0;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

.quote {
    color: #00ff90;
    font-style: italic;
    display: block;
    margin-top: 10px;
}

.skill-level {
    font-size: 12px;
    font-weight: 500;
}

.skill-level.expert {
    color: #00ff41;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

.skill-level.advanced {
    color: #00bfff;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.5);
}

.skill-level.intermediate {
    color: #ff8c00;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

.project-name {
    color: #00bfff;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.5);
}

.project-type {
    color: #ff8c00;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

.tech-stack {
    color: #00ff41;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

.achievement-rank {
    color: #00ff41;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

.job-title {
    color: #00bfff;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.5);
}

.company-name {
    color: #ff8c00;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

.job-period {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

/* Command Line Styling */
.command-line-history {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: #00ff41;
    font-weight: 600;
    user-select: none;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.command-input {
    color: #00bfff;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.4);
}

.output {
    color: #eaeaea;
    margin-bottom: 16px;
    padding-left: 20px;
    white-space: pre-line;
}

.output-title {
    color: #00c0ff;
    font-weight: 600;
    font-size: 16px;
}

.command-name {
    color: #00ff41;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

.skill-category {
    color: #ffbd2e;
    font-weight: 600;
}

.project-title {
    color: #00c0ff;
    font-weight: 600;
}

.achievement {
    color: #00ff90;
    font-weight: 600;
}

.contact-link {
    color: #00bfff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.4);
}

.contact-link:hover {
    color: #00ff41;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

.command-name {
    color: #00ff41;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

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

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

/* Scrollbar Styling */
#terminal-output::-webkit-scrollbar {
    width: 8px;
}

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

#terminal-output::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

#terminal-output::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .terminal-container {
        min-height: 100vh;
        height: auto;
    }
    
    .terminal-body {
        padding: 16px;
        min-height: calc(100vh - 60px);
    }
    
    .terminal-header {
        padding: 8px 12px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .input-container {
        padding: 12px;
        position: sticky;
        bottom: 0;
        background: rgba(12, 12, 12, 0.95);
        backdrop-filter: blur(10px);
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    
    .input-hint {
        display: none;
    }
    
    #terminal-output {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .output {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-link {
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .terminal-body {
        padding: 12px;
    }
    
    .terminal-header {
        padding: 6px 10px;
    }
    
    .terminal-controls {
        gap: 6px;
    }
    
    .control {
        width: 10px;
        height: 10px;
    }
    
    .input-container {
        padding: 10px;
    }
    
    .input-line {
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prompt {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .input-wrapper {
        width: 100%;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .subsection-title {
        font-size: 14px;
    }
}

/* Selection Styling */
::selection {
    background-color: #00ff41;
    color: #0d1117;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .blink,
    .cursor {
        animation: none;
    }
}

/* Focus States */
#terminal-input:focus {
    outline: none;
}

/* Mobile Touch Improvements */
@media (hover: none) {
    .input-container:hover {
        border-color: #30363d;
        background: rgba(0, 255, 144, 0.03);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Prevent zoom on input focus for mobile */
@media screen and (max-width: 768px) {
    #terminal-input {
        font-size: 16px;
    }
}

a:focus {
    outline: 2px solid #00ff90;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .terminal-container {
        border: 2px solid #333;
    }
}

/* Startup Message Styling */
.startup-message {
    margin-bottom: 4px;
    font-family: inherit;
    line-height: 1.4;
}

/* Disabled input styling */
#terminal-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Paragraph Text Highlights */
.output {
    color: #f0f0f0;
}

.output .emoji {
    filter: brightness(1.2);
}

/* Add subtle color variations to break monotony */
.output:has(.project-name) {
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.02) 0%, transparent 100%);
    border-left: 2px solid rgba(0, 191, 255, 0.3);
    padding-left: 18px;
    margin-left: 2px;
}

.output:has(.job-title) {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.02) 0%, transparent 100%);
    border-left: 2px solid rgba(255, 140, 0, 0.3);
    padding-left: 18px;
    margin-left: 2px;
}

.output:has(.achievement-rank) {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.02) 0%, transparent 100%);
    border-left: 2px solid rgba(0, 255, 65, 0.3);
    padding-left: 18px;
    margin-left: 2px;
}

/* Feature highlight text */
.output li, .output .feature-item {
    color: #c9d1d9;
    margin: 4px 0;
}

/* Description text with subtle highlights */
.output .description {
    color: #8b949e;
    font-style: italic;
}

/* Additional text styling classes */
.tech-highlight {
    color: #ff6b6b;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(255, 107, 107, 0.3);
}

.feature-text {
    color: #4ecdc4;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(78, 205, 196, 0.3);
}

.tool-text {
    color: #9b59b6;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(155, 89, 182, 0.3);
}

.project-desc {
    color: #f39c12;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(243, 156, 18, 0.3);
}