/* Shooting Star Background */

/* Base container for the sky */
html,
body {
    background: transparent !important;
}

#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    overflow: hidden;
    transition: background 0.5s ease;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Light Mode Sky */
html:not(.dark) #star-container {
    background:
        radial-gradient(circle at 18% 12%, rgba(6, 182, 212, 0.28), transparent 26%),
        radial-gradient(circle at 82% 8%, rgba(217, 70, 239, 0.18), transparent 24%),
        linear-gradient(180deg, #e8f8ff 0%, #eef6ff 48%, #f8fbff 100%);
}

/* Dark Mode Sky */
html.dark #star-container {
    background:
        radial-gradient(circle at 20% 16%, rgba(6, 182, 212, 0.18), transparent 26%),
        radial-gradient(circle at 84% 10%, rgba(217, 70, 239, 0.16), transparent 24%),
        linear-gradient(180deg, #020617 0%, #07111f 48%, #111827 100%);
}

/* Stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 40px white;
    animation: shooting-star linear infinite;
}

/* Shooting Star Animation */
@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg) scale(1);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw) translateY(100vh) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
}

/* Twinkling stars (static background stars) */
.twinkle-star {
    position: absolute;
    background: rgba(224, 251, 255, 0.95);
    border-radius: 50%;
    animation: twinkle infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .star,
    .twinkle-star {
        animation: none !important;
        opacity: 0.35 !important;
    }
}
