/* ============================================================
   STARFIELD — 3D Fly-Through Effect (JS Generated)
   ============================================================ */

.stars-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    perspective: 400px; overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: fly linear infinite;
}

.star-layer.layer-1 { animation-duration: 3s; }
.star-layer.layer-2 { animation-duration: 4s; }
.star-layer.layer-3 { animation-duration: 5s; }

@keyframes fly {
    from {
        transform: translateZ(0px);
    }
    to {
        transform: translateZ(300px);
    }
}

@keyframes fade1 {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes fade2 {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

/* ============================================================
   FLY-THROUGH EFFECT FOR VISIBLE STARS
   ============================================================ */

/* Override the existing .stars to add fly-through */
.stars {
    animation: flyThrough 4s linear infinite !important;
    transform-style: preserve-3d !important;
    perspective: 400px !important;
}

@keyframes flyThrough {
    0% {
        transform: translateZ(0px) scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateZ(400px) scale(1.5);
        opacity: 0;
    }
}

/* Also add a subtle pulse to make it feel alive */
.stars-wrapper {
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
