
/* =========================================================
   ONISTECH INFO SYSTEMS — PREMIUM HERO SLIDER
   Compatible with existing slider.blade.php
   Responsive | SEO-friendly | Bootstrap 5
========================================================= */

.hero-slider {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    background: #10275f;
}

#onistechHeroSlider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #10275f;
}

/* SLIDE HEIGHT */

#onistechHeroSlider .carousel-inner {
    overflow: hidden;
}

#onistechHeroSlider .carousel-item {
    position: relative;
    height: clamp(480px, 40vw, 610px);
    min-height: 480px;
    overflow: hidden;
    background: #10275f;
}

/* BACKGROUND IMAGE */

#onistechHeroSlider .hero-slide-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
    transition: transform 6s ease;
}

#onistechHeroSlider .carousel-item.active .hero-slide-image {
    transform: scale(1);
}

/* BLUE GLASS OVERLAY */

#onistechHeroSlider .hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            100deg,
            rgba(7, 22, 65, .96) 0%,
            rgba(16, 47, 120, .91) 36%,
            rgba(8, 73, 157, .68) 65%,
            rgba(8, 127, 231, .28) 100%
        );
}

/* Subtle glossy light */

#onistechHeroSlider .hero-slide-overlay::after {
    position: absolute;
    top: -35%;
    right: 10%;
    width: 30%;
    height: 170%;
    content: "";
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, .035) 35%,
        rgba(255, 255, 255, .12) 50%,
        rgba(255, 255, 255, .025) 65%,
        transparent 100%
    );
    transform: rotate(20deg);
}

/* CONTENT POSITIONING */

#onistechHeroSlider .hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 65px 0 85px;
}

#onistechHeroSlider .hero-slide-content > .container {
    width: 100%;
}

#onistechHeroSlider .hero-slide-text {
    width: 100%;
    max-width: 760px;
    margin: 0;
    text-align: left;
    animation: onistechHeroReveal .7s ease both;
}

/* EYEBROW */

#onistechHeroSlider .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 23px;
    color: #64dcff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 2.1px;
    text-transform: uppercase;
}

#onistechHeroSlider .hero-eyebrow::after {
    display: inline-block;
    flex: 0 0 34px;
    width: 34px;
    height: 3px;
    content: "";
    background: var(--brand-orange, #f28c28);
    border-radius: 5px;
}

/* HEADINGS */

#onistechHeroSlider .hero-slide-text h1,
#onistechHeroSlider .hero-slide-text h2 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(36px, 4.1vw, 60px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.6px;
    text-wrap: balance;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .2);
}

/* DESCRIPTION */

#onistechHeroSlider .hero-slide-text p {
    max-width: 610px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .91);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
}

/* BUTTONS */

#onistechHeroSlider .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
}

#onistechHeroSlider .hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

#onistechHeroSlider .hero-buttons .btn-brand {
    color: #fff;
    background: linear-gradient(
        110deg,
        #087fe7 0%,
        #087fe7 65%,
        #f28c28 100%
    );
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 9px 25px rgba(0, 0, 0, .2);
}

#onistechHeroSlider .hero-buttons .btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(0, 0, 0, .26);
}

#onistechHeroSlider .hero-btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#onistechHeroSlider .hero-btn-outline:hover {
    color: #10275f;
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* SLIDE INDICATORS */

#onistechHeroSlider .carousel-indicators {
    z-index: 5;
    align-items: center;
    gap: 6px;
    margin: 0 0 22px;
}

#onistechHeroSlider .carousel-indicators [data-bs-target] {
    flex: 0 0 23px;
    width: 23px;
    height: 4px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, .6);
    border: 0;
    border-radius: 5px;
    opacity: 1;
    transition: flex-basis .25s ease, background .25s ease;
}

#onistechHeroSlider .carousel-indicators .active {
    flex-basis: 42px;
    background: var(--brand-orange, #f28c28);
}

/* PREVIOUS / NEXT CONTROLS */

#onistechHeroSlider .carousel-control-prev,
#onistechHeroSlider .carousel-control-next {
    z-index: 4;
    top: 0;
    bottom: 0;
    width: 6.5%;
    opacity: 1;
}

#onistechHeroSlider .carousel-control-prev-icon,
#onistechHeroSlider .carousel-control-next-icon {
    display: block;
    width: 43px;
    height: 43px;
    background-color: rgba(8, 27, 75, .58);
    background-size: 42%;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color .2s ease, transform .2s ease;
}

