/* ════════════════════════════════════════════════════════════════
   CROWNLEAF — SPACEX AESTHETIC & APPLE LIQUID GLASS
════════════════════════════════════════════════════════════════ */

:root {
    --font-din: "D-DIN", sans-serif;
    --color-pure-white: #ffffff;
    --color-off-white: rgba(255, 255, 255, 0.98);
    --color-muted: rgba(255, 255, 255, 0.95);
    --color-pure-black: #000000;
    --color-dimmed: rgba(255, 255, 255, 0.85);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-white-50 {
    color: var(--color-dimmed) !important;
    font-weight: 500;
}

body {
    font-family: var(--font-din);
    background-color: var(--color-pure-black);
    color: var(--color-pure-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Container for 80px Margins */
.page-container {
    padding-left: 80px;
    padding-right: 80px;
    width: 100%;
    margin: 0 auto;
}

/* ─── NAVBAR & SPLIT GLASS CONTAINERS ─── */
.ui-header {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.897) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.nav-glass-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px) saturate(150%);
    -webkit-backdrop-filter: blur(2px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.brand-box {
    padding: 0;
    overflow: hidden;
    align-self: stretch;
}

.menu-box {
    padding: 8px 32px;
}

.nav-brand-logo {
    height: 96px;
    width: auto;
    display: block;
}

.ui-nav-link {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-off-white) !important;
    border-radius: 10px;
    padding: 6px 14px !important;
    border: 1px solid transparent;
    background: transparent;
    transition: var(--transition-smooth);
}

.ui-nav-link:hover,
.ui-nav-link.active {
    color: var(--color-pure-white) !important;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(1px) saturate(140%);
    -webkit-backdrop-filter: blur(1px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 4px rgba(255, 255, 255, 0.06);
}

/* ─── HERO & VIDEO ─── */
.ui-hero-section {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
}

.ui-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.ui-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Focus gradient pushing attention to content */
.ui-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(
        circle at 75% 50%,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 90%
    );
}

/* ─── LEFT COLUMN (Typography & Layout) ─── */
.ui-hero-left {
    padding-right: 5%;
}

/* Reduced Font Size per request */
.ui-hero-title {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--color-pure-white);
}

.ui-hero-tagline {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-pure-white);
    margin-bottom: 20px;
}

.ui-hero-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 550px;
    margin-bottom: 35px;
}

.ui-hero-desc-upd {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 759px;
    margin-bottom: 35px;
}

/* ─── PILLS (Liquid Glass) ─── */
.ui-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.apple-glass-pill {
    padding: 10px 22px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-off-white);
    border-radius: 50px;
    cursor: default;
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(1px) saturate(120%);
    -webkit-backdrop-filter: blur(1px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.05);
}

/* ─── BUTTONS & ANIMATED ICON ─── */
.ui-cta-container {
    display: flex;
    gap: 20px;
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.ui-btn-primary {
    background-color: var(--color-pure-white);
    color: var(--color-pure-black);
}

.ui-btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.ui-btn-glass {
    background-color: transparent;
    color: var(--color-pure-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ui-btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-pure-white);
}

/* Animated Icon on Primary Button */
.btn-with-icon svg {
    width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-with-icon:hover svg {
    width: 20px;
    opacity: 1;
    margin-left: 8px;
    transform: translateX(0);
}

/* ─── APPLE LIQUID GLASS PANEL (Right) ─── */
.apple-glass-panel {
    position: relative;
    padding: 40px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px) saturate(150%);
    -webkit-backdrop-filter: blur(1px) saturate(150%);
    /* Base structural borders for when glow isn't sweeping over */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.apple-glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.apple-glass-panel:hover::after {
    opacity: 1;
    animation: borderFlow 2s linear infinite;
}

.ui-panel-heading {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-muted);
    margin-bottom: 30px;
}

.ui-panel-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─── INSET GLASS ITEMS (Inside the panel) ─── */
.inset-glass-item {
    position: relative;
    border-radius: 16px;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-off-white);
    /* The "Sitting Inside" Effect */
    background: rgba(0, 0, 0, 0.137);
    box-shadow:
        inset 0 4px 15px rgba(0, 0, 0, 0.5),
        0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

/* ─── THE FLOWING GLOW BORDER ANIMATION ─── */
/* Using -webkit-mask composite to trace the border exactly with a gradient */
.flowing-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    /* Border thickness */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 4s linear infinite;
    pointer-events: none;
}

@keyframes borderFlow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── ANIMATIONS ─── */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    animation: scaleUpAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes scaleUpAnim {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .page-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .ui-hero-section {
        height: auto;
        min-height: 100vh;
        padding: 140px 0 80px;
    }

    .ui-hero-left {
        margin-bottom: 60px;
        padding-right: 0;
    }

    .apple-glass-panel {
        padding: 30px 20px;
    }
}

