@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');


/* =========================================================
   SHREE SAI AQUATREAT — HERO SLIDER
========================================================= */

.wrapper2 {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
}


/* =========================================================
   SLIDER
========================================================= */

.slider-container {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 520px;
    overflow: hidden;
}


.slider-wrapper {
    height: 100%;
}


.slider-wrapper .slider-item {
    --slide-image: url("../assets/hero/hero-1.png");

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


/* =========================================================
   HERO BACKGROUND
========================================================= */

.slider-wrapper .slider-item::before {
    position: absolute;
    content: "";

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.78) 0%,
            rgba(4, 67, 94, 0.55) 45%,
            rgba(4, 67, 94, 0.28) 100%
        ),
        var(--slide-image);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.02);

    z-index: 0;
}


/* =========================================================
   SLIDE BACKGROUNDS
========================================================= */

.slider-wrapper .slide-2 {
    --slide-image: url("../assets/hero/hero-2.png");
}


.slider-wrapper .slide-2::before {

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.78) 0%,
            rgba(4, 67, 94, 0.50) 48%,
            rgba(4, 67, 94, 0.25) 100%
        ),
        var(--slide-image);

    background-position: center;
    background-size: cover;
}


.slider-wrapper .slide-3 {
    --slide-image: url("../assets/hero/hero-3.png");
}


.slider-wrapper .slide-3::before {

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.80) 0%,
            rgba(4, 67, 94, 0.52) 48%,
            rgba(4, 67, 94, 0.25) 100%
        ),
        var(--slide-image);

    background-position: center;
    background-size: cover;
}


.slider-wrapper .slide-4::before {
    --slide-image: url("../assets/hero/hero-4.png");

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.80) 0%,
            rgba(4, 67, 94, 0.52) 48%,
            rgba(4, 67, 94, 0.25) 100%
        ),
        var(--slide-image);

    background-position: center;
    background-size: cover;
}


.slider-wrapper .slide-5::before {
    --slide-image: url("../assets/hero/hero-5.png");

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.80) 0%,
            rgba(4, 67, 94, 0.52) 48%,
            rgba(4, 67, 94, 0.25) 100%
        ),
        var(--slide-image);

    background-position: center;
    background-size: cover;
}


.slider-wrapper .slide-6::before {
    --slide-image: url("../assets/hero/hero-6.png");

    background:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.80) 0%,
            rgba(4, 67, 94, 0.52) 48%,
            rgba(4, 67, 94, 0.25) 100%
        ),
        var(--slide-image);

    background-position: center;
    background-size: cover;
}


/* =========================================================
   CUBIC TILE TRANSITION
========================================================= */

.hero-cube-grid {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(var(--tile-cols), 1fr);
    grid-template-rows: repeat(var(--tile-rows), 1fr);
    pointer-events: none;
    overflow: hidden;
    perspective: 900px;
}


.hero-cube-tile {
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 35, 57, 0.78) 0%,
            rgba(4, 67, 94, 0.52) 48%,
            rgba(4, 67, 94, 0.25) 100%
        ),
        var(--tile-image);
    background-size:
        100% 100%,
        calc(var(--tile-cols) * 100%) calc(var(--tile-rows) * 100%);
    background-position:
        center,
        calc(var(--tile-x) * 100% / (var(--tile-cols) - 1)) calc(var(--tile-y) * 100% / (var(--tile-rows) - 1));
    background-repeat: no-repeat;
    transform-origin: center;
    animation: heroTileCube 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: calc((var(--tile-x) + var(--tile-y)) * 28ms);
    backface-visibility: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    will-change: transform, opacity;
}


@keyframes heroTileCube {
    0% {
        opacity: 1;
        transform: translateZ(0) rotateY(0deg) scale(1);
    }

    55% {
        opacity: 0.95;
        transform: translateZ(46px) rotateY(58deg) rotateX(-8deg) scale(0.98);
    }

    100% {
        opacity: 0;
        transform: translateZ(-120px) rotateY(92deg) rotateX(-14deg) scale(0.84);
    }
}


@media (prefers-reduced-motion: reduce) {
    .hero-cube-grid {
        display: none;
    }
}


/* =========================================================
   SUBTLE WATER GLOW
========================================================= */

.slider-wrapper .slider-item::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 35%;

    background: linear-gradient(
        to top,
        rgba(2, 30, 48, 0.42),
        transparent
    );

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   SLIDE CONTENT
========================================================= */

.slider-wrapper .slider-item .slide-content {

    position: relative;

    z-index: 20;

    width: min(900px, 82%);

    margin: auto;

    text-align: center;

    color: #ffffff;
}


