/**
 * Customer Sketches Carousel Styles
 * 5-Card Layout: 2 Left | 1 Center (Scaled) | 2 Right
 */

/* Main carousel container */
.customer-sketches-carousel {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto;
    padding: 60px 20px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: #000000;
}

/* Section title */
.carousel-header {
    text-align: center;
    margin-bottom: 60px;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Carousel wrapper */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Track container */
#carouselTrack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual carousel item */
.carousel-item {
    position: absolute;
    width: 280px;
    height: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Position classes for 5-card layout */

/* Left 2 cards */
.carousel-item.left-2 {
    transform: translateX(-600px) scale(0.75);
    opacity: 0.4;
    z-index: 1;
}

.carousel-item.left-1 {
    transform: translateX(-320px) scale(0.85);
    opacity: 0.6;
    z-index: 2;
}

/* Center card - SCALED UP */
.carousel-item.center {
    transform: translateX(0) scale(1.15);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Right 2 cards */
.carousel-item.right-1 {
    transform: translateX(320px) scale(0.85);
    opacity: 0.6;
    z-index: 2;
}

.carousel-item.right-2 {
    transform: translateX(600px) scale(0.75);
    opacity: 0.4;
    z-index: 1;
}

/* Hidden items */
.carousel-item.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Navigation buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 20px;
    color: #667eea;
}

.carousel-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Pagination dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Responsive Design */

/* Tablets */
@media screen and (max-width: 992px) {
    .customer-sketches-carousel {
        margin: 60px auto;
        padding: 40px 20px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-wrapper {
        height: 350px;
    }
    
    .carousel-item {
        width: 240px;
        height: 280px;
    }
    
    .carousel-item.left-2 {
        transform: translateX(-500px) scale(0.7);
    }
    
    .carousel-item.left-1 {
        transform: translateX(-280px) scale(0.8);
    }
    
    .carousel-item.center {
        transform: translateX(0) scale(1.1);
    }
    
    .carousel-item.right-1 {
        transform: translateX(280px) scale(0.8);
    }
    
    .carousel-item.right-2 {
        transform: translateX(500px) scale(0.7);
    }
}

/* Mobile - Show only 3 cards */
@media screen and (max-width: 768px) {
    .customer-sketches-carousel {
        margin: 40px 10px;
        padding: 30px 15px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-subtitle {
        font-size: 0.9rem;
    }
    
    .carousel-wrapper {
        height: 300px;
    }
    
    .carousel-item {
        width: 200px;
        height: 240px;
        padding: 15px;
    }
    
    /* Show only 3 cards on mobile: 1 left, center, 1 right */
    .carousel-item.left-2 {
        opacity: 0;
        transform: translateX(-400px) scale(0.5);
    }
    
    .carousel-item.left-1 {
        transform: translateX(-220px) scale(0.75);
        opacity: 0.5;
    }
    
    .carousel-item.center {
        transform: translateX(0) scale(1);
    }
    
    .carousel-item.right-1 {
        transform: translateX(220px) scale(0.75);
        opacity: 0.5;
    }
    
    .carousel-item.right-2 {
        opacity: 0;
        transform: translateX(400px) scale(0.5);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
}

/* Small mobile */
@media screen and (max-width: 576px) {
    .carousel-wrapper {
        height: 260px;
    }
    
    .carousel-item {
        width: 180px;
        height: 220px;
    }
    
    .carousel-item.left-1 {
        transform: translateX(-200px) scale(0.7);
    }
    
    .carousel-item.right-1 {
        transform: translateX(200px) scale(0.7);
    }
    
    .carousel-dots {
        gap: 8px;
        margin-top: 30px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Loading state */
.carousel-item.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover effects for center card */
.carousel-item.center:hover {
    transform: translateX(0) scale(1.18);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

