/* ============================================
   SmartVision Hero Slider - Modern Design
   Prefix: sv-hero-* (avoids conflicts with
   existing .tj-slider-* and .mobile-hero-*)
   ============================================ */

:root {
    --sv-primary: #e64c29;
    --sv-primary-dark: #c73e1f;
    --sv-dark: #000000;
    --sv-dark-2: #1a1a2e;
    --sv-white: #ffffff;
    --sv-light: #f8f9fa;
    --sv-text: #b0b8c1;
    --sv-transition: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Section Reset ── */
.sv-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--sv-dark);
    margin: 0 15px;
    border-radius: 16px;
    max-width: calc(100% - 30px);
}

.sv-hero,
.sv-hero * {
    box-sizing: border-box;
}

/* ── Main Swiper Container ── */
.sv-hero .swiper {
    width: 100%;
    height: 100vh;
    min-height: 650px;
    max-height: 1000px;
}

/* ── Each Slide ── */
.sv-hero-slide {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* ── Split Layout: Content Left / Image Right ── */
.sv-hero-content-side {
    position: relative;
    z-index: 5;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 60px 100px 80px;
}

.sv-hero-image-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

.sv-hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.swiper-slide-active .sv-hero-image-side img {
    transform: scale(1);
}

/* Image overlay gradient for text readability */
.sv-hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(90deg, var(--sv-dark) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

/* ── Orange Accent Line ── */
.sv-hero-accent {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--sv-primary);
    z-index: 10;
    border-radius: 3px;
    transition: height 0.8s var(--sv-transition);
}

.swiper-slide-active .sv-hero-accent {
    height: 120px;
}

/* ── Slide Counter (01 / 03) ── */
.sv-hero-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sv-primary);
}

.sv-hero-counter-current {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--sv-white);
}

.sv-hero-counter-sep {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    font-size: 20px;
}

.sv-hero-counter-total {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* ── Title ── */
.sv-hero-title {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--sv-white);
    margin: 0 0 24px;
    letter-spacing: -1.5px;
    max-width: 600px;
}

.sv-hero-title span {
    color: var(--sv-primary);
}

/* ── Description ── */
.sv-hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--sv-text);
    max-width: 460px;
    margin: 0 0 36px;
}

/* ── CTA Button ── */
.sv-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--sv-primary) !important;
    color: var(--sv-white) !important;
    padding: 16px 36px !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s var(--sv-transition);
    position: relative;
    overflow: hidden;
    width: auto;
}

.sv-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.sv-hero-cta:hover {
    background: var(--sv-primary-dark) !important;
    color: var(--sv-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(230, 76, 41, 0.35);
}

.sv-hero-cta:hover::before {
    left: 100%;
}

.sv-hero-cta i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sv-hero-cta:hover i {
    transform: translateX(4px);
}

/* ── Content Animation (enter/exit) ── */
.sv-hero-slide .sv-hero-counter,
.sv-hero-slide .sv-hero-title,
.sv-hero-slide .sv-hero-desc,
.sv-hero-slide .sv-hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s var(--sv-transition);
}

.swiper-slide-active .sv-hero-counter {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.swiper-slide-active .sv-hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.swiper-slide-active .sv-hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.swiper-slide-active .sv-hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* ── Navigation Arrows ── */
.sv-hero-nav {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sv-hero-prev,
.sv-hero-next {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s ease;
    color: var(--sv-white);
    font-size: 18px;
}

.sv-hero-prev i,
.sv-hero-next i {
    color: var(--sv-white) !important;
}

.sv-hero-prev:hover,
.sv-hero-next:hover {
    background: var(--sv-primary);
    border-color: var(--sv-primary);
    transform: scale(1.1);
}

/* ── Progress Bar ── */
.sv-hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 15;
}

.sv-hero-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--sv-primary);
    transition: width 0.3s linear;
}

.sv-hero-progress-bar.sv-animating {
    transition: width 5s linear;
    width: 100% !important;
}

