:root {
    --mvr-blue: #40B5AD;
    --mvr-dark: #0B1F3A;
    --mvr-height: clamp(520px, 72vh, 720px);
}

.mvr-slider, .mvr-slider * { box-sizing: border-box; }

.mvr-slider {
    position: relative;
    min-height: var(--mvr-height);
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #0B1F3A;
}

.mvr-rounded { border-radius: 32px; }

.mvr-track, .mvr-slide, .mvr-content { min-height: var(--mvr-height); }

.mvr-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 1.2s ease, filter 1s ease;
}

.mvr-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.mvr-bg {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: background-image 0.3s ease;
    z-index: 1;
}

.mvr-kenburns {
    animation: mvrKen 12s ease-in-out infinite alternate;
}

@keyframes mvrKen {
    from { transform: scale(1.02); }
    to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.mvr-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 35%, rgba(255, 153, 0, 0.35), transparent 28%),
                linear-gradient(90deg, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.68), rgba(0, 51, 102, 0.28));
}

.mvr-theme-clean-light .mvr-gradient {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22));
}

.mvr-theme-dark-luxury .mvr-gradient {
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15), transparent 24%),
                radial-gradient(circle at 20% 80%, rgba(255, 153, 0, 0.34), transparent 26%),
                linear-gradient(90deg, rgba(0, 34, 68, 0.94), rgba(0, 51, 102, 0.72), rgba(0, 34, 68, 0.55));
}

.mvr-content {
    position: relative;
    z-index: 5;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(90px, 10vw, 150px) 24px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mvr-align-left .mvr-content { align-items: flex-start; text-align: left; }
.mvr-align-center .mvr-content { align-items: center; text-align: center; }
.mvr-align-right .mvr-content { align-items: flex-end; text-align: right; }

.mvr-kicker {
    display: inline-flex;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    backdrop-filter: blur(14px);
}

.mvr-theme-clean-light .mvr-kicker {
    color: var(--mvr-blue);
    background: rgba(255, 153, 0, 0.08);
    border-color: rgba(255, 153, 0, 0.18);
}

.mvr-content h2 {
    max-width: 900px;
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(38px, 6vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.mvr-content h2 span { color: #D9A441; }

.mvr-theme-clean-light .mvr-content h2 { color: var(--mvr-dark); }

.mvr-subtitle {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.62;
}

.mvr-theme-clean-light .mvr-subtitle { color: #475569; }

.mvr-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.mvr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mvr-btn:hover {
    transform: translateY(-2px);
}

.mvr-btn-primary {
    color: #0B1F3A;
    background: #D9A441;
    box-shadow: 0 18px 42px rgba(255, 153, 0, 0.32);
}

.mvr-btn-primary:hover {
    background: #B7831F;
}

.mvr-btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.mvr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.mvr-stats span {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(16px);
}

/* Shapes */
.mvr-shape {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.mvr-shape-orb {
    width: clamp(220px, 30vw, 460px);
    height: clamp(220px, 30vw, 460px);
    right: 8%;
    top: 18%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.26), rgba(255, 153, 0, 0.18), transparent 62%);
    animation: mvrFloat 7s ease-in-out infinite;
}

.mvr-shape-grid {
    width: 360px;
    height: 360px;
    right: 8%;
    top: 22%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle, #000, transparent 72%);
    animation: mvrFloat 8s ease-in-out infinite;
}

.mvr-shape-wave {
    width: 520px;
    height: 220px;
    right: 2%;
    bottom: 10%;
    border-radius: 60% 40% 50% 50%;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.3), rgba(255, 255, 255, 0.12));
    transform: rotate(-8deg);
    animation: mvrFloat 9s ease-in-out infinite;
}

@keyframes mvrFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-18px) rotate(2deg); }
}

[data-mvr-layer] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-active [data-mvr-layer] {
    opacity: 1;
    transform: translateY(0);
}

/* Transitions */
.mvr-transition-slide .mvr-slide { transform: translateX(5%); }
.mvr-transition-slide .mvr-slide.is-active { transform: translateX(0); }

