.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: fadeInStarfield 3s ease-in forwards;
    perspective: 800px;
}

@keyframes fadeInStarfield {
    to {
        opacity: 1;
    }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: moveToward 3s linear infinite;
}

.star:nth-child(3n) {
    animation-duration: 2s;
}

.star:nth-child(3n+1) {
    animation-duration: 3s;
}

.star:nth-child(3n+2) {
    animation-duration: 4s;
}

@keyframes moveToward {
    0% {
        transform: translateZ(-2000px) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateZ(300px) scale(2.5);
        opacity: 0;
    }
}