/* Reusable Carousel Styles for Landing Pages */

/* Testimonials Carousel */
.testimonials-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonials-carousel .testimonial-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .testimonials-carousel .testimonial-card {
        flex-basis: 46%;
        max-width: 46%;
    }
}

@media (min-width: 1024px) {
    .testimonials-carousel .testimonial-card {
        flex-basis: 32%;
        max-width: 32%;
    }
}

/* Gallery Carousel */
.gallery-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-carousel .gallery-item {
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    scroll-snap-align: center;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
}

.gallery-carousel .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-carousel .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.gallery-carousel .gallery-item img.gallery-lazy {
    opacity: 0;
}

.gallery-carousel .gallery-item img.gallery-lazy[loading="lazy"] {
    opacity: 1;
}

.gallery-carousel .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
    pointer-events: none;
    z-index: 1;
}

.gallery-carousel .gallery-item img[loading="lazy"]:not([src=""]) ~ ::before {
    display: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (min-width: 768px) {
    .gallery-carousel .gallery-item {
        width: 320px;
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .gallery-carousel .gallery-item {
        width: 360px;
        height: 360px;
    }
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    backdrop-filter: saturate(180%) blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-btn.prev {
    right: 0.5rem;
}

.carousel-btn.next {
    left: 0.5rem;
}

@media (min-width: 768px) {
    .carousel-btn.prev {
        right: -1rem;
    }
    
    .carousel-btn.next {
        left: -1rem;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}