.mvr-transition-zoom .mvr-slide { transform: scale(1.1); }

.mvr-transition-cinematic .mvr-slide {
    transform: scale(1.08) rotate(0.4deg);
    filter: blur(2px);
}
.mvr-transition-cinematic .mvr-slide.is-active {
    transform: scale(1);
    filter: blur(0);
}

/* Controls */
.mvr-arrow {
    position: absolute;
    z-index: 20;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    cursor: pointer;
    font-size: 34px;
    transition: all 0.2s ease;
}

.mvr-arrow:hover {
    background: rgba(255, 153, 0, 0.8);
    border-color: #D9A441;
}

.mvr-prev { left: 24px; }
.mvr-next { right: 24px; }

.mvr-dots {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.mvr-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: 0.2s ease;
}

.mvr-dots button.is-active {
    width: 34px;
    background: #D9A441;
}

.mvr-progress {
    position: absolute;
    z-index: 22;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.16);
}

.mvr-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #D9A441;
}

.mvr-progress.is-running span {
    animation: mvrProgress var(--mvr-interval, 6500ms) linear forwards;
}

@keyframes mvrProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Particles */
.mvr-particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.55;
}

/* Carousel type */
.mvr-type-carousel .mvr-slide {
    padding: 24px;
}

.mvr-type-carousel .mvr-bg,
.mvr-type-carousel .mvr-gradient {
    border-radius: 32px;
    inset: 24px;
}

/* Enterprise responsive foundation */
.mvr-slider,
.mvr-track,
.mvr-slide,
.mvr-content { min-height: var(--mvr-height); }

.mvr-content { width: min(100%, 1240px); }

@media (max-width: 1024px) {
    :root { --mvr-height: clamp(500px, 70vh, 680px); }
    .mvr-content { padding: clamp(76px, 10vw, 110px) 28px 76px; }
    .mvr-content h2 { font-size: clamp(36px, 7vw, 64px); }
    .mvr-shape-grid { width: 280px; height: 280px; background-size: 28px 28px; }
}

@media (max-width: 768px) {
    :root { --mvr-height: clamp(500px, 78svh, 620px); }
    .mvr-content {
        padding: 76px 22px 78px;
        justify-content: center;
    }
    .mvr-content h2 {
        max-width: 100%;
        margin: 18px 0 14px;
        font-size: clamp(32px, 9vw, 54px);
        line-height: 1.03;
        letter-spacing: -0.04em;
    }
    .mvr-subtitle { max-width: 100%; font-size: clamp(16px, 2.7vw, 19px); line-height: 1.55; }
    .mvr-buttons { width: 100%; gap: 10px; margin-top: 24px; }
    .mvr-btn { min-height: 48px; padding: 0 20px; }
    .mvr-stats { width: 100%; margin-top: 24px; }
    .mvr-stats span { flex: 1 1 160px; }
    .mvr-arrow { width: 46px; height: 46px; font-size: 26px; }
    .mvr-prev { left: 14px; }
    .mvr-next { right: 14px; }
    .mvr-shape-orb { width: 240px; height: 240px; right: -40px; top: 12%; }
    .mvr-shape-grid { width: 220px; height: 220px; right: -25px; top: 18%; }
    .mvr-shape-wave { width: 300px; height: 150px; right: -50px; bottom: 6%; }
}

@media (max-width: 600px) {
    :root { --mvr-height: clamp(500px, 82svh, 600px); }
    .mvr-content { padding: 68px 18px 70px; }
    .mvr-kicker { max-width: 100%; padding: 8px 11px; font-size: 10px; letter-spacing: .1em; }
    .mvr-content h2 { font-size: clamp(30px, 9.5vw, 46px); }
    .mvr-subtitle { font-size: 16px; }
    .mvr-buttons { display: grid; grid-template-columns: 1fr; }
    .mvr-btn { width: 100%; min-height: 46px; }
    .mvr-stats { display: grid; grid-template-columns: 1fr; }
    .mvr-stats span { width: 100%; }
    .mvr-dots { bottom: 18px; gap: 8px; }
    .mvr-dots button { width: 10px; height: 10px; min-width: 10px; }
    .mvr-dots button.is-active { width: 26px; }
    .mvr-progress { height: 3px; }
    .mvr-shape { opacity: .28; }
}