/* ── Dot Pattern Decoration ── */
.sv-hero-dots-pattern {
    position: absolute;
    top: 60px;
    right: 80px;
    width: 100px;
    height: 100px;
    z-index: 3;
    opacity: 0.15;
    background-image: radial-gradient(circle, var(--sv-primary) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
}

/* ── Pagination (Mobile) ── */
.sv-hero-pagination {
    display: none;
}

.sv-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.sv-hero-pagination .swiper-pagination-bullet-active {
    background: var(--sv-primary);
    width: 28px;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Large Desktop (1400px+) ── */
@media (min-width: 1400px) {
    .sv-hero .swiper {
        height: 92vh;
    }
    .sv-hero-content-side {
        padding: 100px 60px 100px 100px;
    }
}

/* ── Tablet Landscape (992–1199px) ── */
@media (max-width: 1199px) {
    .sv-hero-content-side {
        width: 55%;
        padding: 80px 40px 80px 50px;
    }
    .sv-hero-image-side {
        width: 50%;
        clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .sv-hero-title {
        max-width: 480px;
    }
    .sv-hero-accent {
        left: 25px;
    }
}

/* ── Tablet Portrait & Mobile (below 992px) ── */
@media (max-width: 991px) {
    .sv-hero {
        margin: 0 12px;
        border-radius: 14px;
        max-width: calc(100% - 24px);
    }

    .sv-hero .swiper {
        height: 100vh;
        min-height: 580px;
        max-height: none;
    }

    /* Full-screen image layout */
    .sv-hero-image-side {
        width: 100%;
        clip-path: none;
    }

    .sv-hero-image-overlay {
        width: 100%;
        background: linear-gradient(
            0deg,
            var(--sv-dark) 0%,
            rgba(12, 30, 33, 0.85) 35%,
            rgba(12, 30, 33, 0.4) 65%,
            rgba(12, 30, 33, 0.2) 100%
        );
    }

    .sv-hero-content-side {
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 5;
        padding: 0 30px 50px;
        justify-content: flex-end;
    }

    .sv-hero-accent {
        display: none;
    }

    .sv-hero-dots-pattern {
        display: none;
    }

    .sv-hero-nav {
        display: none;
    }

    /* Show pagination on mobile */
    .sv-hero-pagination {
        display: flex;
        justify-content: center;
        position: absolute;
        bottom: 20px;
        left: 0;
        width: 100%;
        z-index: 20;
        gap: 6px;
    }

    .sv-hero-title {
        font-size: clamp(28px, 8vw, 44px);
        max-width: 100%;
        letter-spacing: -0.5px;
    }

    .sv-hero-desc {
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 28px;
    }

    .sv-hero-counter {
        margin-bottom: 20px;
    }

    .sv-hero-counter-current {
        font-size: 22px;
    }

    .sv-hero-cta {
        padding: 14px 28px;
        font-size: 14px;
    }

    .sv-hero-progress {
        bottom: auto;
        top: 0;
    }
}

/* ── Small Mobile (below 576px) ── */
@media (max-width: 575px) {
    .sv-hero {
        margin: 0 8px;
        border-radius: 12px;
        max-width: calc(100% - 16px);
    }

    .sv-hero .swiper {
        min-height: 520px;
    }

    .sv-hero-content-side {
        padding: 0 20px 45px;
    }

    .sv-hero-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 16px;
    }

    .sv-hero-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .sv-hero-cta {
        padding: 13px 24px;
    }

    .sv-hero-pagination {
        bottom: 14px;
    }
}

/* ── RTL Support ── */
[dir="rtl"] .sv-hero-image-side {
    right: auto;
    left: 0;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}

[dir="rtl"] .sv-hero-image-overlay {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--sv-dark) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

[dir="rtl"] .sv-hero-content-side {
    padding-left: 60px;
    padding-right: 80px;
}

[dir="rtl"] .sv-hero-accent {
    left: auto;
    right: 40px;
}

[dir="rtl"] .sv-hero-nav {
    right: auto;
    left: 40px;
}

[dir="rtl"] .sv-hero-dots-pattern {
    right: auto;
    left: 80px;
}

[dir="rtl"] .sv-hero-cta i {
    transform: scaleX(-1);
}

[dir="rtl"] .sv-hero-cta:hover i {
    transform: scaleX(-1) translateX(4px);
}

@media (max-width: 991px) {
    [dir="rtl"] .sv-hero-image-side {
        clip-path: none;
    }
    [dir="rtl"] .sv-hero-image-overlay {
        background: linear-gradient(
            0deg,
            var(--sv-dark) 0%,
            rgba(12, 30, 33, 0.85) 35%,
            rgba(12, 30, 33, 0.4) 65%,
            rgba(12, 30, 33, 0.2) 100%
        );
    }
    [dir="rtl"] .sv-hero-content-side {
        padding: 0 30px 50px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    [dir="rtl"] .sv-hero-content-side {
        padding-left: 40px;
        padding-right: 50px;
    }
    [dir="rtl"] .sv-hero-accent {
        right: 25px;
    }
}
