/* ============================================================
   BATCH 6: Snag Fixes — Footer, Logos, Badge, Pills, Hero, Videos
   ============================================================ */

/* ============================================================
   1. FOOTER — Center 3 columns as a centered block
   ============================================================ */

#site-footer .container.py-5 > .row {
    justify-content: center;
    text-align: left;
}

/* Shrink columns so they don't span full width — allows centering */
#site-footer .footer-brand-col,
#site-footer .footer-links-col,
#site-footer .footer-legal-col {
    flex: 0 0 auto;
    width: auto;
    max-width: 280px;
}

@media (max-width: 991px) {
    #site-footer .footer-brand-col,
    #site-footer .footer-links-col,
    #site-footer .footer-legal-col {
        max-width: 100%;
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    #site-footer .footer-brand-col,
    #site-footer .footer-links-col,
    #site-footer .footer-legal-col {
        flex: 0 0 100%;
    }
}

/* ============================================================
   2. PARTNERS — Individual logo size overrides
   AWS & HLB = 2x base, Microsoft = 3x base
   ============================================================ */

/* AWS Activate — 2x */
#Our-Partners .partner-ticker-item img[alt="AWS Activate"] {
    max-height: 160px !important;
    transform: scale(1.4) !important;
}

/* HLB Fiducia — 2x */
#Our-Partners .partner-ticker-item img[alt="HLB Fiducia"] {
    max-height: 160px !important;
    transform: scale(1.4) !important;
}

/* Microsoft for Startups — 1.5x (reduced 25% from 2.0) */
#Our-Partners .partner-ticker-item img[alt="Microsoft for Startups"] {
    max-height: 180px !important;
    transform: scale(1.5) !important;
}

/* MS logo container — prevent clipping */
#Our-Partners .partner-ticker-item:has(img[alt="Microsoft for Startups"]) {
    width: 400px !important;
    height: 200px !important;
    padding: 25px 40px !important;
}

/* ============================================================
   3. STEALTH BADGE — NUKED (will be rebuilt as standard pill)
   ============================================================ */

/* ============================================================
   4. PILL BUTTONS — No bobbing, enhanced 3D embossing (static levitation)
   ============================================================ */

.btn.btn-sm.border.rounded-pill {
    animation: none !important;
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(14, 116, 144, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.btn-sm.border.rounded-pill:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.14),
        0 12px 28px rgba(14, 116, 144, 0.18),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.06) !important;
}

/* White text pills on dark backgrounds — enhanced 3D */
.feature .btn.btn-sm.border.rounded-pill,
#Contact-us .btn.btn-sm.border.rounded-pill {
    animation: none !important;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(6, 182, 212, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
}

.feature .btn.btn-sm.border.rounded-pill:hover,
#Contact-us .btn.btn-sm.border.rounded-pill:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.25),
        0 12px 28px rgba(6, 182, 212, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================================
   5. HERO — Fixed position text (no nudging from subtext)
   ============================================================ */

/* Kill all horizontal padding in hero container chain */
#header-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#header-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Vertically center text block in hero */
#header-container .col-lg-12 {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#header-text {
    width: 100% !important;
    max-width: none !important;
    min-height: auto;
    text-align: center;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(3.136rem, 5.6vw, 4.7040rem) !important;
    line-height: 1.2 !important;
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: normal;
}

#subtext {
    position: relative;
    width: 100%;
    max-width: 70%;
    margin: 1rem auto 0;
    text-align: center;
    min-height: 3.5em;
    font-size: 1.8rem !important;
}

/* ============================================================
   3. STEALTH BADGE — Teal bg, 3D embossed, levitating
   ============================================================ */

.stealth-pill {
    position: relative;
    overflow: hidden;
    background: rgba(14, 116, 144, 0.9) !important;
    border: 1px solid rgba(14, 116, 144, 0.6) !important;
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(14, 116, 144, 0.3),
        0 8px 20px rgba(14, 116, 144, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stealth-pill::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shimmerSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.stealth-pill:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 14px rgba(14, 116, 144, 0.4),
        0 12px 28px rgba(14, 116, 144, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15) !important;
}

/* Words start invisible, fade in one by one — no reflow, no nudging */
#header-text .word {
    opacity: 0;
    transition: opacity 0.525s ease;
}

