/* ============================================
   Features Carousel - Film Roll Style
   ============================================ */

.features-carousel {
    position: relative;
    padding: 60px 0 60px;
    overflow: visible;
    min-height: auto;
    background: transparent;
    z-index: 1;
}

.features-carousel .container {
    position: relative;
    z-index: 1;
}

.features-carousel .section-header {
    text-align: center;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    padding: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    z-index: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    overflow: visible;
    gap: 20px;
    width: max-content;
}

.carousel-slide {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    overflow: visible;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
    filter: blur(5px);
    opacity: 0.6;
    pointer-events: none;
}

.carousel-slide.active {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.feature-showcase {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.feature-screenshot {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 24px 24px 0 0;
    max-height: 500px;
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 24px 20px 16px;
    color: white;
    border-radius: 0 0 24px 24px;
}

.feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.feature-overlay p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 10;
    margin: 0 16px;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: var(--primary-color);
    color: white;
    border: none;
}

.carousel-nav.prev {
    left: 16px;
}

.carousel-nav.next {
    right: 16px;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: var(--primary-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-container {
        width: 100%;
        padding: 0;
    }

    .carousel-slide {
        width: calc(33.333% - 10px);
        min-width: calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 8px;
    }

    .carousel-nav.prev {
        left: 8px;
    }

    .carousel-nav.next {
        right: 8px;
    }
}

@media (max-width: 500px) {
    .carousel-container {
        width: 100%;
        padding: 0;
    }

    .carousel-slide {
        width: calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        transform: scale(0.75);
    }

    .carousel-slide.active {
        transform: scale(0.9);
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin: 0 4px;
    }

    .carousel-nav.prev {
        left: 4px;
    }

    .carousel-nav.next {
        right: 4px;
    }

    .feature-showcase {
        max-width: 180px;
    }

    .feature-overlay h3 {
        font-size: 1.25rem;
    }

    .feature-overlay p {
        font-size: 0.875rem;
    }
}