/* ========================================
   Wuyongpeng Desktop - macOS Style
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-glass: rgba(30, 30, 50, 0.75);
    --bg-glass-light: rgba(40, 40, 70, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.15);
    
    /* Window */
    --window-bg: rgba(30, 30, 50, 0.92);
    --window-titlebar: rgba(45, 45, 65, 0.95);
    --window-border: rgba(255, 255, 255, 0.12);
    --window-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    
    /* Menu Bar */
    --menubar-bg: rgba(20, 20, 35, 0.85);
    --menubar-height: 28px;
    
    /* Dock */
    --dock-bg: rgba(40, 40, 70, 0.55);
    --dock-item-size: 52px;
    --dock-item-hover: 72px;
    --dock-separator: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
user-select: none;
}

/* ===== System Selection Screen ===== */
.system-select-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.system-select-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.system-select-content {
    text-align: center;
    animation: selectFadeIn 0.8s ease;
}

@keyframes selectFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.system-select-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.system-select-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.system-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.system-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.system-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.system-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-icon svg {
    width: 100%;
    height: 100%;
}

.system-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.system-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.system-random-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.system-random-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ===== Boot Screen ===== */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.boot-logo {
    animation: bootLogoPulse 2s ease-in-out infinite;
}

@keyframes bootLogoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.boot-logo svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.boot-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.boot-version {
    font-size: 11px;
    color: var(--text-tertiary);
    position: absolute;
    bottom: 20px;
}

/* ===== Login Screen ===== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 25%, #0f172a 50%, #1a1a3e 75%, #0f0f23 100%);
    background-size: 400% 400%;
    animation: loginGradientShift 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-screen.active {
    opacity: 1;
    visibility: visible;
}

@keyframes loginGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: loginContentFadeIn 0.8s ease 0.3s backwards;
}

@keyframes loginContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-time {
    font-size: 64px;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.login-date {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.login-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.login-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.login-avatar svg {
    width: 100%;
    height: 100%;
}

.login-username {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.login-button svg {
    opacity: 0.7;
}

.login-password-container {
    display: none;
    align-items: center;
    gap: 8px;
    animation: passwordFadeIn 0.3s ease;
}

.login-password-container.active {
    display: flex;
}

@keyframes passwordFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-password {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    width: 200px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.login-password::placeholder {
    color: var(--text-tertiary);
}

.login-password:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.login-submit {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.login-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

.login-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 8px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-success {
    animation: loginSuccess 0.5s ease forwards;
}

@keyframes loginSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* ===== Desktop ===== */
.desktop {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 25%, #0f172a 50%, #1a1a3e 75%, #0f0f23 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    display: none; /* Hidden until login */
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Desktop Icons ===== */
.desktop-icons {
    position: absolute;
    top: calc(var(--menubar-height) + 20px);
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 80px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon:active {
    transform: scale(0.95);
}

.desktop-icon .icon-image {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon .icon-image svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.desktop-icon .icon-label {
    font-size: 11px;
    color: white;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    line-height: 1.3;
}

/* ===== Menu Bar ===== */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--menubar-height);
    background: var(--menubar-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
}

.menu-bar-left, .menu-bar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.menu-item {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: default;
    transition: var(--transition-fast);
}

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

.menu-item.menu-active {
    background: rgba(255, 255, 255, 0.12);
}

.menu-logo {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--text-secondary);
}

.menu-logo:hover {
    color: var(--text-primary);
}

.menu-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.menu-status:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.battery-text {
    font-size: 11px;
    margin-left: 2px;
}

.menu-clock {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    min-width: 130px;
    text-align: right;
}

/* ===== Dock ===== */
.dock {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    padding: 4px;
}

.dock-items {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    background: var(--dock-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 4px 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
}

.dock-icon {
    width: var(--dock-item-size);
    height: var(--dock-item-size);
    transition: var(--transition-spring);
    transform-origin: bottom center;
}

.dock-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.dock-item:hover .dock-icon {
    width: var(--dock-item-hover);
    height: var(--dock-item-hover);
}

/* Dock magnification effect on neighbors */
.dock-item:hover + .dock-item .dock-icon,
.dock-item:has(+ .dock-item:hover) .dock-icon {
    width: 62px;
    height: 62px;
}

.dock-item:hover + .dock-item + .dock-item .dock-icon,
.dock-item:has(+ .dock-item + .dock-item:hover) .dock-icon {
    width: 56px;
    height: 56px;
}

.dock-indicator {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-fast);
}

.dock-item.active .dock-indicator {
    opacity: 1;
}

.dock-separator {
    width: 1px;
    height: 40px;
    background: var(--dock-separator);
    margin: 0 4px;
    align-self: center;
}

/* Dock tooltip */
.dock-item::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.dock-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Windows Container ===== */
.windows-container {
    position: absolute;
    top: var(--menubar-height);
    left: 0;
    right: 0;
    bottom: 80px;
    overflow: hidden;
}

/* ===== Window ===== */
.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: var(--window-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--window-border);
    border-radius: 12px;
    box-shadow: var(--window-shadow);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: windowOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.window.active {
    display: flex;
}

.window.focused {
    z-index: 100;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--menubar-height)) !important;
    border-radius: 0;
    margin-top: var(--menubar-height);
}

