/**
 * Xeosol Portfolio — hub + case study pages (scoped under .xeosol-portfolio)
 */

.xeosol-portfolio {
    --xeo-navy: #07182F;
    --xeo-navy-mid: #0E2342;
    --xeo-orange: #F5A623;
    --xeo-orange-dark: #e09410;
    --xeo-surface: #F5F7FB;
    --xeo-text: #0f1a2e;
    --xeo-muted: #5a6778;
    --xeo-border: rgba(15, 26, 46, 0.08);
    --xeo-shadow: 0 8px 32px rgba(7, 24, 47, 0.08);
    --xeo-shadow-lg: 0 20px 48px rgba(7, 24, 47, 0.12);
    --xeo-radius: 12px;
    --xeo-radius-lg: 16px;
    --xeo-site-header-h: 118px;
    --xf-max: 1120px;
    overflow-x: hidden;
}

.xeosol-portfolio * { box-sizing: border-box; }

html:has(.xeosol-portfolio) { scroll-behavior: smooth; }

.page-wrapper:has(.xeosol-portfolio) .main-footer { margin-top: 0; }

.page-wrapper:has(.xeosol-portfolio) .main-header.header-style-four .header-lower {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-wrapper:has(.xeosol-portfolio) .main-header.header-style-four .main-menu .navigation > li > a {
    color: rgba(255, 255, 255, 0.88);
}
.page-wrapper:has(.xeosol-portfolio) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-portfolio) .main-header.header-style-four .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange);
}
.page-wrapper:has(.xeosol-portfolio:not(.xeosol-portfolio--past-hero)) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-portfolio:not(.xeosol-portfolio--past-hero)) .sticky-header .site-logo--light { display: block; }
.page-wrapper:has(.xeosol-portfolio:not(.xeosol-portfolio--past-hero)) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-portfolio:not(.xeosol-portfolio--past-hero)) .sticky-header .site-logo--dark { display: none; }
.page-wrapper:has(.xeosol-portfolio) .sticky-header.fixed-header {
    background: rgba(7, 24, 47, 0.98);
    backdrop-filter: blur(12px);
}

.page-wrapper:has(.xeosol-portfolio--past-hero) .main-header.header-style-four .header-lower {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--xeo-border);
}
.page-wrapper:has(.xeosol-portfolio--past-hero) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-portfolio--past-hero) .sticky-header .site-logo--light { display: none; }
.page-wrapper:has(.xeosol-portfolio--past-hero) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-portfolio--past-hero) .sticky-header .site-logo--dark { display: block; }
.page-wrapper:has(.xeosol-portfolio--past-hero) .main-header.header-style-four .main-menu .navigation > li > a,
.page-wrapper:has(.xeosol-portfolio--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a {
    color: var(--xeo-text);
}
.page-wrapper:has(.xeosol-portfolio--past-hero) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-portfolio--past-hero) .main-header.header-style-four .main-menu .navigation > li > a:hover,
.page-wrapper:has(.xeosol-portfolio--past-hero) .sticky-header.fixed-header .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-portfolio--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange-dark);
}
.page-wrapper:has(.xeosol-portfolio--past-hero) .sticky-header.fixed-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--xeo-border);
}

.xf-shell {
    width: 100%;
    max-width: var(--xf-max);
    margin: 0 auto;
    padding: 0 24px;
}

.xf-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--xeo-text);
    margin: 0 0 16px;
}

.xf-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--xeo-muted);
    margin: 0;
}

.xf-lead--light { color: rgba(255, 255, 255, 0.72); }

.xf-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--xeo-orange);
    margin-bottom: 14px;
}

.xf-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.xf-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.xf-reveal.is-visible { opacity: 1; transform: none; }

.xf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xeo-orange) 0%, var(--xeo-orange-dark) 100%);
    color: var(--xeo-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xf-btn-primary:hover {
    color: var(--xeo-navy);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.xf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.xf-btn-ghost:hover {
    color: #fff;
    text-decoration: none;
    border-color: rgba(245, 166, 35, 0.5);
    background: rgba(245, 166, 35, 0.08);
}

.xf-btn-ghost--dark {
    border-color: rgba(15, 26, 46, 0.15);
    color: var(--xeo-text);
}
.xf-btn-ghost--dark:hover {
    color: var(--xeo-text);
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.06);
}

/* Hero */
.xf-hero {
    position: relative;
    padding: calc(var(--xeo-site-header-h) + 48px) 0 88px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(147, 197, 253, 0.06) 0%, transparent 38%),
        radial-gradient(ellipse 54% 58% at 78% 44%, rgba(59, 154, 230, 0.22) 0%, transparent 62%),
        radial-gradient(ellipse 46% 42% at 10% 88%, rgba(245, 166, 35, 0.08) 0%, transparent 55%),
        linear-gradient(168deg, #040810 0%, #07182f 48%, #0e2342 100%);
}

.xf-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: xf-float 8s ease-in-out infinite;
}
.xf-hero__orb--1 { width: 400px; height: 400px; background: rgba(59, 154, 230, 0.22); top: -6%; right: -4%; }
.xf-hero__orb--2 { width: 280px; height: 280px; background: rgba(245, 166, 35, 0.1); bottom: 8%; left: -6%; animation-delay: -3s; }

