/* =================================================================
   AUDI INDIA WEBSITE - MODERN CSS ARCHITECTURE
   ================================================================= */

/* =====================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ===================================== */
:root {
    /* Brand Colors - Black and White Only */
    --audi-primary: #000000;
    --audi-primary-hover: #1a1a1a;
    --audi-primary-light: rgba(0, 0, 0, 0.1);
    --audi-primary-shadow: rgba(0, 0, 0, 0.3);
    
    /* Neutral Colors - Black and White Palette */
    --audi-black: #000000;
    --audi-dark: #1a1a1a;
    --audi-gray: #666666;
    --audi-light-gray: #f8f9fa;
    --audi-silver: #c4c4c4;
    --audi-white: #ffffff;
    
    /* Semantic Colors - Monochrome Only */
    --color-text-primary: var(--audi-dark);
    --color-text-secondary: var(--audi-gray);
    --color-text-muted: rgba(255, 255, 255, 0.8);
    --color-bg-primary: var(--audi-white);
    --color-bg-secondary: var(--audi-light-gray);
    --color-bg-dark: var(--audi-dark);
    --color-accent: var(--audi-black);
    --color-accent-light: var(--audi-primary-light);
    
    /* Typography */
    --font-family-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* =====================================
   BASE STYLES & RESET
   ===================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =====================================
   TYPOGRAPHY
   ===================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-heading);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Typography Utilities */
.fw-regular { font-weight: var(--font-weight-regular); }
.fw-medium { font-weight: var(--font-weight-medium); }
.fw-semibold { font-weight: var(--font-weight-semibold); }
.fw-bold { font-weight: var(--font-weight-bold); }
.fw-500 { font-weight: var(--font-weight-medium); }

/* Color Utilities */
.text-audi-primary { color: var(--audi-primary) !important; }
.text-audi-dark { color: var(--audi-dark) !important; }
.text-audi-gray { color: var(--audi-gray) !important; }
.bg-audi-primary { background-color: var(--audi-primary) !important; }
.bg-audi-dark { background-color: var(--audi-dark) !important; }
.bg-audi-light { background-color: var(--audi-light-gray) !important; }

/* Top Bar */
.top-bar {
    font-size: 13px;
    background-color: var(--audi-dark) !important;
}

.top-bar a {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--audi-white) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: var(--audi-white) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    padding: 0;
}

.audi-logo svg {
    transition: transform 0.3s ease;
}

.audi-logo:hover svg {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--audi-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--audi-black) !important;
    font-weight: 600;
}

/* Mega Menu */
.mega-dropdown .mega-menu {
    width: 100%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 2rem;
}

.mega-menu .dropdown-header {
    color: var(--audi-black);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 1rem 0;
}

/* =====================================
   AUDI FILTER SECTION STYLES
   ===================================== */

/* Audi Filter Section Positioning */
.audi-filter-section {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0;
}

/* Search Container */
.audi-filter-section .search-container {
    max-width: 600px;
    margin: 0 auto 30px auto;
    position: relative;
}

.audi-filter-section .search-input {
    height: 60px;
    border: none;
    border-radius: 50px;
    padding: 0 50px 0 60px;
    font-size: 16px;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    font-weight: 400;
    color: var(--audi-dark);
}

.audi-filter-section .search-input:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--audi-black);
}

.audi-filter-section .search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.audi-filter-section .search-icon {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--audi-gray);
    z-index: 5;
}

/* Filter Tabs Container */
.filter-tabs-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.filter-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Filter Tab Buttons */
.filter-tab-btn {
    background: transparent;
    border: none;
    color: var(--audi-dark);
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.filter-tab-btn:hover {
    background: var(--audi-primary-light);
    color: var(--audi-black);
    text-decoration: none;
    transform: translateY(-2px);
}

.filter-tab-btn.active {
    background: var(--audi-black);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.filter-tab-btn.active:hover {
    background: var(--audi-primary-hover);
    color: white;
}

.filter-tab-btn i {
    font-size: 16px;
    margin-right: 8px;
}

/* Responsive Filter Styles */
@media (max-width: 1024px) {
    .audi-filter-section {
        top: -60px;
    }
    
    .filter-tabs {
        padding: 6px;
        gap: 3px;
    }
    
    .filter-tab-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 40px;
    }
}

@media (max-width: 768px) {
    .audi-filter-section {
        top: -40px;
        position: relative;
        padding: 20px 0;
        background: linear-gradient(to bottom, rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.9));
    }
    
    .audi-filter-section .search-container {
        margin-bottom: 20px;
    }
    
    .audi-filter-section .search-input {
        height: 50px;
        padding: 0 45px 0 50px;
        font-size: 15px;
    }
    
    .filter-tabs {
        background: white;
        padding: 4px;
        gap: 2px;
        border-radius: 25px;
    }
    
    .filter-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 36px;
        flex: 1;
        justify-content: center;
        max-width: none;
    }
    
    .filter-tab-btn i {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 576px) {
    .filter-tabs {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
    }
    
    .filter-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 13px;
        min-height: 42px;
    }
}

