
#space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -1;
    overflow: hidden;
}

/* Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* Twinkling animation */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.star {
    animation: twinkle 3s infinite;
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.8);
    animation: shoot 2s ease-out forwards;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 1) 100%);
    transform-origin: right center;
    transform: rotate(var(--angle, 45deg));
}

@keyframes shoot {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(400px, 400px);
        opacity: 0;
    }
}

/* Planet */
.planet {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    background-image: url('/wp-content/themes/hostinger-ai-theme/pigeon.png');
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: planetMove 60s linear forwards, planetRotate 40s linear infinite;
}

@keyframes planetMove {
    0% {
        left: var(--start-x);
        top: var(--start-y);
    }
    100% {
        left: var(--end-x);
        top: var(--end-y);
    }
}

@keyframes planetRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Make sure content is visible and clickable */
body {
    position: relative;
    z-index: 1;
}

/* Optional: Add subtle glow to random stars */
.star:nth-child(3n) {
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.star:nth-child(7n) {
    box-shadow: 0 0 5px rgba(135, 206, 250, 0.4);
}

.star:nth-child(11n) {
    box-shadow: 0 0 4px rgba(255, 200, 150, 0.4);
}

/* Ensure smooth performance */
#space-bg * {
    will-change: transform, opacity;
}