/* =====================================================
   FLUX PRO — HERO SLIDER
   File: public/assets/css/hero.css
===================================================== */

.flux-hero {
    --flux-navy: #192b5b;
    --flux-blue: #244b94;
    --flux-text: #304b69;
    --flux-muted: #687b91;
    --flux-surface: #ffffff;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 65px 0 55px;
    background:
        linear-gradient(
            135deg,
            #f6f7fa 0%,
            #edf1f7 48%,
            #ffffff 100%
        );

    color: var(--flux-text);
}

.flux-hero *,
.flux-hero *::before,
.flux-hero *::after {
    box-sizing: border-box;
}

.flux-hero::before {
    position: absolute;
    z-index: -1;
    top: -180px;
    right: -100px;
    width: 55%;
    height: 950px;

    background: rgba(255, 255, 255, 0.65);

    content: "";
    transform: skewX(-38deg);
    pointer-events: none;
}

.flux-hero-container {
    width: min(1370px, calc(100% - 64px));
    margin: 0 auto;
}

.flux-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 45px;
    min-height: 495px;
}

/* -------------------------
   CONTENT
------------------------- */

.flux-hero-content {
    position: relative;
    z-index: 2;
    padding: 25px 0 20px;
    animation: fluxContentIn 0.7s ease both;
}

.flux-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 28px;
    padding: 11px 17px;

    border-radius: 40px;
    background: #e1e9f7;
    color: var(--flux-navy);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.flux-hero-badge i {
    font-size: 17px;
}

.flux-hero .flux-slide-title {
    max-width: 650px;
    margin: 0 0 24px;

    color: var(--flux-navy);

    font-size: clamp(39px, 4.1vw, 64px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -2px;

    overflow-wrap: break-word;
}

.flux-hero .flux-slide-description {
    max-width: 535px;
    margin: 0 0 32px;

    color: var(--flux-text);

    font-size: 16px;
    line-height: 1.8;
}

.flux-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 23px;
}

.flux-hero-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 53px;
    padding: 14px 25px;

    border: 1px solid var(--flux-navy);
    border-radius: 40px;

    background: var(--flux-navy);
    color: #fff;

    font-size: 14px;
    font-weight: 650;
    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.flux-hero-primary-btn:hover {
    transform: translateY(-2px);
    background: var(--flux-blue);
    color: #fff;
    box-shadow: 0 9px 25px rgba(25, 43, 91, 0.18);
}

.flux-hero-primary-btn i {
    font-size: 19px;
    transition: transform 0.25s ease;
}

.flux-hero-primary-btn:hover i {
    transform: translateX(4px);
}

.flux-hero-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--flux-navy);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.flux-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    border: 2px solid var(--flux-navy);
    border-radius: 50%;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.flux-play-icon i {
    font-size: 19px;
}

.flux-hero-video-btn:hover .flux-play-icon {
    background: var(--flux-navy);
    color: #fff;
}

/* -------------------------
   SLIDER CONTROLS
------------------------- */

.flux-slider-controls {
    display: flex;
    align-items: center;
    gap: 19px;

    margin-top: 43px;
}

.flux-slider-controls > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--flux-navy);

    cursor: pointer;
    transition: background 0.2s ease;
}

.flux-slider-controls > button:hover {
    background: #e0e7f3;
}

.flux-slider-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flux-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: #c4ccd8;

    cursor: pointer;

    transition:
        width 0.35s ease,
        background 0.35s ease;
}

.flux-slider-dot.is-active {
    width: 30px;
    border-radius: 8px;
    background: var(--flux-navy);
}