@media (max-width: 420px) {
    :root { --mvr-height: clamp(480px, 84svh, 570px); }
    .mvr-content { padding-inline: 15px; }
    .mvr-content h2 { font-size: clamp(28px, 9.5vw, 40px); }
    .mvr-subtitle { font-size: 15px; line-height: 1.5; }
    .mvr-btn { font-size: 14px; padding-inline: 15px; }
    .mvr-arrow { width: 42px; height: 42px; font-size: 23px; }
}

@media (orientation: landscape) and (max-height: 520px) {
    :root { --mvr-height: 460px; }
    .mvr-content { padding-block: 42px; }
    .mvr-content h2 { font-size: clamp(28px, 6vw, 44px); margin-block: 12px; }
    .mvr-subtitle { font-size: 15px; }
    .mvr-buttons { margin-top: 16px; }
    .mvr-stats { margin-top: 14px; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .mvr-arrow {
        display: flex;
        width: 44px;
        height: 44px;
        font-size: 28px;
        opacity: 0.7;
    }
    .mvr-dots button {
        width: 8px;
        height: 8px;
    }
    .mvr-dots button.is-active {
        width: 24px;
    }
}

/* =========================================================
   MOVIXIT REAL SERVICE IMAGE UPGRADE - FIXED PATHS
   ========================================================= */
.mvr-slider {
    background: #07152A;
}

.mvr-slide.mvr-service-flight .mvr-bg,
.mvr-bg.mvr-service-flight,
.mvr-bg-flight {
    background-image: url('../assets/images/slider/movixit-flight-airport.jpg');
    background-position: center center;
}

.mvr-slide.mvr-service-airport .mvr-bg,
.mvr-bg.mvr-service-airport,
.mvr-bg-airport {
    background-image:
        linear-gradient(rgba(0, 25, 55, .45),
            rgba(0, 25, 55, .58)),
        url('../assets/images/slider/movixit-airport-travelers.jpg');
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.mvr-slide.mvr-service-tourism .mvr-bg,
.mvr-bg.mvr-service-tourism,
.mvr-bg-tourism {
    background-image: url('../assets/images/slider/movixit-tourist-airport.jpg');
    background-position: center center;
}

.mvr-slide.mvr-service-hotel .mvr-bg,
.mvr-bg.mvr-service-hotel,
.mvr-bg-hotel {
    background-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=85');
    background-position: center center;
}

.mvr-slide.mvr-service-visa .mvr-bg,
.mvr-bg.mvr-service-visa,
.mvr-bg-visa {
    background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=85');
    background-position: center center;
}

.mvr-slide.mvr-service-consultation .mvr-bg,
.mvr-bg.mvr-service-consultation,
.mvr-bg-consultation {
    background-image: url('https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1800&q=85');
    background-position: center center;
}

.mvr-slide.mvr-service-passport .mvr-bg,
.mvr-bg.mvr-service-passport,
.mvr-bg-passport {
    background-image: url('https://images.unsplash.com/photo-1540126034813-121bf29033d2?auto=format&fit=crop&w=1800&q=85');
    background-position: center center;
}

.mvr-slide.mvr-service-mobility .mvr-bg,
.mvr-bg.mvr-service-mobility,
.mvr-bg-mobility {
    background-image: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1800&q=85');
    background-position: center center;
}

/* Premium readable overlay for real images */
.mvr-gradient {
    background:
        radial-gradient(circle at 78% 28%, rgba(255, 153, 0, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(0, 25, 55, 0.94) 0%, rgba(0, 51, 102, 0.78) 42%, rgba(0, 51, 102, 0.30) 100%);
}

.mvr-theme-dark-luxury .mvr-gradient {
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 24%),
        radial-gradient(circle at 18% 80%, rgba(255,153,0,.32), transparent 26%),
        linear-gradient(90deg, rgba(0, 20, 42, .96), rgba(0, 51, 102, .74), rgba(0, 34, 68, .42));
}

.mvr-theme-clean-light .mvr-gradient {
    background:
        linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.78) 44%, rgba(255,255,255,.18) 100%);
}