/* Animation for filter changes */
.filter-tabs .filter-tab-btn {
    position: relative;
}

.filter-tabs .filter-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--audi-black), var(--audi-primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 40px;
    z-index: -1;
}

.filter-tabs .filter-tab-btn.active::before {
    opacity: 1;
}

/* Search input animation */
.audi-filter-section .search-input.searching {
    background-image: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                      linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: searchAnimation 1s linear infinite;
}

@keyframes searchAnimation {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Models Grid Section adjustment for new filter positioning */
.models-hero-section + .audi-filter-section + section {
    padding-top: 120px;
}

@media (max-width: 768px) {
    .models-hero-section + .audi-filter-section + section {
        padding-top: 20px;
    }
}

/* Filter Section Header Styling */
.filter-section-header {
    margin: 2rem 0;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(187, 10, 48, 0.1);
}

.filter-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 10, 48, 0.05), transparent);
    animation: filterHeaderShine 3s ease-in-out infinite;
}

@keyframes filterHeaderShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.filter-section-title {
    color: var(--audi-dark);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-section-subtitle {
    font-size: 1rem;
    color: var(--audi-gray);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.filter-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--audi-black), var(--audi-primary-hover));
    border-radius: 2px;
    margin: 1rem auto 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.filter-section-header:hover .filter-section-divider {
    width: 80px;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(187, 10, 48, 0.4);
}

