/* =================================================================
   HOMEPAGE HERO SECTION - PREMIUM ARTISTIC VERSION
   ================================================================= */

/* --- 1. HERO SECTION LAYOUT --- */
.homepage-hero-section {
    position: relative;
    min-height: 450px; 
    padding: 100px 0; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000; /* The base black color of space */
}

.hero-content-container {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 20px;
    max-width: 900px; /* Content ko center mein rakhne ke liye */
    margin: 0 auto;
}

/* --- HEADING FIXES (Clean, Sharp, No Glow) --- */
.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.2rem, 6vw, 4.5rem); 
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -1px; /* Premium tight look */
    color: #ffffff; 
    animation: fadeInDown 1.2s ease-out;
    /* Text shadow (glow) hata diya gaya hai taake text crisp lage */
}

/* Brand Pink Highlight */
.hero-title .brand-highlight {
    color: #ff3366;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.0rem); /* Aapki marzi ke mutabiq same rakha hai */
    font-weight: 300;
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease-out 0.3s;
    animation-fill-mode: both;
}

/* --- NAYA CTA BUTTON --- */
.hero-cta-wrapper {
    margin-top: 35px;
    animation: fadeInUp 1.2s ease-out 0.6s;
    animation-fill-mode: both;
}

.hero-cta-btn {
    display: inline-block;
    background-color: #ff3366;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

.hero-cta-btn:hover {
    background-color: #e62e5c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.4);
    color: #ffffff;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite 2s; 
}
.scroll-down-arrow:hover {
    opacity: 1;
}

/* --- 2. GALAXY BACKGROUND & 3D ANIMATION (UNTOUCHED) --- */
.galaxy-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 800px; 
    background: radial-gradient(ellipse at 50% 50%, rgba(4, 23, 55, 0.4) 0%, rgba(0,0,0,0) 60%);
}

#stars-small, #stars-medium, #stars-large, #stars-colors-1, #stars-colors-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation-name: flyThrough;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes flyThrough {
    from { transform: translateZ(-800px); } 
    to   { transform: translateZ(800px); }  
}

/* Layer 1: Tiny, dense white stars (Cosmic Dust) */
#stars-small {
    background-image: radial-gradient(1px 1px at 20px 30px, #eee, transparent),
                      radial-gradient(1px 1px at 90% 10%, #fff, transparent),
                      radial-gradient(1px 1px at 50% 50%, #eee, transparent),
                      radial-gradient(1px 1px at 20% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation-duration: 75s; 
}

/* Layer 2: Medium white stars */
#stars-medium {
    background-image: radial-gradient(2px 2px at 10% 90%, #fff, transparent),
                      radial-gradient(2px 2px at 80% 30%, #ddd, transparent);
    background-size: 250px 250px;
    animation-duration: 50s;
}

/* Layer 3: Large, bright white stars */
#stars-large {
    background-image: radial-gradient(3px 3px at 5% 25%, #fff, transparent),
                      radial-gradient(3px 3px at 95% 75%, #fff, transparent);
    background-size: 300px 300px;
    animation-duration: 25s; 
}

/* Layer 4: Red and Yellow stars */
#stars-colors-1 {
    background-image: radial-gradient(2px 2px at 15% 60%, #ff5733, transparent), 
                      radial-gradient(1px 1px at 85% 40%, #f1c40f, transparent); 
    background-size: 220px 220px;
    animation-duration: 40s;
}

/* Layer 5: Blue and Green stars */
#stars-colors-2 {
    background-image: radial-gradient(2px 2px at 30% 20%, #3498db, transparent), 
                      radial-gradient(2px 2px at 70% 85%, #2ecc71, transparent); 
    background-size: 180px 180px;
    animation-duration: 33s;
}

/* --- 4. TEXT & ARROW ANIMATIONS --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- 5. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .homepage-hero-section {
        min-height: 450px; /* Mobile par thodi kam height */
        padding: 80px 0; 
    }
    .hero-title {
        font-size: 2.0rem; /* Mobile par heading size control */
    }
    .hero-subtitle {
        font-size: 0.8rem; 
    }
    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 12px;
    }
}