.flux-slider-counter {
    margin-left: 2px;
    color: var(--flux-navy);

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.flux-counter-divider {
    margin: 0 5px;
    color: #9ba7b8;
}

/* -------------------------
   HORIZONTAL IMAGE DRAWER
------------------------- */

.flux-hero-visual {
    position: relative;
    min-width: 0;
    height: 450px;
}

.flux-hero-drawer {
    position: absolute;
    inset: 0;

    display: flex;
    gap: 12px;

    overflow: hidden;
    isolation: isolate;

    border-radius: 34px;
}

.flux-drawer-card {
    position: relative;
    flex: 1 1 0;

    min-width: 0;
    height: 100%;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 25px;

    background: #dbe4ef;
    cursor: pointer;

    box-shadow: 0 14px 35px rgba(25, 43, 91, 0.10);

    transition:
        flex 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.5s ease,
        box-shadow 0.5s ease;
}

.flux-drawer-card.is-active {
    flex: 4 1 0;
    border-radius: 35px 12px 35px 12px;

    box-shadow: 0 22px 50px rgba(25, 43, 91, 0.17);
}

.flux-drawer-card img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.6s ease;
}

.flux-drawer-card:not(.is-active) img {
    filter: saturate(0.8);
}

.flux-drawer-card:hover img,
.flux-drawer-card.is-active img {
    transform: scale(1.045);
    filter: saturate(1);
}

.flux-drawer-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(10, 25, 54, 0.02) 35%,
        rgba(10, 25, 54, 0.68) 100%
    );

    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.flux-drawer-card.is-active .flux-drawer-overlay {
    opacity: 1;
}

.flux-drawer-label {
    position: absolute;
    right: 10px;
    bottom: 22px;
    left: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: max-content;
    max-width: calc(100% - 20px);
    margin: 0 auto;
    padding: 13px 15px;

    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--flux-navy);

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.5px;
    white-space: nowrap;

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.flux-drawer-label i {
    font-size: 15px;
}

.flux-drawer-card.is-active .flux-drawer-label {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   CUSTOMER FLOATING CARD
------------------------- */

.flux-customers-card {
    position: absolute;
    z-index: 5;
    right: 20px;
    bottom: -20px;

    width: 250px;
    padding: 16px 19px;

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: 0 12px 35px rgba(25, 43, 91, 0.13);

    animation: fluxCardFloat 4s ease-in-out infinite;
}

.flux-customer-avatars {
    display: flex;
    align-items: center;
    padding-left: 2px;
}

.flux-customer-avatars img,
.flux-customer-avatars span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;
    margin-left: -4px;

    border: 2px solid #fff;
    border-radius: 50%;

    object-fit: cover;
}

.flux-customer-avatars span {
    background: var(--flux-navy);
    color: #fff;

    font-size: 9px;
    font-weight: 700;
}

.flux-customers-card p {
    margin: 10px 0 0;

    color: #7b8795;

    font-size: 11px;
    line-height: 1.65;
}

.flux-customers-card p strong {
    color: var(--flux-text);
    font-weight: 750;
}

/* -------------------------
   STATISTICS BAR
------------------------- */

.flux-hero-stats {
    position: relative;
    z-index: 6;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-top: 72px;
    padding: 28px 20px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 21px;

    background: rgba(255, 255, 255, 0.93);

    box-shadow: 0 12px 45px rgba(25, 43, 91, 0.07);
}

.flux-stat-item {
    display: flex;
    align-items: center;
    gap: 19px;

    min-width: 0;
    padding: 0 22px;
}

.flux-stat-item + .flux-stat-item {
    border-left: 1px solid #dce3ed;
}

.flux-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 61px;
    width: 61px;
    height: 61px;

    border-radius: 50%;
    background: #edf1f8;
    color: var(--flux-blue);
}

.flux-stat-icon i {
    font-size: 27px;
}

.flux-stat-item h3 {
    margin: 0 0 3px;

    color: var(--flux-navy);

    font-size: clamp(18px, 1.7vw, 28px);
    font-weight: 750;
    line-height: 1.3;
}

.flux-stat-item p {
    margin: 0;

    color: var(--flux-muted);

    font-size: 13px;
    line-height: 1.6;
}

/* -------------------------
   ANIMATIONS
------------------------- */

@keyframes fluxContentIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes fluxCardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* -------------------------
   TABLET
------------------------- */