/* =========================================================
   SLIDE TITLE
========================================================= */

.slider-wrapper .slider-item .slide-content .slide-title {

    font-family: "Montserrat", sans-serif;

    font-size: 3.2rem;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.02em;

    text-align: center;

    color: #ffffff;

    margin-bottom: 1.2rem;

    text-transform: none;

    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.slider-wrapper .slider-item .slide-content .slide-description {

    max-width: 760px;

    margin: 0 auto;

    padding: 0;

    font-family: "Inter", sans-serif;

    font-size: 1.55rem;

    line-height: 1.75;

    font-weight: 400;

    letter-spacing: 0.01em;

    text-align: center;

    color: rgba(255, 255, 255, 0.94);

    text-transform: none;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   BUTTON WRAPPER
========================================================= */

.slide-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 1rem;

    margin-top: 2rem;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.slide-buttons .btn,
.slide-buttons .white-btn {

    margin-top: 0;

    min-width: 150px;

    padding: 0.95rem 1.8rem;

    border-radius: 7px;

    font-family: "Inter", sans-serif;

    font-size: 1.35rem;

    font-weight: 600;

    letter-spacing: 0.01em;

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


/* Primary */

.slide-buttons .btn {

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #0878b9,
        #0aa6d6
    );

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 8px 24px rgba(0, 100, 160, 0.30);
}


.slide-buttons .btn:hover {

    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #06699f,
        #078fb9
    );

    box-shadow:
        0 12px 30px rgba(0, 100, 160, 0.40);
}


/* Secondary */

.slide-buttons .white-btn {

    color: #ffffff;

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

    border: 1px solid rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(8px);

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.10);
}


