/* css/hero.css - THE SWEET SPOT */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

/* Layer 0: The Base Image */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/cover.png');
    background-size: cover;
    background-position: 85% 40%; 
    z-index: 1;
    filter: brightness(0.6) contrast(1.2); 
    transition: transform 0.1s ease-out;
}

/* Layer 1: The Glitch Phantom */
.hero-glitch {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/cover.png');
    background-size: cover;
    background-position: 85% 40%; 
    z-index: 2;
    opacity: 0;
    mix-blend-mode: color-dodge;
    pointer-events: none;
}

.glitch-active {
    opacity: 1;
    animation: digitalNoise 0.2s steps(2) infinite;
}

/* Layer 2: The Beam */
.abduction-beam {
    position: absolute;
    top: 0;
    left: 85%; 
    transform: translateX(-50%);
    width: 60%; 
    max-width: 800px;
    height: 100%;
    background: radial-gradient(ellipse at center 30%, rgba(236, 246, 116, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Sacred Geometry */
.sacred-geometry {
    position: absolute;
    top: 40%; 
    left: 85%; 
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 3;
    pointer-events: none;
}

/* Layer 3: The Content (ADJUSTED) */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* Keep aligned to top so padding works */
    justify-content: flex-start; 
    align-items: flex-start;
    
    padding-left: 10vw; 
    
    /* THE FIX: 210px is the safe zone */
    padding-top: 120px; 
    
    padding-bottom: 5vh; 
}

/* The Monolith Container */
.title-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: center;
    position: relative;
    animation: levitate 8s ease-in-out infinite;
}

/* Vertical Anchor Line */
.title-stack::before {
    content: '';
    position: absolute;
    left: -30px; 
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.4;
}

/* Typography */
.hero-word {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7.5rem); 
    line-height: 0.85; 
    color: transparent;
    -webkit-text-stroke: 1px rgba(236, 246, 116, 0.8); 
    text-transform: uppercase;
    mix-blend-mode: normal; 
    transition: all 0.4s ease;
}

.hero-word-solid {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    line-height: 0.85;
    color: var(--primary);
    text-transform: uppercase;
    text-shadow: 0 0 50px rgba(236, 246, 116, 0.3);
}

.title-stack:hover .hero-word {
    color: rgba(236, 246, 116, 0.05);
    text-shadow: 0 0 30px var(--primary);
}

/* Subtitle */
.hero-subtitle {
    font-family: monospace;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    color: #fff; 
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
    
    border-top: 1px solid var(--primary);
    padding-top: 1rem;
    
    margin-top: 0.5rem; 
    margin-left: 2px;
    width: fit-content; 
}

/* Button */
.hero-cta {
    margin-top: 2.5rem;
    margin-left: 2px;
}

.alien-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    background: rgba(10, 11, 26, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    text-decoration: none;
}

.alien-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(236, 246, 116, 0.4);
}

/* Texture & Rings (Unchanged) */
.noise-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 20;
    pointer-events: none;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(236, 246, 116, 0.2);
    border-radius: 50%;
}
.ring-1 { width: 100%; height: 100%; animation: spin 60s linear infinite; border-style: dashed; }
.ring-2 { width: 60%; height: 60%; animation: spin 40s linear infinite reverse; border-left-color: var(--primary); opacity: 0.5; }

/* Animations */
@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); } 
}

@keyframes digitalNoise {
    0% { transform: translate(-2px, 2px); filter: hue-rotate(0deg); }
    50% { transform: translate(2px, -2px); filter: hue-rotate(90deg); }
    100% { transform: translate(-2px, 2px); filter: hue-rotate(180deg); }
}
@keyframes spin { 
    from { transform: translate(-50%, -50%) rotate(0deg); } 
    to { transform: translate(-50%, -50%) rotate(360deg); } 
}

/* css/hero.css - Mobile Overrides */

@media (max-width: 768px) {
    /* Swap image for the base layer AND the glitch layer */
    .hero-bg,
    .hero-glitch {
        background-image: url('../assets/images/covermov.png');
        
        /* Optional: Reset position if the desktop offset (85% 40%) looks weird on mobile */
        background-position: center center; 
    }
}

/* ================================================
   css/hero.css - MOBILE OVERRIDES
   STATUS: TEXT MOVED TO BOTTOM & SPACESHIP REVEALED
================================================= */

@media (max-width: 768px) {

    /* 1. SWAP THE IMAGE */
    .hero-bg,
    .hero-glitch {
        background-image: url('../assets/images/covermov.png');
        background-position: center top; /* Anchor image to top so spaceship stays put */
        background-size: cover;
    }

    /* 2. MOVE CONTENT TO BOTTOM */
    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        
        /* Clear the top area for the image */
        padding-top: 0; 
        
        /* Align to bottom */
        justify-content: flex-end; 
        align-items: center;
        text-align: center;
        
        /* Add breathing room from the bottom edge */
        padding-bottom: 15vh; 
    }

   /* 3. TITLE STACK ADJUSTMENTS (Mobile) */
   .title-stack {
    align-items: center;
    
    /* THE FIX: Add vertical spacing between words */
    gap: 15px; 
}

/* Relax the line-height so letters don't clip */
.hero-word, 
.hero-word-solid {
    line-height: 0.7; 
    
    /* Optional: Add a subtle drop shadow for better readability against the floor */
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

/* Remove the vertical line */
.title-stack::before {
    display: none;
}

    /* 4. SUBTITLE & BUTTON */
    .hero-subtitle {
        margin-left: 0;
        border-top: 1px solid var(--primary);
        margin-top: 1rem;
    }

    .hero-cta {
        margin-left: 0;
        margin-top: 2rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* 5. ADJUST THE BEAM */
    .abduction-beam {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        opacity: 0.6;
        top: 0;
    }
}

/* css/hero.css - TABLET GAP REDUCTION */

@media (min-width: 768px) and (max-width: 1024px) {
    
    .hero-section {
        /* Drastically reduce bottom padding on tablet */
        padding-bottom: 2rem !important; 
        
        /* Adjust height if it was forced to 100vh */
        min-height: auto !important;
        height: auto !important;
    }

    .hero-content {
        /* Pull content down slightly if it's too high, 
           or reduce this if you want it tighter to the top */
        padding-top: 100px; 
        padding-bottom: 0;
    }
    
    /* Optional: If the spaceship image is creating the gap */
    .hero-bg {
        /* Ensure background doesn't force extra height */
        height: 100%;
    }
}