@keyframes xf-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.04); }
}

.xf-hero__inner { position: relative; z-index: 2; max-width: 820px; }

.xf-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

.xf-hero__badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--xeo-orange);
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.55);
}

.xeosol-portfolio .xf-hero .xf-hero__title {
    font-size: clamp(2.25rem, 4.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.038em;
    margin: 0 0 22px;
    color: #fff;
}

.xeosol-portfolio .xf-hero .xf-hero__title-line {
    display: block;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 0.12em;
}

.xeosol-portfolio .xf-hero .xf-hero__title em {
    display: block;
    font-style: normal;
    font-size: 0.92em;
    font-weight: 700;
    background: linear-gradient(90deg, #ffe8b8 0%, var(--xeo-orange) 35%, #ffd56a 55%, #7ec8f0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.xf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.xf-hero--detail {
    background:
        linear-gradient(180deg, rgba(7, 24, 47, 0.78) 0%, rgba(7, 24, 47, 0.92) 100%),
        var(--xf-hero-image, linear-gradient(168deg, #040810 0%, #07182f 48%, #0e2342 100%));
    background-size: cover;
    background-position: center;
}

.xf-hero__logo {
    max-width: min(400px, 80%);
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 24px;
    opacity: 0.95;
}

.xf-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}
.xf-crumbs a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.xf-crumbs a:hover { color: var(--xeo-orange); }

/* Filters */
.xf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.xf-filters a {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--xeo-muted);
    border: 1px solid var(--xeo-border);
    background: #fff;
    transition: all 0.2s ease;
}
.xf-filters a:hover,
.xf-filters a.is-active {
    color: var(--xeo-navy);
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.08);
}

/* Integration expertise */
.xf-integrations {
    position: relative;
    padding: 88px 0 96px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(7, 24, 47, 0) 0%, rgba(7, 24, 47, 0.4) 100%),
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 62%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(59, 154, 230, 0.1) 0%, transparent 55%),
        var(--xeo-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.xf-integrations__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.xf-integrations__orb--1 {
    width: 320px;
    height: 320px;
    background: rgba(245, 166, 35, 0.1);
    top: -8%;
    left: -4%;
}
.xf-integrations__orb--2 {
    width: 280px;
    height: 280px;
    background: rgba(59, 154, 230, 0.12);
    bottom: -10%;
    right: -6%;
}

.xf-integrations .xf-shell { position: relative; z-index: 1; }

.xf-section-head--light .xf-heading--light { color: #fff; }

.xf-integrations__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.xf-integ-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 156px;
    padding: 24px 16px 22px;
    border-radius: var(--xeo-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.xf-integ-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--xeo-orange), #ffd56a);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.xf-integ-card:hover {
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.07);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.xf-integ-card:hover::after { transform: scaleX(1); }

.xf-integ-card--static { cursor: default; }
.xf-integ-card--static:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.xf-integ-card--static:hover::after { transform: scaleX(0); }

.xf-integ-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.22);
    color: var(--xeo-orange);
    font-size: 22px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.xf-integ-card:hover .xf-integ-card__icon {
    background: rgba(245, 166, 35, 0.18);
    border-color: rgba(245, 166, 35, 0.4);
    transform: scale(1.05);
}

.xf-integ-card__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
}

/* Grid */
.xf-grid-section { padding: 80px 0; background: #fff; }
.xf-grid-section--alt { background: var(--xeo-surface); }

.xf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xf-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--xeo-border);
    border-radius: var(--xeo-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--xeo-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.xf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xeo-shadow-lg);
    border-color: rgba(245, 166, 35, 0.35);
    text-decoration: none;
    color: inherit;
}

.xf-card--static {
    cursor: default;
}
.xf-card--static:hover {
    transform: none;
    box-shadow: var(--xeo-shadow);
    border-color: var(--xeo-border);
}

.xf-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--xeo-navy-mid);
    overflow: hidden;
}
.xf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.xf-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.xf-card__tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xeo-orange-dark);
    margin-bottom: 8px;
}

