body {
    margin: 0;
    background-image: url("https://images.unsplash.com/photo-1735767975829-71496633d499");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: sans-serif;
}

/* Top Bar */

.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;
    box-sizing: border-box;

    color: white;

    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.25);

    z-index: 1000;
}

.weather {
    color: #df8e1d;
}

/* Desktop */

#desktopApps {
    padding-top: 64px;
    padding-left: 16px;
}

.desktop-icon {
    width: fit-content;
    text-align: center;
    cursor: pointer;
    padding: 12px;
    user-select: none;
}

.desktop-icon img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.icon_label {
    color: white;
    margin-top: 4px;
    width: 90px;
    word-wrap: break-word;
}

/* Windows */

.window {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;

    border-radius: 16px;

    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.15);

    border: 1px solid rgba(255,255,255,0.15);

    z-index: 100;
}

.window-header {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    height: 40px;

    color: white;
    cursor: move;
}

.window-content {
    width: 360px;
    height: 240px;

    margin: 6px;
    padding: 16px;

    border-radius: 12px;

    background: #7287fd;
    overflow: auto;
}

.future-projects-textarea {
    width: 100%;
    min-height: 140px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 12px;
    background: rgba(255,255,255,0.12);
    color: white;
    resize: vertical;
    outline: none;
    font-size: 14px;
    margin-top: 12px;
    box-sizing: border-box;
}

.future-projects-textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.button-row button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.button-row button:hover {
    background: rgba(255,255,255,0.28);
}

.status-text {
    margin-top: 10px;
    font-size: 13px;
    color: #fff;
}

.close-button {
    position: absolute;
    right: 16px;
    cursor: pointer;
}

/* Avatar */

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 25%;
}

/* Calculator App */

.calc-display {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 28px;
    text-align: right;
    outline: none;
    box-sizing: border-box;
    font-weight: bold;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.calc-btn:active {
    background: rgba(255, 255, 255, 0.38);
}

.calc-operator {
    background: rgba(255, 152, 0, 0.3);
}

.calc-operator:hover {
    background: rgba(255, 152, 0, 0.5);
}

.calc-equals {
    background: rgba(76, 175, 80, 0.3);
    grid-column: span 2;
}

.calc-equals:hover {
    background: rgba(76, 175, 80, 0.5);
}

.calc-clear {
    background: rgba(244, 67, 54, 0.3);
    grid-column: span 2;
}

.calc-clear:hover {
    background: rgba(244, 67, 54, 0.5);
}

/* Contacts App */

.contact-input {
    width: 100%;
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-button {
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.3);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.contact-button:hover {
    background: rgba(76, 175, 80, 0.5);
}

/* Ensure Contacts app content fits without being cut off */
#contacts .window {
    max-height: calc(100vh - 80px);
}

#contacts .window-content {
    width: 360px;
    min-height: 260px;
    height: auto;
    max-height: 90vh;
    overflow: visible;
}

#contacts .window-content > div,
#contacts .window-content > p {
    margin-bottom: 10px;
}

/* Dynamic Wallpaper Styles */
.wallpaper-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.wallpaper-option {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.wallpaper-option .wallpaper-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 10px auto;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.2);
}

.wallpaper-option p {
    margin: 0;
    font-size: 14px;
    color: white;
}

.wallpaper-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.wallpaper-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.wallpaper-button:hover {
    background: rgba(255,255,255,0.3);
}

/* Wallpaper Preview Animations */
.moving-circles {
    position: relative;
    overflow: hidden;
}

.moving-circles::before,
.moving-circles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.moving-circles::before {
    width: 60px;
    height: 60px;
    background: rgba(100, 200, 255, 0.6);
    top: 20%;
    left: 10%;
    animation-duration: 7s;
}

.moving-circles::after {
    width: 40px;
    height: 40px;
    background: rgba(200, 100, 255, 0.6);
    bottom: 30%;
    right: 20%;
    animation-duration: 5s;
    animation-delay: 2s;
}

.floating-shapes {
    position: relative;
    overflow: hidden;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    animation: float 5s ease-in-out infinite;
}

.floating-shapes::before {
    width: 30px;
    height: 30px;
    background: rgba(255, 100, 100, 0.5);
    top: 15%;
    left: 15%;
    animation-duration: 4s;
    border-radius: 20% 80% 60% 40% / 30% 30% 70% 70%;
}

.floating-shapes::after {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 100, 0.5);
    bottom: 25%;
    right: 10%;
    animation-duration: 6s;
    border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%;
    animation-delay: 1s;
}

.flowing-lines {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
}

.flowing-lines::before,
.flowing-lines::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    animation: flow 4s ease-in-out infinite;
}

.flowing-lines::before {
    left: 20%;
    animation-duration: 3s;
}

.flowing-lines::after {
    right: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.particle-field {
    position: relative;
    overflow: hidden;
    background: #000;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: floatUp 6s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(2) {
    left: 20%;
    animation-duration: 6s;
    animation-delay: 1s;
    width: 1px;
    height: 1px;
}

.particle:nth-child(3) {
    left: 30%;
    animation-duration: 7s;
    animation-delay: 2s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(4) {
    left: 40%;
    animation-duration: 5s;
    animation-delay: 1.5s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(5) {
    left: 50%;
    animation-duration: 8s;
    animation-delay: 0.5s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(6) {
    left: 60%;
    animation-duration: 6s;
    animation-delay: 3s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(7) {
    left: 70%;
    animation-duration: 7s;
    animation-delay: 1s;
    width: 1px;
    height: 1px;
}

.particle:nth-child(8) {
    left: 80%;
    animation-duration: 5s;
    animation-delay: 2.5s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(9) {
    left: 90%;
    animation-duration: 4s;
    animation-delay: 0.5s;
    width: 3px;
    height: 3px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes flow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 -100%;
    }
}

@keyframes floatUp {
    0% {
        bottom: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: -10px;
        opacity: 0;
        transform: translateX(20px);
    }
}