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

@font-face {
    font-family: 'TX-02';
    src: url('TX-02.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FKGrotesk';
    src: url('FKGrotesk.woff2') format('woff2');
    font-display: swap;
}

/* TUI Color Schemes - Modal Inspired */
:root {
    /* Terminal (Green) Theme - Slightly lighter greens */
    --terminal-bg: #0d1117;
    --terminal-fg: #8fbd79;
    --terminal-border: #4a6b4a;
    --terminal-accent: #6b8a6b;
    --terminal-dim: #5a735a;
    --terminal-highlight: #9cdb5c;
    --terminal-sidebar: #161b22;
    
    /* Light Green Theme - Darker and less bright */
    --light-green-bg: #e8f5e8;
    --light-green-fg: #1a3d0a;
    --light-green-border: #4a6b3a;
    --light-green-accent: #5a7d4a;
    --light-green-dim: #6a8d5a;
    --light-green-highlight: #3d8b41;
    --light-green-sidebar: #dbeadb;
    
    /* Light Theme */
    --light-bg: #ffffff;
    --light-fg: #24292f;
    --light-border: #d0d7de;
    --light-accent: #656d76;
    --light-dim: #8b949e;
    --light-highlight: #0969da;
    --light-sidebar: #f6f8fa;
}

/* Default to Terminal theme */
body {
    --bg: var(--terminal-bg);
    --fg: var(--terminal-fg);
    --border: var(--terminal-border);
    --accent: var(--terminal-accent);
    --dim: var(--terminal-dim);
    --highlight: var(--terminal-highlight);
    --sidebar: var(--terminal-sidebar);
}

/* Light Green theme */
body.light-green {
    --bg: var(--light-green-bg);
    --fg: var(--light-green-fg);
    --border: var(--light-green-border);
    --accent: var(--light-green-accent);
    --dim: var(--light-green-dim);
    --highlight: var(--light-green-highlight);
    --sidebar: var(--light-green-sidebar);
}

/* Light theme */
body.light {
    --bg: var(--light-bg);
    --fg: var(--light-fg);
    --border: var(--light-border);
    --accent: var(--light-accent);
    --dim: var(--light-dim);
    --highlight: var(--light-highlight);
    --sidebar: var(--light-sidebar);
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'TX-02', 'SF Mono', 'Monaco', 'Consolas', monospace;
    background: var(--bg);
    color: var(--fg);
    font-size: 13px;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Main App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    min-height: 0;
}

/* Header/Navbar */
.header {
    padding: 12px 20%;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--fg);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--accent);
}

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

/* Responsive visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Desktop Theme Buttons */
.theme-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--dim);
    padding: 4px 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    color: var(--fg);
    background: var(--accent);
}

.theme-btn.active {
    color: var(--bg);
    background: var(--fg);
    font-weight: bold;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    position: relative;
}

.theme-toggle-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.theme-toggle-btn:hover {
    background: var(--accent);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.toggle-icon {
    font-size: 16px;
    color: var(--fg);
    font-family: monospace;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 13px;
}


/* Main Content Area */
.content-area {
    padding: 50px 20% 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    max-width: 100%;
    box-sizing: border-box;
}

/* ASCII Art Container */
.ascii-container {
    flex-shrink: 0;
    font-size: 6px;
    line-height: 1.0;
    white-space: pre;
    font-family: 'TX-02', 'SF Mono', monospace;
    color: var(--fg);
    opacity: 0.7;
    font-weight: bold;
}

/* Make ASCII art more visible in light themes */
body.light-green .ascii-container,
body.light .ascii-container {
    color: var(--accent);
    opacity: 0.9;
    font-weight: 900;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

/* Two Column Section */
.two-column-section {
    display: flex;
    gap: 60px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 0 20%;
    box-sizing: border-box;
}

.column {
    flex: 1;
    min-width: 0;
}

.work-column {
    /* Aligns with ASCII art */
}

.projects-column {
    /* Aligns with info section */
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--fg);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font-family: 'FKGrotesk', 'TX-02', 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.work-item,
.project-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--accent);
}

.work-item:last-child,
.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.work-title,
.project-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--highlight);
    margin-bottom: 4px;
}

.work-period {
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 8px;
}

.work-description,
.project-description {
    font-size: 13px;
    color: var(--fg);
    line-height: 1.4;
}

.name {
    font-size: 24px;
    font-weight: bold;
    color: var(--fg);
    margin-bottom: 8px;
    font-family: 'FKGrotesk', 'TX-02', 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.location {
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 4px;
}

.role {
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 20px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.status-indicator {
    color: var(--highlight);
    font-size: 12px;
}

.description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--fg);
    margin-bottom: 16px;
}

.current-reading {
    font-size: 14px;
    color: var(--fg);
}

.current-reading em {
    color: var(--dim);
    font-style: italic;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Switch to mobile UI */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .content-area {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px 5% 40px;
    }

    .two-column-section {
        flex-direction: column;
        gap: 40px;
        margin-top: 20px;
        padding: 0 5% 40px;
        width: 100%;
    }
    
    .ascii-container {
        font-size: 4px;
    }
    
    .name {
        font-size: 20px;
    }
    
    .header {
        padding: 12px 5%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        gap: 20px;
        flex: 1;
    }

    .header-right {
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 12px 5%;
        flex-wrap: nowrap;
    }

    .header-left {
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .header-right {
        flex-shrink: 0;
    }

    .nav-link {
        font-size: 12px;
        padding: 4px 6px;
    }

    .content-area {
        padding: 20px 5% 30px;
    }

    .two-column-section {
        margin-top: 15px;
        padding: 0 5% 60px;
        width: 100%;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .work-item,
    .project-item {
        margin-bottom: 20px;
    }

    .ascii-container {
        font-size: 3px;
    }
    
    .name {
        font-size: 18px;
    }
}

/* Performance optimizations */
.app-container,
.main-content {
    will-change: transform;
    transform: translateZ(0);
}
