/* ==========================================================================
   OOTE Sliders - Premium animated slider for the intro landing page
   ========================================================================== */

.oote-sliders {
    position: relative;
    width: 100%;
    background-color: var(--oote-bg);
    overflow: hidden;
}

.oote-slider {
    position: relative;
    width: 100%;
    height: clamp(540px, 82vh, 800px);
    overflow: hidden;
    isolation: isolate;
    background-color: #05070d;
}

/* --------------------------------------------------------------------------
   Track & Slides
   -------------------------------------------------------------------------- */
.oote-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transform: translateX(0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.oote-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.oote-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.oote-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.oote-slide.is-active .oote-slide-image {
    animation: ooteSliderKenBurns 9s ease-out forwards;
}

@keyframes ooteSliderKenBurns {
    0% {
        transform: scale(1.02) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.16) translate3d(0, -1.6%, 0);
    }
}

/* --------------------------------------------------------------------------
   Overlay / Shade
   -------------------------------------------------------------------------- */
.oote-slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(3, 8, 18, 0.94) 0%, rgba(3, 8, 18, 0.62) 34%, rgba(3, 8, 18, 0.28) 66%, rgba(3, 8, 18, 0.55) 100%);
}

.oote-slide-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(3, 8, 18, 0.92) 0%, rgba(3, 8, 18, 0.5) 46%, rgba(3, 8, 18, 0) 78%);
}

html[dir="rtl"] .oote-slide-shade::after {
    background: linear-gradient(to left, rgba(3, 8, 18, 0.92) 0%, rgba(3, 8, 18, 0.5) 46%, rgba(3, 8, 18, 0) 78%);
}

/* Floating glow orbs for depth */
.oote-slide-orb {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.65;
}

.oote-slide-orb--one {
    width: 460px;
    height: 460px;
    top: -8%;
    inset-inline-end: -6%;
    background: radial-gradient(circle, rgba(245, 185, 33, 0.35) 0%, transparent 70%);
    animation: ooteSliderOrb 12s ease-in-out infinite alternate;
}

.oote-slide-orb--two {
    width: 380px;
    height: 380px;
    bottom: -12%;
    inset-inline-start: -4%;
    background: radial-gradient(circle, rgba(217, 155, 8, 0.25) 0%, transparent 70%);
    animation: ooteSliderOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes ooteSliderOrb {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(4%, -6%, 0) scale(1.15);
    }
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.oote-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.oote-slide-inner {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.oote-slide-copy {
    max-width: 660px;
    text-align: right;
}

html[dir="ltr"] .oote-slide-copy {
    text-align: left;
}

.oote-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 1.1rem 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
}

html[dir="rtl"] .oote-slide-kicker {
    padding: 0.4rem 0.9rem 0.4rem 1.1rem;
}

.oote-slide-kicker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #F5B921;
    box-shadow: 0 0 0 0 rgba(245, 185, 33, 0.7);
    animation: ooteSliderPulse 2.2s ease-out infinite;
}

@keyframes ooteSliderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 185, 33, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(245, 185, 33, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 185, 33, 0);
    }
}

.oote-slide-title {
    color: #FFFFFF;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.oote-slide-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.9;
    margin: 0 0 2rem;
    max-width: 620px;
}

.oote-slide-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.oote-slider-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    color: #FFFFFF !important;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.3s ease;
}

.oote-slider-cta i {
    font-size: 1.15rem;
}

.oote-slider-cta::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    inset-inline-start: -70%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transition: inset-inline-start 0.65s ease;
}

.oote-slider-cta:hover::before {
    inset-inline-start: 110%;
}

.oote-slider-cta:hover {
    transform: translateY(-3px);
}

