@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Orbitron', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-container {
    text-align: center;
    z-index: 10;
    position: relative;
}

.space-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4fc3f7, #81c784, #ffb74d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #4fc3f7;
}

.loading-bar-container {
    width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 2rem auto;
    overflow: hidden;
    border: 1px solid #4fc3f7;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #81c784);
    width: 0%;
    border-radius: 4px;
    animation: loading 3s ease-in-out forwards;
    box-shadow: 0 0 10px #4fc3f7;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: #4fc3f7;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.spaceship {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #4fc3f7; }
    to { text-shadow: 0 0 30px #4fc3f7, 0 0 40px #4fc3f7; }
}

@keyframes loading {
    to { width: 100%; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.fade-out {
    animation: fadeOut 1s ease-in-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .space-title {
        font-size: 2rem;
    }
    .loading-bar-container {
        width: 300px;
    }
}