/* ========================================
   ЛЕТАЮЩИЕ КОСМИЧЕСКИЕ ОБЪЕКТЫ
   ======================================== */

.space-objects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Планета 1 - Фиолетовая */
.space-objects::before {
    content: '🪐';
    position: absolute;
    font-size: 40px;
    filter: hue-rotate(270deg) brightness(1.2);
    animation: orbit-1 40s linear infinite;
    opacity: 0.4;
}

/* Планета 2 - Синяя */
.space-objects::after {
    content: '🌍';
    position: absolute;
    font-size: 30px;
    filter: brightness(0.8);
    animation: orbit-2 35s linear infinite;
    opacity: 0.3;
}

/* Кометы */
.comet {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(138, 92, 246, 0.8);
    pointer-events: none;
    will-change: transform;
}

.comet::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(138, 92, 246, 0.8), transparent);
    left: -100px;
    top: 0;
}

.comet-1 {
    animation: comet-fly-1 8s linear infinite;
}

.comet-2 {
    animation: comet-fly-2 10s linear infinite;
    animation-delay: 3s;
}

.comet-3 {
    animation: comet-fly-3 12s linear infinite;
    animation-delay: 6s;
}

/* Астероиды */
.asteroid {
    position: fixed;
    font-size: 15px;
    pointer-events: none;
    opacity: 0.5;
    will-change: transform;
}

.asteroid-1 {
    content: '☄';
    animation: float-asteroid-1 25s linear infinite;
}

.asteroid-2 {
    content: '⚫';
    animation: float-asteroid-2 30s linear infinite;
    animation-delay: 5s;
}

.asteroid-3 {
    content: '🌑';
    animation: float-asteroid-3 28s linear infinite;
    animation-delay: 10s;
}

/* Туманности */
.nebula {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-nebula 50s ease-in-out infinite;
    will-change: transform;
}

.nebula-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float-nebula-2 60s ease-in-out infinite;
    animation-delay: 10s;
}

/* Пульсирующая звезда */
.pulsar {
    position: fixed;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(138, 92, 246, 0.8);
    animation: pulse-star 2s ease-in-out infinite, move-pulsar 40s linear infinite;
    will-change: transform;
}

/* Анимации орбит */
@keyframes orbit-1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        left: -50px;
        top: 20%;
    }
    25% {
        top: 10%;
    }
    50% {
        left: 50%;
        top: 5%;
    }
    75% {
        top: 15%;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        left: calc(100% + 50px);
        top: 20%;
    }
}

@keyframes orbit-2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        left: calc(100% + 50px);
        top: 60%;
    }
    25% {
        top: 70%;
    }
    50% {
        left: 50%;
        top: 75%;
    }
    75% {
        top: 65%;
    }
    100% {
        transform: translate(0, 0) rotate(-360deg);
        left: -50px;
        top: 60%;
    }
}

/* Анимации комет */
@keyframes comet-fly-1 {
    0% {
        left: -100px;
        top: 20%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 100px);
        top: 80%;
        opacity: 0;
    }
}

@keyframes comet-fly-2 {
    0% {
        left: -100px;
        top: 60%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 100px);
        top: 30%;
        opacity: 0;
    }
}

@keyframes comet-fly-3 {
    0% {
        left: 50%;
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 80%;
        top: calc(100% + 100px);
        opacity: 0;
    }
}

/* Анимации астероидов */
@keyframes float-asteroid-1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        left: -50px;
        top: 30%;
    }
    50% {
        top: 35%;
    }
    100% {
        transform: translate(0, 0) rotate(720deg);
        left: calc(100% + 50px);
        top: 30%;
    }
}

@keyframes float-asteroid-2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        left: calc(100% + 50px);
        top: 70%;
    }
    50% {
        top: 65%;
    }
    100% {
        transform: translate(0, 0) rotate(-720deg);
        left: -50px;
        top: 70%;
    }
}

@keyframes float-asteroid-3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        left: -50px;
        top: 50%;
    }
    50% {
        top: 45%;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        left: calc(100% + 50px);
        top: 50%;
    }
}

/* Анимации туманностей */
@keyframes float-nebula {
    0% {
        left: -200px;
        top: 10%;
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        left: calc(100% + 200px);
        top: 20%;
        opacity: 0.3;
    }
}

@keyframes float-nebula-2 {
    0% {
        left: calc(100% + 300px);
        top: 60%;
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        left: -300px;
        top: 70%;
        opacity: 0.2;
    }
}

/* Анимации пульсара */
@keyframes pulse-star {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes move-pulsar {
    0% {
        left: 10%;
        top: 15%;
    }
    25% {
        left: 80%;
        top: 20%;
    }
    50% {
        left: 85%;
        top: 75%;
    }
    75% {
        left: 15%;
        top: 80%;
    }
    100% {
        left: 10%;
        top: 15%;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .space-objects::before {
        font-size: 25px;
    }
    
    .space-objects::after {
        font-size: 20px;
    }
    
    .nebula {
        width: 150px;
        height: 150px;
    }
    
    .nebula-2 {
        width: 200px;
        height: 200px;
    }
}



