/* Realistic Starry Night with High-Quality Background */

.hero-scene {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 100vh;
}

/* Clean dark gradient background */
.hero-scene {
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
}

/* Alternative high-quality starry backgrounds (uncomment one to use) */
/*
Option 2 - Dense Milky Way:
background-image: url('https://images.unsplash.com/photo-1502134249126-9f3755a50d78?q=80&w=2940&auto=format&fit=crop');

Option 3 - Clear night sky with stars:
background-image: url('https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?q=80&w=2940&auto=format&fit=crop');

Option 4 - Deep space with nebula:
background-image: url('https://images.unsplash.com/photo-1464207687429-7505649dae38?q=80&w=2946&auto=format&fit=crop');

Option 5 - Mountain silhouette with stars:
background-image: url('https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?q=80&w=2944&auto=format&fit=crop');
*/

/* Dark overlay for better text readability */
.hero-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Shooting stars animation layer */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Realistic shooting star */
.shooting-star {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-top: 1px solid transparent;
    border-right: 1px solid white;
    opacity: 0;
    filter: drop-shadow(0 0 6px white);
    animation: shooting-star 3s linear infinite;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translateX(198px) translateY(-2px);
    box-shadow: 0 0 10px 2px white;
}

/* Different paths for each shooting star */
.shooting-star:nth-child(1) {
    top: 20%;
    left: 100%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: 100%;
    animation-delay: 1.8s;
    animation-duration: 3.5s;
}

.shooting-star:nth-child(3) {
    top: 15%;
    left: 100%;
    animation-delay: 3.5s;
    animation-duration: 3.2s;
}

.shooting-star:nth-child(4) {
    top: 60%;
    left: 100%;
    animation-delay: 5.2s;
    animation-duration: 3.8s;
}

.shooting-star:nth-child(5) {
    top: 35%;
    left: 100%;
    animation-delay: 7s;
    animation-duration: 3.3s;
}

@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-2000px) translateY(1000px) rotate(-45deg);
        opacity: 0;
    }
}

/* Twinkling effect overlay */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.star-twinkle {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.star-twinkle::before,
.star-twinkle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

.star-twinkle::after {
    background-position: 150px 150px;
    animation-delay: 2.5s;
}

/* Content styling to stand out */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.9);
}

.word.golden {
    color: #ffd700;
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: relative;
    z-index: 10;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.95);
}

/* Fallback gradient if image doesn't load */
.hero-scene {
    background-color: #000;
    background-image:
        url('https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?q=80&w=2913&auto=format&fit=crop'),
        linear-gradient(to bottom, #0a0e27 0%, #000000 100%);
    background-blend-mode: normal;
}

/* For video background option */
.night-sky-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}