/* Interactive Features Section */
.interactive-features {
    padding: 6rem 0;
    font-family: 'Inter', sans-serif;
    background-color: transparent !important;
    /* Ensure it blends with dark theme */
}

.interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
    /* Prevent layout shift */
}

/* Phone Mockup Area */
.feature-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-frame {
    width: 500px;
    min-height: 600px;
    background: transparent;
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    overflow: visible;
    position: relative;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-screen {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
}

.mockup-screen.active {
    opacity: 1;
}

/* Features List Navigation */
.features-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-nav-item {
    padding: 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-nav-item.active {
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3), 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    transform: translateX(10px);
}

/* Progress Bar (Animation Line) for Active Item */
.feature-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #0066FF, #00C2FF);
    transition: none;
}

.feature-nav-item.active::after {
    width: 100%;
    transition: width 5s linear;
    /* Matches the 5s rotation */
}

/* Icon */
.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #94A3B8;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-nav-item.active .nav-icon {
    color: #0066FF;
}

.nav-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #F8FAFC;
    /* Light text for inactive state on dark mode */
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-nav-item.active .nav-content h3 {
    color: #FFFFFF;
    /* Keep light text for active highlighted card */
}

.nav-content p {
    font-size: 0.95rem;
    color: #94A3B8;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.feature-nav-item.active .nav-content p {
    color: #CBD5E1;
}

/* Responsive */
@media (max-width: 1024px) {
    .interactive-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-display {
        order: -1;
        /* Image first on mobile */
    }

    .phone-mockup-frame {
        width: 400px;
        max-width: 90%;
    }

    .features-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-nav-item {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .phone-mockup-frame {
        width: 100%;
        max-width: 350px;
    }

    .features-nav {
        grid-template-columns: 1fr;
    }

    .feature-nav-item.active {
        transform: translateX(0) scale(1.02);
    }
}