/* Add subtle icon to filter section */
.filter-section-title::before {
    content: '🔍';
    margin-right: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Responsive styling for filter section header */
@media (max-width: 768px) {
    .filter-section-header {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .filter-section-title {
        font-size: 1.5rem;
    }
    
    .filter-section-subtitle {
        font-size: 0.9rem;
    }
    
    .filter-section-divider {
        width: 50px;
        height: 2px;
    }
    
    .filter-section-header:hover .filter-section-divider {
        width: 65px;
    }
}

@media (max-width: 576px) {
    .filter-section-header {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .filter-section-title {
        font-size: 1.25rem;
    }
    
    .filter-section-subtitle {
        font-size: 0.85rem;
    }
}
}

/* =====================================
   MODELS PAGE SPECIFIC STYLES
   ===================================== */

/* Hero Section */
.models-hero-section {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-placeholder {
    min-height: 300px;
    opacity: 0.7;
}

.hero-car-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    transition: transform 0.6s ease;
}

.hero-car-image:hover {
    transform: scale(1.02) rotate(1deg);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Enhanced Search and Filter Section */
.search-filter-container {
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.search-filter-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.search-filter-container.sticky-search {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1030;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.search-container {
    position: relative;
}

.search-icon {
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--audi-gray);
    font-size: 1.2rem;
    z-index: 1;
}

#modelSearch {
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background-color: #f8f9fa;
}

#modelSearch:focus {
    border-color: var(--audi-black);
    box-shadow: 0 0 0 0.2rem var(--audi-primary-light);
    background-color: white;
}

#modelSearch.searching {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background:0 0"><circle cx="50" cy="50" fill="none" stroke="%23bb0a30" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
    padding-right: 45px;
}

/* Enhanced Filter Tabs */
.filter-tabs .nav-pills {
    gap: 0.5rem;
}

.filter-tabs .nav {
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: var(--audi-dark);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.filter-tab:hover {
    background-color: var(--audi-light-gray);
    border-color: var(--audi-black);
    color: var(--audi-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-tab.active {
    background-color: var(--audi-black);
    border-color: var(--audi-black);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Enhanced Model Cards */
.model-card {
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.model-card.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border-color: var(--audi-black);
}

.model-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f8f9fa;
}

.model-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 15px 15px 0 0;
}

.model-image.bg-light {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.model-card:hover .model-image {
    transform: scale(1.05);
}

/* Model Overlay */
.model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,26,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.model-card:hover .model-overlay {
    opacity: 1;
}

.model-overlay-content {
    padding: 1.5rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover .model-overlay-content {
    transform: translateY(0);
}

.price-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    margin: 0 auto;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
}

.overlay-buttons .btn {
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Fuel Badge */
.fuel-badge {
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    backdrop-filter: blur(10px);
}

.fuel-badge.bg-success {
    background-color: rgba(25, 135, 84, 0.9) !important;
}

.fuel-badge.bg-secondary {
    background-color: rgba(108, 117, 125, 0.9) !important;
}

/* Card Body */
.model-card .card-body {
    padding: 1.5rem;
    background: white;
}

.category-badge {
    background: var(--audi-light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--audi-gray);
}

/* Enhanced Specs Grid */
.specs-grid .spec-item {
    background: var(--audi-light-gray);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid #e9ecef;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.specs-grid .spec-item:hover {
    background: white;
    border-color: var(--audi-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.specs-grid .spec-item i {
    color: var(--audi-black);
    margin-bottom: 0.25rem;
}

.specs-grid .spec-item small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--audi-gray);
}

.specs-grid .spec-item strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--audi-dark);
    margin-top: 0.125rem;
}

/* Price Section */
.price-section {
    display: flex;
    flex-direction: column;
}

.price-tag {
    color: var(--audi-black);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--audi-dark) 0%, #333 100%);
    color: white;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.spec-item {
    background: var(--audi-light-gray);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.spec-item:hover {
    background: var(--audi-white);
    transform: translateY(-2px);
    border-color: var(--audi-black);
}

/* Loading Spinner */
.spinner-border {
    color: var(--audi-black);
}

/* Results Counter */
.results-counter {
    animation: fadeIn 0.5s ease;
}

.no-results {
    padding: 3rem;
    animation: fadeIn 0.5s ease;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--audi-light-gray) 0%, #f0f0f0 100%);
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.cta-buttons .btn {
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Single Model Page */
.model-hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.model-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(187,10,48,0.3) 100%);
    z-index: 1;
}

.model-hero .container {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--audi-light-gray);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--audi-black);
    font-size: 2rem;
}

.sticky-card {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.specs-table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.specs-table table th {
    background: var(--audi-dark);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.specs-table table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.specs-table table tr:last-child td {
    border-bottom: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Toast Notifications */
.toast {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: none;
}

.toast-container {
    z-index: 2000;
}

/* =====================================
   ENHANCED RESPONSIVE DESIGN
   ===================================== */

/* Base Mobile-First Styles */
.model-card-wrapper {
    margin-bottom: 2rem;
}

.model-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.model-card .card-body .d-flex:last-child {
    margin-top: auto;
}

/* Improved Filter Tabs for Mobile */
.filter-tabs .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs .nav-pills::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* Enhanced Search Container */
.search-container .form-control-lg {
    font-size: 1rem;
    padding: 1rem 1rem 1rem 3rem;
}

/* Better Button Spacing */
.action-buttons {
    align-items: center;
}

.action-buttons .btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved Modal Responsiveness */
.modal-dialog {
    margin: 1rem;
}

.modal-content {
    border: none;
    border-radius: var(--radius-md);
}

/* Hero Section Improvements */
.models-hero-section {
    padding: 2rem 0;
}

.hero-content {
    z-index: 2;
    position: relative;
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .model-card-wrapper {
        margin-bottom: 2rem;
    }
    
    .model-img-container {
        height: 220px;
    }
    
    .search-filter-container {
        padding: 2rem;
    }
    
    .filter-tab {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 767px) {
    /* Hero Section */
    .models-hero-section {
        min-height: 50vh;
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-car-image {
        margin-top: 2rem;
        max-width: 90%;
    }
    
    .hero-placeholder {
        min-height: 200px;
    }
    
    /* Search and Filter */
    .search-filter-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .search-filter-container.sticky-search {
        width: 95%;
        top: 70px;
        padding: 1rem;
    }
    
    /* Filter Tabs */
    .filter-tabs .nav {
        padding-bottom: 1rem;
        margin-bottom: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1rem;
    }
    
    .filter-tabs .nav::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Model Cards */
    .model-img-container {
        height: 200px;
    }
    
    .model-card .card-body {
        padding: 1rem;
    }
    
    .specs-grid .spec-item {
        font-size: 0.75rem;
        padding: 0.5rem;
        min-height: 60px;
    }
    
    .specs-grid .spec-item i {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .action-buttons .btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Modal Improvements */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    /* Sticky Elements */
    .sticky-card {
        position: static;
        margin-top: 2rem;
    }
    
    /* Single Model Hero */
    .model-hero {
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    .model-hero h1 {
        font-size: 2rem;
    }
    
    .model-hero .lead {
        font-size: 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .model-card .card-body {
        padding: 0.75rem;
    }
    
    .specs-row {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }
    
    .specs-row .col-4 {
        padding: 0 0.25rem;
        font-size: 0.75rem;
    }
    
    .price-tag {
        font-size: 1rem;
    }
    
    .action-buttons .btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.25rem;
    }
    
    .model-overlay-content {
        padding: 0.75rem;
    }
    
    .overlay-buttons .btn {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
        margin: 0 0.125rem;
    }
    
    .search-container .form-control-lg {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    }
    
    .search-icon {
        left: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .specs-row {
        margin: 0.5rem 0;
    }
    
    .specs-row .col-4 {
        padding: 0 0.25rem;
    }
    
    .price-tag {
        font-size: 1rem;
    }
    
    .model-overlay-content {
        padding: 1rem;
    }
    
    .overlay-buttons .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .model-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .search-filter-container {
        background: rgba(26, 26, 26, 0.95);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .model-card {
        background: var(--audi-dark);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .model-card .card-body {
        background: var(--audi-dark);
        color: white;
    }
    
    .specs-row {
        background: rgba(255,255,255,0.1) !important;
    }
}

/* Accessibility Improvements */
.filter-tab:focus,
.model-card:focus-within,
.btn:focus {
    outline: 2px solid var(--audi-black);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .model-overlay,
    .action-buttons,
    .filter-tabs,
    .search-container {
        display: none !important;
    }
    
    .model-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--audi-dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--audi-light-gray);
    color: var(--audi-black);
    padding-left: 2rem;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-danger {
    background-color: var(--audi-black);
    border-color: var(--audi-black);
}

.btn-danger:hover {
    background-color: var(--audi-primary-hover);
    border-color: var(--audi-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline-danger {
    color: var(--audi-black);
    border-color: var(--audi-black);
}

.btn-outline-danger:hover {
    background-color: var(--audi-black);
    border-color: var(--audi-black);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Custom Audi Button Styles */
.btn-audi-red {
    background-color: var(--audi-red);
    border-color: var(--audi-red);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.btn-audi-red:hover {
    background-color: var(--audi-red-hover);
    border-color: var(--audi-red-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--audi-red-shadow);
}

.btn-outline-audi-red {
    color: var(--audi-red);
    border-color: var(--audi-red);
    background-color: transparent;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.btn-outline-audi-red:hover {
    background-color: var(--audi-red);
    border-color: var(--audi-red);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--audi-red-shadow);
}

/* Enhanced Model Card Interactions */
.model-card:hover .position-absolute.bottom-0 {
    opacity: 1 !important;
}

.model-card .card-body {
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.model-card:hover .card-body {
    transform: translateY(-2px);
}

/* Enhanced Button Styling */
.btn.rounded-pill {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.025em;
    border: 2px solid transparent;
}

.btn.rounded-pill:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* =====================================
   CHECKED/MARKED BUTTON STYLES
   ===================================== */

/* Checked button state for View Details and other marked buttons */
.btn-checked,
.btn.checked,
.btn[data-checked="true"] {
    position: relative;
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.4);
    transform: translateY(-2px);
}

/* Red arrow indicators for checked buttons */
.btn-checked::before,
.btn-checked::after,
.btn.checked::before,
.btn.checked::after,
.btn[data-checked="true"]::before,
.btn[data-checked="true"]::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 10;
}

/* Top-right red arrow */
.btn-checked::before,
.btn.checked::before,
.btn[data-checked="true"]::before {
    top: -8px;
    right: -8px;
    border-width: 0 12px 12px 0;
    border-color: transparent #dc3545 transparent transparent;
    animation: arrowPulse 2s ease-in-out infinite;
}

/* Bottom-left red arrow */
.btn-checked::after,
.btn.checked::after,
.btn[data-checked="true"]::after {
    bottom: -8px;
    left: -8px;
    border-width: 12px 0 0 12px;
    border-color: transparent transparent transparent #dc3545;
    animation: arrowPulse 2s ease-in-out infinite 0.5s;
}

/* Checked button hover state */
.btn-checked:hover,
.btn.checked:hover,
.btn[data-checked="true"]:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Toggle/Slider button checked state */
.toggle-btn-checked,
.toggle-btn.checked {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    position: relative;
    overflow: visible;
}

/* Red corner indicators for toggle buttons */
.toggle-btn-checked::before,
.toggle-btn-checked::after,
.toggle-btn.checked::before,
.toggle-btn.checked::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    z-index: 10;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.toggle-btn-checked::before,
.toggle-btn.checked::before {
    top: -4px;
    right: -4px;
}

.toggle-btn-checked::after,
.toggle-btn.checked::after {
    bottom: -4px;
    left: -4px;
    animation-delay: 0.75s;
}

/* Model card View Details button checked state */
.model-card .btn-checked,
.model-card .btn.checked {
    background-color: #1a1a1a !important;
    color: white !important;
    border-color: #1a1a1a !important;
    position: relative;
    overflow: visible;
}

/* Special styling for View Details buttons in model cards */
.model-card .btn-view-details-checked {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.4), 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.model-card .btn-view-details-checked::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    animation: checkmarkBounce 2s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes checkmarkBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Responsive adjustments for checked buttons */
@media (max-width: 768px) {
    .btn-checked::before,
    .btn-checked::after,
    .btn.checked::before,
    .btn.checked::after {
        border-width: 8px;
    }
    
    .btn-checked::before,
    .btn.checked::before {
        top: -6px;
        right: -6px;
        border-width: 0 8px 8px 0;
    }
    
    .btn-checked::after,
    .btn.checked::after {
        bottom: -6px;
        left: -6px;
        border-width: 8px 0 0 8px;
    }
    
    .model-card .btn-view-details-checked::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -8px;
        right: -8px;
    }
}


/* Enhanced Badge Styling */
.badge.rounded-pill {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.badge.bg-warning.rounded-pill {
    background: linear-gradient(45deg, #ffc107, #ffb300) !important;
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

/* Improved Spec Items */
.specs-grid .spec-item {
    background: var(--audi-light-gray);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.specs-grid .spec-item:hover {
    background: white;
    border-color: var(--audi-red-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.specs-grid .spec-item i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Enhanced Featured Badge Styles */
.badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #ffb300) !important;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(255, 193, 7, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(255, 193, 7, 0.6);
    }
}

/* Enhanced Card Shadow and Interactions */
.model-card {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.model-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(187, 10, 48, 0.2);
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.model-card:hover::before {
    left: 100%;
}

/* Price Tag Improvements */
.price-tag {
    background: linear-gradient(45deg, var(--audi-red), var(--audi-red-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--audi-dark) 0%, #333 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border: none;
    background: var(--audi-light-gray);
}

/* Loading States */
.model-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.model-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid var(--audi-red-light);
    border-top-color: var(--audi-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 70vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 15px;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--audi-white);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Model Cards */
.model-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    background: var(--audi-white);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.model-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.model-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.model-card:hover .model-img-container img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--audi-white);
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.model-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.model-card .card-body {
    padding: 2rem;
}

.model-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--audi-dark);
    margin-bottom: 1rem;
}

.model-card .card-text {
    color: var(--audi-gray);
    line-height: 1.6;
}

.price-tag {
    color: var(--audi-red);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Electric Section */
.electric-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--audi-white);
    padding: 5rem 0;
}

.electric-section h2 {
    color: var(--audi-white);
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--audi-light-gray);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--audi-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--audi-white);
}

/* Footer */
.footer {
    background: var(--audi-dark);
    color: var(--audi-white);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: var(--audi-white);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--audi-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: var(--audi-white);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--audi-red);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 5%;
    }
    
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 1rem;
    }
    
    .electric-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
        min-height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 11px;
        padding: 6px 15px;
    }
}

/* =====================================
   NAVIGATION OVERRIDES (UNIFIED)
   ===================================== */
/* Override navbar for header consistency - navbar should be white as per design */
.navbar {
    background-color: var(--color-bg-primary) !important;
}

.navbar .nav-link {
    color: var(--color-text-primary) !important;
    margin-right: var(--spacing-md);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-normal);
}

.navbar .nav-link:hover {
    color: var(--audi-black) !important;
    font-weight: 600;
}

/* Navbar Dropdown - Modern Dark Theme */
.navbar .dropdown-menu {
    background-color: var(--audi-dark);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
}

.navbar .dropdown-item {
    color: var(--audi-white);
    padding: var(--spacing-xs) var(--spacing-md);
    transition: var(--transition-normal);
}

.navbar .dropdown-item:hover {
    background-color: var(--audi-red);
    color: var(--audi-white);
    transform: translateX(5px);
}

/* =====================================
   SECTION OVERRIDES
   ===================================== */
/* Dark section styling */
section.bg-dark {
    background-color: var(--audi-dark) !important;
    padding: var(--spacing-xxl) 0;
}

section.bg-dark h2,
section.bg-dark h3 {
    color: var(--audi-white);
    font-weight: var(--font-weight-bold);
}

section.bg-dark .btn-outline-light {
    border-color: var(--audi-white);
    color: var(--audi-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs) var(--spacing-lg);
    transition: var(--transition-normal);
}

section.bg-dark .btn-outline-light:hover {
    background-color: var(--audi-white);
    color: var(--audi-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced card styling for dark sections */
section.bg-dark .card-body {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    margin-top: -3rem;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section.bg-dark .card-img-top {
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition-slow);
}

section.bg-dark .card:hover .card-img-top {
    transform: scale(1.05);
}

/* =====================================
   ANIMATIONS & EFFECTS
   ===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation Classes */
.animate-fade-in { 
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}
.animate-slide-left { 
    animation: slideInFromLeft 0.6s ease-out;
    animation-fill-mode: both;
}
.animate-scale-up { 
    animation: scaleUp 0.5s ease-out;
    animation-fill-mode: both;
}
.animate-bounce { 
    animation: bounce 2s infinite;
}
.fade-in { 
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

/* =====================================
   GLOBAL BUTTON OVERRIDES FOR WHITE BACKGROUND BLACK TEXT DESIGN
   ===================================== */

/* Override all button classes to use white background with black text */
.btn:not(.btn-light):not([style*="background"]) {
    background-color: white !important;
    color: black !important;
    border: 2px solid black !important;
    transition: all 0.3s ease;
}

.btn:not(.btn-light):not([style*="background"]):hover {
    background-color: #f8f9fa !important;
    color: black !important;
    border-color: #333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Specific overrides for commonly used button classes */
.btn-dark,
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    background-color: white !important;
    color: black !important;
    border: 2px solid black !important;
}

.btn-dark:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover {
    background-color: #f8f9fa !important;
    color: black !important;
    border-color: #333 !important;
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light {
    background-color: white !important;
    color: black !important;
    border: 2px solid black !important;
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover {
    background-color: #f8f9fa !important;
    color: black !important;
    border-color: #333 !important;
}

/* Keep the btn-light class for specific use cases where it's explicitly needed */
.btn-light {
    background-color: white !important;
    color: black !important;
    border: 1px solid #dee2e6 !important;
}

.btn-light:hover {
    background-color: #e9ecef !important;
    color: black !important;
}

/* Ensure buttons with inline styles are not overridden */
.btn[style*="background-color"] {
    /* Inline styles take precedence */
}

/* =====================================
   UTILITY CLASSES
   ===================================== */
/* Spacing Utilities */
.py-section { padding: var(--spacing-xxl) 0; }
.mb-section { margin-bottom: var(--spacing-xxl); }
.px-container { padding: 0 var(--spacing-lg); }

/* Text Contrast Utilities for Dark Backgrounds */
.text-contrast-white {
    color: #ffffff !important;
}

.text-contrast-white h1,
.text-contrast-white h2,
.text-contrast-white h3,
.text-contrast-white h4,
.text-contrast-white h5,
.text-contrast-white h6 {
    color: #ffffff !important;
}

.text-contrast-white p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark section text improvements */
section.bg-dark *,
section[style*="background: linear-gradient"] * {
    color: inherit;
}

section.bg-dark .text-white,
section[style*="background: linear-gradient"] .text-white {
    color: #ffffff !important;
}

section.bg-dark .text-white h1,
section.bg-dark .text-white h2,
section.bg-dark .text-white h3,
section.bg-dark .text-white h4,
section.bg-dark .text-white h5,
section.bg-dark .text-white h6,
section[style*="background: linear-gradient"] .text-white h1,
section[style*="background: linear-gradient"] .text-white h2,
section[style*="background: linear-gradient"] .text-white h3,
section[style*="background: linear-gradient"] .text-white h4,
section[style*="background: linear-gradient"] .text-white h5,
section[style*="background: linear-gradient"] .text-white h6 {
    color: #ffffff !important;
}

/* Electric Revolution Section specific fixes */
section[style*="background: linear-gradient(135deg, #1a1a1a"] h5,
section[style*="background: linear-gradient(135deg, #1a1a1a"] p {
    color: #ffffff !important;
}

/* Text Utilities */
.text-shadow { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
.text-gradient {
    background: linear-gradient(135deg, var(--audi-red) 0%, var(--audi-red-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--audi-red);
    outline-offset: 2px;
}

/* Performance Optimizations */
.model-card,
.feature-icon,
.btn {
    will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================
   FILTER OVERLAY STYLES (NEW POSITIONING)
   ===================================== */

/* Hero Section with Overlay Filter */
.models-hero-section {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    margin-bottom: 0;
}

.models-hero-section .hero-bg {
    padding-bottom: 120px; /* Add space at bottom for filter overlay */
}

/* Filter Overlay Container */
.filter-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.filter-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

/* Filter Tabs Enhanced */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    color: var(--audi-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.filter-tab-btn:hover::before {
    left: 100%;
}

.filter-tab-btn:hover {
    background: rgba(187, 10, 48, 0.1);
    color: var(--audi-red);
    border-color: var(--audi-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(187, 10, 48, 0.2);
    text-decoration: none;
}

.filter-tab-btn.active {
    background: var(--audi-red);
    color: white;
    border-color: var(--audi-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(187, 10, 48, 0.3);
}

.filter-tab-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Enhanced Search Container */
.search-container {
    position: relative;
}

.search-container .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-container .input-group:focus-within {
    border-color: var(--audi-red);
    box-shadow: 0 4px 24px rgba(187, 10, 48, 0.2);
}

.search-container .input-group-text {
    background: #f8f9fa;
    border: none;
    padding: 1rem 1.25rem;
    border-radius: 25px 0 0 25px;
}

.search-container .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: #f8f9fa;
}

.search-container .form-control:focus {
    box-shadow: none;
    background: #f8f9fa;
}

.search-container .btn {
    border-radius: 0 25px 25px 0;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-container .btn:hover {
    transform: none;
    box-shadow: none;
}

/* Models Grid Section Adjustment */
#models-grid {
    padding-top: 4rem;
}

/* Responsive Design for Filter Overlay */
@media (max-width: 1200px) {
    .filter-container {
        padding: 1.5rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .models-hero-section .hero-bg {
        padding-bottom: 140px;
    }
    
    .filter-container {
        padding: 1.25rem;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab-btn {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-container .input-group {
        border-radius: 20px;
    }
    
    .search-container .input-group-text,
    .search-container .btn {
        border-radius: 20px 0 0 20px;
    }
    
    .search-container .btn {
        border-radius: 0 20px 20px 0;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .models-hero-section {
        min-height: 60vh;
    }
    
    .models-hero-section .hero-bg {
        padding-bottom: 160px;
    }
    
    .filter-container {
        padding: 1rem;
        border-radius: 20px 20px 0 0;
    }
    
    .filter-tabs {
        margin-bottom: 1rem;
    }
    
    .filter-tab-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .search-container .form-control {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .search-container .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .models-hero-section .hero-bg {
        padding-bottom: 180px;
    }
    
    .filter-container {
        margin: 0 -15px;
        border-radius: 15px 15px 0 0;
    }
    
    .filter-tab-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
    
    .search-container .input-group {
        border-radius: 15px;
    }
    
    .search-container .input-group-text {
        padding: 0.75rem 1rem;
        border-radius: 15px 0 0 15px;
    }
    
    .search-container .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .search-container .btn {
        border-radius: 0 15px 15px 0;
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
}
