/* Container Layout */
.machine-showcase {
    padding: 100px 5%;
    background: #f8fbff;
}

.machine-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    /* Fixed Sidebar Width */
    gap: 0;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(10, 25, 47, 0.08);
}

/* Sidebar Styles */
.machine-sidebar {
    background: #0A192F;
    /* Deep Navy */
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-branding .mini-logo {
    width: 120px;
    margin-bottom: 15px;
}

.eco-tag {
    color: #007BFF;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Tab Buttons */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s all ease;
    text-align: left;
    width: 100%;
}

.tab-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
}

.tab-label strong {
    display: block;
    color: #e2e8f0;
    font-size: 1rem;
}

.tab-label span {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Active State */
.side-tab.active {
    background: #007BFF;
    border-color: #007BFF;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.side-tab.active .tab-icon-box {
    background: #fff;
    color: #007BFF;
}

.side-tab.active .tab-label strong {
    color: #fff;
}

.side-tab.active .tab-label span {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Button */
.own-tech-btn {
    background: #fff;
    color: #0A192F;
    display: block;
    text-align: center;
    padding: 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: 0.3s;
}

.own-tech-btn:hover {
    background: #007BFF;
    color: #fff;
}

/* Right Panel Styles */
.display-panel {
    padding: 60px;
    background: #fcfdfe;
}

.panel-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0A192F;
    margin-top: 10px;
}

.blue-text {
    color: #007BFF;
}

.glass-card {
    margin-top: 40px;
    background: #fff;
    border-radius: 30px;
    height: 450px;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.view-type {
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Right Panel Content Styling --- */
.content-body {
    transition: all 0.4s ease;
    height: 100%;
}

/* 1. Demo Styles - Modern Video Card */
.demo-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* --- Updated Demo Styles --- */
.video-preview-wrapper {
    width: 100%;
    height: 320px;
    /* Reduced Height for better balance */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Video stretch nahi hogi, perfectly fit hogi */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 40%);
    pointer-events: none;
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    animation: pulse 2s infinite;
    letter-spacing: 1px;
}

/* 2. Overview Styles - Feature Grid */
.ov-header h3 {
    font-size: 1.8rem;
    color: #0A192F;
    margin-bottom: 10px;
}

.ov-header p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.ov-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eef2f6;
    transition: 0.3s ease;
}

.ov-card:hover {
    border-color: #007BFF;
    transform: translateY(-5px);
}

.ov-card i {
    font-size: 1.6rem;
    color: #007BFF;
    margin-bottom: 12px;
}

.ov-card strong {
    display: block;
    font-size: 1rem;
    color: #0A192F;
    margin-bottom: 5px;
}

.ov-card span {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* 3. Slider Styles - Pro 360 View */
.slider-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 380px;
    background: radial-gradient(circle, #ffffff 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

#playPauseBtn {
    background: rgba(10, 25, 47, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#playPauseBtn:hover {
    background: #007BFF;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.dot.active {
    width: 22px;
    background: #007BFF;
    border-radius: 10px;
}

/* 4. Specs Styles - Blueprint Table */
.specs-detailed {
    padding: 5px;
}

.specs-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.95rem;
}

.spec-row span {
    color: #64748b;
    font-weight: 500;
}

.spec-row strong {
    color: #0A192F;
    font-weight: 700;
}

/* Global UI Helpers */
.feature-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.f-item {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.f-item i {
    color: #007BFF;
    font-size: 1.3rem;
}

.slider-hint {
    text-align: center;
    margin-top: 15px;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}


/* ============================= */
/* RESPONSIVE MACHINE SHOWCASE   */
/* ============================= */

/* Tablet View */
@media (max-width: 1024px) {

    .machine-container {
        grid-template-columns: 300px 1fr;
        height: auto;
    }

    .display-panel {
        padding: 40px 30px;
    }

    .panel-title {
        font-size: 2.2rem;
    }

}


/* Mobile View */
@media (max-width: 768px) {

    .machine-showcase {
        padding: 40px 15px;
    }

    .machine-container {
        grid-template-columns: 1fr;
        border-radius: 25px;
        height: auto;
    }

    /* Sidebar becomes top tab bar */
    .machine-sidebar {
        padding: 20px;
        border-radius: 0 0 25px 25px;
    }

    .sidebar-branding {
        text-align: center;
        margin-bottom: 15px;
    }

    .sidebar-branding .mini-logo {
        width: 90px;
        margin: 0 auto 10px;
        display: block;
    }

    /* Horizontal Tabs */
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .side-tab {
        min-width: 160px;
        padding: 12px;
        border-radius: 15px;
    }

    .tab-icon-box {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .tab-label strong {
        font-size: 0.85rem;
    }

    .tab-label span {
        font-size: 0.65rem;
    }

    /* Own Tech Button */
    .sidebar-footer {
        margin-top: 15px;
    }

    .own-tech-btn {
        padding: 12px;
        font-size: 0.8rem;
    }

    /* Right Panel */
    .display-panel {
        padding: 25px 15px;
    }

    .panel-title {
        font-size: 1.7rem;
    }

    /* Video Responsive */
    .video-preview-wrapper {
        height: 200px;
    }

    /* Slider Responsive */
    .slider-wrapper {
        height: 240px;
    }

    /* Overview Grid */
    .ov-grid {
        grid-template-columns: 1fr;
    }

    /* Feature Mini Grid */
    .feature-grid-mini {
        grid-template-columns: 1fr;
    }

}


/* Small Phones */
@media (max-width: 480px) {

    .panel-title {
        font-size: 1.4rem;
    }

    .video-preview-wrapper {
        height: 180px;
    }

    .slider-wrapper {
        height: 200px;
    }

    .glass-card {
        height: auto;
        padding: 20px;
    }

}

@media (max-width:768px) {

    .machine-sidebar {
        display: block !important;
        padding: 20px 15px !important;
    }

    .sidebar-footer {
        position: relative;
        width: 100%;
        margin-top: 10px;
    }

    .own-tech-btn {
        width: 100%;
        display: block;
    }

    .sidebar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .side-tab {
        flex: 0 0 auto;
        min-width: 140px;
    }

    .machine-container {
        overflow: visible !important;
    }

    .display-panel {
        margin-top: 10px;
    }

}