/* ============================================================
   BATCH 5: Fixes & Polish — Hero, Badges, Pills, Back-to-Top
   ============================================================ */

/* ============================================================
   1. HERO — Subtext fade-in without nudging main text
   ============================================================ */

/* Reserve space for subtext so it doesn't push header-text up */
#header-container .col-lg-12 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 86px);
}

#header-text {
    /* Fixed position in the layout — subtext won't push it */
    flex-shrink: 0;
}

#subtext {
    opacity: 0;
    min-height: 50px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

#subtext.fade-in {
    opacity: 1;
}

/* ============================================================
   2. FOOTER — Center columns horizontally
   ============================================================ */

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

/* ============================================================
   3. PARTNERS — Increase padding + logo sizes
   ============================================================ */

/* 1.5x the gap between title and ticker */
#Our-Partners .partner-ticker-wrap {
    margin-top: 20px;
    padding: 30px 0;
}

/* 2x logo sizes */
#Our-Partners .partner-ticker-item {
    width: 320px;
    height: 160px;
    padding: 20px 40px;
}

#Our-Partners .partner-ticker-item img {
    max-height: 120px;
}

/* Mobile override for 2x logos */
@media (max-width: 767px) {
    #Our-Partners .partner-ticker-item {
        width: 240px;
        height: 120px;
        padding: 16px 24px;
    }
    #Our-Partners .partner-ticker-item img {
        max-height: 90px;
    }
}

/* ============================================================
   4. STEALTH BADGE — REMOVED (now uses standard pill styling)
   ============================================================ */

/* ============================================================
   5. PILL BUTTONS — 3D Embossed + Levitating + Shimmer
   (Our Track Record, Coming Soon, Contact us pills)
   ============================================================ */

.btn.btn-sm.border.rounded-pill {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(14, 116, 144, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    animation: pillLevitate 3s ease-in-out infinite;
}

/* White text pills (on dark backgrounds) — different emboss */
.feature .btn.btn-sm.border.rounded-pill,
#Contact-us .btn.btn-sm.border.rounded-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* Shimmer on all pill buttons */
.btn.btn-sm.border.rounded-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;
}

/* ============================================================
   6. BACK-TO-TOP BUTTON — 3D Embossed + Levitating
   ============================================================ */

.back-to-top {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(6, 182, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
    animation: pillLevitate 3s ease-in-out infinite !important;
}

.back-to-top:hover {
    animation: none !important;
    box-shadow:
        0 8px 28px rgba(6, 182, 212, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Shimmer on back-to-top */
.back-to-top::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.3) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shimmerSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

/* ============================================================
   7. SHARED ANIMATIONS
   ============================================================ */

@keyframes pillLevitate {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes shimmerSweep {
    0% {
        left: -75%;
    }
    50% {
        left: 125%;
    }
    50.01%, 100% {
        left: -75%;
    }
}

/* ============================================================
   8. REDUCED MOTION — Respect user preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    #Sweep-btn,
    .btn.btn-sm.border.rounded-pill,
    .back-to-top {
        animation: none !important;
    }
    #Sweep-btn::after,
    .btn.btn-sm.border.rounded-pill::after,
    .back-to-top::after {
        animation: none !important;
    }
}