:root {
    --color-primary: #7F5AF0;
    --color-secondary: #2CB67D;
    --color-background: #FFFFFF;
    --color-surface: #F7F7F7;
    --color-text-primary: #2B2C34;
    --color-text-secondary: #72757E;
    --color-border: #E2E8F0;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Theme Variables - Default to Windows 95 */
    --theme-desktop-bg: #008080;
    --theme-text: #000000;
    --theme-window-bg: #c0c0c0;
    --theme-border-light: #ffffff;
    --theme-border-dark: #808080;
    --theme-border-darker: #000000;
    --theme-title-bar-bg: linear-gradient(90deg, #000080, #1084d0);
    --theme-title-bar-active: linear-gradient(90deg, #0000aa, #00aaff);
    --theme-taskbar-bg: #c0c0c0;
    --theme-start-button-bg: #c0c0c0;
    --theme-button-bg: #c0c0c0;
    --theme-button-active: #e0e0e0;
    --theme-font-family: "Microsoft Sans Serif", sans-serif;
    --theme-window-radius: 0px;
    --theme-shadow: 1px 1px 0 var(--theme-border-darker);
    --theme-title-bar-text-color: #ffffff;
    --theme-start-button-text-color: #000000;
    --theme-taskbar-height: 28px;
    --theme-window-border-width: 2px;
    --theme-button-inset: inset 1px 1px 1px #000000, inset -1px -1px 1px #ffffff;
    
    /* Legacy Windows 95 variables for backward compatibility */
    --win95-background: var(--theme-desktop-bg);
    --win95-text: var(--theme-text);
    --win95-window-bg: var(--theme-window-bg);
    --win95-border-light: var(--theme-border-light);
    --win95-border-dark: var(--theme-border-dark);
    --win95-border-darker: var(--theme-border-darker);
}

/* Theme Transitions */
body.win95 * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Windows 3.1 Theme - Program Manager Era */
[data-theme="win31"] {
    --theme-desktop-bg: #808080;
    --theme-text: #000000;
    --theme-window-bg: #c0c0c0;
    --theme-border-light: #ffffff;
    --theme-border-dark: #808080;
    --theme-border-darker: #000000;
    --theme-title-bar-bg: #808080;
    --theme-title-bar-active: #808080;
    --theme-taskbar-bg: #c0c0c0;
    --theme-start-button-bg: #c0c0c0;
    --theme-button-bg: #c0c0c0;
    --theme-button-active: #e0e0e0;
    --theme-font-family: "MS Sans Serif", sans-serif;
    --theme-window-radius: 0px;
    --theme-shadow: 1px 1px 0 var(--theme-border-darker);
    --theme-title-bar-text-color: #000000;
    --theme-start-button-text-color: #000000;
    --theme-taskbar-height: 28px;
    --theme-window-border-width: 2px;
    --theme-button-inset: inset 1px 1px 1px #000000, inset -1px -1px 1px #ffffff;
}

/* Windows 3.1 Specific Styling */
[data-theme="win31"] .title-bar {
    background: var(--theme-title-bar-bg) !important;
    border-bottom: 1px solid var(--theme-border-darker);
}

[data-theme="win31"] .start-button {
    background: var(--theme-button-bg);
    border: 1px solid;
    border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
    box-shadow: var(--theme-button-inset);
}

[data-theme="win31"] .start-button:active {
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: inset 1px 1px 1px #000000;
}

[data-theme="win31"] .desktop-icon span {
    color: #000000;
    text-shadow: none;
    font-size: 11px;
}

[data-theme="win31"] .desktop {
    background-image: url('https://static0.xdaimages.com/wordpress/wp-content/uploads/2024/05/windows-4k.jpg?q=49&fit=contain&w=750&h=422&dpr=2') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="win31"] .window {
    border: var(--theme-window-border-width) solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: var(--theme-shadow);
}

[data-theme="win31"] .taskbar {
    background: var(--theme-taskbar-bg) !important;
    border-top: 2px solid var(--theme-border-light);
}

/* Windows 98 Theme - Active Desktop Era */
[data-theme="win98"] {
    --theme-desktop-bg: #008080;
    --theme-text: #000000;
    --theme-window-bg: #c0c0c0;
    --theme-border-light: #ffffff;
    --theme-border-dark: #808080;
    --theme-border-darker: #000000;
    --theme-title-bar-bg: linear-gradient(90deg, #000080, #1084d0);
    --theme-title-bar-active: linear-gradient(90deg, #0000aa, #00aaff);
    --theme-taskbar-bg: #c0c0c0;
    --theme-start-button-bg: #c0c0c0;
    --theme-button-bg: #c0c0c0;
    --theme-button-active: #e0e0e0;
    --theme-font-family: "Microsoft Sans Serif", sans-serif;
    --theme-window-radius: 0px;
    --theme-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    --theme-title-bar-text-color: #ffffff;
    --theme-start-button-text-color: #000000;
    --theme-taskbar-height: 28px;
    --theme-window-border-width: 2px;
    --theme-button-inset: inset 1px 1px 1px #000000, inset -1px -1px 1px #ffffff;
    --theme-web-style: true;
    --theme-active-desktop: true;
}

/* Windows XP Theme - Luna Visual Style */
[data-theme="winxp"] {
    --theme-desktop-bg: #004e98;
    --theme-text: #000000;
    --theme-window-bg: #ece9d8;
    --theme-border-light: #ffffff;
    --theme-border-dark: #7c9eb2;
    --theme-border-darker: #4a5d6b;
    --theme-title-bar-bg: linear-gradient(90deg, #0a246a, #a6caf0);
    --theme-title-bar-active: linear-gradient(90deg, #0a246a, #a6caf0);
    --theme-taskbar-bg: #ece9d8;
    --theme-start-button-bg: linear-gradient(90deg, #0a246a, #a6caf0);
    --theme-button-bg: #ece9d8;
    --theme-button-active: #f7f3e9;
    --theme-font-family: "Tahoma", sans-serif;
    --theme-window-radius: 8px;
    --theme-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    --theme-title-bar-text-color: #ffffff;
    --theme-start-button-text-color: #ffffff;
    --theme-taskbar-height: 28px;
    --theme-window-border-width: 1px;
    --theme-button-inset: inset 1px 1px 1px #ffffff, inset -1px -1px 1px #7c9eb2;
    --theme-luna-blue: true;
    --theme-rounded-corners: true;
    --theme-gradient-buttons: true;
}

/* Windows 7 Theme - Aero Glass Era */
[data-theme="win7"] {
    --theme-desktop-bg: #2c539e;
    --theme-text: #000000;
    --theme-window-bg: #f0f0f0;
    --theme-border-light: #ffffff;
    --theme-border-dark: #d0d0d0;
    --theme-border-darker: #a0a0a0;
    --theme-title-bar-bg: linear-gradient(90deg, #2c539e, #5a9fd4);
    --theme-title-bar-active: linear-gradient(90deg, #2c539e, #5a9fd4);
    --theme-taskbar-bg: #2c539e;
    --theme-start-button-bg: #2c539e;
    --theme-button-bg: #f0f0f0;
    --theme-button-active: #e8e8e8;
    --theme-font-family: "Segoe UI", sans-serif;
    --theme-window-radius: 6px;
    --theme-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --theme-title-bar-text-color: #ffffff;
    --theme-start-button-text-color: #ffffff;
    --theme-taskbar-height: 40px;
    --theme-window-border-width: 1px;
    --theme-button-inset: none;
    --theme-aero-glass: true;
    --theme-modern-fonts: true;
    --theme-large-taskbar: true;
    --theme-transparent-effects: true;
}

/* Windows 98 Specific Styling - Active Desktop */
[data-theme="win98"] .desktop {
    background-image: url('https://static0.xdaimages.com/wordpress/wp-content/uploads/2024/05/triangles-4k.jpg?q=49&fit=contain&w=750&h=422&dpr=2') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="win98"] .window {
    border: var(--theme-window-border-width) solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: var(--theme-shadow);
}

[data-theme="win98"] .taskbar {
    background: var(--theme-taskbar-bg) !important;
    border-top: 2px solid var(--theme-border-light);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="win98"] .desktop-icon span {
    color: #000000;
    text-shadow: 
        1px 1px 0 #fff,
        -1px 1px 0 #fff,
        1px -1px 0 #fff,
        -1px -1px 0 #fff;
    font-size: 12px;
}

/* Windows XP Specific Styling - Luna Blue */
[data-theme="winxp"] .window {
    border-radius: var(--theme-window-radius);
    border: var(--theme-window-border-width) solid var(--theme-border-dark);
    box-shadow: var(--theme-shadow);
}

[data-theme="winxp"] .title-bar {
    background: var(--theme-title-bar-bg) !important;
    border-radius: var(--theme-window-radius) var(--theme-window-radius) 0 0;
    border-bottom: none;
}

[data-theme="winxp"] .start-button {
    background: var(--theme-start-button-bg) !important;
    border: none;
    border-radius: 4px;
    color: var(--theme-start-button-text-color);
    font-weight: bold;
}

[data-theme="winxp"] .taskbar {
    background: var(--theme-taskbar-bg) !important;
    border-top: 1px solid var(--theme-border-light);
}

[data-theme="winxp"] .desktop-icon span {
    color: #000000;
    text-shadow: 1px 1px 0 #ffffff;
    font-size: 12px;
    font-family: var(--theme-font-family);
}

[data-theme="winxp"] .desktop {
    background-image: url('https://static0.xdaimages.com/wordpress/wp-content/uploads/2024/05/bliss.jpg?q=49&fit=contain&w=750&h=422&dpr=2') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="winxp"] .window-body {
    background: var(--theme-window-bg);
    border-radius: 0 0 var(--theme-window-radius) var(--theme-window-radius);
}

[data-theme="winxp"] .title-bar-controls button {
    border-radius: 3px;
    border: 1px solid var(--theme-border-dark);
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
}

[data-theme="winxp"] .title-bar-controls button:hover {
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
}

/* Windows 7 Specific Styling - Aero Glass */
[data-theme="win7"] .window {
    border-radius: var(--theme-window-radius);
    border: var(--theme-window-border-width) solid var(--theme-border-dark);
    box-shadow: var(--theme-shadow);
    background: var(--theme-window-bg);
}

[data-theme="win7"] .title-bar {
    background: var(--theme-title-bar-bg) !important;
    border-radius: var(--theme-window-radius) var(--theme-window-radius) 0 0;
    border-bottom: none;
}

[data-theme="win7"] .start-button {
    background: var(--theme-start-button-bg) !important;
    border: none;
    border-radius: 4px;
    color: var(--theme-start-button-text-color);
    font-weight: bold;
    font-family: var(--theme-font-family);
}

[data-theme="win7"] .taskbar {
    background: var(--theme-taskbar-bg) !important;
    border-top: 1px solid var(--theme-border-light);
    height: var(--theme-taskbar-height);
}

[data-theme="win7"] .desktop-icon span {
    color: #000000;
    text-shadow: 1px 1px 0 #ffffff;
    font-size: 12px;
    font-family: var(--theme-font-family);
}

[data-theme="win7"] .desktop {
    background-image: url('https://static0.xdaimages.com/wordpress/wp-content/uploads/2024/05/img0.jpg?q=49&fit=contain&w=750&h=422&dpr=2') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="win7"] .taskbar-item {
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="win7"] .taskbar-item.active {
    background: rgba(255, 255, 255, 0.2);
}


[data-theme="win7"] .window {
    background: rgba(240, 240, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="win7"] .window-body {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 var(--theme-window-radius) var(--theme-window-radius);
}

[data-theme="win7"] .title-bar-controls button {
    border-radius: 4px;
    border: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

[data-theme="win7"] .title-bar-controls button:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
}

/* Windows 95 Style Modal System */
.windows-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: var(--theme-font-family);
}

.windows-dialog {
    background: var(--theme-window-bg);
    border: var(--theme-window-border-width) solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: var(--theme-shadow);
    border-radius: var(--theme-window-radius);
    min-width: 300px;
    max-width: 400px;
    font-size: 12px;
}

.windows-dialog-title {
    background: var(--theme-title-bar-bg);
    color: var(--theme-title-bar-text-color);
    padding: 4px 8px;
    font-weight: bold;
    border-radius: var(--theme-window-radius) var(--theme-window-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.windows-dialog-content {
    padding: 16px;
    background: var(--theme-window-bg);
    color: var(--theme-text);
    line-height: 1.4;
    border-radius: 0 0 var(--theme-window-radius) var(--theme-window-radius);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.5;
}

body.win95 {
    font-family: var(--theme-font-family);
    background-color: var(--theme-desktop-bg);
    color: var(--theme-text);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Navigation */
.nav {
    background-color: var(--color-primary);
    padding: var(--space-md);
    color: var(--theme-title-bar-text-color);
}

.nav-container {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--theme-title-bar-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--theme-title-bar-text-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Main content */
.main {
    padding-top: var(--space-2xl);
}

.container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    margin-bottom: var(--space-2xl);
}

.heading {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.heading-secondary {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.bio-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 42rem;
    margin-bottom: var(--space-xl);
}

/* Social links */
.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--color-text-primary);
}

/* Blog posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.blog-post {
    text-decoration: none;
    padding: var(--space-md);
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.blog-post:hover {
    background-color: var(--color-surface);
}

.blog-post-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.blog-post-date {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: var(--space-md);
    }

    .heading {
        font-size: 1.875rem;
    }

    .bio-text {
        font-size: 1rem;
    }

    /* Base mobile adjustments */
    body.win95 {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Desktop icons for mobile */
    .desktop-icons {
        position: relative;
        top: 10px;
        left: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
        width: 100%;
        justify-content: center;
        margin-bottom: 80px;
    }
    
    .desktop-icon {
        width: auto;
        min-width: 80px;
        max-width: 90px;
        padding: 10px 8px;
        margin: 0 auto;
    }
    
    .desktop-icon img {
        width: 40px;
        height: 40px;
    }
    
    .desktop-icon span {
        font-size: 14px;
        margin-top: 5px;
    }
    
    /* Mobile window styling */
    .folder-contents.window {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0;
        display: none;
    }
    
    /* Show tabs instead of dual windows on mobile */
    .mobile-tabs {
        display: flex;
        width: 100%;
        margin-bottom: 15px;
        margin-top: 10px;
        border: none;
        position: relative;
        z-index: 10;
        background-color: transparent;
    }
    
    .mobile-tab {
        flex: 1;
        background-color: var(--theme-taskbar-bg);
        border: 1px solid;
        border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
        padding: 8px 5px;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    }
    
    .mobile-tab.active {
        background-color: #d2d2d2;
        border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
        box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* Folder contents styling for mobile */
    .folder-body {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Adjust taskbar for mobile */
    .taskbar {
        height: 40px;
    }
    
    .start-button {
        height: 36px;
        padding: 2px 10px;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
    
    .start-button img {
        width: 20px;
        height: 20px;
    }
    
    .taskbar-items {
        max-width: calc(100% - 100px);
    }
    
    .taskbar-item {
        min-width: 60px;
        padding: 5px;
    }
    
    .time {
        font-size: 14px;
        padding: 5px;
        display: flex;
        align-items: center;
    }
    
    /* Start menu for mobile */
    .start-menu {
        width: 240px;
        max-width: 90%;
    }
    
    .start-menu-item {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Window adjustments for better mobile taps */
    .title-bar-controls button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    /* Adjust other windows to be full width on mobile */
    .window {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 10px;
    }
    
    /* Hide scrollbars but allow scrolling */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #888;
    }
}

/* Mobile specific overrides for very small screens */
@media (max-width: 480px) {
    .desktop-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .folder-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
.desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 28px);
    background-color: var(--theme-desktop-bg);
    overflow: hidden;
    user-select: none;
    z-index: 0;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 40px;
    left: 40px;
    display: grid;
    grid-template-columns: repeat(2, 100px);
    gap: 40px 20px;
    padding: 20px;
    z-index: 1;
}

.desktop-icons-right {
    position: absolute;
    top: 40px;
    right: 40px;
    display: grid;
    grid-template-columns: 120px;
    gap: 40px;
    padding: 20px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 8px;
    border: 1px solid transparent;
    margin: 0;
    width: 100px;
    position: relative;
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 255, 0.1);
    border: 1px dotted #000;
    width: 100px;
}

.desktop-icon:focus {
    background-color: rgba(0, 0, 255, 0.2);
    border: 1px dotted #000;
    outline: none;
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    image-rendering: pixelated;
}

.desktop-icon span {
    color: #000;
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 
        1px 1px 0 #fff,
        -1px 1px 0 #fff,
        1px -1px 0 #fff,
        -1px -1px 0 #fff;
}

/* Windows */
.window {
    position: absolute;
    background: var(--theme-window-bg);
    border: var(--theme-window-border-width) solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: var(--theme-shadow);
    border-radius: var(--theme-window-radius);
    z-index: 100;
    min-width: 320px;
    display: block;
    visibility: visible;
}

.window.investments-window {
    left: 50px;
    top: 200px;
    min-height: 300px;
    width: 320px;
    z-index: 101;
}

.window.side-projects-window {
    right: 50px;
    top: 200px;
    min-height: 300px;
    width: 320px;
    z-index: 102;
}

/* Title bar styles */
.title-bar {
    background: var(--theme-title-bar-bg);
    padding: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-radius: var(--theme-window-radius) var(--theme-window-radius) 0 0;
}

.title-bar-text {
    color: var(--theme-title-bar-text-color);
    font-weight: bold;
    font-size: 12px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
}

/* Window Body */
.window-body {
    margin: 8px;
    background-color: white;
    border: 1px solid var(--theme-border-dark);
    padding: 8px;
    min-height: 200px;
}

/* Folder Icons inside Windows */
.folder-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: white;
}

.folder-icons .desktop-icon {
    width: auto;
    min-width: 80px;
    max-width: 100px;
    margin: 0 auto;
}

.folder-icons .desktop-icon span {
    font-size: 11px;
    max-width: 90px;
    word-wrap: break-word;
    text-align: center;
    margin-top: 5px;
}

/* Add hover effect for window controls */
.title-bar-controls button:hover {
    background-color: var(--win95-border-light);
}

/* ASCII Art */
.ascii-art {
    font-family: 'Courier New', monospace;
    white-space: pre;
    line-height: 1;
    font-size: 8px;
    padding: 20px;
    overflow: auto;
    background-color: #fff;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
}

.ascii-art pre {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    white-space: pre;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--theme-taskbar-height);
    background-color: var(--theme-taskbar-bg);
    border-top: 1px solid var(--theme-border-light);
    display: flex;
    z-index: 9999;
}

.start-button {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 12px;
    margin: 2px;
    cursor: pointer;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
}

.start-button:active {
    border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
}

.start-button img {
    margin-right: 4px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    padding: 2px;
    gap: 2px;
    overflow-x: auto;
}

.taskbar-item {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    min-width: 120px;
    max-width: 200px;
    margin-right: 2px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.taskbar-item.active {
    border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
    background-color: #e0e0e0;
}

.taskbar-item img {
    margin-right: 4px;
}

.taskbar .time {
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    border-left: 1px solid var(--theme-border-dark);
    border-top: 1px solid var(--theme-border-dark);
}

/* Blog posts in window style */
.blog-posts {
    padding: 10px;
    overflow-y: auto;
    max-height: 400px;
}

.blog-post {
    display: block;
    padding: 5px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--theme-text);
}

.blog-post:hover {
    background-color: #000080;
    color: var(--theme-title-bar-text-color);
}

.blog-post-title {
    font-weight: normal;
}

.blog-post-date {
    font-size: 12px;
    color: #666;
}

/* Notepad content */
.notepad-content {
    padding: 10px;
    background: white;
    height: 100%;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    overflow-y: auto;
}

.notepad-content h1 {
    font-size: 16px;
    margin-bottom: 10px;
    font-family: "Times New Roman", serif;
}

.notepad-content h3 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 4px;
    font-family: "Courier New", monospace;
}

.notepad-content p {
    font-size: 14px;
    margin-bottom: 8px;
    font-family: "Courier New", monospace;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal .window {
    position: relative;
    width: 300px;
    background-color: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 1px 1px 0 black;
    padding: 1px;
}

.modal .title-bar {
    background: linear-gradient(90deg, navy, #1084d0);
    padding: 3px 2px 3px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal .title-bar-text {
    color: var(--theme-title-bar-text-color);
    font-weight: bold;
    font-size: 12px;
}

.modal .window-body {
    padding: 11px;
    margin: 1px;
    background-color: #c0c0c0;
}

.modal .field-row {
    display: flex;
    margin-bottom: 10px;
}

.modal .field-row:last-child {
    justify-content: flex-end;
    gap: 6px;
    margin-top: 16px;
    margin-bottom: 0;
}

.modal input[type="password"] {
    flex: 1;
    min-width: 200px;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background-color: #ffffff;
    padding: 3px 4px;
    font-family: "MS Sans Serif", sans-serif;
    font-size: 12px;
}

.modal button {
    min-width: 75px;
    padding: 4px 10px;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background-color: #c0c0c0;
    color: black;
    font-family: "MS Sans Serif", sans-serif;
    font-size: 12px;
    box-shadow: 1px 1px 0 black;
    position: relative;
}

.modal button:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: -1px -1px 0 black;
    top: 1px;
    left: 1px;
}

.modal .title-bar-controls button {
    width: 16px;
    height: 14px;
    min-width: unset;
    padding: 0;
    margin-left: 2px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal styles */
.modal-content {
    background-color: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--space-sm);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
}

.modal-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.password-input {
    width: 100%;
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--space-xs);
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: var(--space-sm);
}

.modal-button {
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--space-xs);
    cursor: pointer;
    font-size: 1rem;
    background-color: var(--color-primary);
    color: var(--theme-title-bar-text-color);
    transition: opacity 0.2s;
}

.modal-button:hover {
    opacity: 0.9;
}

.modal-button-secondary {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}

/* Error message */
.error-message {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: var(--space-sm);
    display: none;
}

/* Selected state for icons */
.desktop-icon.selected {
    background-color: rgba(0, 0, 255, 0.2);
    border: 1px dotted #000;
}

/* Double-click animation */
.desktop-icon.active img {
    transform: scale(0.95);
}

.computer-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    background: white;
    min-height: 300px;
}

.start-menu {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 220px;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid var(--theme-border-darker);
    border-bottom: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.start-menu-header {
    height: 40px;
    background: linear-gradient(90deg, #7b7b7b, #c0c0c0);
    border-bottom: 1px solid var(--theme-border-darker);
    display: flex;
    align-items: center;
    padding-left: 24px;
    font-weight: bold;
    font-size: 18px;
    color: var(--theme-title-bar-text-color);
}

.start-menu-header img {
    margin-right: 8px;
}

.start-menu-items {
    padding: 2px;
}

.start-menu-group {
    margin-bottom: 4px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.start-menu-item:hover {
    background-color: #000080;
    color: var(--theme-title-bar-text-color);
}

.start-menu-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.start-menu-separator {
    height: 1px;
    background-color: var(--theme-border-dark);
    margin: 2px 0;
}

/* Make desktop icons draggable */
.desktop-icon {
    position: relative;
    cursor: move;
    user-select: none;
    z-index: 1;
}

/* Window maximize/minimize states */
.window.maximized {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 28px !important;
    width: 100% !important;
    height: calc(100vh - 28px) !important;
    border-width: 1px;
}

.window.minimized {
    display: none !important;
}

/* Taskbar window indicators */
.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    padding: 2px;
    margin: 0 4px;
}

.taskbar-item {
    background: silver;
    border: 1px solid #fff;
    border-bottom-color: #424242;
    border-right-color: #424242;
    padding: 2px 8px;
    font-size: 11px;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.taskbar-item.active {
    border: 1px solid #424242;
    border-top-color: black;
    border-left-color: black;
}

/* Mistral Window Styles */
#mistralWindow {
    width: 650px;
    height: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

#mistralWindow .window-body {
    overflow-y: auto;
    max-height: 440px;
}

#mistralWindow .notepad-content {
    padding: 16px;
}

#mistralWindow h2 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: bold;
}

#mistralWindow h3 {
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

#mistralWindow p, #mistralWindow li {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
}

#mistralWindow ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

/* Custom icon for Mistral */
.desktop-icon img[src="icons/cat.gif"] {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    margin-top: -8px;
    object-fit: contain;
}

/* Folder styles */
.folder-icon img {
    image-rendering: pixelated;
}

.folder-contents {
    position: absolute;
    background-color: var(--theme-taskbar-bg);
    border: var(--theme-window-border-width) solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 100;
    min-width: 400px;
    min-height: 300px;
    overflow: hidden;
    width: 500px !important;
}

#investmentsFolder {
    left: 270px;
    top: 150px;
}

#sideProjectsFolder {
    right: 270px;
    top: 150px;
}

.folder-header {
    background: linear-gradient(90deg, navy, #1084d0);
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--theme-title-bar-text-color);
    font-weight: bold;
    font-size: 12px;
}

.folder-close {
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    width: 16px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.folder-body {
    position: relative;
    padding: 20px;
    height: 100%;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 40px;
    align-items: center;
    justify-items: center;
    min-height: 160px;
}

#investmentsFolder .folder-body, 
#sideProjectsFolder .folder-body {
    padding: 30px;
    height: 100%;
    gap: 40px;
}

.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.1s;
    width: 100%;
    height: 100%;
    justify-content: center;
    min-width: 80px;
    max-width: 120px;
}

.folder-icon:hover {
    background-color: rgba(0, 0, 255, 0.1);
    border: 1px dotted #000;
}

.folder-icon img {
    width: auto;
    height: auto;
    max-width: 40px;
    max-height: 40px;
    margin-bottom: 5px;
}

.folder-icon span {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.2;
}

.folder-icon.placeholder {
    visibility: hidden;
}

/* Show folders on page load */
.folder-contents.show {
    display: block;
}

/* Windows 95 Theme Styles */

/* Desktop */
.desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 28px);
    background-color: #008080; /* Windows 95 teal background */
    overflow: hidden;
    user-select: none;
    z-index: 0;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--theme-taskbar-height);
    background-color: var(--theme-taskbar-bg);
    border-top: 1px solid var(--theme-border-light);
    display: flex;
    z-index: 9999;
}

.start-button {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 12px;
    margin: 2px;
    cursor: pointer;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
}

.start-button:active {
    border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
}

.start-button img {
    margin-right: 4px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    padding: 2px;
    gap: 2px;
    overflow-x: auto;
}

.taskbar-item {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    min-width: 120px;
    max-width: 200px;
    margin-right: 2px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.taskbar-item.active {
    border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
    background-color: #e0e0e0;
}

.taskbar-item img {
    margin-right: 4px;
}

.taskbar .time {
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    border-left: 1px solid var(--theme-border-dark);
    border-top: 1px solid var(--theme-border-dark);
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 220px;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid var(--theme-border-darker);
    border-bottom: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.start-menu-header {
    height: 40px;
    background: linear-gradient(90deg, #7b7b7b, #c0c0c0);
    border-bottom: 1px solid var(--theme-border-darker);
    display: flex;
    align-items: center;
    padding-left: 24px;
    font-weight: bold;
    font-size: 18px;
    color: var(--theme-title-bar-text-color);
}

.start-menu-header img {
    margin-right: 8px;
}

.start-menu-items {
    padding: 2px;
}

.start-menu-group {
    margin-bottom: 4px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    position: relative;
}

.start-menu-item:hover {
    background-color: #000080;
    color: var(--theme-title-bar-text-color);
}

.start-menu-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.start-menu-item .arrow {
    margin-left: auto;
    font-size: 10px;
    color: #666;
}

.start-menu-item:hover .arrow {
    color: var(--theme-title-bar-text-color);
}

.start-menu-separator {
    height: 1px;
    background-color: var(--theme-border-dark);
    margin: 2px 0;
}

/* Submenu styles */
.start-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid var(--theme-border-darker);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10001;
    padding: 2px;
}

.start-submenu.level-2 {
    left: 100%;
    top: 0;
}

/* Third-level submenus should be positioned relative to their immediate parent */
.start-submenu.level-2 .start-submenu {
    left: 100%;
    top: 0;
}

/* Ensure all submenus are visible and properly positioned */
.start-menu {
    overflow: visible !important;
}

.start-submenu {
    overflow: visible !important;
}

.start-submenu-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    position: relative;
}

.start-submenu-item:hover {
    background-color: #000080;
    color: var(--theme-title-bar-text-color);
}

.start-submenu-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.start-submenu-item .arrow {
    margin-left: auto;
    font-size: 10px;
    color: #666;
}

.start-submenu-item:hover .arrow {
    color: var(--theme-title-bar-text-color);
}

.start-submenu-separator {
    height: 1px;
    background-color: var(--theme-border-dark);
    margin: 2px 0;
}

/* Submenu hover effects */
.start-menu-item.has-submenu:hover .start-submenu {
    display: block;
}

.start-submenu-item:hover .start-submenu {
    display: block;
}

/* Ensure submenus don't disappear when hovering over them */
.start-submenu:hover {
    display: block;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid var(--theme-border-darker);
    z-index: 9998;
    min-width: 160px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.context-menu-item {
    padding: 4px 20px;
    font-size: 11px;
    cursor: pointer;
}

.context-menu-item:hover {
    background-color: #000080;
    color: var(--theme-title-bar-text-color);
}

.context-menu-separator {
    height: 1px;
    background-color: var(--theme-border-dark);
    margin: 2px 0;
}

/* Window styles */
.window, .folder-contents {
    position: absolute;
    background: var(--theme-window-bg);
    border: var(--theme-window-border-width) solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    box-shadow: 1px 1px 0 var(--theme-border-darker);
    z-index: 100;
    min-width: 340px;
    display: block;
    visibility: visible;
    transition: box-shadow 0.1s;
}

.window.active-window, .folder-contents.active-window {
    border-color: var(--win95-border-light) var(--theme-border-darker) var(--theme-border-darker) var(--win95-border-light);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 28px !important;
    width: 100% !important;
    height: calc(100vh - 28px) !important;
    border-width: 1px;
}

/* Window title bar */
.title-bar, .folder-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.active-window .title-bar, .active-window .folder-header,
.title-bar.active-title-bar, .folder-header.active-title-bar {
    background: linear-gradient(90deg, #0000aa, #00aaff);
}

.title-bar-text, .folder-title {
    color: var(--theme-title-bar-text-color);
    font-weight: bold;
    font-size: 12px;
    margin-left: 4px;
}

.title-bar-controls, .folder-close {
    display: flex;
    gap: 2px;
}

.title-bar-controls button, .folder-close {
    width: 16px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: var(--theme-taskbar-bg);
    border: 1px solid;
    border-color: var(--theme-border-light) var(--theme-border-dark) var(--theme-border-dark) var(--theme-border-light);
    cursor: pointer;
}

.title-bar-controls button:active, .folder-close:active {
    border-color: var(--theme-border-dark) var(--theme-border-light) var(--theme-border-light) var(--theme-border-dark);
}

/* Window content */
.window-body, .folder-body {
    background-color: white;
    border: 1px solid var(--theme-border-dark);
    margin: 4px;
    padding: 20px;
    overflow: auto;
    min-height: 180px;
}

/* Mobile tabs - now hidden on all devices */
.mobile-tabs {
    display: none !important;
}

@media (max-width: 768px) {
    /* Show tabs instead of dual windows on mobile */
    .mobile-tabs {
        display: flex;
        width: 100%;
        margin-bottom: 15px;
        margin-top: 10px;
        border: none;
        position: relative;
        z-index: 10;
        background-color: transparent;
    }
    
    /* Rest of mobile styles... */
}

.ghost-window {
    pointer-events: none;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    animation: glitch 0.3s infinite;
    filter: blur(0.5px);
    z-index: 9999;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
} 