/* css/core.css */

/* css/core.css - ADD THIS TO THE TOP */
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative;
}

/* --- 1. FONTS --- */
@font-face {
    font-family: 'nebulaxregular';
    src: url('../fonts/nebulax-webfont.woff2') format('woff2'),
         url('../fonts/nebulax-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Saira:wght@200;400;600&display=swap');

/* --- 2. VARIABLES (THE DNA) --- */
:root {
    /* Brand Colors - STRICTLY PRESERVED */
    --primary: #ecf674;            /* Your exact yellow */
    --primary-rgb: 236, 246, 116;  /* For rgba calculations */
    --primary-dim: rgba(236, 246, 116, 0.3);
    --primary-glow: rgba(236, 246, 116, 0.15);
    
    /* The Void (Backgrounds) */
    --oled-black: #050507;         /* Deepest black possible */
    --void-surface: #0a0b1a;       /* Your original dark blue-black tint */
    --angel-white: rgba(255, 255, 255, 0.95);
    
    /* The Glass (Materials) */
    --glass-border: rgba(236, 246, 116, 0.15);
    --glass-blur: blur(15px);
    
    /* Typography */
    --font-heading: 'nebulaxregular', sans-serif;
    --font-body: 'Saira', sans-serif;
}

/* --- 3. RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
    overflow-x: hidden; 
}

body {
    background-color: var(--oled-black);
    color: var(--angel-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* ================================================
   THE ALLIANCE SEPARATOR (MISSION PARTNERS)
   STATUS: FINAL (Animated, Interactive, Swapping)
================================================= */

.alliance-separator {
    width: 100%;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
    padding: 4rem 0 3rem 0; 
    overflow: hidden; /* Prevents scrollbars */
}

/* --- 1. HEADERS & TEXT --- */
.alliance-heading {
    font-family: var(--font-heading);
    font-size: 2rem; 
    text-align: center;
    color: #fff;
    margin-bottom: 0.5rem; 
    text-transform: uppercase;
    letter-spacing: 0.1em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    color: transparent; 
    width: 100%; 
}

.alliance-heading span {
    color: var(--primary);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(236, 246, 116, 0.3);
}

.alliance-tagline {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5); 
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 3rem; 
    text-transform: uppercase;
    display: block;
    width: 100%;
}

/* --- 2. THE SCROLLING TRACK --- */
.client-marquee {
    position: relative;
    width: 100%;
    height: 140px; 
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    width: max-content; /* Critical for horizontal flow */
    animation: marqueeScroll 45s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 10rem; 
    padding-right: 10rem;
}

/* --- 3. THE LINK CONTAINER (The Anchor) --- */
.marquee-group a.partner-link {
    position: relative; /* Crucial: Traps the absolute image */
    display: block;
    height: 90px;
    width: auto;
    flex-shrink: 0; 
    cursor: pointer;
}

/* --- 4. THE GHOST (Default Visible) --- */
.logo-ghost {
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
    
    position: relative; 
    z-index: 1;
    
    /* STYLE: Force White + Glow + Solid Opacity */
    filter: grayscale(100%) brightness(100) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    opacity: 0.7; 
    
    transition: opacity 0.4s ease;
}

/* --- 5. THE COLOR (Default Hidden) --- */
.logo-color {
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
    
    /* POSITION: Locked exactly on top of ghost */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    
    /* HIDDEN STATE */
    opacity: 0 !important; 
    transform: scale(0.95);
    
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- 6. INTERACTIONS --- */

/* Hovering the LINK hides Ghost */
.partner-link:hover .logo-ghost {
    opacity: 0 !important;
}

/* Hovering the LINK shows Color */
.partner-link:hover .logo-color {
    opacity: 1 !important;
    transform: scale(1.1); 
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)); 
}

/* Pause scrolling on hover */
.client-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* --- 7. UTILITIES --- */
.marquee-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #000 0%, transparent 15%, transparent 85%, #000 100%);
    z-index: 10;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .client-marquee { height: 100px; }
    .marquee-group a.partner-link { height: 50px; }
    .marquee-group { gap: 5rem; padding-right: 5rem; }
    .alliance-heading { font-size: 1.5rem; }
    .alliance-tagline { font-size: 0.65rem; padding: 0 1rem; }
}

/* RESET THE BROWSER DEFAULTS */
h1.title-stack {
    font-weight: normal !important; /* This kills the bolding */
    font-size: inherit;             /* Stops it from changing size */
    margin: 0;                      /* Removes default H1 spacing */
    line-height: inherit;           /* Keeps the spacing tight */
    display: flex;                  /* Ensures it still stacks correctly */
    flex-direction: column;         /* Keeps vertical stacking */
}

/* css/core.css - ULTRAWIDE STABILIZER (The "Black Hole" Fix) */

@media (min-width: 2500px) {
    
    /* 1. HERO CONTENT: Stop it from drifting right */
    .hero-content {
        max-width: 1600px; /* Lock the width of the content box */
        width: 100%;
        
        /* Force Absolute Centering of the Container */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        
        /* CRITICAL: Kill the dynamic padding that was pushing text away */
        padding-left: 0 !important; 
        padding-right: 0 !important;
        
        /* Ensure text stays aligned relative to this centered box */
        align-items: flex-start; 
        justify-content: center;
    }

    /* 2. HERO BACKGROUND: Center the ship */
    .hero-bg, .hero-glitch {
        background-size: cover;
        /* Force the ship to the middle so it aligns with the centered text box */
        background-position: center center !important; 
    }

    /* 3. PORTFOLIO: Contain the stream */
    .portfolio-section {
        max-width: 2500px;
        margin: 0 auto;
        overflow: hidden;
    }
    
    /* Center the kinetic stream */
    .kinetic-wrapper {
        width: 100%; 
        margin-left: 0;
        justify-content: center;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
}