/* ==========================================================================
   GSAP Horizontal Scroller Stylesheet (Isolated Setup - Havells Portfolio)
   ========================================================================== */

/* Outer Section Wrapper */
.havells-gsap-scroller-section {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

/* Desktop Styles (> 992px) */
@media (min-width: 993px) {
    .gsap-scroller-pin-container {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        background-color: #000;
    }

    .gsap-scroller-track {
        display: flex;
        flex-direction: row;
        height: 100%;
        width: max-content;
        will-change: transform;
        gap: 0;
    }

    .gsap-slide {
        width: 100vw;
        height: 100vh;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        position: relative;
    }

    .gsap-slide-inner {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1000px;
        padding: 0;
        margin: 0;
    }

    .gsap-slide-inner img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 16px;
        box-shadow: 0 30px 70px rgba(227, 30, 36, 0.18), 0 15px 35px rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }

    .gsap-slide-inner img:hover {
        transform: scale(1.02) translateY(-10px);
        border-color: rgba(227, 30, 36, 0.35);
    }
}

/* Mobile & Tablet Styles (<= 992px) */
@media (max-width: 992px) {
    .havells-gsap-scroller-section {
        padding: 40px 0;
        background-color: #000;
    }

    .gsap-scroller-pin-container {
        width: 100%;
        overflow: visible;
    }

    .gsap-scroller-track {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px 20px 20px;
        gap: 0;
        scrollbar-width: none; /* Firefox */
    }

    .gsap-scroller-track.auto-scrolling {
        scroll-snap-type: none;
    }

    .gsap-scroller-track::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .gsap-slide {
        width: 80vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .gsap-slide-inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gsap-slide-inner img {
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(227, 30, 36, 0.12), 0 10px 20px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}
