/* [data-theme="light"] .night-sky {
    display: none;
} */

.night-sky {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bg);
    overflow: hidden;
    z-index: -1; /* Ensure it stays behind content */
}

.meteor-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.meteor-container::before,
.meteor-container::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 190px 100px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, var(--text), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, var(--text), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

.meteor-container::after {
    background-size: 300px 300px;
    animation-delay: 2s;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.meteor-container {
    animation: meteor-shower 10s linear infinite;
}

@keyframes meteor-shower {
    0% {
        transform: rotate(215deg) translateX(0);
    }
    100% {
        transform: rotate(215deg) translateX(-500px);
    }
}

.meteor-container::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(255, 147, 0, 0.1),
        0 0 0 8px rgba(255, 80, 0, 0.1),
        0 0 20px rgba(255, 69, 0, 0.9),
        0 0 30px rgba(255, 0, 0, 0.6),
        0 0 40px rgba(255, 165, 0, 0.4);
    animation: meteor 3s linear infinite;
    background: linear-gradient(to right, #ff4500, #ff8c00);
}

@keyframes meteor {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(500px) translateY(500px);
        opacity: 0;
        box-shadow:
            0 0 0 4px rgba(255, 147, 0, 0),
            0 0 0 8px rgba(255, 80, 0, 0),
            0 0 20px rgba(255, 69, 0, 0),
            0 0 30px rgba(255, 0, 0, 0),
            0 0 40px rgba(255, 165, 0, 0);
    }
}