/* Text readability improvements */
.mvr-content h2 {
    text-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.mvr-subtitle {
    text-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.mvr-theme-clean-light .mvr-content h2,
.mvr-theme-clean-light .mvr-subtitle {
    text-shadow: none;
}

/* Service image badges */
.mvr-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #D9A441;
    box-shadow: 0 0 0 5px rgba(255,153,0,.18);
    margin-right: 10px;
}

/* Stronger mobile crop for airport/travel photos */
@media (max-width: 760px) {
    .mvr-bg,
    .mvr-slide.mvr-service-flight .mvr-bg,
    .mvr-slide.mvr-service-airport .mvr-bg,
    .mvr-slide.mvr-service-tourism .mvr-bg {
        background-position: center center;
    }
    .mvr-gradient {
        background: linear-gradient(180deg, rgba(0,28,61,.82), rgba(0,28,61,.68), rgba(0,28,61,.92));
    }
}

/* Enterprise accessibility and containment */
.mvr-slider { contain: layout paint; }
.mvr-slider a, .mvr-slider button { -webkit-tap-highlight-color: transparent; }
.mvr-slider button { touch-action: manipulation; }
.mvr-slider a:focus-visible, .mvr-slider button:focus-visible {
    outline: 3px solid rgba(64,181,173,.55);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .mvr-slide, .mvr-bg, .mvr-shape, [data-mvr-layer], .mvr-btn { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .mvr-slider[data-autoplay="1"] .mvr-progress.is-running span { animation: none !important; width: 100%; }
}


/* =========================================================
   MOVIXIT V2.0.1 RESPONSIVE HARDENING
   Keeps the existing visual design while preventing
   overflow/collisions on narrow screens and mobile browsers.
   ========================================================= */
.mvr-slider {
    max-width: 100%;
    contain: layout paint;
    -webkit-tap-highlight-color: transparent;
}
.mvr-track { position: relative; width: 100%; }
.mvr-slide { width: 100%; }
.mvr-bg,
.mvr-gradient,
.mvr-particles { max-width: 100%; }
.mvr-content,
.mvr-buttons,
.mvr-stats { min-width: 0; }
.mvr-content h2,
.mvr-subtitle,
.mvr-kicker,
.mvr-btn,
.mvr-stats span {
    overflow-wrap: anywhere;
    word-break: normal;
}
.mvr-btn { max-width: 100%; }
.mvr-arrow { padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mvr-particles { width: 100%; height: 100%; }

@media (max-width: 768px) {
    .mvr-slider { border-radius: 0; }
    .mvr-rounded { border-radius: 20px; }
    .mvr-type-carousel .mvr-slide { padding: 12px; }
    .mvr-type-carousel .mvr-bg,
    .mvr-type-carousel .mvr-gradient {
        inset: 12px;
        border-radius: 20px;
    }
    .mvr-content {
        width: 100%;
        max-width: 100%;
    }
    .mvr-content h2,
    .mvr-subtitle { text-wrap: balance; }
    .mvr-arrow { z-index: 30; }
}

@media (max-width: 480px) {
    .mvr-rounded { border-radius: 16px; }
    .mvr-content { padding-left: 15px; padding-right: 15px; }
    .mvr-prev { left: 8px; }
    .mvr-next { right: 8px; }
    .mvr-buttons { max-width: 100%; }
    .mvr-stats span { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mvr-slide,
    .mvr-bg,
    .mvr-shape,
    [data-mvr-layer] {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
