/* ========================================
   FEATURES SECTION - Mobile First
   ======================================== */

.features-interactive {
    padding: 3rem 0.5rem;
    position: relative;
}

.features-interactive .container {
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
    max-width: 100%;
    padding-top: 50px;
}

/* ========================================
   MOBILE CAROUSEL (< 768px)
   ======================================== */

.features-desktop { display: none; }
.mobile-carousel { display: block; position: relative; padding: 0; }

.carousel-container {
    background: url('../assets/Background/Background.png') center/cover;
    border-radius: 20px;
    padding: 2rem 1rem;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    animation: slideInCarousel 0.4s ease;
}

.carousel-slide.active { display: flex; }

.slide-text { width: 100%; padding: 0 0.5rem; }

.slide-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slide-icon { width: 48px; height: 48px; color: var(--primary); }

.slide-text h3 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 0.75rem; font-weight: 700; }
.slide-text p { font-size: 1rem; color: #4a5568; line-height: 1.6; }

.slide-image { width: 100%; display: flex; justify-content: center; align-items: center; }

.slide-image img,
.slide-image video {
    max-width: 95%;
    height: auto;
    width: 80%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.carousel-dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

.dot {
    width: 10px; height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: none; border-radius: 50%;
    cursor: pointer; transition: all 0.3s ease; padding: 0;
}

.dot.active { background: var(--primary); width: 12px; height: 12px; }

@keyframes slideInCarousel {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   TABLET & DESKTOP (>= 768px)
   ======================================== */

@media (min-width: 768px) {
    .features-interactive { padding: 4rem 2rem; }
    .mobile-carousel { display: none; }

    .features-desktop {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 2rem;
        align-items: flex-start;
    }

    .desktop-buttons { display: flex; flex-direction: column; gap: 1rem; }

    .desktop-btn {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .desktop-btn::before { display: none; }

    .desktop-btn.active {
        background: white;
        border-left: 3px solid var(--primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .desktop-btn > .feature-icon {
        width: 28px; height: 28px;
        color: #404040;
        transition: color 0.3s ease;
        z-index: 10;
        position: relative;
        flex-shrink: 0;
    }

    .desktop-btn.active > .feature-icon,
    .desktop-btn.active > .feature-icon svg,
    .desktop-btn.active > .feature-icon path {
        stroke: rgb(46, 46, 46) !important;
        color: rgb(46, 46, 46) !important;
    }

    .desktop-btn-text { position: relative; z-index: 1; flex: 1; }

    .desktop-btn-text h3 {
        font-size: 1.3rem; color: #404040;
        margin-bottom: 0.4rem; font-weight: 700;
        transition: color 0.3s ease;
    }

    .desktop-btn-text p {
        font-size: 0.95rem; color: #666;
        transition: color 0.3s ease;
    }

    .desktop-btn.active .desktop-btn-text h3,
    .desktop-btn.active .desktop-btn-text p { color: rgb(46, 46, 46); }

    .desktop-btn:hover:not(.active) {
        border-color: var(--primary-light);
        transform: translateX(5px);
    }

    .desktop-display {
        background: url('../assets/Background/Background.png') center/cover;
        border-radius: 24px;
        padding: 2rem;
        min-height: 400px;
        max-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .desktop-image { display: none; animation: fadeIn 0.4s ease; }

    .desktop-image.active {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        margin: 1rem;
    }

    .desktop-image img,
    .desktop-image video {
        max-width: 40%;
        min-width: 200px;
        height: auto;
        border-radius: 16px;
        max-height: 60%;
        object-fit: contain;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        margin: 1rem;
    }
}

@media (min-width: 1200px) {
    .features-interactive { padding: 6rem 2rem; }
    .desktop-image img,
    .desktop-image video { max-width: 48%; max-height: 450px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