#header-text .word.revealed {
    opacity: 1;
}

/* Subtext smooth entrance */
#subtext.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
}

#subtext {
    transform: translateY(4px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================================
   7. BACK-TO-TOP — Arrow centered, no bobbing, enhanced 3D
   ============================================================ */

.back-to-top {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    animation: none !important;
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(6, 182, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* When visible (jQuery fadeIn sets display:block, we override to flex) */
.back-to-top[style*="display: block"],
.back-to-top[style*="display:block"] {
    display: flex !important;
}

.back-to-top:hover {
    transform: translateY(-4px) !important;
    animation: none !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(6, 182, 212, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
}

/* Center the icon inside */
.back-to-top i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ============================================================
   8. REDUCED MOTION — Override batch5 animations
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    #header-text {
        animation: none !important;
    }
}

/* ============================================================
   9. Remove slideInRight animation from hero elements
   ============================================================ */

#header-text.animated.slideInRight,
#subtext.animated.slideInRight {
    animation: none !important;
}

/* ============================================================
   10. COMING SOON SECTION — Spacing adjustments
   ============================================================ */

/* Pill to "Ready to Break Down Silos?" title: +20% (1rem → 1.2rem) */
.container-fluid.bg-light .mx-auto.text-center .stealth-pill {
    margin-bottom: 1.2rem !important;
}

/* "Whole Value Chain's Trade" (h1) to cards row: +20% (1.5rem → 1.8rem) */
.coming-soon-title {
    margin-bottom: 1.8rem !important;
}

/* Span line spacing: +10% — add gap between block spans */
.coming-soon-title span {
    margin-bottom: 0.12em;
}

.coming-soon-title span:last-child {
    margin-bottom: 0;
}

/* ============================================================
   11. OUR APPROACH SECTION — Spacing adjustments
   ============================================================ */

/* Move whole content up by 5% (add bottom padding to shift center point upward) */
#Our-Approach-container > .container {
    padding-bottom: 10vh !important;
}

/* Stealth badge to "Our Approach" title: +20% (1rem → 1.2rem) */
#Our-Approach-container .stealth-pill {
    margin-bottom: 1.2rem !important;
}

/* ============================================================
   12. MOBILE NAV PANEL — Final override
   Force the hamburger menu to use the requested glass style
   after earlier batch files load.
   ============================================================ */

@media (max-width: 919px) {
    .nav-links {
        position: absolute !important;
        top: 100% !important;
        right: calc(clamp(28px, 6vw, 132px) * -1) !important;
        width: 200px !important;
        max-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 20px !important;
        background: rgba(10, 18, 34, 0.10) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-radius: 0 0 0 22px !important;
        border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: 0 4px 14px rgba(7, 16, 33, 0.06) !important;
        overflow: hidden !important;
        transition: max-height 0.34s ease, padding 0.34s ease, opacity 0.22s ease !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .nav-links.open {
        right: calc(clamp(28px, 6vw, 132px) * -1) !important;
        max-height: 260px !important;
        padding: 12px 20px 18px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .site-nav-wrap.scrolled .nav-links {
        background: rgba(10, 18, 34, 0.28) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow: 0 8px 24px rgba(7, 16, 33, 0.12) !important;
    }

    .site-nav-wrap.light-surface .nav-links {
        background: rgba(255, 255, 255, 0.55) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.10) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
    }

    .site-nav-wrap.scrolled.light-surface .nav-links {
        background: rgba(255, 255, 255, 0.60) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.10) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
    }

    .site-nav-wrap.light-surface .hamburger-icon,
    .site-nav-wrap.scrolled.light-surface .hamburger-icon {
        filter: brightness(0) !important;
    }

    .site-nav-wrap.light-surface .nav-links li a,
    .site-nav-wrap.scrolled.light-surface .nav-links li a {
        color: #09111f !important;
        text-shadow: none !important;
    }

    .nav-links li {
        margin: 8px 0 !important;
        text-align: right !important;
        padding-right: 0 !important;
        position: relative !important;
    }

    .nav-links li a {
        color: #ffffff !important;
        font-size: 22px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.58) !important;
        padding-left: 0 !important;
    }

    .nav-links li a:hover {
        color: #ffffff !important;
        padding-left: 0 !important;
    }
}
