.modern-side-feature {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.modern-side-feature.has-grid-bg {
    background-image:
        linear-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

.modern-side-feature.theme-dark.has-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.side-feature-visual-wrapper {
    position: relative;
    min-height: 550px;
    /* Increased to accommodate iMac mockups */
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-feature-visual-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-feature-visual-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Sub-Carousel */
.visual-carousel-inner {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-img {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(40px);
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Base Shadow */

.sub-img.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* Sub-carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

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

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

.theme-light .carousel-nav {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-title);
}

/* Pagination Dots */
.visual-carousel-dots {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    /* Over mockup base */
    justify-content: center;
    z-index: 10;
    padding: 10px;
}

.visual-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.visual-carousel-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.theme-light .visual-carousel-dots .dot {
    background: rgba(0, 0, 0, 0.2);
}

.visual-glass-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.mini-feature-item {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.theme-dark .mini-feature-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.mini-feature-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: translateX(5px);
}

.mini-feature-item.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theme-dark .mini-feature-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.mini-active-border {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.mini-feature-item.active .mini-active-border {
    height: 40px;
}

.mini-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 20px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.theme-dark .mini-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mini-feature-item.active .mini-icon {
    background: var(--primary-color);
    color: #fff;
}

.mini-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.mini-desc {
    font-size: 1rem;
    color: var(--text-body);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0;
}

.mini-active-border {
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.mini-feature-item.active .mini-active-border {
    opacity: 1;
}

/* ─── Theme Dark Variant ────────────────────────────────── */
.theme-dark {
    background: #0F172A;
    /* Deep Navy from Octor */
    color: #fff;
}

.theme-dark .section-title {
    color: #fff;
}

.theme-dark .section-lead {
    color: rgba(255, 255, 255, 0.7);
}

.theme-dark .mini-title {
    color: #fff;
}

.theme-dark .mini-desc {
    color: rgba(255, 255, 255, 0.6);
}

.theme-dark .mini-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .mini-feature-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.theme-dark .mini-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.theme-dark .mini-feature-item.active .mini-icon {
    background: #fff;
    color: #0F172A;
}

.theme-dark .visual-glass-glow {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.theme-dark .side-feature-visual-item img {
    border: none;
}

/* Specific Section Themes */
.bg-light-glass {
    background: rgba(var(--primary-rgb), 0.02);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .side-feature-visual-wrapper {
        min-height: 400px;
        margin-bottom: 40px;
    }

    .side-feature-content {
        text-align: center;
    }

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