:root {
            --primary: #98b4db;
            --primary-dark: #7a9bc8;
            --dark: #000000;
            --light: #121212;
            --text: #ffffff;
            --text-secondary: #98b4db;
            --card-bg: #1a1a1a;
            --border: #2a2a2a;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--text);
            background-color: var(--dark);
            line-height: 1.6;
        }

        /* Header */
        .header {
            background-color: var(--dark);
            color: var(--text);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 100;
            border-bottom: 1px solid var(--primary);
            flex-wrap: wrap;
            gap: 1rem;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--primary);
            min-width: 150px;
        }

        .logo-img {
            width: 100%;
            max-width: 200px;
            height: auto;
        }

        .ai-assistant {
            background-color: rgba(152, 180, 219, 0.2);
            text-decoration: none;
            color: var(--primary);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            border: 1px solid var(--primary);
            white-space: nowrap;
        }

        .ai-assistant::before {
            content: "✦";
            margin-right: 0.5rem;
            font-size: 1.1rem;
        }

        /* Main Container */
        .main-container {
            display: flex;
            flex-direction: column;
            min-height: calc(100vh - 80px);
            background-color: var(--dark);
        }

        /* 3D Viewer Section */
        .viewer-section {
            position: relative;
            background: var(--dark);
            display: flex;
            flex-direction: column;
            border-bottom: 1px solid var(--primary);
            height: 60vh;
            min-height: 400px;
        }

        .model-title {
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.8);
            color: var(--text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 10;
            border-bottom: 1px solid var(--primary);
        }

        .model-title h1 {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--primary);
        }

        .model-title p {
            font-size: clamp(0.9rem, 2vw, 1rem);
            opacity: 0.9;
        }

        .model-title a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        model-viewer {
            width: 100%;
            height: 100%;
            --progress-bar-color: var(--primary);
        }

        .viewer-controls {
            position: absolute;
            bottom: 1.5rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 1rem;
            z-index: 10;
        }

        .viewer-btn {
            background-color: rgba(152, 180, 219, 0.2);
            color: var(--primary);
            border: 1px solid var(--primary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .viewer-btn:hover {
            background-color: rgba(152, 180, 219, 0.4);
            transform: scale(1.1);
        }

        /* Configurator Section */
        .configurator-section {
            padding: 2rem 1.5rem;
            overflow-y: auto;
            background-color: var(--dark);
            color: var(--text);
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .config-title {
            font-size: clamp(1.5rem, 4vw, 1.8rem);
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .config-subtitle {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            font-size: clamp(0.9rem, 2vw, 1rem);
        }

        /* Specs Grid */
        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .spec-card {
            background-color: var(--card-bg);
            padding: 1.2rem 0.5rem;
            border-radius: 8px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--border);
        }

        .spec-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(152, 180, 219, 0.1);
            border-color: var(--primary);
        }

        .spec-value {
            font-size: clamp(1.4rem, 3vw, 1.8rem);
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.3rem;
        }

        .spec-label {
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Payment Tabs */
        .payment-tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            margin: 1.5rem 0;
            overflow-x: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }

        .payment-tabs::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .tab {
            padding: 0.8rem 1rem;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            color: var(--text-secondary);
            white-space: nowrap;
            font-size: clamp(0.8rem, 2vw, 1rem);
        }

        .tab.active {
            color: var(--primary);
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary);
        }

        /* Model Options */
        .model-options {
            margin: 1.5rem 0;
        }

        .model-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1.2rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .model-card:hover {
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(152, 180, 219, 0.1);
        }

        .model-card.selected {
            border: 2px solid var(--primary);
            background-color: rgba(152, 180, 219, 0.05);
        }

        .model-name {
            font-size: clamp(1.1rem, 3vw, 1.2rem);
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        .model-price {
            font-size: clamp(1.3rem, 3vw, 1.5rem);
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .model-details {
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin: 1.5rem 0;
            flex-wrap: wrap;
        }

        .btn {
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 1 1 200px;
            font-size: clamp(0.9rem, 2vw, 1rem);
        }

        .btn-primary {
            background-color: var(--primary);
            color: var(--dark);
            border: none;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(152, 180, 219, 0.3);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover {
            background-color: rgba(152, 180, 219, 0.1);
        }

        /* Savings Note */
        .savings-note {
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            color: var(--text-secondary);
            text-align: center;
            margin-top: 1rem;
            padding: 0.8rem;
            background-color: var(--card-bg);
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        /* Desktop Layout */
        @media (min-width: 992px) {
            .main-container {
                flex-direction: row;
                min-height: calc(100vh - 80px);
            }
            
            .viewer-section {
                height: auto;
                border-right: 1px solid var(--primary);
                border-bottom: none;
                flex: 1.5;
            }
            
            .configurator-section {
                flex: 1;
                padding: 3rem;
                max-height: calc(100vh - 80px);
                overflow-y: auto;
            }
            
            .specs-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
            
            .spec-card {
                padding: 1.5rem;
            }
            
            .action-buttons {
                flex-wrap: nowrap;
            }
        }

        /* Tablet Layout */
        @media (min-width: 768px) and (max-width: 991px) {
            .header {
                padding: 1rem 2rem;
                flex-direction: row;
            }
            
            .logo-img {
                width: 180px;
            }
            
            .specs-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

/* Mobile Landscape */
@media screen and (max-width: 768px) {
    viewer-section {
        height: 70vh;
    }

    .header{
        background-color: var(--dark);
        color: var(--text);
        padding: 1rem 2rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: relative;
        z-index: 100;
        border-bottom: 1px solid var(--primary);
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo{
        width: 5%;
    }

    .logo-img{
        width: 10%;

    }
}

/* Color Options */
.color-options {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.options-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.color-group {
    margin-bottom: 1.5rem;
}

.color-group-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 500;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.color-swatch.selected .swatch {
    box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px var(--text);
}

.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.swatch-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-swatches {
        justify-content: space-between;
    }
    
    .color-swatch {
        flex: 0 0 calc(25% - 1rem);
    }
}