/**
 * TruthForge Nuclear - High-Fidelity Hero Styles
 * 100% Parity with "Moment of Truth" Reference
 */

/* Animations */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section Base */
.tf-hero-section-nuclear {
    position: relative !important;
    width: 100% !important;
    min-height: 75vh !important;
    min-height: calc(100vh - 120px) !important;
    display: flex !important;
    align-items: flex-start !important; /* Changed from center to allow padding to work */
    background-color: #000 !important;
    background-image: url('truthforge_hero_black_model_nairobi_1775047038208.png') !important;
    background-size: cover !important;
    background-position: center !important;
    overflow: hidden !important;
    padding-top: 0 !important; /* RECALIBRATED: Allow absolute header to float over */
}

/* --- MOBILE HERO LOCKDOWN --- */
@media (max-width: 768px) {
    .tf-hero-section-nuclear {
        min-height: 80vh !important;
        align-items: center !important;
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }

    /* The desktop hero photo is a wide landscape shot (2244x1536); cover-cropped
       into a tall mobile box it loses ~75% of its width and the subject nearly
       disappears. Swap to a tighter, already-portrait-friendly shot instead. */
    .tf-hero-bg-img {
        content: url('images/hero-image1.webp') !important;
        object-position: 72% 15% !important;
        opacity: 0.65 !important;
    }

    .tf-hero-status-card {
        display: none !important; /* HIDE ON MOBILE */
    }

    .tf-hero-main-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
    }

    .tf-hero-content-column {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .tf-hero-badges-row {
        justify-content: center !important;
        margin-bottom: 16px !important;
        flex-wrap: wrap !important; /* WRAP ON MOBILE */
        gap: 10px !important;
    }

    html body .tf-hero-content-column h1,
    html body .tf-hero-content-column .tf-hero-heading {
        font-size: clamp(34px, 10vw, 48px) !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        line-height: 1.0 !important;
    }

    .tf-hero-subtext, 
    .tf-hero-supporting-copy {
        max-width: 320px !important;
        margin-bottom: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .tf-hero-cta-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .tf-btn-solid, .tf-btn-outline {
        width: 100% !important;
        padding: 16px !important;
        font-size: 14px !important;
        justify-content: center !important;
    }

    .tf-hero-status-card {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-top: 40px !important;
        align-self: center !important;
        width: 100% !important;
        max-width: 320px !important;
        opacity: 1 !important;
        animation: none !important;
    }
}

/* Background Handling */
.tf-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* CINEMATIC OVERLAY: Prevents text competition */
.tf-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.4) 0%, 
        transparent 30%, 
        rgba(0,0,0,0.7) 70%, 
        rgba(0,0,0,0.9) 100%
    );
    z-index: 2;
}

.tf-hero-bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 12% !important; /* RECALIBRATED: Restore model face visibility */
    opacity: 0.6; /* Dark Overlay Effect from Screenshot */
    animation: kenBurns 30s ease-in-out infinite alternate;
}

/* Container & Layout */
.tf-hero-main-container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: none !important; /* NUCLEAR: NO CONSTRAINTS */
    padding: 40px 40px 60px 40px !important; /* REFINED: Strict vertical rhythm */
    margin: 0 !important; /* NO CENTERING */
}

.tf-hero-content-column {
    max-width: 850px;
    animation: fadeInHero 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Top-left Badges Row */
.tf-hero-badges-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 0 !important; /* ANCHOR LOCK */
    margin-bottom: 18px !important; /* STRICT SPACING */
    position: relative;
}

