/* Social Scroll Section CSS - Add this to your index.css file */
.header {
  display: none !important;
}
/* Social Scroll Section */
.social-scroll-section {
    background: #FF4A00;
    background-image: url('../../assets/img/heroSection-bg.png');
    background-size: contain;
    background-position: initial;
    background-repeat: no-repeat;
    padding: 80px 0 0 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.social-scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.social-scroll-title {
    display: flex;
    font-family:'Poppins-ExtraBold', sans-serif;
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    /* margin-bottom: 60px; */
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 0 0 20px;
}

/* Horizontal Slider Container */
.horizontal-slider-container {
    position: relative;
    margin: 90px 0;
    padding: 0 20px;
    overflow: visible;
    z-index: 3;
}

/* Desktop Navigation Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: #004AD6;
    /* border: 3px solid #FFE500; */
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* .slide-arrow:hover {
    background: rgba(255, 229, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
} */

.slide-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.arrow-prev {
    left: 10px;
}

.arrow-next {
    right: 5px;
}

.slide-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 3px solid #ffffff;
    border-bottom: none;
    border-right: none;
    transform: rotate(-45deg);
    margin-right: 3px;
}

.arrow-prev::before {
    margin-left: 5px;
}

.arrow-next::before {
    transform: rotate(135deg);
    margin-right: 5px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .slide-arrow {
        display: none;
        width: 50px;
        height: 50px;
    }
}

/* SWIPER CONTAINER */
.social-swiper {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 30px 0 0 0;
    position: relative;
    z-index: 4;

    /* Let Swiper handle touch events natively */
    touch-action: auto !important;
    -webkit-touch-callout: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;

    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.social-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    pointer-events: auto;

    /* Remove restrictive touch-action */
    touch-action: auto !important;

    /* Hardware acceleration for smooth transforms */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 5;

    /* Smooth transitions */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-swiper .swiper-slide {
    width: 360px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;

    /* Allow natural touch behavior */
    touch-action: auto !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: auto;
    user-select: auto;
    z-index: 6;

    /* Hardware acceleration */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Video Card Styling */
.video-card {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    width: 100%;
    height: 500px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    pointer-events: auto;

    /* Remove touch restrictions */
    touch-action: auto !important;
    isolation: isolate;
    z-index: 7;

    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .video-card:hover {
        transform: translateY(-8px);
        z-index: 15;
    }
}

/* Instagram Embed Container */
.instagram-embed-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: auto !important;
    z-index: 8;

    /* Allow Instagram touch events */
    touch-action: auto !important;
    -webkit-touch-callout: auto;
    user-select: auto;
}

.instagram-embed-container .instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 20px !important;
    background: transparent !important;
    margin: 0 !important;
    pointer-events: auto !important;
    z-index: 9;

    /* Allow Instagram interactions */
    touch-action: auto !important;
    user-select: auto;
}

.instagram-embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 20px !important;
    pointer-events: auto !important;
    z-index: 10;

    /* Critical for video playback */
    touch-action: auto !important;
    user-select: auto;
}

/* Enable Instagram interaction on desktop */
@media (min-width: 769px) {
    .instagram-embed-container,
    .instagram-embed-container .instagram-media,
    .instagram-embed-container iframe {
        pointer-events: auto !important;
        touch-action: auto !important;
    }
}

.instagram-embed-container,
.instagram-embed-container *,
.instagram-embed-container iframe,
.instagram-embed-container .instagram-media {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

/* SCROLLBAR STYLING */
.social-swiper .swiper-scrollbar {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    width: 300px;
    height: 8px;
    border-radius: 4px;
    margin: 40px auto 0 auto;
    display: block;
    opacity: 1;
    visibility: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Smooth scrollbar interaction */
    touch-action: auto !important;
    pointer-events: auto;
    z-index: 20;
    
    /* Hardware acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.social-swiper .swiper-scrollbar-drag {
    background: #92278F;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    visibility: visible;
    height: 100%;
    width: 80px;
    min-width: 40px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    display: block;
    
    /* Smooth drag interaction */
    touch-action: auto !important;
    pointer-events: auto;
    z-index: 21;
    
    /* Performance */
    will-change: transform;
    transform: translateZ(0);
}

.social-swiper .swiper-scrollbar-drag:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.social-swiper .swiper-scrollbar-drag:hover {
    transform: scale(1.02);
}

/* GPU ACCELERATION FOR SMOOTH SCROLLING */
.social-swiper,
.social-swiper .swiper-wrapper,
.social-swiper .swiper-slide,
.video-card {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
}

/* Loading States */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 100%);
    color: #FFE500;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 30px;
    pointer-events: none;
    touch-action: pan-x;
    z-index: 5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 229, 0, 0.2);
    border-left: 4px solid #FFE500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
}

/* Error States */
.error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d1b1b 0%, #3d1b1b 100%);
    color: #ff6b6b;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 30px;
    pointer-events: none;
    touch-action: pan-x;
    z-index: 5;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.error-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Hide default pagination dots */
.social-swiper .swiper-pagination {
    display: none;
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 991px) {
    .social-scroll-section {
        padding: 60px 0;
    }

    .social-scroll-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .horizontal-slider-container {
        padding: 0 60px;
        margin: 60px 0;
    }

    .video-card {
        height: 380px;
    }

    .social-swiper .swiper-slide {
        width: 260px;
    }

    .social-swiper .swiper-scrollbar {
        width: 250px;
        height: 6px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .social-scroll-section {
        padding: 50px 0;
    }

    .social-scroll-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .horizontal-slider-container {
        padding: 0 20px;
        margin: 50px 0;
    }

    .social-swiper {
        padding: 40px 0 90px 0;
    }

    .social-swiper .swiper-slide {
        width: 240px;
    }

    .video-card {
        height: 340px;
    }

    .social-swiper .swiper-scrollbar {
        width: 200px;
        height: 5px;
        margin: 30px auto 0 auto;
    }

    .social-swiper .swiper-scrollbar-drag {
        min-height: 5px;
        border-radius: 3px;
    }

    .social-swiper .swiper-scrollbar-drag:active {
        transform: scaleY(1.3);
    }

    .loading-card {
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .social-scroll-section {
        padding: 40px 0;
        min-height: 0;
        background-position: bottom;
    }

    .social-scroll-title {
        font-size: 30px;
    }

    .horizontal-slider-container {
        margin: 40px 0;
    }

    .social-swiper {
        padding: 35px 0 85px 0;
    }

    .social-swiper .swiper-slide {
        width: 280px;
    }

    .video-card {
        height: 360px;
    }

    .social-swiper .swiper-scrollbar {
        width: 180px;
        height: 4px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .social-scroll-title {
        font-size: 30px;
    }

    .social-swiper .swiper-slide {
        width: 275px;
        height: 380px;
    }

    .video-card {
        height: 397px;
    }

    .social-swiper .swiper-scrollbar {
        width: 160px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .video-card,
    .slide-arrow,
    .social-swiper .swiper-scrollbar-drag {
        transition: none;
    }

    .loading-spinner {
        animation: none;
    }
}