* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
}

.gradient-1 {
    animation: gradientShift1 10s ease-in-out infinite alternate;
}

.gradient-2 {
    animation: gradientShift2 10s ease-in-out infinite alternate;
}

/* Утро (6:00 - 11:59) */
/* .time-morning .gradient-1 {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 50%, #FFD700 100%);
}

.time-morning .gradient-2 {
    background: linear-gradient(225deg, #87CEEB 0%, #FFC0CB 50%, #FFDAB9 100%);
} */

/* День (12:00 - 17:59) */
/* .time-day .gradient-1 {
    background: linear-gradient(135deg, #87CEEB 0%, #4FC3F7 50%, #29B6F6 100%);
}

.time-day .gradient-2 {
    background: linear-gradient(225deg, #FFE082 0%, #81C784 50%, #64B5F6 100%);
} */

/* Вечер (18:00 - 21:59) */
/* .time-evening .gradient-1 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA07A 100%);
}

.time-evening .gradient-2 {
    background: linear-gradient(225deg, #5F27CD 0%, #341F97 50%, #FF6348 100%);
} */

/* Ночь (22:00 - 5:59) */
.time-night .gradient-1 {
    background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
}

.time-night .gradient-2 {
    background: linear-gradient(225deg, #141E30 0%, #243B55 50%, #1A2980 100%);
}

@keyframes gradientShift1 {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift2 {
    0% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

#spheres-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(300px);
    -webkit-backdrop-filter: blur(300px);
    filter: blur(10px);
    -webkit-filter: blur(10px);
    pointer-events: none;
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.1),
                0 0 40px rgba(255, 255, 255, 0.05);
    transition: none;    will-change: transform;
    transform: translateZ(0);
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .sphere {
        /* Убираем самый тяжелый backdrop-filter на мобильных */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: blur(20px);
        -webkit-filter: blur(20px);
        box-shadow: none;
    }
    
    .gradient-layer {
        animation-duration: 20s !important;
        animation: none !important;
    }
}

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
}
