/**
 * HT Digital Hub Elevate Inspired Main Theme Stylesheet
 * Adapted visual identity with Live Interactive Revenue Engine Telemetry, Interactive Portfolio Filters, Form Controls & State-of-the-Art Canvas Chart.
 */

@import url('variables.css');

/* Reset & Base Canvas */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    background-color: var(--color-bg-beige);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.font-display {
    font-family: var(--font-display);
}

.text-orange {
    color: var(--color-brand-orange);
}

.bg-orange {
    background-color: var(--color-brand-orange);
}

.bg-black-block {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.bg-card-dark {
    background-color: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FORM CONTROLS & INPUT STYLING */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.form-label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--color-brand-orange) !important;
    box-shadow: 0 0 0 3px rgba(244, 60, 0, 0.15) !important;
    background: #ffffff !important;
}

/* CUSTOM DROPDOWN SELECT STYLING */
select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f43c00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1.25rem !important;
    padding: 0.95rem 3rem 0.95rem 1.25rem !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--color-text-dark) !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

select.form-control:focus {
    border-color: var(--color-brand-orange) !important;
    box-shadow: 0 0 0 4px rgba(244, 60, 0, 0.18) !important;
}

select.form-control option {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 0.8rem 1rem !important;
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* Dark Mode Form Inputs */
.form-control-dark {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.form-control-dark:focus {
    border-color: var(--color-brand-orange) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* GLOBAL BUTTON STYLES & CLICKABLE STATES */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 1.75rem !important;
    border-radius: var(--radius-full) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.btn-primary {
    background-color: var(--color-brand-orange) !important;
    color: #000000 !important;
    border: 1px solid var(--color-brand-orange) !important;
    box-shadow: 0 6px 20px rgba(244, 60, 0, 0.25) !important;
}

.btn-primary:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

.btn-secondary {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-secondary:hover {
    background-color: var(--color-brand-orange) !important;
    color: #000000 !important;
    border-color: var(--color-brand-orange) !important;
    box-shadow: 0 10px 25px rgba(244, 60, 0, 0.3) !important;
    transform: translateY(-3px) !important;
}

/* PORTFOLIO SHOWCASE CATEGORY FILTER BUTTON PILLS */
button.portfolio-filter-pill,
.portfolio-filter-pill {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 9999px !important;
    font-family: var(--font-display), sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

button.portfolio-filter-pill.active,
button.portfolio-filter-pill:hover,
.portfolio-filter-pill.active,
.portfolio-filter-pill:hover {
    background: var(--color-brand-orange) !important;
    color: #000000 !important;
    border-color: var(--color-brand-orange) !important;
    box-shadow: 0 6px 20px rgba(244, 60, 0, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal-up { transform: translateY(60px); }
.reveal-visible { opacity: 1 !important; transform: translate(0, 0) !important; }

/* Container Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* Minimal Sticky Pill Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 1rem;
    transition: padding var(--transition-base);
}

.site-header.scrolled {
    padding: 1rem 1rem;
}

.header-pill {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.05em;
    color: var(--color-text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-brand-orange);
}

/* Dropdown Navigation Styling */
.nav-dropdown-item {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 0;
    min-width: 210px;
    list-style: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 250;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-dropdown-item:hover .dropdown-menu,
.nav-dropdown-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: rgba(244, 60, 0, 0.18);
    color: var(--color-brand-orange);
    padding-left: 1.75rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--color-text-dark);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    background: transparent;
    color: var(--color-text-dark);
    cursor: pointer !important;
}

.header-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
}

/* Mobile Nav Drawer */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-dark);
}

.mobile-menu-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer a {
    color: #ffffff;
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-project-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.portfolio-project-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-brand-orange);
    box-shadow: 0 20px 40px rgba(244,60,0,0.12);
}

.project-tech-tag {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-dark);
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(0,0,0,0.06);
}

/* LIVE REVENUE ENGINE GRAPH & STATE-OF-THE-ART CANVAS CHART STYLES */
.live-telemetry-card {
    background: var(--color-bg-dark);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
}

.realtime-canvas-container {
    position: relative;
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#live-telemetry-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.number-flash {
    animation: greenFlash 0.6s ease-out;
}

@keyframes greenFlash {
    0% { color: #10b981; transform: scale(1.08); }
    100% { color: var(--color-brand-orange); transform: scale(1); }
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.engine-tab-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer !important;
    transition: all var(--transition-fast);
}

.engine-tab-btn.active, .engine-tab-btn:hover {
    background: var(--color-brand-orange);
    color: #000000;
    border-color: var(--color-brand-orange);
}

/* Marquee / Logo Ticker */
.marquee-container {
    width: 100%;
    overflow: hidden !important;
    white-space: nowrap !important;
    padding: 3rem 0;
    position: relative;
    z-index: 30;
    background-color: var(--color-bg-beige);
}

.marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: max-content !important;
    animation: marquee 25s linear infinite !important;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.marquee-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 7rem);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--color-text-dark);
}

