* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Mono', monospace;
}

body {
    background: #000;
    overflow: hidden;
    color: #fff;
    height: 100vh;
    position: relative;
}

.background-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.bg-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: bg-star-pulse 3s ease-in-out infinite alternate;
}

.bg-star:nth-child(1) { top: 8%; left: 12%; width: 1px; height: 1px; animation-delay: 0s; }
.bg-star:nth-child(2) { top: 18%; left: 78%; width: 2px; height: 2px; animation-delay: 0.5s; }
.bg-star:nth-child(3) { top: 32%; left: 22%; width: 1px; height: 1px; animation-delay: 1s; }
.bg-star:nth-child(4) { top: 42%; left: 88%; width: 2px; height: 2px; animation-delay: 1.5s; }
.bg-star:nth-child(5) { top: 58%; left: 15%; width: 1px; height: 1px; animation-delay: 2s; }
.bg-star:nth-child(6) { top: 68%; left: 82%; width: 2px; height: 2px; animation-delay: 2.5s; }
.bg-star:nth-child(7) { top: 82%; left: 35%; width: 1px; height: 1px; animation-delay: 0.3s; }
.bg-star:nth-child(8) { top: 92%; left: 65%; width: 2px; height: 2px; animation-delay: 0.8s; }
.bg-star:nth-child(9) { top: 25%; left: 55%; width: 1px; height: 1px; animation-delay: 1.3s; }
.bg-star:nth-child(10) { top: 75%; left: 45%; width: 2px; height: 2px; animation-delay: 1.8s; }
.bg-star:nth-child(11) { top: 12%; left: 45%; width: 1px; height: 1px; animation-delay: 2.3s; }
.bg-star:nth-child(12) { top: 88%; left: 25%; width: 2px; height: 2px; animation-delay: 0.1s; }
.bg-star:nth-child(13) { top: 48%; left: 75%; width: 1px; height: 1px; animation-delay: 1.6s; }
.bg-star:nth-child(14) { top: 35%; left: 35%; width: 2px; height: 2px; animation-delay: 2.1s; }
.bg-star:nth-child(15) { top: 65%; left: 85%; width: 1px; height: 1px; animation-delay: 0.6s; }

@keyframes bg-star-pulse {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.3); }
}

.enterprise-ship {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 300px;
    background-image: url('img/ship-tr.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    z-index: 2;
    transition: all 3s ease-out;
    pointer-events: none;
}

.enterprise-ship.fly-in {
    animation: enterprise-fly-across 6s ease-in-out forwards;
}

@keyframes enterprise-fly-across {
    0% {
        left: 50%;
        top: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
        z-index: 2;
    }
    20% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.8);
        z-index: 6;
    }
    40% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
        z-index: 10;
    }
    60% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.5);
        z-index: 15;
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.8);
        z-index: 20;
    }
    100% {
        left: calc(100vw + 400px);
        top: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
        z-index: 2;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out;
}

.loading-text {
    font-size: 13px;
    color: #fff;
    opacity: 0.7;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: star-pulse 2s ease-in-out infinite alternate;
}

.star:nth-child(1) { top: 20%; left: 15%; width: 2px; height: 2px; animation-delay: 0s; }
.star:nth-child(2) { top: 30%; left: 80%; width: 1px; height: 1px; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 10%; width: 3px; height: 3px; animation-delay: 1s; }
.star:nth-child(4) { top: 80%; left: 70%; width: 1px; height: 1px; animation-delay: 1.5s; }
.star:nth-child(5) { top: 40%; left: 60%; width: 2px; height: 2px; animation-delay: 0.8s; }
.star:nth-child(6) { top: 70%; left: 30%; width: 1px; height: 1px; animation-delay: 1.2s; }
.star:nth-child(7) { top: 15%; left: 50%; width: 2px; height: 2px; animation-delay: 0.3s; }
.star:nth-child(8) { top: 90%; left: 20%; width: 1px; height: 1px; animation-delay: 1.8s; }

@keyframes star-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

#enable-audio-box {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) perspective(1000px) rotateX(45deg);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    padding: 2rem 4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: star-wars-crawl 12s linear infinite;
    transform-origin: center bottom;
    text-align: center;
    white-space: nowrap;
    opacity: 0.5;
}

#enable-audio-box:hover {
    animation-play-state: paused;
}

@keyframes star-wars-crawl {
    0% {
        bottom: -100px;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(45deg) scaleX(1) scaleY(1.2);
        opacity: 0.6;
    }
    20% {
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(35deg) scaleX(0.9) scaleY(1.1);
        opacity: 0.8;
    }
    40% {
        bottom: 25%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(25deg) scaleX(0.8) scaleY(1);
        opacity: 0.9;
    }
    60% {
        bottom: 40%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(15deg) scaleX(0.7) scaleY(0.9);
        opacity: 0.8;
    }
    70% {
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(10deg) scaleX(0.6) scaleY(0.8);
        opacity: 0.7;
    }
    80% {
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(5deg) scaleX(0.4) scaleY(0.6);
        opacity: 0.3;
    }
    90% {
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(2deg) scaleX(0.2) scaleY(0.4);
        opacity: 0.1;
    }
    100% {
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateX(0deg) scaleX(0.1) scaleY(0.2);
        opacity: 0;
    }
}

