:root {
    --primary: #6366f1;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);

}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}


        /* Model Detail Page Styles */
        .model-header {
            background: var(--gradient);
            color: white;
            clip-path: ellipse(150% 100% at 50% 0%);
        }

/* Featured Product Section - Responsive */
.featured-product {
    padding: 10px 0;
    background-color: var(--light);
}

.featured-product .container {
    max-width: 1200px;
}

.featured-product .row {
    align-items: center;
    min-height: auto;
}

.featured-product img {
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.featured-product img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    bottom: 0;
    left: 25%;
    border-radius: 2px;
}

.featured-product p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.featured-product .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6c757d;
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .featured-product {
        padding: 10px 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .featured-product p {
        font-size: 1.2rem;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .featured-product {
        padding: 10px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .featured-product {
        padding: 10px 0;
        display: flex;
    }
    
    .featured-product .row {
        display: flex;
        flex-direction: row;
    }
    
    .featured-product .col-lg-4 {
        margin-bottom: 10px;
        width: 40%;
        float: left;
    }
    
    .featured-product .col-lg-6 {
        width: 60%;
        float: right;
        padding-left: 20px;
        text-align: left;
    }
    
    .featured-product img {
        border-radius: 12px;
        width: 100%;
    }
    
    .section-title {
        font-size: 2.2rem;
        text-align: left;
    }
    
    .section-title::after {
        left: 25%;
        transform: none;
        width: 60%;
    }
    
    .featured-product p {
        font-size: 1.05rem;
        text-align: left;
    }
}

/* Small Tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .featured-product {
        padding: 10px 0;
        float:inherit;
    }
    
    .featured-product .col-lg-4 {
        margin-bottom: 10px;
    }
    
    .featured-product img {
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
    
    .section-title::after {
        left: 50%;  
        transform: translateX(-50%);
        width: 70%;
        height: 3px;
    }
    
    .featured-product p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.6;
    }
    
    .featured-product .lead {
        font-size: 1.1rem;
    }
    
    .featured-product .col-lg-6 {
        text-align: center;
    }
}

/* Mobile (below 576px) */
@media (max-width: 575px) {
    .featured-product {
        padding: 5px 0;
    }
    
    .featured-product .container {
        padding: 0 5px;
    }
    
    .featured-product .col-lg-4 {
        margin-bottom: 10px;
    }
    
    .featured-product img {
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .featured-product img:hover {
        transform: scale(1.02);
    }
    
    .section-title {
        font-size: 1.75rem;
        text-align: center;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 3px;
    }
    
    .featured-product p {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .featured-product .lead {
        font-size: 1.05rem;
    }
    
    .featured-product .col-lg-6 {
        text-align: center;
        padding: 0 5px;
    }
}

/* Extra small devices (below 480px) */
@media (max-width: 479px) {
    .featured-product {
        padding: 5px 0;
    }
    
    .featured-product img {
        margin-bottom: 5px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .featured-product p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    .featured-product .lead {
        font-size: 1rem;
    }
}

/* Ensure proper spacing and alignment */
.featured-product .col-lg-4,
.featured-product .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .featured-product .col-lg-4,
    .featured-product .col-lg-6 {
        text-align: center;
    }
}
.model-gallery {
    padding: 40px 0;
    background: var(--light);
}

.model-card {
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: white;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 280px;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.model-image {
    height: 180px;
    background: #f8f9fa;
    position: relative;
    border-radius: 15px 15px 0 0;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.model-meta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.thumbnails {
    padding: 8px !important;
}

.thumb-img {
    width: 30px !important;
    height: 30px !important;
    object-fit: cover;
}

.model-info {
    padding: 15px;
    text-align: center;
}

.model-number {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    overflow-wrap: break-word;
}

.model-name {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Responsive Grid System */
@media (min-width: 1400px) {
    .model-gallery .col-lg-3 {
        flex: 0 0 auto;
        width: 20%; /* 5 cards per row on extra large screens */
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .model-gallery .col-lg-3 {
        flex: 0 0 auto;
        width: 25%; /* 4 cards per row on large screens */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .model-gallery .col-md-4 {
        flex: 0 0 auto;
        width: 25%; /* 3 cards per row on medium screens */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .model-gallery .col-md-4 {
        flex: 0 0 auto;
        width: 33%; /* 2 cards per row on tablets */
    }
    
    .model-card {
        min-height: 260px;
    }
    
    .model-image {
        height: 160px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .model-gallery .col-md-4 {
        flex: 0 0 auto;
        width: 50%; /* 2 cards per row on small tablets */
    }
    
    .model-card {
        min-height: 240px;
    }
    
    .model-image {
        height: 140px;
    }
    
    .model-name {
        font-size: 1rem;
    }
    
    .model-number {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .model-gallery .col-md-4 {
        flex: 0 0 auto;
        width: 100%; /* 1 card per row on mobile */
        max-width: 300px;
        margin: 0 auto;
    }
    
    .model-card {
        min-height: 180px;
        margin-bottom: 20px;
    }
    
    .model-image {
        height: 120px;
    }
    
    .model-info {
        padding: 12px;
    }
    
    .model-name {
        font-size: 0.95rem;
    }
    
    .model-number {
        font-size: 0.8rem;
    }
    
    .model-meta {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .thumbnails {
        padding: 5px !important;
    }
    
    .thumb-img {
        width: 25px !important;
        height: 25px !important;
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .model-gallery {
        padding: 20px 0;
    }
    
    .model-gallery .container {
        padding: 0 10px;
    }
    
    .model-card {
        min-height: 200px;
    }
    
    .model-image {
        height: 110px;
    }
    
    .model-info {
        padding: 10px;
    }
}

/* Ensure proper spacing */
.model-gallery .row {
    margin: 0 -10px;
}

.model-gallery [class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

        /* Custom Modal Styles */
        .product-modal .modal-dialog {
            max-width: 1200px;
        }

        .product-modal .modal-content {
            border-radius: 20px;
            border: none;
        }

        .product-modal .swiper {
            height: 500px;
            border-radius: 15px;
            overflow: hidden;
        }

        .product-modal .swiper-slide {
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-modal .swiper-slide img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            padding: 30px;
        }

        .product-details {
            padding: 30px;
        }

        @media (max-width: 768px) {
            .model-image {
                height: auto;
            }

            .product-modal .swiper {
                height: 300px;
            }

            .product-modal .modal-dialog {
                margin: 20px;
            }
        }
        
/* Footer */
footer {
    color: white;
    padding: 80px 0 20px;
    background: linear-gradient(135deg, #111253 0%, #127957 100%);
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {

    footer {
        text-align: center;
    }

    .footer-links {
        margin-top: 30px;
    }
}