.marquee-dot {
    width: 28px;
    height: 28px;
    background-color: var(--color-brand-orange);
    border-radius: 50%;
    margin: 0 3rem;
    flex-shrink: 0;
}

/* STRICT SINGLE-LINE HORIZONTAL COMPANY LOGOS MARQUEE TICKER */
.logo-marquee-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    padding: 1.5rem 0 !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}

.logo-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 2rem !important;
    width: max-content !important;
    animation: logoMarquee 20s linear infinite !important;
}

@keyframes logoMarquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.logo-brand-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    gap: 0.75rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 99px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: transform 0.3s ease !important;
}

.logo-brand-pill:hover {
    transform: translateY(-3px) !important;
    border-color: var(--color-brand-orange) !important;
}

/* Hero Section */
.hero-wrapper {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}

.hero-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(238, 233, 227, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 8.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* Floating Image Container */
.hero-image-card {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(238, 233, 227, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Black Block Wrapper (Benefits, Services & FAQs) */
.black-block-wrapper {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding-top: 6rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 40;
}

/* Stacking Cards Layout */
.stacking-cards-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.stacking-card {
    background-color: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-base);
}

.stacking-card:hover {
    border-color: var(--color-brand-orange);
}

.card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-orange);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Accordion Styling (Dark Block) */
.elevate-faq-item {
    background-color: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.elevate-faq-item.active {
    border-color: var(--color-brand-orange);
}

.elevate-faq-btn {
    width: 100%;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-align: left;
    cursor: pointer;
}

.elevate-faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.elevate-faq-icon::before,
.elevate-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    transition: transform var(--transition-base);
}

.elevate-faq-icon::before {
    top: 11px; left: 0; right: 0; height: 2px;
}

.elevate-faq-icon::after {
    left: 11px; top: 0; bottom: 0; width: 2px;
}

.elevate-faq-item.active .elevate-faq-icon::after {
    transform: rotate(90deg);
}

.elevate-faq-content {
    display: none;
    padding: 0 2rem 2rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    line-height: 1.7;
}

.elevate-faq-item.active .elevate-faq-content {
    display: block;
}

/* White Block Wrapper (Work / Portfolio & Articles) */
.white-block-wrapper {
    background-color: #ffffff;
    color: var(--color-text-dark);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding-top: 7rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 50;
    margin-top: -3rem;
}

/* Portfolio Work Item */
.work-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    cursor: pointer;
}

.work-image-holder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    overflow: hidden;
}

.work-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover img {
    transform: scale(1.05);
}

/* Bold Orange Footer Block */
.orange-footer-wrapper {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding-top: 7rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 60;
    margin-top: -3rem;
}

.footer-orange-card {
    background-color: var(--color-brand-orange);
    color: var(--color-text-dark);
    border-radius: 2rem;
    padding: 4rem 3rem;
}

.footer-giant-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 10vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* MOBILE RESPONSIVE OVERHAUL */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-image-card { height: 400px; }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-box { padding: 1.5rem !important; }
    .stacking-card { padding: 1.5rem !important; }
    .footer-orange-card { padding: 2rem 1.25rem !important; }
    .hero-floating-badge { position: relative; bottom: 0; right: 0; max-width: 100%; margin-top: 1rem; }

    .live-telemetry-card {
        padding: 1.25rem 1rem !important;
        border-radius: var(--radius-md) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .engine-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .engine-tabs-wrapper {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        gap: 0.35rem !important;
    }

    .engine-tab-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 0.45rem 0.25rem !important;
        font-size: 0.75rem !important;
    }

    .live-stat-card-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding: 1rem !important;
    }

    #live-pipeline-val {
        font-size: 1.75rem !important;
    }

    #live-bookings-val {
        align-self: flex-start !important;
    }

    .live-graph-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    #live-activity-feed {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    #live-pipeline-val {
        font-size: 1.5rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .live-telemetry-card {
        padding: 1rem 0.85rem !important;
    }
}

/* Global Floating Back To Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2.2rem;
    right: 2.2rem;
    z-index: 9997;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: 2px solid var(--color-brand-orange);
    box-shadow: 0 8px 25px rgba(244,60,0,0.35);
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--color-brand-orange);
    color: #000000;
    box-shadow: 0 12px 32px rgba(244,60,0,0.55);
    transform: translateY(-4px) scale(1.08);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }

    /* Hide Loom Video Floating Badge on Mobile View as requested */
    .hero-floating-badge,
    .hide-on-mobile {
        display: none !important;
    }
}


