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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    background: #000;
    user-select: none;
}

#desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
}

#wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #1a202c 0%, #2d3748 25%, #4a5568 50%, #718096 75%, #a0aec0 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.95;
}

/* Desktop Icons */
#desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 30px;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    outline: none;
    width: 100px;
}

.desktop-icon:hover,
.desktop-icon:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.desktop-icon:active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(0.98);
}

.icon-image {
    margin-bottom: 8px;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 18px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.icon-image svg {
    width: 32px !important;
    height: 32px !important;
    color: #ffffff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

/* Individual icon colors for better visual distinction */
.resume-icon {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.3), rgba(29, 78, 216, 0.2));
}

.resume-icon svg {
    color: #60a5fa;
    width: 32px !important;
    height: 32px !important;
    display: block;
    margin: 0 auto;
}

.skills-icon {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
}

.skills-icon svg {
    color: #34d399;
    width: 32px !important;
    height: 32px !important;
    display: block;
    margin: 0 auto;
}

.blog-icon {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.2));
}

.blog-icon svg {
    color: #a78bfa;
    width: 32px !important;
    height: 32px !important;
    display: block;
    margin: 0 auto;
}

.contact-icon {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
}

.contact-icon svg {
    color: #fbbf24;
    width: 32px !important;
    height: 32px !important;
    display: block;
    margin: 0 auto;
}

.icon-label {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    max-width: 80px;
    word-wrap: break-word;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

#start-button {
    width: 40px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    outline: none;
    font-size: 18px;
}

#start-button:hover,
#start-button:focus {
    background: rgba(255, 255, 255, 0.2);
}

#taskbar-items {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.taskbar-item {
    height: 32px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.taskbar-item.active {
    background: rgba(255, 255, 255, 0.3);
}

#system-tray {
    display: flex;
    align-items: center;
    gap: 12px;
}

#clock {
    color: white;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Start Menu */
#start-menu {
    position: fixed;
    bottom: 56px;
    left: 16px;
    width: 280px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    z-index: 1001;
    transform-origin: bottom left;
    transition: all 0.2s ease;
}

#start-menu.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
}

.start-menu-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.start-menu-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.start-menu-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.start-menu-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    outline: none;
}

.start-menu-item:hover,
.start-menu-item:focus {
    background: rgba(255, 255, 255, 0.1);
}

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

/* Windows */
.window {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    min-height: 300px;
    z-index: 100;
    transform-origin: center;
    animation: windowOpen 0.3s ease-out;
    outline: none;
}

.window.active {
    z-index: 200;
}

.window.minimized {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window-header {
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    cursor: move;
    user-select: none;
}

.window-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

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

.window-control {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.window-control.close {
    background: #ff5f57;
    color: #000;
}

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

.window-control.maximize {
    background: #28ca42;
    color: #000;
}

.window-control:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.window-content {
    padding: 20px;
    height: calc(100% - 40px);
    overflow: auto;
    background: white;
    border-radius: 0 0 12px 12px;
}

/* Resume Window */
.resume-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resume-pdf-container {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.resume-pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Skills Window */
.skills-content {
    display: grid;
    gap: 24px;
}

.skill-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.skill-category h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Blog Window */
.blog-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.blog-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.blog-instruction {
    color: #666;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

.blog-explorer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.blog-post-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.blog-post-item:hover {
    background: #e9ecef;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.blog-post-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.blog-post-item.selected {
    background: #d6e9ff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.blog-post-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.blog-post-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-post-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 11px;
    color: #888;
}

.blog-post-date,
.blog-post-author {
    font-weight: 500;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-tag {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

/* Full Blog Post Display */
.blog-post-full {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.blog-date,
.blog-author {
    font-weight: 600;
}

.blog-tags-full {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-tag-full {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
}

.blog-post-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    line-height: 1.7;
}

.blog-post-content h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.blog-post-content h2 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.blog-post-content h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.blog-post-content h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.blog-post-content p {
    color: #555;
    margin-bottom: 16px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.blog-post-content li {
    color: #555;
    margin-bottom: 8px;
}

.blog-post-content pre {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.blog-post-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

.blog-post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    font-style: italic;
}

.blog-post-content strong {
    font-weight: 600;
    color: #333;
}

.blog-post-content em {
    color: #666;
}

.blog-post-content hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 32px 0;
}

.no-posts,
.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Contact Window */
.contact-content {
    text-align: center;
    padding: 40px 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #desktop-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .desktop-icon {
        padding: 8px;
    }
    
    .icon-image {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
    
    .icon-label {
        font-size: 10px;
    }
    
    .window {
        min-width: calc(100vw - 20px);
        min-height: calc(100vh - 80px);
        top: 10px !important;
        left: 10px !important;
        right: 10px;
    }
    
    #start-menu {
        left: 8px;
        right: 8px;
        width: auto;
    }
}