/* =====================================================
   CNC-CONTROLS.CSS — Wonder Digimech
   Premium Dark & Light Theme using Shared Design System
   ===================================================== */

/* =====================================================
   GLOBAL SECTION BASE
   ===================================================== */
.cnc-theme-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider.products-slider {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2,6,23,0.85) 0%, rgba(2,6,23,0.6) 50%, rgba(2,6,23,0.8) 100%);
    z-index: 2;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active { opacity: 1; }

.slide-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 8s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}

.products-hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 90%;
    max-width: 900px;
}

.products-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    margin-top: 20px;
}

.products-hero-breadcrumb a { color: var(--text-secondary); }
.products-hero-breadcrumb a:hover { color: var(--secondary-color); }
.products-hero-breadcrumb .separator { color: var(--text-muted); }
.products-hero-breadcrumb .current { color: var(--primary-color); font-weight: 700; }

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicators .indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicators .indicator.active {
    width: 30px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
}

/* =====================================================
   ZIGZAG LAYOUT
   ===================================================== */
.cnc-zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    margin-top: 55px;
}

/* Dark Section Cards */
.bg-dark-section .cnc-zigzag-card {
    background: linear-gradient(145deg, rgba(15,23,42,0.8), rgba(9,14,32,0.95));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-xl);
    padding: 45px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.bg-dark-section .cnc-zigzag-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--primary-gradient);
    z-index: 5;
}

.bg-dark-section .cnc-zigzag-card h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
}

.bg-dark-section .cnc-zigzag-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* Light Section Cards */
.bg-light-section .cnc-zigzag-card,
.bg-light-section .dro-component-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    padding: 45px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.bg-light-section .cnc-zigzag-card:hover,
.bg-light-section .dro-component-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
    border-color: var(--primary-color);
}

.bg-light-section .cnc-zigzag-card h3,
.bg-light-section .dro-component-card h3 {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 16px;
}

.bg-light-section .cnc-zigzag-card p,
.bg-light-section .dro-component-card p {
    color: #475569;
    line-height: 1.8;
}

.bg-light-section .icon-wrap {
    width: 60px; height: 60px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all var(--transition-slow);
}

.bg-light-section .dro-component-card:hover .icon-wrap {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: rotate(10deg);
}

/* Image Wrapping / Carousel */
.cnc-img-wrap, .cnc-what-carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 400px;
}

.cnc-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cnc-img-wrap:hover img { transform: scale(1.05); }

.cnc-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.cnc-carousel-slide.active { opacity: 1; }

.cnc-carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* =====================================================
   SPLIT LAYOUT (SIDEBAR & SHOWCASE)
   ===================================================== */
.cnc-split-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 50px;
}

.cnc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cnc-sidebar-btn {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    color: #475569;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-slow);
    display: flex;
    align-items: center;
    gap: 14px;
}

.cnc-sidebar-btn i { color: var(--primary-color); }

.cnc-sidebar-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    transform: translateX(10px);
}

.cnc-sidebar-btn.active i { color: #ffffff; }

.cnc-sidebar-btn:hover:not(.active) {
    background: rgba(13, 148, 136, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.cnc-showcase-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    min-height: 420px;
}

.cnc-showcase-content {
    display: none;
    grid-template-columns: 1fr 1.2fr;
    gap: 35px;
    align-items: center;
}

.cnc-showcase-content.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

.cnc-showcase-content img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cnc-showcase-info h3 { color: #0f172a; font-weight: 800; font-size: 1.8rem; }
.cnc-showcase-info p { color: #475569; line-height: 1.7; }
.cnc-showcase-info ul { list-style: none; padding: 0; margin-top: 15px; }
.cnc-showcase-info ul li {
    padding: 8px 0;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cnc-showcase-info ul li i { color: var(--primary-color); }

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 991px) {
    .cnc-zigzag-row, .cnc-split-layout { grid-template-columns: 1fr; }
    .cnc-sidebar { flex-direction: row; flex-wrap: wrap; }
    .cnc-sidebar-btn { flex: 1; min-width: 150px; justify-content: center; }
    .cnc-showcase-content { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .cnc-zigzag-row {
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .cnc-zigzag-row,
    .cnc-split-layout {
        grid-template-columns: 1fr;
    }
    
    .cnc-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cnc-sidebar-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        justify-content: center;
        padding: 12px 16px;
    }
    
    .cnc-showcase-content {
        grid-template-columns: 1fr;
    }
    
    .cnc-img-wrap,
    .cnc-what-carousel {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .cnc-zigzag-card,
    .dro-component-card {
        padding: 32px 24px;
    }
    
    .cnc-showcase-card {
        padding: 32px 24px;
    }
    
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .prev-btn { left: 16px; }
    .next-btn { right: 16px; }
    
    .hero-indicators {
        bottom: 24px;
    }
}

@media (max-width: 576px) {
    .cnc-sidebar-btn {
        min-width: 100%;
    }
    
    .cnc-zigzag-row {
        gap: 28px;
    }
    
    .cnc-img-wrap,
    .cnc-what-carousel {
        height: 240px;
    }
}
