/* ===== Desktop ===== */
.desktop {
    height: 100vh;
    position: relative;
    overflow: hidden;
    transition: none;
    z-index: 1;
    background: var(--bg-dark);
}

#net-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(1400px 900px at 15% 85%, rgba(18, 32, 52, 0.55) 0%, transparent 60%),
        radial-gradient(1000px 800px at 88% 12%, rgba(30, 18, 55, 0.45) 0%, transparent 55%),
        radial-gradient(700px 600px at 55% 50%, rgba(10, 20, 40, 0.3) 0%, transparent 65%),
        linear-gradient(180deg, #080c11 0%, #070a0f 55%, #05070a 100%);
    pointer-events: none;
}

.wallpaper {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    transform: none;
    transition: none;
}

/* Scan lines */
.wallpaper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(140, 185, 220, 0.055),
        rgba(140, 185, 220, 0.055) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: scanDrift 14s linear infinite;
}

/* Ambient glow overlay */
.wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 700px at 12% 78%, rgba(74, 163, 255, 0.09) 0%, transparent 60%),
        radial-gradient(700px 500px at 88% 18%, rgba(118, 75, 162, 0.07) 0%, transparent 55%),
        radial-gradient(400px 300px at 50% 90%, rgba(74, 163, 255, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes scanDrift {
    from { transform: translateY(0); }
    to   { transform: translateY(14px); }
}

/* ===== Desktop Icons ===== */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    z-index: 2;
    max-height: calc(100vh - 100px);
    overflow: visible;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 86px;
}

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

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

.desktop-icon.selected {
    background: rgba(74, 163, 255, 0.12);
    border: 1px solid var(--border-active);
}

/* ===== Icons ===== */
.icon-img {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.desktop-icon:hover .icon-img {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Individual icon colors */
.desktop-icon[data-window="about"]    .icon-img { background: linear-gradient(135deg, #667eea, #764ba2); }
.desktop-icon[data-window="terminal"] .icon-img { background: linear-gradient(135deg, #1a1a2e, #16213e); border: 1px solid rgba(255,255,255,0.08); }
.desktop-icon[data-window="projects"] .icon-img { background: linear-gradient(135deg, #2b2b2b, #555); }
.desktop-icon[data-window="writeups"] .icon-img { background: linear-gradient(135deg, #f7971e, #ffd200); }
.desktop-icon[data-window="contact"]  .icon-img { background: linear-gradient(135deg, #4facfe, #00c6fb); }
.desktop-icon[data-window="music"]    .icon-img { background: linear-gradient(135deg, #fa709a, #c471ed); }
.desktop-icon[data-window="soc"]      .icon-img { background: linear-gradient(135deg, #11998e, #38ef7d); }
.desktop-icon[data-window="timeline"] .icon-img { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.desktop-icon span {
    font-size: 0.72rem;
    text-align: center;
    color: var(--text);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.01em;
}
