/* =====================================================================
   Altayseer cinematic service showcase
   Full-width crossfade carousel inspired by the current companies page.
   No horizontal track, no clones and no RTL positioning calculations.
   ===================================================================== */

.home-page .home-services-showcase-section {
    position: relative;
    overflow: hidden;
    padding: clamp(68px, 7vw, 108px) 0 0;
    background: var(--home-section-soft, #f4f7fb);
}

.home-page .service-showcase-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: clamp(28px, 3vw, 46px);
}

.home-page .service-showcase-heading > div {
  flex: 1;
    min-width: 0;
    max-width: none;}

.home-page .service-showcase-heading h2 {
    margin: 8px 0 10px;

    color: var(--home-heading, #153968);

    font-size: clamp(2.15rem, 3.25vw, 3.65rem);
    line-height: 1.14;

    white-space: nowrap;
}

.home-page .service-showcase-heading p {
    margin: 0;

    color: var(--home-muted, #6a7c8f);

    font-size: var(--home-supporting-size);
    line-height: var(--home-supporting-line-height);
}
.home-page .service-showcase {
    --service-interval: 5800ms;
    position: relative;
    width: 100%;
    height: clamp(610px, 78svh, 880px);
    min-height: 610px;
    overflow: hidden;
    isolation: isolate;
    background: #0a2442;
    color: #fff;
    outline: none;
    touch-action: pan-y;
}

.home-page .service-showcase:focus-visible {
    box-shadow: inset 0 0 0 3px #ee6623;
}

.home-page .service-showcase-slides,
.home-page .service-showcase-slide {
    position: absolute;
    inset: 0;
}

.home-page .service-showcase-slide {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 1.05s cubic-bezier(.4, 0, .2, 1),
        visibility 0s linear 1.05s;
}

.home-page .service-showcase-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.home-page .service-showcase-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.045);
    filter: saturate(.94) contrast(1.02);
    transition: transform 7.5s cubic-bezier(.2, .65, .25, 1);
}

.home-page .service-showcase-slide.is-active .service-showcase-image {
    transform: scale(1);
}

.home-page .service-showcase-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 20, 39, .08) 18%, rgba(4, 20, 39, .34) 53%, rgba(4, 20, 39, .94) 100%),
        linear-gradient(180deg, rgba(4, 20, 39, .06) 42%, rgba(4, 20, 39, .76) 100%);
}

.home-page .service-showcase[dir="ltr"] .service-showcase-shade {
    background:
        linear-gradient(270deg, rgba(4, 20, 39, .08) 18%, rgba(4, 20, 39, .34) 53%, rgba(4, 20, 39, .94) 100%),
        linear-gradient(180deg, rgba(4, 20, 39, .06) 42%, rgba(4, 20, 39, .76) 100%);
}

.home-page .service-showcase-content {
    position: absolute;
    z-index: 3;
    inset-inline-start: max(clamp(24px, 7vw, 128px), env(safe-area-inset-left));
    inset-inline-end: auto;
    bottom: max(clamp(78px, 9vh, 116px), calc(env(safe-area-inset-bottom) + 72px));
    width: min(690px, 46vw);
    text-align: start;
}

.home-page .service-showcase[dir="rtl"] .service-showcase-content {
    inset-inline-start: auto;
    inset-inline-end: max(clamp(24px, 7vw, 128px), env(safe-area-inset-right));
}

.home-page .service-showcase-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 19px;
    color: #ee6623;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-page .service-showcase-number span {
    color: rgba(255, 255, 255, .52);
}

.home-page .service-showcase-label {
    display: block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .76);
    font-size: .92rem;
    font-weight: 800;
}

.home-page .service-showcase-content h3 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 5.2vw, 6rem);
    line-height: 1.08;
    text-wrap: balance;
    text-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

.home-page .service-showcase-content p {
    max-width: 620px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.9;
}

.home-page .service-showcase-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    min-height: 54px;
    gap: 24px;
    padding: 13px 19px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(7, 32, 59, .35);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.home-page .service-showcase-action:hover,
.home-page .service-showcase-action:focus-visible {
    background: #ee6623;
    border-color: #ee6623;
    transform: translateY(-2px);
}