/* ════════════════════════════════════════════════════════════════
   ENGINEERING SOLUTIONS SECTION
════════════════════════════════════════════════════════════════ */

/* ─── ENGINEERING SOLUTIONS SECTION ─── */
.ui-solutions-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
    .sticky-lg {
        position: sticky !important;
        top: 120px !important;
        align-self: start !important;
        z-index: 5 !important;
    }
}

/* A heavier gradient overlay to make the UI cards pop against the video */
.ui-video-overlay-heavy {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.8) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
}

.ui-section-eyebrow {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ui-section-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-pure-white);
    margin-bottom: 20px;
}

.ui-section-subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-off-white);
    max-width: 600px;
}

/* ─── APPLE GLASS CARDS ─── */
.ui-glass-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 35px 30px;
    border-radius: 24px;
    /* Base Glass Styling */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(1px) saturate(120%);
    -webkit-backdrop-filter: blur(1px) saturate(120%);
    /* Specular Highlight Borders */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Moving Glow Edge Effect on Hover */
.ui-glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ui-glass-card:hover::after {
    opacity: 1;
    animation: borderFlow 2s linear infinite;
}

.ui-glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 5px rgba(255, 255, 255, 0.1);
}

/* ─── INSET ICON BOX ─── */
.ui-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    /* Simulating an inset cavity */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid transparent;
    box-shadow:
        inset 0 3px 10px rgba(0, 0, 0, 0.6),
        0 1px 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-muted);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.ui-glass-card:hover .ui-card-icon {
    color: var(--color-pure-white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 1px 1px rgba(255, 255, 255, 0.05);
}

/* ─── CARD TYPOGRAPHY ─── */
.ui-card-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-pure-white);
    margin-bottom: 16px;
}

.ui-card-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-muted);
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes the link to the bottom */
}

.ui-card-link {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-off-white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.ui-card-link i {
    transition: transform 0.3s ease;
}

.ui-glass-card:hover .ui-card-link {
    color: var(--color-pure-white);
}

.ui-glass-card:hover .ui-card-link i {
    transform: translateX(5px);
}

/* ─── FLOWING GLOW ON HOVER ─── */
.flowing-glow-hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.flowing-glow-hover:hover::after {
    opacity: 1;
    animation: borderFlow 2s linear infinite;
}

/* ─── INDUSTRIES SECTION ─── */
.ui-industries-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle division between dark sections */
}

/* Adjust title margin inside cards without icons to maintain visual balance */
.ui-industries-section .ui-card-title {
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════
   INDUSTRIES BENTO GRID
════════════════════════════════════════════════════════════════ */

.ui-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    /* Named areas:
     [wide]  [wide]  [tall]
     [sm-1] [sm-2]  [tall]   ← tall spans both rows on the right
     — then sm-3 fills col 3 row 2                                */
    grid-template-areas:
        "wide  wide  tall"
        "sm-1  sm-2  sm-3";
}

/* ─── Tile Placement ─── */
.ui-bento-card.bento-wide {
    grid-area: wide;
}

.ui-bento-card.bento-tall {
    grid-area: tall;
}

/* The three small tiles fill the bottom row left-to-right automatically */
.ui-bento-card:not(.bento-wide):not(.bento-tall):nth-child(3) {
    grid-area: sm-1;
}

.ui-bento-card:not(.bento-wide):not(.bento-tall):nth-child(4) {
    grid-area: sm-2;
}

.ui-bento-card:not(.bento-wide):not(.bento-tall):nth-child(5) {
    grid-area: sm-3;
}

/* ─── Base Card ─── */
.ui-bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 36px 32px;
    border-radius: 24px;
    min-height: 260px;
    /* Glass */
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(1px) saturate(130%);
    -webkit-backdrop-filter: blur(1px) saturate(130%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.04);
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.45s ease;
}

/* Moving Glow Edge Effect on Hover */
.ui-bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ui-bento-card:hover::after {
    opacity: 1;
    animation: borderFlow 2s linear infinite;
}

.ui-bento-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 6px rgba(255, 255, 255, 0.08);
}

/* Wide tile is taller */
.ui-bento-card.bento-wide {
    min-height: 300px;
}

/* Tall tile spans both rows */
.ui-bento-card.bento-tall {
    min-height: 100%;
}

/* ─── Large Ghost Number (background decoration) ─── */
.bento-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: clamp(80px, 10vw, 130px);
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.02em;
    user-select: none;
    pointer-events: none;
    transition: color 0.45s ease;
}

.ui-bento-card:hover .bento-number {
    color: rgba(255, 255, 255, 0.07);
}

/* ─── Typography ─── */
.bento-eyebrow {
    display: block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; */
    color: rgba(255, 255, 255, 0.932);
    margin-bottom: 14px;
}

