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

body {
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Desktop */
.desktop {
    position: relative;
    width: 100%;
    height: calc(100vh - 36px);
    background: url('background.png') no-repeat center center;
    background-size: cover;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 3px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.icon-label {
    font-size: 11px;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
}

/* Windows */
.window {
    position: absolute;
    background: #ECE9D8;
    border: 3px solid #0054E3;
    border-radius: 8px 8px 0 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    min-height: 300px;
    z-index: 10;
}

.window.fullscreen {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.window-titlebar {
    background: linear-gradient(180deg, #0A246A 0%, #0F3D9C 50%, #1E5799 51%, #2989D8 100%);
    color: white;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
    cursor: move;
}

.window-title {
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.window-title::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="2" width="12" height="12" fill="%23fff" stroke="%23000" stroke-width="1"/></svg>') center/contain no-repeat;
}

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

.window-btn {
    width: 21px;
    height: 21px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: linear-gradient(180deg, #4A90D9 0%, #0054E3 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.window-btn img {
    width: 10px;
    height: 10px;
    display: block;
}

.window-btn:hover {
    background: linear-gradient(180deg, #6BA3E9 0%, #1A74E3 100%);
}

.window-btn.close {
    background: linear-gradient(180deg, #E74C3C 0%, #C0392B 100%);
}

.window-btn.close:hover {
    background: linear-gradient(180deg, #FF6B6B 0%, #E74C3C 100%);
}

.window-content {
    display: flex;
    height: calc(100% - 30px);
}

.window-sidebar {
    width: 200px;
    background: linear-gradient(180deg, #6B9F38 0%, #4A7A28 100%);
    padding: 10px;
    color: white;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 11px;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    font-size: 11px;
    padding: 3px 0;
    cursor: pointer;
    text-decoration: underline;
}

.sidebar-section li:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.window-main {
    flex: 1;
    padding: 20px;
    background: #fff;
    overflow-y: auto;
}

.window-main h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0054E3;
    padding-bottom: 5px;
}

.window-main p {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(180deg, #F5F5F5 0%, #E0E0E0 100%);
    border: 1px solid #ccc;
    border-radius: 5px;
}

.profile-placeholder {
    width: 64px;
    height: 64px;
}

.profile-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 12px;
    color: #666;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.project-item {
    padding: 15px;
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.project-item:hover {
    background: linear-gradient(180deg, #E8E8E8 0%, #D8D8D8 100%);
    border-color: #0054E3;
}

.project-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.project-item h3 {
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

.project-item p {
    font-size: 11px;
    color: #666;
}

.project-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #0054E3;
    text-decoration: underline;
    cursor: pointer;
}

.project-link:hover {
    color: #003399;
}

/* Folder Grid */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.folder-item {
    padding: 15px;
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.folder-item:hover {
    background: linear-gradient(180deg, #E8E8E8 0%, #D8D8D8 100%);
    border-color: #0054E3;
}

.folder-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.folder-item h3 {
    font-size: 12px;
    margin-bottom: 5px;
    color: #333;
}

.folder-item p {
    font-size: 10px;
    color: #666;
}

/* Book List */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.book-item:hover {
    background: linear-gradient(180deg, #E8E8E8 0%, #D8D8D8 100%);
    border-color: #0054E3;
}

.book-icon {
    font-size: 32px;
}

.book-item h3 {
    font-size: 13px;
    margin-bottom: 3px;
    color: #333;
}

.book-item p {
    font-size: 11px;
    color: #666;
}

/* Music List */
.music-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.music-item:hover {
    background: linear-gradient(180deg, #E8E8E8 0%, #D8D8D8 100%);
    border-color: #0054E3;
}

.music-icon {
    font-size: 32px;
}

.music-item h3 {
    font-size: 13px;
    margin-bottom: 3px;
    color: #333;
}

.music-item p {
    font-size: 11px;
    color: #666;
}

.design-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px 15px;
    padding: 15px;
    margin-top: 15px;
}

/* My Designs window — fixed size with scrollable project grid */
#computer-window {
    width: 640px;
    height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#computer-window .window-titlebar {
    flex-shrink: 0;
}

#computer-window .window-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#computer-window .window-sidebar {
    flex-shrink: 0;
}

#computer-window .window-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#computer-window .window-main h2 {
    flex-shrink: 0;
}

#computer-window .design-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.design-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    padding: 8px;
    cursor: pointer;
    gap: 5px;
    transition: background 0.1s, border-color 0.1s;
}

.design-item:hover {
    background: rgba(49, 106, 197, 0.1);
    border: 1px solid rgba(49, 106, 197, 0.4);
    border-radius: 2px;
}

.design-item.selected {
    background: rgba(49, 106, 197, 0.2);
    border: 1px solid rgba(49, 106, 197, 0.6);
    border-radius: 2px;
}

.design-thumb {
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    overflow: hidden;
}

.design-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.design-item h3 {
    font-size: 11px;
    margin-bottom: 0;
    color: #333;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    word-break: break-word;
    max-width: 90px;
    line-height: 1.2;
}

/* Project Viewer */
#project-viewer-window {
    width: 720px;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#project-viewer-window .window-titlebar {
    flex-shrink: 0;
}

#project-viewer-window .window-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#project-viewer-window .window-sidebar {
    flex-shrink: 0;
}

#project-viewer-window .project-viewer-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#project-viewer-window .project-viewer-main h2 {
    flex-shrink: 0;
}

.project-detail-desc {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.project-detail-gallery {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    columns: 3;
    column-gap: 14px;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
}

.project-gallery-item {
    position: relative;
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    border: 1px solid #999;
    padding: 6px;
    box-shadow: inset 1px 1px 0 #fff, 1px 1px 2px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.project-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #808080;
    background: #ECE9D8;
}

/* Fullscreen expand button on gallery images */
.gallery-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    color: white;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.project-gallery-item:hover .gallery-expand-btn {
    opacity: 1;
}

/* Lightbox overlay */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.gallery-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    cursor: default;
    border: 2px solid #fff;
}

.gallery-lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    color: white;
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

.gallery-lightbox-close:hover {
    background: rgba(200,0,0,0.7);
}

/* Live Projects Window */
#live-projects-window {
    width: 760px;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#live-projects-window .window-titlebar {
    flex-shrink: 0;
}

#live-projects-window .window-content {
    flex: 1;
    min-height: 0;
}

/* Browser Window Styles */
.browser-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.browser-toolbar {
    background: linear-gradient(180deg, #ECE9D8 0%, #D4D0C8 100%);
    border-bottom: 1px solid #999;
    padding: 5px;
}

.browser-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
}

.browser-tab {
    padding: 6px 12px;
    background: linear-gradient(180deg, #D4D0C8 0%, #C0BDB5 100%);
    border: 1px solid #999;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    white-space: nowrap;
}

.browser-tab.active {
    background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 100%);
    border-bottom: 1px solid #E8E8E8;
    font-weight: bold;
}

.browser-tab:hover:not(.active) {
    background: linear-gradient(180deg, #E8E8E8 0%, #D8D8D8 100%);
}

.browser-address-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 100%);
    border: 1px solid #999;
    border-radius: 3px;
}

.address-label {
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

.address-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #999;
    border-radius: 2px;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    background: white;
}

.browser-btn {
    padding: 4px 12px;
    background: linear-gradient(180deg, #4A90D9 0%, #0054E3 100%);
    border: 1px solid #003399;
    border-radius: 3px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.browser-btn:hover {
    background: linear-gradient(180deg, #6BA3E9 0%, #1A74E3 100%);
}

.browser-content {
    flex: 1;
    position: relative;
    background: white;
    overflow: hidden;
}

.browser-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.browser-iframe.active {
    display: block;
}

/* Skills List */
.skills-list {
    margin-top: 15px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.skill-bar {
    width: 100%;
    height: 20px;
    background: #E0E0E0;
    border: 1px solid #999;
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(180deg, #4A90D9 0%, #0054E3 100%);
    transition: width 0.5s ease;
}

/* Contact Info */
.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    padding: 10px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    border: 1px solid #ccc;
    border-radius: 3px;
}

.contact-label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    width: 80px;
    flex-shrink: 0;
}

.contact-value {
    font-size: 12px;
    color: #0054E3;
    text-decoration: underline;
    cursor: pointer;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, #245EDC 0%, #1E4CB8 50%, #193D9C 100%);
    display: flex;
    align-items: center;
    padding: 0 2px;
    border-top: 1px solid #3D7FE6;
    z-index: 1000;
}

.start-button {
    cursor: pointer;
    padding: 2px;
}

.start-button img {
    display: block;
}

.quick-launch {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.quick-launch-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
}

.quick-launch-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 3px;
    padding: 0 10px;
}

.taskbar-app {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: linear-gradient(180deg, #3D7FE6 0%, #245EDC 100%);
    border: 1px solid #193D9C;
    border-radius: 3px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-app:hover {
    background: linear-gradient(180deg, #4D8FF6 0%, #346EEC 100%);
}

.taskbar-app.active {
    background: linear-gradient(180deg, #E8E8E8 0%, #D0D0D0 100%);
    color: #333;
    border-color: #999;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: linear-gradient(180deg, #193D9C 0%, #0F2D7C 100%);
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.tray-icon {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.clock {
    font-size: 11px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 36px;
    left: 0;
    width: 380px;
    height: 400px;
    z-index: 1001;
    overflow: hidden;
}

.start-menu-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
}

.start-menu-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.start-menu-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    padding-top: 40px;
}

.start-menu-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
    width: 100%;
    justify-items: center;
}

.start-menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.start-menu-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.start-menu-label {
    font-size: 11px;
    color: #333;
    margin-top: 5px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    color: #333;
}

.menu-item:hover {
    background: rgba(74, 144, 217, 0.2);
}

.menu-divider {
    height: 1px;
    background: #ccc;
    margin: 5px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Desktop icons — row layout at top */
    .desktop-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 16px;
        padding: 16px 12px;
        top: 0;
        left: 0;
        width: 100%;
    }

    .desktop-icon {
        width: 68px;
        margin: 0;
    }

    .icon-img {
        width: 40px;
        height: 40px;
    }

    .icon-img img {
        width: 40px !important;
        height: 40px !important;
    }

    .icon-label {
        font-size: 10px;
    }

    /* Windows — fill screen width, cap height */
    .window {
        min-width: unset;
        width: calc(100vw - 16px) !important;
        left: 8px !important;
        top: 8px !important;
        max-height: calc(100vh - 60px);
        height: calc(100vh - 60px);
        overflow: hidden;
    }

    .window-content {
        overflow: hidden;
        height: calc(100% - 30px);
    }

    .window-sidebar {
        display: none;
    }

    .window-main {
        width: 100%;
        padding: 12px;
        overflow-y: auto;
        height: 100%;
    }

    #computer-window .window-main {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #computer-window .design-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #computer-window .window-main h2 {
        flex-shrink: 0;
    }

    .window-main h2 {
        font-size: 15px;
    }

    /* Taskbar — keep compact */
    .taskbar {
        height: 44px;
    }

    .desktop {
        height: calc(100vh - 44px);
    }

    .start-button img {
        width: 80px;
        height: 28px;
    }

    .taskbar-apps {
        overflow: hidden;
        flex: 1;
        min-width: 0;
    }

    .taskbar-app {
        font-size: 10px;
        padding: 3px 7px;
        max-width: 110px;
    }

    .system-tray {
        gap: 6px;
        padding: 0 8px;
        flex-shrink: 0;
    }

    .tray-icon {
        width: 14px;
        height: 14px;
    }

    .clock {
        font-size: 10px;
        white-space: nowrap;
    }

    /* Browser window */
    .browser-toolbar {
        padding: 4px;
    }

    .browser-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
        padding-bottom: 2px;
    }

    .browser-tabs::-webkit-scrollbar {
        display: none;
    }

    .browser-tab {
        font-size: 10px;
        padding: 4px 8px;
        flex-shrink: 0;
    }

    .browser-address-bar {
        display: none;
    }

    .browser-content {
        flex: 1;
    }

    /* Start Menu */
    .start-menu {
        width: min(320px, 90vw);
        height: 350px;
    }

    .start-menu-icons {
        gap: 18px;
    }

    .start-menu-icon img {
        width: 40px;
        height: 40px;
    }

    .start-menu-label {
        font-size: 10px;
    }

    /* Tour popup */
    .tour-popup {
        width: calc(100vw - 24px) !important;
        max-width: 400px;
        height: auto !important;
        max-height: none !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .tour-content {
        flex-direction: column;
        padding: 14px;
        gap: 10px;
    }

    .tour-image {
        display: none;
    }

    .tour-text {
        max-width: 100%;
    }

    .tour-text h2 {
        font-size: 13px;
    }

    .tour-buttons {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 14px;
        justify-content: center;
    }

    .xp-button {
        min-width: 60px;
        padding: 5px 12px;
        font-size: 11px;
    }

    /* Lists */
    .book-item, .music-item, .design-item {
        padding: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Design grid and project viewer overrides for mobile */
    .design-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        padding: 8px;
    }
    .design-item {
        padding: 4px;
    }
    .design-thumb {
        width: 64px;
        height: 64px;
    }
    .design-item h3 {
        font-size: 10px;
        max-width: 70px;
    }

    .project-detail-gallery {
        columns: 2;
        column-gap: 10px;
    }

    #project-viewer-window .project-viewer-main {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #project-viewer-window .project-detail-gallery {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.menu-item:hover {
    background: #3D7FE6;
    color: white;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: #ccc;
    margin: 8px 0;
}

.start-menu-footer {
    display: flex;
    background: linear-gradient(180deg, #4A90D9 0%, #0054E3 100%);
    padding: 8px;
    gap: 5px;
}

.start-menu-footer .menu-item {
    background: linear-gradient(180deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
}

.start-menu-footer .menu-item:hover {
    background: linear-gradient(180deg, #FF6B6B 0%, #E74C3C 100%);
}

.start-menu-footer .menu-item.shutdown {
    background: linear-gradient(180deg, #F39C12 0%, #D68910 100%);
}

.start-menu-footer .menu-item.shutdown:hover {
    background: linear-gradient(180deg, #F5B041 0%, #F39C12 100%);
}

/* Tour Pop-up */
.tour-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: auto;
    background: #ECE9D8;
    border: 3px solid #0054E3;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.tour-titlebar {
    background: linear-gradient(180deg, #0A246A 0%, #0F3D9C 50%, #1E5799 51%, #5BA3D9 100%);
    color: white;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
    cursor: move;
}

.tour-title {
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.tour-btn {
    width: 21px;
    height: 21px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: linear-gradient(180deg, #4A90D9 0%, #0054E3 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.tour-btn img {
    width: 10px;
    height: 10px;
    display: block;
}

.tour-btn.close {
    background: linear-gradient(180deg, #E74C3C 0%, #C0392B 100%);
}

.tour-btn:hover {
    filter: brightness(1.1);
}

.tour-content {
    display: flex;
    padding: 20px;
    background: white;
    gap: 15px;
}

.tour-image {
    flex-shrink: 0;
    width: 280px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.tour-text {
    flex: 1;
    max-width: 300px;
}

.tour-text h2 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
    font-weight: bold;
}

.tour-text p {
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
}

.tour-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 20px;
    background: #ECE9D8;
    border-top: 1px solid #ccc;
}

.xp-button {
    padding: 5px 20px;
    font-size: 11px;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 50%, #D0D0D0 51%, #E0E0E0 100%);
    border: 1px solid #707070;
    border-radius: 3px;
    cursor: pointer;
    color: #333;
    min-width: 75px;
}

.xp-button:hover {
    background: linear-gradient(180deg, #F5F5F5 0%, #E0E0E0 50%, #C8C8C8 51%, #D8D8D8 100%);
}

.xp-button:active {
    background: linear-gradient(180deg, #D0D0D0 0%, #C0C0C0 50%, #B0B0B0 51%, #C8C8C8 100%);
}

.xp-button.cancel {
    background: linear-gradient(180deg, #FFE4E1 0%, #FFD0C8 50%, #FFB8B0 51%, #FFC8C0 100%);
    border-color: #C04030;
}

/* ==========================================================================
   Windows Media Player (WMP 9/10) High-Fidelity Styles
   ========================================================================== */
.wmp-window {
    background: #7B9ED6; /* Classic XP Blue-Silver WMP background */
    border: 4px solid #4D6E9F;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 1px 1px 0 rgba(255,255,255,0.4);
    width: 850px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #000;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

/* WMP Titlebar */
.wmp-titlebar {
    background: linear-gradient(180deg, #B5CBEF 0%, #7CA7DE 45%, #5687C6 55%, #76A1D9 100%) !important;
    border-bottom: 1px solid #4A71A7;
    height: 34px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.wmp-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wmp-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #5B8CD2 0%, #1A468B 100%);
    border: 1px solid #0F2A56;
    color: white;
    font-size: 11px;
    text-shadow: 1px 1px 1px #000;
}

.wmp-title-text {
    font-size: 12px;
    font-weight: bold;
    color: #122B54;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.wmp-title-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wmp-tab-select {
    background: linear-gradient(180deg, #FFFFFF 0%, #E3EBF7 100%);
    border: 1px solid #6C8BB8;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #1E3D6E;
    padding: 2px 8px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #fff, 1px 1px 2px rgba(0,0,0,0.15);
}

.wmp-tab-select:hover {
    background: #F3F7FC;
}

/* Main WMP Content Panel */
.wmp-content {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #D5DFEE;
    border-top: 1px solid #7FA4D4;
    border-bottom: 1px solid #4D6E9F;
}

/* WMP Left Sidebar Links */
.wmp-left-sidebar {
    width: 170px;
    background: linear-gradient(90deg, #E6EEF8 0%, #C4D6ED 100%);
    border-right: 1px solid #7CA7DE;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 0;
    flex-shrink: 0;
}

.wmp-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wmp-nav-link {
    font-size: 11px;
    font-weight: bold;
    color: #1F365C;
    padding: 7px 14px;
    cursor: pointer;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wmp-nav-link:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255,255,255,0.3);
}

.wmp-nav-link.active {
    background: linear-gradient(90deg, #FFFFFF 0%, #D8E6F5 100%);
    border-top: 1px solid #B0CBE9;
    border-bottom: 1px solid #B0CBE9;
    color: #0E1F3D;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.wmp-green-arrow {
    color: #22C55E;
    font-size: 8px;
    text-shadow: 0 0 1px #15803D;
}

.wmp-sidebar-footer {
    padding: 10px 14px;
}

/* Windows Logo Flag */
.wmp-windows-flag {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: -2px;
    line-height: 1;
    opacity: 0.85;
}

.flag-red { color: #EF4444; }
.flag-green { color: #10B981; }
.flag-blue { color: #3B82F6; }
.flag-yellow { color: #F59E0B; }

/* Main Player Center Screen */
.wmp-main-screen {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    background: #000;
    border-right: 1px solid #4D6E9F;
    position: relative;
}

.wmp-screen-black {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

/* Equalizer (Green bars starting flat/idle) */
.wmp-equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 80%;
    height: 50%;
    gap: 4px;
    z-index: 2;
}

.wmp-bar {
    flex: 1;
    background: linear-gradient(0deg, #0A5E2E 0%, #10B981 70%, #6EE7B7 100%);
    height: 3px; /* Flat state initially */
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}

/* Animation triggers only when parent container gets active class */
.wmp-window.playing .wmp-bar {
    animation: wmp-equalizer-bounce 1s ease-in-out infinite alternate;
}

@keyframes wmp-equalizer-bounce {
    0% { height: 5%; }
    100% { height: 95%; }
}

.wmp-visualizer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Inner Screen Status Bar */
.wmp-screen-status-bar {
    height: 24px;
    background: linear-gradient(180deg, #DCE6F5 0%, #B8CDE9 100%);
    border-top: 1px solid #6C8BB8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 10px;
    font-weight: bold;
    color: #1E3D6E;
    flex-shrink: 0;
}

.wmp-sb-left, .wmp-sb-right {
    display: flex;
    gap: 8px;
}

.wmp-sb-icon {
    cursor: pointer;
    font-size: 11px;
    opacity: 0.8;
}

.wmp-sb-icon:hover {
    opacity: 1;
}

.wmp-sb-center {
    letter-spacing: 0.5px;
}

/* Right Playlist Pane */
.wmp-playlist-sidebar {
    flex: 0.85;
    background: #CCD8E9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.wmp-album-art-container {
    height: 120px;
    background: linear-gradient(180deg, #A4BFDF 0%, #CAD9EC 100%);
    border-bottom: 1px solid #7FA4D4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* WMP Filmstrip & Music Note graphics placeholder */
.wmp-film-note-art {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #5C7FA8 0%, #344C6B 100%);
    border: 2px solid #5C7FA8;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.25);
}

.art-filmstrip {
    font-size: 38px;
    opacity: 0.45;
}

.art-musicnote {
    font-size: 32px;
    position: absolute;
    color: #93C5FD;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.wmp-spotify-container {
    flex: 1;
    min-height: 0;
    background: #000;
}

/* WMP Bottom Control Deck */
.wmp-control-deck {
    background: linear-gradient(180deg, #99B2D8 0%, #CCD9EE 25%, #AEC2E2 75%, #8BA3C9 100%);
    border-top: 1px solid #4D6E9F;
    padding: 6px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Silver track & Green playback indicator */
.wmp-seek-bar-container {
    padding: 4px 0;
}

.wmp-seek-track {
    height: 8px;
    background: linear-gradient(180deg, #7C91B3 0%, #A2B8D9 100%);
    border: 1px solid #566986;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 1px 1px 1px rgba(0,0,0,0.2);
}

.wmp-seek-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border-radius: 3px 0 0 3px;
}

.wmp-seek-thumb {
    position: absolute;
    top: -4px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #FFFFFF 0%, #D8DFEB 70%, #A0B3D1 100%);
    border: 1px solid #566986;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Buttons and status row */
.wmp-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wmp-left-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blue/Silver glossy WMP rounded buttons */
.wmp-deck-btn {
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 0%, #CADEF9 30%, #5E94DD 70%, #2E65AD 100%);
    border: 1px solid #284D7F;
    color: #122B54;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
    width: 24px;
    height: 24px;
    font-weight: bold;
}

.wmp-deck-btn:hover {
    background: radial-gradient(circle, #FFFFFF 0%, #DCE8F7 35%, #76A5E5 75%, #3F7DCF 100%);
}

.wmp-deck-btn.wmp-play {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.wmp-volume-icon {
    font-size: 11px;
    color: #1F365C;
    margin-left: 6px;
}

.wmp-volume-track {
    width: 60px;
    height: 6px;
    background: linear-gradient(180deg, #7C91B3 0%, #A2B8D9 100%);
    border: 1px solid #566986;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.wmp-volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border-radius: 2px 0 0 2px;
}

.wmp-volume-thumb {
    position: absolute;
    top: -3px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FFFFFF 0%, #D8DFEB 70%, #A0B3D1 100%);
    border: 1px solid #566986;
    border-radius: 50%;
    cursor: pointer;
}

/* Right text status info */
.wmp-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1F365C;
}

.wmp-status-text {
    font-size: 10px;
    font-weight: bold;
    background: rgba(255,255,255,0.4);
    border: 1px solid #94AED3;
    border-radius: 2px;
    padding: 2px 8px;
    min-width: 65px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.wmp-deck-info-icon {
    background: #3B82F6;
    color: white;
    border-radius: 50%;
    font-size: 9px;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Responsive updates for high-fidelity WMP */
@media (max-width: 768px) {
    .wmp-window {
        width: calc(100vw - 16px) !important;
        height: calc(100vh - 60px) !important;
    }
    
    .wmp-content {
        flex-direction: column;
    }

    .wmp-left-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        padding: 4px;
        border-right: none;
        border-bottom: 1px solid #7CA7DE;
    }

    .wmp-nav-links {
        flex-direction: row;
        gap: 6px;
    }

    .wmp-nav-link {
        padding: 4px 8px;
        white-space: nowrap;
    }

    .wmp-sidebar-footer {
        display: none;
    }

    .wmp-main-screen {
        flex: 0.6;
        border-right: none;
        border-bottom: 1px solid #4D6E9F;
        height: 140px;
    }

    .wmp-playlist-sidebar {
        flex: 1.4;
    }
}