/* Eyebrow Pills (Mandatory Structure) */
.tf-pill {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

.tf-pill-primary {
    background-color: #7B2FF7 !important; /* Brand Purple */
    color: #FFFFFF !important;
}

.tf-pill-secondary {
    background-color: transparent !important;
    color: #F5C542 !important; /* Accent Yellow */
    border: 1px solid #F5C542 !important;
}

/* Deprecated Pill Styles - Kept for fallback but overridden by above */
.tf-pill-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

/* Headline - 120px-140px Massive Scale */
html body .tf-hero-content-column h1,
html body .tf-hero-content-column .tf-hero-heading {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    font-style: italic !important;
    font-size: clamp(42px, 8vw, 90px) !important; /* REFINED: Balance vs Clutter */
    line-height: 0.9 !important;
    letter-spacing: -0.045em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin-bottom: 20px !important; /* STRICT SPACING */
    max-width: 1024px !important; /* Exact max-width-5xl from user code */
    text-shadow: 0 10px 40px rgba(0,0,0,0.6) !important; /* ELITE CONTRAST */
}

.tf-hero-headline-nuclear .white {
    color: #ffffff;
}

html body .tf-hero-content-column h1 .text-violet-400 {
    color: #A855F7 !important; /* Brand Primary Parity */
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Supporting Copy */
.tf-hero-subtext,
.tf-hero-supporting-copy {
    margin-bottom: 28px !important; /* STRICT SPACING */
    max-width: 480px;
}

.tf-hero-supporting-copy .copy-line-1 {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tf-hero-supporting-copy .copy-line-2 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8; /* BOOSTED for contrast */
    letter-spacing: -0.01em; /* Tightened for premium look */
}

/* CTA Buttons */
.tf-hero-cta-row {
    display: flex;
    gap: 20px;
}

.tf-btn-solid {
    background: #ffffff !important; /* Force White for Moment of Truth parity */
    color: #000000 !important;
    padding: 18px 48px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    border: none !important;
}

.tf-btn-solid:hover {
    background: #A855F7 !important; /* Force Purple Hover */
    color: #ffffff !important;
    transform: translateY(-2px);
}

.tf-btn-outline {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 18px 48px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.tf-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    margin-left: 12px;
}

/* Right-side Floating Status Card */
.tf-hero-status-card {
    background: rgba(255, 255, 255, 0.03) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    position: absolute !important;
    top: 100px !important; /* VISUAL ALIGNMENT LOCK */
    right: 60px !important; 
    z-index: 10 !important;
    animation: fadeInHero 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    background: #facc15; /* Yellow Indicator */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.status-label {
    font-size: 9px;
    font-weight: 800;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-card-data {
    margin-bottom: 12px;
}

.status-value {
    font-size: 28px; /* Reduced from 36px to match slimmer card */
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.status-sub-label {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.status-progress-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.2); /* Increased contrast for visibility */
    border-radius: 10px;
    overflow: hidden;
}

.status-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #A855F7 0%, #a855f7 100%) !important;
    border-radius: 4px !important;
    display: block !important;
}

/* Header Integration */
.admin-bar .tf-hero-section-nuclear {
    margin-top: 0;
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .tf-hero-main-container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 100px;
    }
    .tf-hero-status-card {
        margin-top: 60px;
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .tf-hero-headline-nuclear,
    html body .tf-hero-content-column h1,
    html body .tf-hero-content-column .tf-hero-heading {
        font-size: clamp(32px, 10vw, 40px) !important; /* STRICT: 32px-40px range */
        line-height: 1.1 !important;
    }

    .tf-hero-supporting-copy .copy-line-1 {
        font-size: 14px !important; /* RE-ENFORCED: 14px subtext */
        line-height: 1.5 !important;
    }

    .tf-hero-supporting-copy .copy-line-2 {
        font-size: 13px !important;
        opacity: 0.5 !important;
    }

    /* Re-declared here (after the unconditional base rule at line ~157) because
       source order — not just !important — decides ties between an unconditional
       rule and an earlier @media block at equal specificity. The base rule's
       40px side padding was winning on mobile and squeezing the whole hero
       content column by an extra 40px per side. */
    .tf-hero-main-container {
        padding: 20px !important;
    }

    .tf-hero-cta-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
    }

    .tf-btn-solid, .tf-btn-outline {
        width: 100% !important;
        padding: 16px 32px !important;
        height: 48px !important;
    }
}

/* Bouncing Scroll Indicator */
.tf-hero-scroll-indicator {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    z-index: 10 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    animation: bounceIndicator 2s infinite !important;
    pointer-events: none;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 1;
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
        opacity: 0.8;
    }
}