#onistechHeroSlider .carousel-control-prev:hover .carousel-control-prev-icon,
#onistechHeroSlider .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--brand-blue, #087fe7);
    transform: scale(1.06);
}

/* TABLETS */

@media (max-width: 991.98px) {
    #onistechHeroSlider .carousel-item {
        height: 520px;
        min-height: 520px;
    }

    #onistechHeroSlider .hero-slide-content {
        padding: 55px 0 75px;
    }

    #onistechHeroSlider .hero-slide-text {
        max-width: 660px;
    }

    #onistechHeroSlider .hero-slide-text h1,
    #onistechHeroSlider .hero-slide-text h2 {
        max-width: 650px;
        font-size: clamp(34px, 5.3vw, 48px);
        letter-spacing: -1px;
    }

    #onistechHeroSlider .hero-slide-text p {
        max-width: 540px;
        font-size: 16px;
    }

    #onistechHeroSlider .carousel-control-prev,
    #onistechHeroSlider .carousel-control-next {
        width: 7%;
    }
}

/* MOBILE */

@media (max-width: 767.98px) {
    #onistechHeroSlider .carousel-item {
        height: 540px;
        min-height: 540px;
    }

    #onistechHeroSlider .hero-slide-image {
        object-position: 58% center;
    }

    #onistechHeroSlider .hero-slide-overlay {
        background: linear-gradient(
            100deg,
            rgba(7, 22, 65, .94) 0%,
            rgba(16, 47, 120, .88) 60%,
            rgba(8, 73, 157, .65) 100%
        );
    }

    #onistechHeroSlider .hero-slide-content {
        align-items: center;
        padding: 45px 0 70px;
    }

    #onistechHeroSlider .hero-slide-content > .container {
        padding-right: 34px;
        padding-left: 34px;
    }

    #onistechHeroSlider .hero-slide-text {
        max-width: 100%;
    }

    #onistechHeroSlider .hero-eyebrow {
        gap: 9px;
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    #onistechHeroSlider .hero-eyebrow::after {
        flex-basis: 24px;
        width: 24px;
        height: 2px;
    }

    #onistechHeroSlider .hero-slide-text h1,
    #onistechHeroSlider .hero-slide-text h2 {
        margin-bottom: 18px;
        font-size: clamp(31px, 7.5vw, 43px);
        line-height: 1.15;
        letter-spacing: -.8px;
    }

    #onistechHeroSlider .hero-slide-text p {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.7;
    }

    #onistechHeroSlider .hero-buttons {
        align-items: stretch;
        gap: 10px;
    }

    #onistechHeroSlider .hero-buttons .btn {
        min-height: 47px;
        padding: 12px 15px;
        font-size: 13px;
    }

    #onistechHeroSlider .carousel-control-prev,
    #onistechHeroSlider .carousel-control-next {
        width: 32px;
    }

    #onistechHeroSlider .carousel-control-prev-icon,
    #onistechHeroSlider .carousel-control-next-icon {
        width: 29px;
        height: 29px;
    }

    #onistechHeroSlider .carousel-indicators {
        margin-bottom: 17px;
    }

    #onistechHeroSlider .carousel-indicators [data-bs-target] {
        flex-basis: 15px;
        height: 4px;
    }

    #onistechHeroSlider .carousel-indicators .active {
        flex-basis: 29px;
    }
}

/* SMALL PHONES */

@media (max-width: 420px) {
    #onistechHeroSlider .carousel-item {
        height: 510px;
        min-height: 510px;
    }

    #onistechHeroSlider .hero-slide-content > .container {
        padding-right: 30px;
        padding-left: 30px;
    }

    #onistechHeroSlider .hero-slide-text h1,
    #onistechHeroSlider .hero-slide-text h2 {
        font-size: 30px;
    }

    #onistechHeroSlider .hero-slide-text p {
        font-size: 14px;
    }

    #onistechHeroSlider .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    #onistechHeroSlider .hero-buttons .btn {
        width: 100%;
    }
}

/* ENTRY ANIMATION */

@keyframes onistechHeroReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    #onistechHeroSlider .hero-slide-image,
    #onistechHeroSlider .hero-slide-text,
    #onistechHeroSlider .carousel-control-prev-icon,
    #onistechHeroSlider .carousel-control-next-icon,
    #onistechHeroSlider .carousel-indicators [data-bs-target],
    #onistechHeroSlider .hero-buttons .btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

