@keyframes starTwinkle {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

@keyframes crawl {
    0% {
        top: 100%;
        transform: translateX(-50%) rotateX(20deg) translateZ(0);
    }
    100% { 
        top: -600%;
        transform: translateX(-50%) rotateX(25deg) translateZ(-2500px);
    }
}

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

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

body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    color: #feda4a;
    perspective: 400px;
    background: #000;
}

.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
    z-index: 1;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    z-index: 2;
    animation: starTwinkle 200s linear infinite;
}

.container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.logo {
    margin-bottom: 40px;
    animation: float 6s ease-in-out infinite;
}

.logo h1 {
    font-size: 4rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #feda4a, 0 0 20px #feda4a;
}

.tagline {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    color: #4bd5ee;
    text-shadow: 0 0 10px #4bd5ee;
}

.crawl {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    transform-origin: 50% 100%;
    animation: crawl 60s linear infinite;
    font-size: 1.5rem;
    line-height: 2rem;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(245, 232, 39, 0.5);
}

.title {
    text-align: center;
    margin-bottom: 2rem;
}

.title h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: #4bd5ee;
    text-shadow: 0 0 10px #4bd5ee;
}

.email {
    color: #4bd5ee;
    font-weight: bold;
    font-size: 1.6rem;
    margin: 1.5rem 0;
    text-shadow: 0 0 10px #4bd5ee;
}

.starship {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.starship .body {
    width: 100px;
    height: 40px;
    background: #555;
    border-radius: 50% 50% 0 0;
    position: relative;
}

.starship .wing {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    bottom: 30px;
}

.starship .wing-left {
    border-width: 0 0 50px 70px;
    border-color: transparent transparent #777 transparent;
    left: -40px;
}

.starship .wing-right {
    border-width: 0 70px 50px 0;
    border-color: transparent #777 transparent transparent;
    right: -40px;
}

.starship .engine {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: linear-gradient(0deg, #ff4500, #ffcc00);
    border-radius: 0 0 20px 20px;
    animation: engineGlow 2s infinite alternate;
}

@keyframes engineGlow {
    from { box-shadow: 0 0 10px #ff4500; }
    to { box-shadow: 0 0 30px #ffcc00; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .crawl {
        font-size: 1.2rem;
        line-height: 1.8rem;
    }
    
    .title h2 {
        font-size: 2rem;
    }
    
    .email {
        font-size: 1.3rem;
    }
}