.oote-slider-cta--apple {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.oote-slider-cta--apple:hover {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.oote-slider-cta--google {
    background: linear-gradient(90deg, #F5B921 0%, #D99B08 100%);
    color: #060403 !important;
    font-weight: 700;
    border: 1px solid rgba(245, 185, 33, 0.4);
    box-shadow: 0 12px 30px rgba(245, 185, 33, 0.4);
}

.oote-slider-cta--google:hover {
    box-shadow: 0 18px 42px rgba(245, 185, 33, 0.55);
    color: #060403 !important;
}

/* --------------------------------------------------------------------------
   Entrance animations (only applied once JS marks the slider as animated)
   -------------------------------------------------------------------------- */
.oote-slide-title .oote-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
}

.oote-slider.is-animated .oote-slide-kicker,
.oote-slider.is-animated .oote-slide-text,
.oote-slider.is-animated .oote-slide-actions {
    opacity: 0;
    transform: translateY(30px);
}

.oote-slider.is-animated .oote-slide-title {
    opacity: 0;
}

.oote-slider.is-animated .oote-slide-title .oote-word-inner {
    transform: translateY(115%);
}

.oote-slider.is-animated .oote-slide.is-active .oote-slide-kicker {
    animation: ooteSliderUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.oote-slider.is-animated .oote-slide.is-active .oote-slide-title {
    animation: ooteSliderFade 0.6s ease 0.2s forwards;
}

.oote-slider.is-animated .oote-slide.is-active .oote-slide-title .oote-word-inner {
    animation: ooteSliderWordUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.25s + var(--i, 0) * 0.06s);
}

.oote-slider.is-animated .oote-slide.is-active .oote-slide-text {
    animation: ooteSliderUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.oote-slider.is-animated .oote-slide.is-active .oote-slide-actions {
    animation: ooteSliderUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.62s forwards;
}

@keyframes ooteSliderUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ooteSliderFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ooteSliderWordUp {
    from {
        transform: translateY(115%);
    }

    to {
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Arrows
   -------------------------------------------------------------------------- */
.oote-slider-controls {
    position: absolute;
    z-index: 5;
    inset-inline-end: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oote-slider-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.oote-slider-arrow:hover {
    background-color: #F5B921;
    border-color: #F5B921;
    color: #060403;
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(245, 185, 33, 0.45);
}

.oote-slider-arrow:focus-visible {
    outline: 2px solid #F5B921;
    outline-offset: 3px;
}

/* Mirror the arrows in RTL so they always point to the travel direction */
html[dir="rtl"] .oote-slider-arrow i {
    transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Dots / Counter / Play-pause
   -------------------------------------------------------------------------- */
.oote-slider-bottom {
    position: absolute;
    z-index: 5;
    inset-inline: 24px;
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.oote-slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.oote-slider-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.oote-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.oote-slider-dot.is-active {
    width: 40px;
    background-color: #FFFFFF;
    box-shadow: 0 0 18px rgba(245, 185, 33, 0.65);
}

.oote-slider-dot:focus-visible {
    outline: 2px solid #F5B921;
    outline-offset: 3px;
}

.oote-slider-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.oote-slider-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    direction: ltr;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.oote-slider-counter-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
}

.oote-slider-counter-sep {
    opacity: 0.5;
}

.oote-slider-counter-total {
    opacity: 0.65;
}

.oote-slider-playpause {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s ease;
}

.oote-slider-playpause:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

.oote-slider-icon-play {
    display: none;
}

.oote-slider.is-paused .oote-slider-icon-pause {
    display: none;
}

.oote-slider.is-paused .oote-slider-icon-play {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Progress bar
   -------------------------------------------------------------------------- */
.oote-slider-progress {
    position: absolute;
    z-index: 5;
    inset-inline: 0;
    bottom: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.14);
}

.oote-slider-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #F5B921 0%, #D99B08 100%);
}

html[dir="rtl"] .oote-slider-progress-bar {
    transform-origin: right center;
}

.oote-slider-progress-bar.is-running {
    animation: ooteSliderProgress var(--oote-slider-duration, 6500ms) linear forwards;
}

/* Freeze the progress bar while hovering / paused / tab in background */
.oote-slider.is-paused .oote-slider-progress-bar,
.oote-slider.is-hovered .oote-slider-progress-bar,
.oote-slider.is-hidden .oote-slider-progress-bar {
    animation-play-state: paused;
}

@keyframes ooteSliderProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .oote-slider-controls {
        inset-inline-end: 18px;
    }

    .oote-slider-arrow {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767.98px) {
    .oote-slider {
        height: clamp(500px, 88vh, 640px);
    }

    .oote-slide-copy {
        max-width: 100%;
    }

    .oote-slide-title {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
    }

    .oote-slide-text {
        font-size: 0.98rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .oote-slider-cta {
        padding: 0.7rem 1.15rem;
        font-size: 0.88rem;
    }

    .oote-slider-controls {
        inset-inline-end: 12px;
        gap: 8px;
    }

    .oote-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .oote-slider-bottom {
        inset-inline: 16px;
        bottom: 18px;
    }
}

@media (max-width: 575.98px) {
    .oote-slide-actions {
        gap: 10px;
    }

    .oote-slider-cta span {
        font-size: 0.82rem;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    .oote-slide.is-active .oote-slide-image,
    .oote-slide-orb,
    .oote-slide-kicker-dot,
    .oote-slider.is-animated .oote-slide.is-active .oote-slide-kicker,
    .oote-slider.is-animated .oote-slide.is-active .oote-slide-title,
    .oote-slider.is-animated .oote-slide.is-active .oote-slide-title .oote-word-inner,
    .oote-slider.is-animated .oote-slide.is-active .oote-slide-text,
    .oote-slider.is-animated .oote-slide.is-active .oote-slide-actions {
        animation: none !important;
    }

    .oote-slider.is-animated .oote-slide-kicker,
    .oote-slider.is-animated .oote-slide-text,
    .oote-slider.is-animated .oote-slide-actions,
    .oote-slider.is-animated .oote-slide-title,
    .oote-slider.is-animated .oote-slide-title .oote-word-inner {
        opacity: 1 !important;
        transform: none !important;
    }
}