.bento-title {
    font-size: clamp(22px, 2.5vw, 26px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-pure-white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.bento-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-dimmed);
    margin-bottom: 24px;
    flex-grow: 1;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dimmed);
    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.ui-bento-card:hover .bento-link {
    color: var(--color-pure-white);
    gap: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .ui-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "wide  wide"
            "tall  sm-1"
            "sm-2  sm-3";
    }
}

@media (max-width: 575px) {
    .ui-bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "wide"
            "tall"
            "sm-1"
            "sm-2"
            "sm-3";
    }

    .ui-bento-card.bento-tall {
        min-height: 260px;
    }
}

/* ─── CTA SECTION ─── */
.ui-cta-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-bg-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ui-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: kenBurns 30s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.2) translate(1%, 1%);
    }
}

/* Base overlay for background images */
.ui-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.527) 0%,
            rgba(0, 0, 0, 0.397) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.575) 0%,
            rgba(0, 0, 0, 0.699) 100%
        );
}

/* Deep overlay to make the glass panel stand out against the background image */
.ui-image-overlay-heavy {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.678) 0%,
            rgba(0, 0, 0, 0.95) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.815) 50%,
            rgba(0, 0, 0, 0.95) 100%
        );
}

.ui-cta-card {
    padding: 80px 40px;
}

.ui-cta-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-pure-white);
}

.ui-cta-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-off-white);
    max-width: 700px;
}

/* Responsive adjustments for the CTA card */
@media (max-width: 767px) {
    .ui-cta-card {
        padding: 50px 20px;
    }
}

/* ─── FOOTER SECTION ─── */
.ui-footer {
    background-color: var(--color-pure-black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-brand-logo {
    height: 120px;
    width: auto;
    display: block;
    align-self: flex-start;
}

.ui-footer-heading {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-pure-white);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.ui-footer-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-muted);
}

.ui-footer-link {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.ui-footer-link:hover {
    color: var(--color-pure-white);
}

.fs-xs {
    font-size: 18px !important;
}

/* ─── SOCIAL ICONS (Glass Hover Effect) ─── */
.ui-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-off-white);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.ui-social-icon:hover {
    background: var(--color-pure-white);
    color: var(--color-pure-black);
    border-color: var(--color-pure-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* ════════════════════════════════════════════════════════════════
   CLIENTS & PARTNERSHIPS SECTION
════════════════════════════════════════════════════════════════ */

.ui-clients-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-testimonial-quote {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    /* Simulating the hanging indent for quotes */
    text-indent: -0.4em;
}

/* ─── SMOOTH TICKER STYLES ─── */
.ui-ticker-container {
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    width: 100%;
}

.ui-ticker-container.is-dragging {
    cursor: grabbing;
}

.ui-ticker-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content;
    will-change: transform;
}

.ui-ticker-item {
    flex: 0 0 auto;
    /* Width will be set via JS to match container width */
    padding-right: 24px;
    /* Optional gap between "slides" */
}

.ui-ticker-container .ui-glass-card {
    transition:
        background 0.4s ease,
        box-shadow 0.4s ease;
}

/* Default hero content padding */
.ui-hero-content {
    padding-top: 10px;
}

/* ─── GLOBAL MOBILE RESPONSIVENESS ─── */
@media (max-width: 767px) {
    .page-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ui-solutions-section,
    .ui-industries-section {
        padding: 60px 0 !important;
    }

    .ui-industries-section-upd {
        padding: 30px 0;
    }

    .ui-hero-section {
        padding-top: 100px !important;
        min-height: auto !important;
    }

    .ui-hero-content {
        padding-top: 10px !important;
    }

    .ui-cta-card {
        padding: 40px 20px !important;
    }

    .ui-cta-container {
        flex-wrap: wrap;
    }

    .ui-btn {
        padding: 12px 24px !important;
        font-size: 18px !important;
    }

    .ui-bento-card {
        padding: 24px 20px !important;
    }

    .ui-glass-card {
        padding: 24px 20px !important;
    }

    .apple-glass-pill {
        font-size: 18px !important;
        padding: 8px 14px !important;
    }

    .ui-section-title {
        font-size: 32px !important;
    }

    .sticky-lg {
        position: static !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   SCROLL-LINKED SCHEMATIC BACKGROUND
════════════════════════════════════════════════════════════════ */
.ui-schematic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Keeps it behind video overlays and content */
    pointer-events: none;
    opacity: 0.15;
    /* Subtle ghost-like appearance */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-schematic-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schematic-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Glow effect for the drawing line */
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.8));
}

/* Additional Styles */

.client-page.py-5 {
    padding-top: 5.5rem !important;
}

.ui-section-subtitle-upd {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-off-white);
}

/* Additional Styles */
