/* Carousel Section */
.carousel-section {
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0px 20px;
}

.carousel-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    cursor: grab;
    user-select: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 300px;
    margin-right: 20px;
    position: relative;
}

.carousel-slide:last-child {
    margin-right: 0;
}

.carousel-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-image:hover img {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.carousel-image:hover .carousel-overlay {
    transform: translateY(0);
}

.carousel-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.carousel-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #333;
    transition: all 0.3s ease-in-out;
}

.carousel-btn:hover {
    background: #667eea;
    transform: translateY(-50%) scale(1.1);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.dot:hover {
    background: #667eea;
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-section {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    
    .carousel-slide {
        flex: 0 0 280px;
    }
    
    .carousel-image {
        height: 220px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-section {
        padding: 25px 10px;
    }
    
    .carousel-slide {
        flex: 0 0 250px;
        margin-right: 15px;
    }
    
    .carousel-image {
        height: 200px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: -15px;
    }
    
    .next-btn {
        right: -15px;
    }
    
    .carousel-overlay {
        padding: 20px 15px 15px;
    }
    
    .carousel-name {
        font-size: 1rem;
    }
    
    .carousel-description {
        font-size: 0.75rem;
    }
}