.home-page .service-showcase-action b {
    font-size: 1.1rem;
}

.home-page .service-showcase-footer {
    position: absolute;
    z-index: 6;
    inset-inline: max(clamp(24px, 7vw, 128px), env(safe-area-inset-left));
    bottom: max(25px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-page .service-showcase[dir="rtl"] .service-showcase-footer {
    inset-inline-start: auto;
    inset-inline-end: max(clamp(24px, 7vw, 128px), env(safe-area-inset-right));
}

.home-page .service-showcase-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-page .service-showcase-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.home-page .service-showcase-dot.is-active {
    width: 32px;
    background: #ee6623;
}

.home-page .service-showcase-progress {
    width: min(240px, 22vw);
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, .24);
}

.home-page .service-showcase-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #ee6623;
    transform: scaleX(0);
    transform-origin: left center;
}

.home-page .service-showcase[dir="rtl"] .service-showcase-progress span {
    transform-origin: right center;
}

.home-page .service-showcase.is-running .service-showcase-progress span {
    animation: serviceShowcaseProgress var(--service-interval) linear forwards;
}

.home-page .service-showcase.is-paused .service-showcase-progress span {
    animation-play-state: paused;
}

@keyframes serviceShowcaseProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

html[data-theme="dark"] .home-page .home-services-showcase-section {
    background: #081f38;
}

html[data-theme="dark"] .home-page .service-showcase-heading h2 {
    color: #fff;
}

html[data-theme="dark"] .home-page .service-showcase-heading p {
    color: #c5d4e4;
}

@media (max-width: 1200px) {
    .home-page .service-showcase-heading h2 {
        white-space: normal;
    }
}
@media (max-width: 900px) {
    .home-page .service-showcase-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .home-page .service-showcase {
        height: clamp(590px, 74svh, 760px);
        min-height: 590px;
    }

    .home-page .service-showcase-content,
    .home-page .service-showcase[dir="rtl"] .service-showcase-content {
        inset-inline: clamp(24px, 6vw, 54px);
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
        width: auto;
    }

    .home-page .service-showcase-shade,
    .home-page .service-showcase[dir="ltr"] .service-showcase-shade {
        background: linear-gradient(180deg, rgba(4, 20, 39, .08) 18%, rgba(4, 20, 39, .56) 52%, rgba(4, 20, 39, .97) 100%);
    }

    .home-page .service-showcase-footer,
    .home-page .service-showcase[dir="rtl"] .service-showcase-footer {
        inset-inline: clamp(24px, 6vw, 54px);
    }

    .home-page .service-showcase-progress {
        width: min(180px, 32vw);
    }
}

@media (max-width: 620px) {
    .home-page .home-services-showcase-section {
        padding-top: 58px;
    }

    .home-page .service-showcase-heading h2 {
        font-size: clamp(1.95rem, 10vw, 2.75rem);
    }

    .home-page .service-showcase {
        height: max(590px, 72svh);
        min-height: 590px;
    }

    .home-page .service-showcase-content,
    .home-page .service-showcase[dir="rtl"] .service-showcase-content {
        inset-inline: max(20px, env(safe-area-inset-left));
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
    }

    .home-page .service-showcase-content h3 {
        font-size: clamp(2.25rem, 12vw, 3.35rem);
        line-height: 1.12;
    }

    .home-page .service-showcase-content p {
        display: -webkit-box;
        overflow: hidden;
        margin: 16px 0 22px;
        font-size: .98rem;
        line-height: 1.75;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .home-page .service-showcase-action {
        min-width: 190px;
        min-height: 50px;
    }

    .home-page .service-showcase-footer,
    .home-page .service-showcase[dir="rtl"] .service-showcase-footer {
        inset-inline: max(20px, env(safe-area-inset-left));
        gap: 13px;
    }

    .home-page .service-showcase-progress {
        width: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .service-showcase-slide,
    .home-page .service-showcase-image,
    .home-page .service-showcase-action,
    .home-page .service-showcase-dot {
        transition: none !important;
    }

    .home-page .service-showcase-progress span {
        animation: none !important;
    }
}
