/* ============================================
   Variables
   ============================================ */
:root {
    /* Light Theme (Default) */
    --bg-primary: #f5f5f0;
    --bg-secondary: #e8e8e0;
    --text-primary: #2e2e2e;
    --text-secondary: #5a5a5a;
    --accent-color: #00aa00;
    --accent-hover: #008800;
    --border-color: #c0c0b0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --link-color: #0066cc;
    --link-hover: #004499;
}

[data-theme="dark"] {
    /* Dark Theme - Softer colors for better readability */
    --bg-primary: #1e1e2e;
    --bg-secondary: #181825;
    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --accent-color: #89b4fa;
    --accent-hover: #74c7ec;
    --border-color: #45475a;
    --shadow-color: rgba(137, 180, 250, 0.15);
    --link-color: #89dceb;
    --link-hover: #74c7ec;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cascadia Code','Courier New', Courier, monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header
   ============================================ */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.terminal-title {
    font-weight: bold;
    font-size: 16px;
}

.prompt {
    color: var(--accent-color);
    margin-right: 8px;
}

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

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

.terminal-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Cascadia Code','Courier New', Courier, monospace;
    font-size: 14px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.lang-indicator {
    font-weight: bold;
}

.theme-icon {
    font-size: 16px;
}

/* ============================================
   Navigation
   ============================================ */
.terminal-nav {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-top: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.terminal-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.terminal-nav li::before {
    content: '> ';
    color: var(--accent-color);
    font-weight: bold;
}

.terminal-nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ============================================
   Main Content
   ============================================ */
.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================
   Sections
   ============================================ */
.section {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 0;
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.section-header {
    background-color: var(--bg-primary);
    padding: 10px 20px;
    border-bottom: 2px solid var(--border-color);
    font-weight: bold;
}

.section-header .command {
    color: var(--text-secondary);
    margin-left: 8px;
}

.section-content {
    padding: 20px;
}

/* ============================================
   ASCII Art
   ============================================ */
.ascii-art {
    color: var(--accent-color);
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 20px;
    overflow-y: hidden;
    overflow-x: auto;
}

/* ============================================
   Text Content
   ============================================ */
.text-content p {
    margin-bottom: 15px;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Achievements
   ============================================ */
.file-list {
    list-style: none;
}

.file-list li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.file-permissions {
    color: var(--accent-color);
    font-weight: bold;
    min-width: 80px;
}

.file-date {
    color: var(--text-secondary);
    min-width: 60px;
}

.file-name {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   Blog Posts
   ============================================ */
#blog {
    display: none;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-post {
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.blog-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-date {
    color: var(--accent-color);
    font-weight: bold;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-left: 0;
}

/* ============================================
   Experience
   ============================================ */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-item {
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.exp-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    flex: 1;
    min-width: 200px;
}

.exp-details {
    list-style: none;
    margin-left: 0;
    padding-left: 20px;
}

.exp-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.exp-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-info p {
    margin-bottom: 15px;
}

.contact-list {
    list-style: none;
    margin-bottom: 25px;
}

.contact-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-label {
    color: var(--accent-color);
    font-weight: bold;
    min-width: 80px;
}

.contact-list a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.availability {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.availability h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.availability p {
    margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */
.terminal-footer {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    text-align: center;
}

.footer-content {
    font-size: 12px;
    color: var(--text-secondary);
}

.separator {
    margin: 0 10px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 10px;
    }

    .terminal-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .terminal-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .terminal-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .ascii-art {
        font-size: 8px;
    }

    .file-list li {
        flex-direction: column;
        gap: 5px;
    }

    .post-header {
        flex-direction: column;
        gap: 5px;
    }

    .section {
        box-shadow: 2px 2px 0 var(--shadow-color);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .terminal-header,
    .terminal-nav,
    .section-header {
        padding: 10px 15px;
    }

    .section-content {
        padding: 15px;
    }

    .ascii-art {
        font-size: 7px;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .terminal-controls,
    .cursor-blink {
        display: none;
    }

    .section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