.xf-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--xeo-navy); margin: 0 0 8px; }
.xf-card p { font-size: 14px; line-height: 1.55; color: var(--xeo-muted); margin: 0 0 16px; flex: 1; }

.xf-card__link { font-size: 13px; font-weight: 700; color: var(--xeo-orange-dark); }

/* Marketing gallery — masonry collage, 2 per row */
.xf-gallery {
    column-count: 2;
    column-gap: 16px;
}

.xf-gallery__item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--xeo-radius);
    border: 1px solid var(--xeo-border);
    background: #fff;
    overflow: hidden;
    line-height: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xf-gallery__item:hover {
    border-color: rgba(245, 166, 35, 0.35);
    box-shadow: var(--xeo-shadow);
}

.xf-gallery__item a {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.xf-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    transition: transform 0.45s ease;
    transform-origin: center center;
}

.xf-gallery__item:hover img {
    transform: scale(1.3);
}

/* Detail sections */
.xf-overview { padding: 80px 0; background: #fff; }

.xf-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.xf-metrics__item {
    padding: 22px 18px;
    text-align: center;
    border-radius: var(--xeo-radius);
    background: var(--xeo-surface);
    border: 1px solid var(--xeo-border);
}

.xf-metrics__item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--xeo-navy);
    margin-bottom: 4px;
}
.xf-metrics__item span { font-size: 12px; color: var(--xeo-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.xf-highlights { padding: 80px 0; background: var(--xeo-surface); }

.xf-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.xf-highlights__card {
    padding: 24px 22px;
    border-radius: var(--xeo-radius-lg);
    background: #fff;
    border: 1px solid var(--xeo-border);
    box-shadow: var(--xeo-shadow);
}

.xf-highlights__card i {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(245, 166, 35, 0.12);
    color: var(--xeo-orange-dark);
    font-size: 18px;
    margin-bottom: 14px;
}

.xf-highlights__card h3 { font-size: 1rem; font-weight: 700; color: var(--xeo-navy); margin: 0 0 8px; }
.xf-highlights__card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--xeo-muted); }

.xf-content { padding: 80px 0; background: #fff; }

.xf-content__block { margin-bottom: 40px; }
.xf-content__block:last-child { margin-bottom: 0; }

.xf-content__block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 0 0 16px;
}

.xf-content__block p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--xeo-muted);
    margin: 0 0 14px;
}

.xf-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.xf-bullets li {
    padding: 14px 16px 14px 42px;
    background: var(--xeo-surface);
    border-radius: 10px;
    border: 1px solid var(--xeo-border);
    font-size: 15px;
    line-height: 1.5;
    color: var(--xeo-text);
    position: relative;
}

.xf-bullets li::before {
    content: "";
    position: absolute;
    left: 16px; top: 20px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--xeo-orange);
}

.xf-bullets strong { display: block; margin-bottom: 2px; color: var(--xeo-navy); }

.xf-shot {
    margin-top: 32px;
    border-radius: var(--xeo-radius-lg);
    overflow: hidden;
    border: 1px solid var(--xeo-border);
    box-shadow: var(--xeo-shadow-lg);
}
.xf-shot img { width: 100%; height: auto; display: block; }

.xf-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.xf-tech span {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--xeo-navy);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.xf-related { padding: 80px 0; background: var(--xeo-surface); }

.xf-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.xf-related__card {
    display: block;
    padding: 20px 18px;
    border-radius: var(--xeo-radius);
    background: #fff;
    border: 1px solid var(--xeo-border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.xf-related__card:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.xf-related__card span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--xeo-orange-dark); margin-bottom: 6px; }
.xf-related__card strong { font-size: 1rem; color: var(--xeo-navy); }

.xf-cta {
    padding: 72px 0;
    background: var(--xeo-navy);
    text-align: center;
}
.xf-cta .xf-heading { color: #fff; }
.xf-cta .xf-lead { color: rgba(255, 255, 255, 0.65); max-width: 560px; margin: 0 auto 28px; }
.xf-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.xf-link { color: var(--xeo-orange-dark); font-weight: 700; text-decoration: none; }
.xf-link:hover { text-decoration: underline; color: var(--xeo-orange); }

@media (max-width: 991px) {
    .xf-grid, .xf-highlights__grid, .xf-related__grid { grid-template-columns: 1fr 1fr; }
    .xf-integrations__grid { grid-template-columns: repeat(3, 1fr); }
    .xf-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .xf-hero { padding-top: calc(var(--xeo-site-header-h) + 32px); }
    .xf-grid, .xf-highlights__grid, .xf-related__grid { grid-template-columns: 1fr; }
    .xf-integrations__grid { grid-template-columns: repeat(2, 1fr); }
    .xf-integ-card { min-height: 140px; padding: 20px 12px; }
}