@media (max-width: 1100px) {
    .flux-hero {
        padding-top: 45px;
    }

    .flux-hero-container {
        width: calc(100% - 44px);
    }

    .flux-hero-main {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 25px;
    }

    .flux-hero-visual {
        height: 390px;
    }

    .flux-hero .flux-slide-title {
        font-size: clamp(34px, 4.4vw, 49px);
        letter-spacing: -1.5px;
    }

    .flux-hero-actions {
        gap: 14px;
    }

    .flux-hero-primary-btn {
        gap: 10px;
        padding-inline: 19px;
    }

    .flux-stat-item {
        gap: 12px;
        padding: 0 13px;
    }

    .flux-stat-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .flux-stat-icon i {
        font-size: 22px;
    }
}

/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 767px) {
    .flux-hero {
        padding: 40px 0 35px;
    }

    .flux-hero-container {
        width: calc(100% - 32px);
    }

    .flux-hero-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        min-height: auto;
    }

    .flux-hero-content {
        padding: 8px 0 0;
    }

    .flux-hero-badge {
        margin-bottom: 20px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .flux-hero .flux-slide-title {
        margin-bottom: 18px;
        font-size: clamp(36px, 9vw, 49px);
        line-height: 1.12;
        letter-spacing: -1.4px;
    }

    .flux-hero .flux-slide-description {
        margin-bottom: 23px;
        font-size: 14px;
        line-height: 1.8;
    }

    .flux-hero-actions {
        align-items: flex-start;
        gap: 17px;
    }

    .flux-hero-primary-btn {
        min-height: 48px;
        padding: 12px 18px;
        font-size: 12px;
    }

    .flux-hero-video-btn {
        font-size: 12px;
    }

    .flux-play-icon {
        width: 34px;
        height: 34px;
    }

    .flux-slider-controls {
        margin-top: 25px;
        gap: 11px;
    }

    .flux-slider-pagination {
        gap: 11px;
    }

    .flux-slider-counter {
        margin-left: auto;
    }

    .flux-hero-visual {
        height: 330px;
        margin-bottom: 8px;
    }

    .flux-hero-drawer {
        gap: 7px;
        border-radius: 22px;
    }

    .flux-drawer-card {
        border-radius: 15px;
    }

    .flux-drawer-card.is-active {
        flex: 4 1 0;
        border-radius: 24px 9px 24px 9px;
    }

    .flux-drawer-label {
        right: 5px;
        bottom: 15px;
        left: 5px;
        gap: 5px;
        padding: 10px 9px;
        font-size: 8px;
        letter-spacing: 0;
    }

    .flux-drawer-label i {
        font-size: 12px;
    }

    .flux-customers-card {
        right: 10px;
        bottom: -16px;
        width: 205px;
        padding: 12px 14px;
    }

    .flux-customers-card p {
        font-size: 10px;
    }

    .flux-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 45px;
        padding: 12px;
        border-radius: 15px;
    }

    .flux-stat-item {
        gap: 11px;
        padding: 16px 9px;
    }

    .flux-stat-item + .flux-stat-item {
        border-left: 0;
    }

    .flux-stat-item:nth-child(even) {
        border-left: 1px solid #dce3ed;
    }

    .flux-stat-item:nth-child(n + 3) {
        border-top: 1px solid #dce3ed;
    }

    .flux-stat-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .flux-stat-icon i {
        font-size: 19px;
    }

    .flux-stat-item h3 {
        font-size: 17px;
    }

    .flux-stat-item p {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .flux-hero-container {
        width: calc(100% - 24px);
    }

    .flux-hero .flux-slide-title {
        font-size: 34px;
    }

    .flux-hero-actions {
        gap: 12px;
    }

    .flux-hero-primary-btn {
        padding-inline: 14px;
    }

    .flux-hero-visual {
        height: 280px;
    }

    .flux-stat-item {
        gap: 8px;
        padding-inline: 5px;
    }

    .flux-stat-icon {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
    }

    .flux-stat-icon i {
        font-size: 16px;
    }

    .flux-stat-item h3 {
        font-size: 15px;
    }
}

/* -------------------------
   ACCESSIBILITY
------------------------- */

@media (prefers-reduced-motion: reduce) {
    .flux-hero *,
    .flux-hero *::before,
    .flux-hero *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}