/* =========================================================
   Nikan hardware hero
   Original three-product layout
   Dark jade stage / cyan glow / fine luminous sand
   ========================================================= */

.nh-slider {
    --nh-background: #020c0b;
    --nh-blue: #80ddff;
    --nh-product-width: 300px;
    --nh-product-offset: 245px;
    --nh-glow-width: 940px;
    --nh-glow-top: 345px;
    --nh-glow-height: 180px;
    --nh-cloud-top: 370px;
    --nh-cloud-height: 135px;
    position: relative;
    isolation: isolate;
    direction: rtl;
    overflow: hidden;
    padding: 46px 0 18px;
    background: radial-gradient( ellipse at 50% 75%, #07302a 0%, #041b17 38%, var(--nh-background) 76% );
    color: #f3fff9;
    font-family: inherit;
}

    .nh-slider *,
    .nh-slider *::before,
    .nh-slider *::after {
        box-sizing: border-box;
    }

    .nh-slider [hidden] {
        display: none !important;
    }

/* =========================================================
   Stage
   ========================================================= */

.nh-slides {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

    /* =========================================================
   Soft cyan atmosphere
   نور حجمی و محو؛ بدون نوار یا لبهٔ صاف
   ========================================================= */

    .nh-slides::before {
        content: "";
        position: absolute;
        z-index: -2;
        top: var(--nh-glow-top);
        left: 50%;
        width: min(var(--nh-glow-width), 112%);
        height: var(--nh-glow-height);
        border: 0;
        background: radial-gradient( ellipse at 50% 50%, rgb(65 231 208 / 24%) 0%, rgb(26 186 170 / 15%) 28%, rgb(8 119 108 / 6%) 49%, transparent 72% );
        box-shadow: none;
        filter: blur(28px);
        opacity: .8;
        transform: translateX(-50%);
        transform-origin: center;
        pointer-events: none;
        animation: nh-floor-breathe 8s ease-in-out infinite;
    }

    /* =========================================================
   Floating sand — first layer
   دانه‌های بسیار ریز و متراکم با زمینهٔ شفاف
   ========================================================= */

    .nh-slides::after {
        content: "";
        position: absolute;
        z-index: -1;
        top: var(--nh-cloud-top);
        left: 50%;
        width: min(var(--nh-glow-width), 110%);
        height: var(--nh-cloud-height);
        border: 0;
        /*
       هر لایه یک دانهٔ کوچک در یک کاشی شفاف دارد.
       ابعاد متفاوت کاشی‌ها، نظم بصری تکرار را کمتر می‌کند.
    */
        background-image: radial-gradient( circle at 13% 21%, rgb(165 255 231 / 90%) 0 .4px, transparent .75px ), radial-gradient( circle at 69% 63%, rgb(90 235 204 / 75%) 0 .35px, transparent .65px ), radial-gradient( circle at 38% 79%, rgb(205 255 242 / 90%) 0 .5px, transparent .85px ), radial-gradient( circle at 82% 32%, rgb(105 245 215 / 75%) 0 .4px, transparent .7px ), radial-gradient( circle at 24% 56%, rgb(145 255 222 / 80%) 0 .35px, transparent .65px ), radial-gradient( circle at 57% 14%, rgb(195 255 238 / 85%) 0 .45px, transparent .75px ), radial-gradient( circle at 91% 87%, rgb(65 210 185 / 70%) 0 .35px, transparent .65px ), radial-gradient( circle at 46% 43%, rgb(130 250 220 / 80%) 0 .4px, transparent .7px );
        background-size: 43px 31px, 59px 43px, 71px 37px, 47px 59px, 67px 53px, 83px 47px, 53px 71px, 79px 61px;
        background-position: 0 0, 11px 7px, 23px 19px, 5px 29px, 31px 13px, 17px 37px, 41px 23px, 7px 43px;
        background-repeat: repeat;
        /*
       محوشدن تدریجی در تمام اطراف ابر،
       برای جلوگیری از لبهٔ صاف یا مستطیلی.
    */
        -webkit-mask-image: radial-gradient( ellipse at 50% 58%, #000 8%, rgb(0 0 0 / 90%) 30%, rgb(0 0 0 / 50%) 51%, transparent 73% );
        mask-image: radial-gradient( ellipse at 50% 58%, #000 8%, rgb(0 0 0 / 90%) 30%, rgb(0 0 0 / 50%) 51%, transparent 73% );
        box-shadow: none;
        /*
       درخشش محدود است تا دانه‌ها
       به شکل نقاط بزرگ و محو دیده نشوند.
    */
        filter: drop-shadow(0 0 1px rgb(85 255 211 / 40%));
        opacity: .75;
        transform: translateX(-50%);
        transform-origin: center;
        pointer-events: none;
        animation: nh-sand-drift-a 6s ease-in-out infinite;
    }

/* =========================================================
   Floating sand — second layer
   لایهٔ دوم در همان صحنه و پشت محصولات
   بدون تغییر HTML یا JavaScript
   ========================================================= */

.nh-slide:first-child::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(var(--nh-cloud-top) + 8px);
    left: 50%;
    width: min(880px, 108%);
    height: var(--nh-cloud-height);
    border: 0;
    background-image: radial-gradient( circle at 19% 36%, rgb(210 255 242 / 90%) 0 .4px, transparent .7px ), radial-gradient( circle at 73% 81%, rgb(110 245 211 / 75%) 0 .35px, transparent .65px ), radial-gradient( circle at 42% 17%, rgb(165 255 228 / 85%) 0 .45px, transparent .8px ), radial-gradient( circle at 87% 52%, rgb(75 220 191 / 70%) 0 .35px, transparent .65px ), radial-gradient( circle at 31% 68%, rgb(195 255 237 / 90%) 0 .5px, transparent .85px ), radial-gradient( circle at 61% 29%, rgb(130 250 215 / 80%) 0 .4px, transparent .7px );
    background-size: 47px 37px, 61px 49px, 73px 41px, 53px 67px, 89px 57px, 67px 73px;
    background-position: 13px 5px, 29px 17px, 7px 31px, 37px 11px, 19px 43px, 43px 23px;
    background-repeat: repeat;
    -webkit-mask-image: radial-gradient( ellipse at 50% 58%, #000 10%, rgb(0 0 0 / 80%) 34%, rgb(0 0 0 / 40%) 53%, transparent 73% );
    mask-image: radial-gradient( ellipse at 50% 58%, #000 10%, rgb(0 0 0 / 80%) 34%, rgb(0 0 0 / 40%) 53%, transparent 73% );
    box-shadow: none;
    filter: drop-shadow(0 0 1px rgb(110 255 220 / 35%));
    opacity: .6;
    transform: translateX(-50%);
    transform-origin: center;
    pointer-events: none;
    animation: nh-sand-drift-b 8s ease-in-out infinite;
}

/* =========================================================
   Lighting animations
   مستقل از انیمیشن جابه‌جایی محصولات
   ========================================================= */

@keyframes nh-floor-breathe {
    0%, 100% {
        opacity: .65;
        transform: translateX(-50%) scale(.98);
    }

    50% {
        opacity: .85;
        transform: translateX(-50%) scale(1.03);
    }
}

@keyframes nh-sand-drift-a {
    0%, 100% {
        opacity: .4;
        transform: translateX(-50%) translateY(5px);
    }

    45% {
        opacity: .95;
        transform: translateX(calc(-50% + 7px)) translateY(-9px);
    }

    75% {
        opacity: .55;
        transform: translateX(calc(-50% - 3px)) translateY(-3px);
    }
}

@keyframes nh-sand-drift-b {
    0%, 100% {
        opacity: .75;
        transform: translateX(-50%) translateY(-5px);
    }

    40% {
        opacity: .3;
        transform: translateX(calc(-50% - 8px)) translateY(4px);
    }

    75% {
        opacity: .9;
        transform: translateX(calc(-50% + 4px)) translateY(-12px);
    }
}

/* بدون JavaScript، اسلاید اول قابل مشاهده می‌ماند. */
.nh-slide {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

/* =========================================================
   Copy
   ========================================================= */

.nh-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 920px !important;
    margin: 0 auto;
    padding: 0 24px !important;
    text-align: center;
}

.nh-eyebrow {
    margin: 0 0 7px;
    color: #8bcdb4;
    font-size: 13px;
    line-height: 1.8;
}

.nh-title {
    margin: 0;
    color: #f3fff9;
    font-size: clamp(30px, 3.7vw, 50px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1.2px;
    text-wrap: balance;
}

.nh-description {
    max-width: 760px;
    margin: 10px auto 0;
    color: #bed6ce;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 400;
    line-height: 1.85;
    text-wrap: balance;
}

/* =========================================================
   Actions
   ========================================================= */

.nh-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 19px;
}

.nh-button,
.nh-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 23px;
    border: 1px solid var(--nh-blue);
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nh-button {
    background: var(--nh-blue);
    color: #042c30;
}

    .nh-button:hover {
        border-color: #b2edff;
        background: #b2edff;
        color: #032326;
        text-decoration: none;
    }

.nh-link {
    background: transparent;
    color: var(--nh-blue);
}

    .nh-link:hover {
        background: rgb(128 221 255 / 12%);
        color: #d3f5ff;
        text-decoration: none;
    }

/* =========================================================
   Products
   ========================================================= */

.nh-image {
    position: relative;
    z-index: 1;
    display: block;
    width: var(--nh-product-width);
    max-width: 90%;
    height: 270px;
    margin: 64px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    mix-blend-mode: normal;
    /*
       سایه تابع لبهٔ شفاف محصول است،
       نه مستطیل فایل تصویر.
    */
    filter: drop-shadow(0 10px 9px rgb(0 0 0 / 42%));
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* =========================================================
   Initialized slider
   Geometry preserved from the existing stylesheet
   ========================================================= */

.nh-ready .nh-slides {
    height: 510px;
    touch-action: pan-y;
}

.nh-ready .nh-slide {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    transform: none;
    filter: none;
}

.nh-ready .nh-copy {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 280ms ease, transform 380ms ease, visibility 280ms ease;
}

.nh-ready .is-active .nh-copy {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nh-ready .nh-image {
    position: absolute;
    top: 247px;
    left: 50%;
    z-index: 1;
    width: var(--nh-product-width);
    max-width: none;
    height: 250px;
    margin: 0;
    opacity: 0;
    transform: translateX(-50%) scale(.88);
    transition: transform 700ms cubic-bezier(.22, .68, .2, 1), opacity 400ms ease;
}

/* محصول فعال، وسط صحنه */
.nh-ready .is-active .nh-image {
    z-index: 2;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* محصول قبلی، سمت راست */
.nh-ready .is-prev .nh-image {
    opacity: 1;
    transform: translateX(calc(-50% + var(--nh-product-offset))) translateY(9px) scale(.9);
}

/* محصول بعدی، سمت چپ */
.nh-ready .is-next .nh-image {
    opacity: 1;
    transform: translateX(calc(-50% - var(--nh-product-offset))) translateY(9px) scale(.9);
}

/* =========================================================
   Controls
   ========================================================= */

.nh-controls {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 7px auto 0;
}

.nh-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #13372f;
    color: #b4d9cc;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

    .nh-arrow:hover {
        background: #205346;
        color: #fff;
    }

.nh-dots {
    display: flex;
    align-items: center;
    gap: 1px;
}

.nh-dot {
    display: grid;
    place-items: center;
    width: 27px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .nh-dot::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #53776b;
        transition: background-color 180ms ease, box-shadow 180ms ease;
    }

    .nh-dot[aria-current="true"]::before {
        background: #9be9ff;
        box-shadow: 0 0 9px rgb(98 216 255 / 45%);
    }

/* =========================================================
   Accessibility
   ========================================================= */

.nh-slider :is(a, button):focus-visible {
    outline: 3px solid var(--nh-blue);
    outline-offset: 4px;
}

.nh-slider .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (min-width: 761px) and (max-width: 1000px) {
    .nh-slider {
        --nh-product-width: 260px;
        --nh-product-offset: 215px;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {
    .nh-slider {
        --nh-product-width: 40vw;
        --nh-product-offset: 29vw;
        --nh-glow-width: 760px;
        --nh-glow-top: 345px;
        --nh-glow-height: 140px;
        --nh-cloud-top: 345px;
        --nh-cloud-height: 110px;
        padding-top: 34px;
        padding-bottom: 14px;
    }

    .nh-ready .nh-slides {
        height: 465px;
    }

    .nh-slides::before {
        width: 110%;
        filter: blur(24px);
    }

    .nh-slides::after {
        width: 110%;
        /*
           اندازهٔ الگوهای ذرات از حالت دسکتاپ حفظ می‌شود.
           background-size: 100% 100% نباید اینجا قرار بگیرد،
           چون تراکم ذرات را از بین می‌برد.
        */
    }

    .nh-slide:first-child::before {
        width: 108%;
    }

    .nh-copy {
        padding-inline: 20px !important;
    }

    .nh-title {
        font-size: clamp(28px, 5.7vw, 38px);
        letter-spacing: -.7px;
    }

    .nh-eyebrow {
        font-size: 12px;
    }

    .nh-description {
        max-width: 540px;
        font-size: 15px;
        line-height: 1.9;
    }

    .nh-actions {
        gap: 12px;
        margin-top: 17px;
    }

    .nh-button,
    .nh-link {
        min-height: 42px;
        padding: 9px 18px;
        font-size: 12px;
    }

    .nh-ready .nh-image {
        top: 265px;
        height: 185px;
    }
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 380px) {
    .nh-slider {
        --nh-glow-top: 370px;
        --nh-cloud-top: 375px;
        --nh-cloud-height: 105px;
    }

    .nh-ready .nh-slides {
        height: 485px;
    }

    .nh-ready .nh-image {
        top: 295px;
        height: 170px;
    }

    .nh-title {
        font-size: 26px;
    }

    .nh-description {
        font-size: 14px;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .nh-slider *,
    .nh-slider *::before,
    .nh-slider *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   Soft mirror reflection beneath products
   حفظ نور، ذرات، چیدمان و حرکت فعلی
   ========================================================= */

.nh-slider {
    /*
       برای دیده‌شدن بخش کوتاهی از انعکاس،
       کنترل‌ها کمی پایین‌تر قرار می‌گیرند.
    */
    padding-bottom: 24px;
}

.nh-image {
    /*
       انعکاس زیر تصویر با فاصلهٔ ۲ پیکسل.
       بیشتر انعکاس شفاف است و فقط بخش نزدیک
       به کف محصول با شدت کم دیده می‌شود.

       جهت گرادیان در انعکاس معکوس است:
       انتهای گرادیان، نزدیک محل تماس قرار می‌گیرد.
    */
    -webkit-box-reflect: below 2px linear-gradient( to bottom, transparent 0%, transparent 62%, rgb(255 255 255 / 2%) 72%, rgb(255 255 255 / 8%) 86%, rgb(255 255 255 / 20%) 100% );
}

.nh-controls {
    margin-top: 42px;
}

/* موبایل: انعکاس کمی ملایم‌تر */
@media (max-width: 760px) {
    .nh-slider {
        padding-bottom: 20px;
    }

    .nh-image {
        -webkit-box-reflect: below 1px linear-gradient( to bottom, transparent 0%, transparent 65%, rgb(255 255 255 / 2%) 75%, rgb(255 255 255 / 7%) 88%, rgb(255 255 255 / 16%) 100% );
    }

    .nh-controls {
        margin-top: 32px;
    }
}
/* =========================================================
   Glossy illuminated floor
   سطح تیرهٔ براق + بازتاب نور + انعکاس محصولات
   ========================================================= */

.nh-slider {
    --nh-floor-y: 492px;
    /*
       زمینهٔ اصلی حفظ می‌شود.
       نور نزدیک کف، حس سطح براق ایجاد می‌کند.
    */
    background: radial-gradient( ellipse 360px 58px at 50% var(--nh-floor-y), rgb(75 255 205 / 15%) 0%, rgb(20 180 145 / 8%) 48%, transparent 78% ), radial-gradient( ellipse at 50% 75%, #07302a 0%, #041b17 38%, var(--nh-background) 76% );
    padding-bottom: 28px;
}

/* =========================================================
   بازتاب نور روی کف
   جایگزین هالهٔ بسیار محو قبلی؛ ذرات دست‌نخورده‌اند
   ========================================================= */

.nh-slides::before {
    top: 472px;
    width: min(1080px, 116%);
    height: 130px;
    /*
       لایهٔ اول: برق باریک و نرم سطح
       لایهٔ دوم: نور مرکزی
       لایهٔ سوم: بازتاب پخش‌شده روی کف
    */
    background: radial-gradient( ellipse 46% 3px at 50% 18%, rgb(200 255 238 / 65%) 0%, rgb(95 255 210 / 32%) 35%, transparent 100% ), radial-gradient( ellipse 28% 15px at 50% 23%, rgb(90 255 205 / 35%) 0%, rgb(30 220 165 / 16%) 48%, transparent 100% ), radial-gradient( ellipse 48% 48px at 50% 43%, rgb(20 220 165 / 22%) 0%, rgb(10 130 105 / 12%) 48%, transparent 100% );
    /*
       بلور قبلی ۲۸ پیکسل بود و برق سطح را محو می‌کرد.
    */
    filter: blur(3px);
    opacity: .95;
    transform: translateX(-50%);
    animation: nh-glossy-floor-breathe 7s ease-in-out infinite;
}

/* =========================================================
   انعکاس محصولات
   نزدیک محصول روشن‌تر، در فاصلهٔ بیشتر محوتر
   ========================================================= */

.nh-image {
    -webkit-box-reflect: below 1px linear-gradient( to bottom, transparent 0%, transparent 48%, rgb(255 255 255 / 2%) 60%, rgb(255 255 255 / 9%) 76%, rgb(255 255 255 / 23%) 90%, rgb(255 255 255 / 36%) 100% );
    /*
       درخشش ظریف دور لبهٔ شفاف محصول.
       شدت کم است تا محصول حالت نئونی پیدا نکند.
    */
    filter: drop-shadow(0 8px 8px rgb(0 0 0 / 45%)) drop-shadow(0 0 3px rgb(120 255 215 / 16%));
}

/*
   فضای بیشتر برای انعکاس؛
   موقعیت خود محصولات تغییر نمی‌کند.
*/
.nh-controls {
    margin-top: 66px;
}

@keyframes nh-glossy-floor-breathe {
    0%, 100% {
        opacity: .78;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {
    .nh-slider {
        --nh-floor-y: 447px;
        padding-bottom: 24px;
    }

    .nh-slides::before {
        top: 427px;
        width: 116%;
        height: 105px;
        filter: blur(2px);
    }

    .nh-image {
        -webkit-box-reflect: below 1px linear-gradient( to bottom, transparent 0%, transparent 52%, rgb(255 255 255 / 2%) 64%, rgb(255 255 255 / 8%) 78%, rgb(255 255 255 / 21%) 91%, rgb(255 255 255 / 32%) 100% );
    }

    .nh-controls {
        margin-top: 50px;
    }
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 380px) {
    .nh-slider {
        --nh-floor-y: 462px;
    }

    .nh-slides::before {
        top: 442px;
    }
}

/* رعایت تنظیم کاهش حرکت، حتی بعد از overrideهای قبلی */
@media (prefers-reduced-motion: reduce) {
    .nh-slides::before {
        animation: none !important;
    }
}