.window.minimizing {
    animation: windowMinimize 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes windowMinimize {
    to {
        opacity: 0;
        transform: scale(0.3) translateY(100%);
    }
}

/* Window Titlebar */
.window-titlebar {
    height: 38px;
    background: var(--window-titlebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: default;
    flex-shrink: 0;
}

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

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.window-btn.close {
    background: #ff5f57;
}

.window-btn.minimize {
    background: #febc2e;
}

.window-btn.maximize {
    background: #28c840;
}

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

.window-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.window-controls:hover .window-btn::after {
    opacity: 1;
}

.window-btn.close::after {
    content: '×';
    font-size: 10px;
    color: #4a0000;
    font-weight: bold;
}

.window-btn.minimize::after {
    content: '−';
    font-size: 12px;
    color: #5a4000;
    font-weight: bold;
}

.window-btn.maximize::after {
    content: '+';
    font-size: 10px;
    color: #004a00;
    font-weight: bold;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.window-titlebar-spacer {
    width: 60px;
}

/* Window Content */
.window-content {
    flex: 1;
    overflow: auto;
    background: var(--window-bg);
}

.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: transparent;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== About Page ===== */
.about-page {
    padding: 30px;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.about-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.about-intro h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-role {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.about-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.about-body h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-body h2:not(:first-child) {
    margin-top: 24px;
}

.about-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 13px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    transition: var(--transition-fast);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.skill-icon {
    font-size: 18px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: #a5b4fc;
    font-weight: 500;
}

/* ===== Projects Page ===== */
.projects-page {
    padding: 30px;
}

.projects-header {
    margin-bottom: 24px;
}

.projects-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.projects-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.project-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    gap: 6px;
}

.project-tags span {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-tertiary);
}

.project-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    background: var(--accent-primary);
    color: white;
}

/* ===== Terminal ===== */
.terminal-content {
    background: rgba(13, 13, 13, 0.95) !important;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 13px;
}

.terminal-output {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.terminal-line {
    line-height: 1.6;
    min-height: 21px;
}

.terminal-welcome {
    color: #22c55e;
    font-weight: 500;
}

.terminal-help {
    color: #a1a1aa;
}

.terminal-command {
    color: #60a5fa;
}

.terminal-result {
    color: #a1a1aa;
    white-space: pre-wrap;
}

.terminal-error {
    color: #ef4444;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 8px 16px 16px;
    gap: 8px;
}

.terminal-prompt {
    color: #22c55e;
    white-space: nowrap;
    font-weight: 500;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13px;
    caret-color: #22c55e;
}

/* ===== Notes Page ===== */
.notes-page {
    display: flex;
    height: 100%;
}

.notes-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.notes-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.notes-sidebar-header h3 {
    font-size: 13px;
    font-weight: 600;
}

.notes-new-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notes-new-btn:hover {
    background: var(--accent-secondary);
}

.notes-list {
    flex: 1;
    overflow-y: auto;
}

.note-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.note-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--accent-primary);
}

.note-item-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.note-item-preview {
    font-size: 11px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notes-editor-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.notes-title-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.notes-textarea {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== Contact Page ===== */
.contact-page {
    padding: 30px;
}

.contact-header {
    margin-bottom: 24px;
}

.contact-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}

.contact-card-icon {
    font-size: 24px;
}

.contact-card-info h3 {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-card-info a {
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-card-info a:hover {
    color: var(--accent-primary);
}

.contact-form-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    padding: 12px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== Settings Page ===== */
.settings-page {
    display: flex;
    height: 100%;
}

.settings-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.settings-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.settings-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    outline: none;
}

.settings-search input:focus {
    border-color: var(--accent-primary);
}

.settings-list {
    flex: 1;
    overflow-y: auto;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

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

.settings-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.settings-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.settings-section {
    margin-bottom: 28px;
}

.settings-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.theme-options {
    display: flex;
    gap: 16px;
}

.theme-option {
    cursor: pointer;
    text-align: center;
}

.theme-option input {
    display: none;
}

.theme-preview {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.theme-option.active .theme-preview {
    border-color: var(--accent-primary);
}

.theme-option:hover .theme-preview {
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-preview {
    background: #1a1a2e;
}

.light-preview {
    background: #f5f5f7;
}

.theme-preview-bar {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.light-preview .theme-preview-bar {
    background: rgba(0, 0, 0, 0.1);
}

.theme-preview-content {
    padding: 8px;
}

.theme-option span {
    font-size: 12px;
    color: var(--text-secondary);
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.wallpaper-options {
    display: flex;
    gap: 12px;
}

.wallpaper-option {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.wallpaper-option:hover {
    transform: scale(1.05);
}

.wallpaper-option.active {
    border-color: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .desktop-icons {
        display: none;
    }

    .window {
        min-width: 320px;
        min-height: 250px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dock-items {
        padding: 4px 6px;
    }

    .dock-icon {
        width: 44px;
        height: 44px;
    }

    .dock-item:hover .dock-icon {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .about-badges {
        justify-content: center;
    }
}

/* ===== Windows XP Desktop ===== */
.windows-xp-desktop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.windows-xp-desktop.active {
    display: block;
}

.xp-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #3C78D8 0%, #58B947 50%, #3C78D8 100%);
}

.xp-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.xp-icons .desktop-icon {
    width: auto;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.xp-icons .desktop-icon:hover {
    background: rgba(0, 0, 128, 0.3);
}

.xp-icon-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xp-icon-image svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.xp-icons .icon-label {
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-top: 4px;
}

/* XP Windows */
.xp-window {
    position: absolute;
    min-width: 300px;
    background: #ECE9D8;
    border: 1px solid #004D9C;
    border-radius: 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
}

.xp-window-titlebar {
    height: 26px;
    background: linear-gradient(180deg, #0058EE 0%, #0066FF 50%, #0058EE 100%);
    display: flex;
    align-items: center;
    padding: 0 6px;
    cursor: default;
}

.xp-window-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.xp-window-icon svg {
    width: 100%;
    height: 100%;
}

.xp-window-title {
    flex: 1;
    color: white;
    font-weight: bold;
    font-size: 11px;
}

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

.xp-window-btn {
    width: 16px;
    height: 16px;
    background: #ECE9D8;
    border: 1px solid #004D9C;
    color: #004D9C;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.xp-window-btn:hover {
    background: #FFF;
}

.xp-window-content {
    background: white;
    padding: 10px;
    min-height: 150px;
}

/* XP About Content */
.xp-about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.xp-about-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid #004D9C;
}

.xp-about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xp-about-info h1 {
    font-size: 18px;
    color: #004D9C;
    margin-bottom: 5px;
}

.xp-about-info p {
    color: #666;
    margin-bottom: 15px;
}

.xp-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.xp-tech-tags span {
    background: #ECE9D8;
    border: 1px solid #999;
    padding: 2px 8px;
    font-size: 10px;
}

/* XP Projects */
.xp-projects-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.xp-project-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    cursor: pointer;
}

.xp-project-item:hover {
    background: #0078D7;
    color: white;
}

.xp-folder-icon {
    font-size: 14px;
}

/* XP Contact */
.xp-contact-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xp-contact-item {
    color: #004D9C;
}

/* XP Taskbar */
.xp-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, #245EDB 0%, #245EDB 50%, #1D55BA 100%);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
}

.xp-start-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(180deg, #245EDB 0%, #245EDB 50%, #1D55BA 100%);
    border: 2px solid #3E72DC;
    border-radius: 0;
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 11px;
}

.xp-start-button:hover {
    background: linear-gradient(180deg, #3E72DC 0%, #3E72DC 50%, #245EDB 100%);
}

.xp-start-icon {
    width: 20px;
    height: 20px;
}

.xp-start-icon svg {
    width: 100%;
    height: 100%;
}

.xp-taskbar-items {
    flex: 1;
    display: flex;
    gap: 3px;
    margin-left: 10px;
}

.xp-taskbar-item {
    padding: 5px 10px;
    background: #3A6CD6;
    border: 1px solid #6A94DE;
    color: white;
    font-size: 11px;
    cursor: pointer;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xp-taskbar-item.active {
    background: #1D4F9E;
    border: 1px solid #3A6CD6;
}

.xp-taskbar-item:hover {
    background: #3A6CD6;
}

.xp-system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: #0B79D8;
    border-left: 1px solid #3A6CD6;
}

.xp-tray-icon {
    font-size: 14px;
}

.xp-tray-time {
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* XP Start Menu */
.xp-start-menu {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 350px;
    background: linear-gradient(180deg, #3168D5 0%, #245EDB 100%);
    display: none;
    z-index: 1001;
    border: 2px solid #3E72DC;
}

.xp-start-menu.active {
    display: flex;
}

.xp-start-menu-sidebar {
    width: 80px;
    background: linear-gradient(180deg, #245EDB 0%, #1D55BA 100%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #3A6CD6;
}

.xp-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid white;
}

.xp-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xp-user-name {
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.xp-start-menu-items {
    flex: 1;
    padding: 10px;
}

.xp-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: white;
    cursor: pointer;
    font-size: 11px;
}

.xp-menu-item:hover {
    background: #3E72DC;
}

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

.xp-menu-separator {
    height: 1px;
    background: #3A6CD6;
    margin: 10px 0;
}