/* Desktop Background & Light Effect */
#desktop {
    width: 100%;
    height: calc(100% - 48px);
    background: #020617;
    position: relative;
    overflow: hidden;
    /* Added radial gradients for baseline atmosphere */
    background-image:
        radial-gradient(circle at 10% 10%, rgba(30, 64, 175, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(15, 23, 42, 0.8) 0%, #020617 100%);
}

#desktop-light {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(40, 116, 230, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    filter: blur(50px);
    transition: transform 0.15s ease-out;
}

#desktop-icons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 25px;
    height: 100%;
    align-content: flex-start;
    position: relative;
    z-index: 10;
}

#desktop-utilities {
    position: absolute;
    top: 25px;
    right: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    z-index: 10;
}

#desktop-utilities .desktop-icon {
    width: 90px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    /* Dashed border for utility feel */
}

#desktop-utilities .desktop-icon-icon {
    font-size: 32px;
}

#desktop-utilities .desktop-icon-label {
    font-size: 11px;
    opacity: 0.8;
}

/* Enhanced Icons */
.desktop-icon {
    width: 100px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.desktop-icon.selected {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.desktop-icon-icon {
    width: 60px;
    height: 60px;
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.desktop-icon:hover .desktop-icon-icon {
    transform: scale(1.15);
}

.desktop-icon-label {
    font-size: 13px;
    color: #f8fafc;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
    max-width: 100%;
}

/* Premium Quote Card */
#desktop-quote {
    position: absolute;
    bottom: 80px;
    right: 50px;
    text-align: right;
    pointer-events: none;
    z-index: 5;
    animation: quoteIn 1.5s ease;
}

@keyframes quoteIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.quote-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 32px;
    padding: 40px 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #fff 10%, #94a3b8 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.quote-author {
    font-size: 16px;
    color: #64748b;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

#context-menu {
    position: fixed;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 180px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    list-style: none;
    /* Correcting the bullet point issue */
}

#context-menu.hidden {
    display: none;
}

#context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#context-menu li {
    padding: 10px 24px;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    list-style: none;
}

#context-menu li:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

#context-menu li.separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 6px 0;
    padding: 0;
    cursor: default;
}

/* New Highlight & Credit Styles */
.desktop-credit {
    margin-top: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 1.2px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.highlight-pulse {
    position: relative;
}

.highlight-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 75%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    animation: goldGlow 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes goldGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.5;
        filter: blur(14px);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
        filter: blur(10px);
    }
}

.highlight-pulse .desktop-icon-icon {
    animation: floatIcon 4s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}