.star-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star-bg {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: star-pulse 2s ease-in-out infinite alternate;
}

.star-bg:nth-child(1) { top: 10%; left: 10%; width: 1px; height: 1px; animation-delay: 0s; }
.star-bg:nth-child(2) { top: 20%; left: 80%; width: 2px; height: 2px; animation-delay: 0.3s; }
.star-bg:nth-child(3) { top: 70%; left: 15%; width: 1px; height: 1px; animation-delay: 0.6s; }
.star-bg:nth-child(4) { top: 80%; left: 75%; width: 2px; height: 2px; animation-delay: 0.9s; }
.star-bg:nth-child(5) { top: 40%; left: 60%; width: 1px; height: 1px; animation-delay: 1.2s; }
.star-bg:nth-child(6) { top: 60%; left: 25%; width: 2px; height: 2px; animation-delay: 1.5s; }
.star-bg:nth-child(7) { top: 15%; left: 45%; width: 1px; height: 1px; animation-delay: 1.8s; }
.star-bg:nth-child(8) { top: 85%; left: 35%; width: 2px; height: 2px; animation-delay: 0.2s; }

.full-page-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.full-page-stars.show {
    opacity: 1;
}

.full-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: star-pulse 2s ease-in-out infinite alternate;
}

.full-star:nth-child(1) { top: 5%; left: 8%; width: 1px; height: 1px; animation-delay: 0s; }
.full-star:nth-child(2) { top: 12%; left: 85%; width: 2px; height: 2px; animation-delay: 0.2s; }
.full-star:nth-child(3) { top: 25%; left: 15%; width: 1px; height: 1px; animation-delay: 0.4s; }
.full-star:nth-child(4) { top: 35%; left: 75%; width: 2px; height: 2px; animation-delay: 0.6s; }
.full-star:nth-child(5) { top: 45%; left: 25%; width: 1px; height: 1px; animation-delay: 0.8s; }
.full-star:nth-child(6) { top: 55%; left: 65%; width: 2px; height: 2px; animation-delay: 1s; }
.full-star:nth-child(7) { top: 65%; left: 35%; width: 1px; height: 1px; animation-delay: 1.2s; }
.full-star:nth-child(8) { top: 75%; left: 55%; width: 2px; height: 2px; animation-delay: 1.4s; }
.full-star:nth-child(9) { top: 85%; left: 15%; width: 1px; height: 1px; animation-delay: 1.6s; }
.full-star:nth-child(10) { top: 95%; left: 85%; width: 2px; height: 2px; animation-delay: 1.8s; }
.full-star:nth-child(11) { top: 15%; left: 45%; width: 1px; height: 1px; animation-delay: 0.3s; }
.full-star:nth-child(12) { top: 85%; left: 75%; width: 2px; height: 2px; animation-delay: 0.7s; }
.full-star:nth-child(13) { top: 25%; left: 85%; width: 1px; height: 1px; animation-delay: 1.1s; }
.full-star:nth-child(14) { top: 65%; left: 25%; width: 2px; height: 2px; animation-delay: 1.5s; }
.full-star:nth-child(15) { top: 45%; left: 85%; width: 1px; height: 1px; animation-delay: 1.9s; }

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#background-video.playing {
    opacity: 1;
}

#audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.audio-btn {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
}

.audio-btn:hover {
    opacity: 0.7;
}

#resume-reveal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#resume-reveal.show {
    opacity: 1;
    animation: pulse-opacity 2s ease-in-out infinite;
}

@keyframes pulse-opacity {
    0% { opacity: 0.1; }
    50% { opacity: 0.9; }
    100% { opacity: 0.1; }
}

@keyframes wormhole-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wormhole-container {
    position: relative;
    width: 200px;
    height: 200px;
    animation: wormhole-rotation 2s linear infinite;
}

.wormhole-container:hover {
    animation-play-state: paused;
}

.dashed-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0.6;
    animation: bounce-around 4s ease-in-out infinite;
}

@keyframes bounce-around {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -10px);
    }
    50% {
        transform: translate(-10px, 15px);
    }
    75% {
        transform: translate(10px, 10px);
    }
}

@keyframes wormhole-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.resume-file {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    border-radius: 3px;
    padding: 1rem;
    text-align: center;
    z-index: 10;
}

.file-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.file-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: normal;
}

.download-btn {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    position: relative;
}

.download-btn:hover {
    animation: label-pulse 1s ease-in-out infinite;
}

@keyframes label-pulse {
    0%, 50% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

.hidden {
    display: none !important;
}

.eta-countdown {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #fff;
    font-family: 'Bungee Outline', cursive;
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 1000;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.eta-countdown.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    .file-icon {
        font-size: 1.2rem;
    }
    
    .file-text {
        font-size: 0.8rem;
    }
}