.slide-buttons .white-btn:hover {

    transform: translateY(-3px);

    background: #ffffff;

    color: #0878b9;

    border-color: #ffffff;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   PAGINATION
========================================================= */

.wrapper2 .hero-pagination {

    position: absolute;

    left: 50%;

    bottom: 20px !important;

    z-index: 45;

    transform: translateX(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: auto !important;
    min-height: 28px;
    padding: 7px 12px;

    background: rgba(2, 30, 48, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.20);
}


.wrapper2 .hero-pagination .swiper-pagination-bullet {

    width: 10px;
    height: 10px;

    margin: 0 !important;

    opacity: 1;

    background: #ffffff;

    border: 2px solid rgba(25, 169, 201, 0.85);

    border-radius: 50%;

    box-shadow:
        0 0 0 2px rgba(2, 30, 48, 0.34),
        0 2px 8px rgba(0, 0, 0, 0.24);

    transition:
        width 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* Active */

.wrapper2 .hero-pagination .swiper-pagination-bullet-active {

    width: 28px;
    height: 10px;

    border-radius: 20px;

    opacity: 1;

    background: #19a9c9;

    border-color: #ffffff;

    transform: scale(1.02);
}


/* Remove old loading animation */

.wrapper2 .hero-pagination .swiper-pagination-bullet-active::before {

    display: none;
}


/* =========================================================
   NAVIGATION ARROWS
========================================================= */

.wrapper2 :where(
    .hero-button-prev,
    .hero-button-next
) {

    position: absolute;

    top: 50%;

    width: 42px;
    height: 42px;

    margin-top: 0;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff !important;

    background:
        linear-gradient(135deg, rgba(8, 120, 185, 0.95), rgba(10, 166, 214, 0.86));

    border: 1px solid rgba(255, 255, 255, 0.56);

    border-radius: 50%;

    backdrop-filter: blur(8px);

    z-index: 45;

    cursor: pointer;

    box-shadow:
        0 10px 26px rgba(2, 30, 48, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.wrapper2 .hero-button-prev {

    left: 22px;
}


.wrapper2 .hero-button-next {

    right: 22px;
}


.wrapper2 :where(
    .hero-button-prev,
    .hero-button-next
)::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
}


.wrapper2 :where(
    .hero-button-prev,
    .hero-button-next
):hover {

    color: #ffffff;

    background: #0878b9;

    border-color: #0878b9;

    transform: translateY(-50%) scale(1.06);

    box-shadow:
        0 14px 32px rgba(2, 30, 48, 0.34),
        0 0 0 4px rgba(25, 169, 201, 0.18);
}


.wrapper2 :where(
    .hero-button-prev,
    .hero-button-next
):focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 4px;
}


/* Arrow icon */

.wrapper2 :where(
    .hero-button-prev,
    .hero-button-next
)::after {

    font-size: 18px;

    font-weight: 800;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 868px) {

    .slider-container {

        height: 68vh;

        min-height: 500px;
    }


    .slider-wrapper .slider-item .slide-content {

        width: 78%;

        margin: auto;
    }


    .slider-wrapper .slider-item .slide-content .slide-title {

        font-size: 2.7rem;

        line-height: 1.25;

        margin-bottom: 1rem;
    }


    .slider-wrapper .slider-item .slide-content .slide-description {

        max-width: 650px;

        font-size: 1.45rem;

        line-height: 1.7;
    }


    .slide-buttons {

        margin-top: 1.7rem;
    }


    .slide-buttons .btn,
    .slide-buttons .white-btn {

        font-size: 1.3rem;

        padding: 0.9rem 1.6rem;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .wrapper2 {

        margin: 0 8px 25px;

        border-radius: 0 0 14px 14px;
    }


    .slider-container {

        height: 72vh;

        min-height: 520px;
    }


    .slider-wrapper .slider-item .slide-content {

        width: 82%;

        margin: auto;
    }


    .slider-wrapper .slider-item .slide-content .slide-title {

        font-size: 2.2rem;

        line-height: 1.28;

        margin-bottom: 1rem;
    }


    .slider-wrapper .slider-item .slide-content .slide-description {

        width: 100%;

        font-size: 1.4rem;

        line-height: 1.7;
    }


    .slide-buttons {

        flex-direction: column;

        gap: 0.8rem;

        margin-top: 1.6rem;
    }


    .slide-buttons .btn,
    .slide-buttons .white-btn {

        width: auto;

        min-width: 145px;

        padding: 0.85rem 1.5rem;

        font-size: 1.25rem;
    }


    /* Hide arrows on mobile/touch devices */

    .wrapper2 .slider-container .hero-button-prev.swiper-button-prev,
    .wrapper2 .slider-container .hero-button-next.swiper-button-next,
    .wrapper2 :where(
        .hero-button-prev,
        .hero-button-next
    ) {

        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }


    .wrapper2 .hero-pagination {

        bottom: 18px !important;
        padding: 6px 10px;
    }


    .wrapper2 .hero-pagination .swiper-pagination-bullet {

        width: 9px;
        height: 9px;
    }


    .wrapper2 .hero-pagination .swiper-pagination-bullet-active {

        width: 23px;
        height: 9px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .slider-container {

        height: 76vh;

        min-height: 540px;
    }


    .slider-wrapper .slider-item .slide-content {

        width: 86%;
    }


    .slider-wrapper .slider-item .slide-content .slide-title {

        font-size: 2rem;

        line-height: 1.3;
    }


    .slider-wrapper .slider-item .slide-content .slide-description {

        font-size: 1.3rem;

        line-height: 1.65;
    }


    .slide-buttons {

        margin-top: 1.4rem;
    }


    .slide-buttons .btn,
    .slide-buttons .white-btn {

        min-width: 135px;

        padding: 0.8rem 1.3rem;

        font-size: 1.2rem;
    }


    .wrapper2 .hero-pagination {

        bottom: 14px !important;
    }
}

/* =========================================================
   SWIPER OVERRIDES
   Keep custom controls stable even when Swiper CSS loads later.
========================================================= */

.wrapper2 .slider-container .hero-pagination.swiper-pagination-bullets,
.wrapper2 .slider-container .hero-pagination.swiper-pagination-horizontal {
    left: 50% !important;
    right: auto !important;
    bottom: 20px !important;
    width: auto !important;
    transform: translateX(-50%) !important;
}

.wrapper2 .slider-container .hero-button-prev.swiper-button-prev,
.wrapper2 .slider-container .hero-button-next.swiper-button-next {
    width: 46px !important;
    height: 46px !important;
    margin-top: 0 !important;
    overflow: hidden;
}

.wrapper2 .slider-container .hero-button-prev.swiper-button-prev {
    left: 24px !important;
    right: auto !important;
}

.wrapper2 .slider-container .hero-button-next.swiper-button-next {
    right: 24px !important;
    left: auto !important;
}

.wrapper2 .slider-container .hero-button-prev.swiper-button-prev::after,
.wrapper2 .slider-container .hero-button-next.swiper-button-next::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 17px !important;
    line-height: 1;
}

@media (max-width: 768px) {

    .wrapper2 .slider-container .hero-pagination.swiper-pagination-bullets,
    .wrapper2 .slider-container .hero-pagination.swiper-pagination-horizontal {
        bottom: 18px !important;
    }
}

@media (max-width: 450px) {

    .wrapper2 .slider-container .hero-pagination.swiper-pagination-bullets,
    .wrapper2 .slider-container .hero-pagination.swiper-pagination-horizontal {
        bottom: 14px !important;
    }
}
