/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8941F;
    --black-primary: #0A0A0A;
    --black-light: #1A1A1A;
    --black-medium: #2A2A2A;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(212, 175, 55, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    --gradient-black: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #2A2A2A 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(212, 175, 55, 0.2) 100%);
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-black);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-primary);
    box-shadow: var(--shadow-medium);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    text-align: left;
}

.brand-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--gray-light);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta {
    background: var(--gradient-gold);
    color: var(--black-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

/* Main Content */
.main {
    padding-top: 4rem;
}

/* Collection Section */
.collection {
    padding: 6rem 0;
    background: var(--gradient-black);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    font-weight: 300;
}

/* Featured Cars Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.view-all-btn {
    background: linear-gradient(135deg, #d4af37, #f4e4a6);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.featured-cars-container {
    overflow: hidden;
    border-radius: 15px;
}

.featured-cars-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    transition: all 0.3s ease;
}

.featured-cars-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.featured-cars-scroll .car-card {
    min-width: 300px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-cars-scroll .car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-car-card {
    min-width: 300px;
    flex-shrink: 0;
}

/* WhatsApp Button Styles */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:before {
    content: "💬";
    font-size: 1.1em;
}

.whatsapp-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-btn.disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Button Outline Style */
.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Full Collection Section */
.full-collection {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Filter Slider */
.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.filter-slider-container {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 2px 8px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.filter-slider-container:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(212, 175, 55, 0.2);
}

.filter-slider-track {
    display: flex;
    position: relative;
    z-index: 2;
}

.filter-tab {
    background: transparent;
    color: var(--gray-medium);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    touch-action: none;
    opacity: 1; /* Ensure all tabs are visible */
}

.filter-tab:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.filter-tab.active {
    color: var(--black-primary);
    font-weight: 600;
    text-shadow: none;
    opacity: 1; /* Ensure active tab is fully visible */
}

.filter-tab.hover-preview {
    color: var(--gold-primary);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
    transform: scale(1.05);
}

.filter-slider-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    height: calc(100% - 16px);
    width: 120px; /* Set initial width */
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f  50%, #d4af37 100%);
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.4),
        0 2px 8px rgba(212, 175, 55, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(360px); /* Position for "All" tab initially */
}

.filter-slider-indicator.dragging {
    box-shadow: 
        0 6px 24px rgba(212, 175, 55, 0.6),
        0 3px 12px rgba(212, 175, 55, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.filter-slider-indicator::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 23px;
    pointer-events: none;
}

.filter-slider-indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.2) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Touch feedback animations */
@keyframes touchRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.filter-slider-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    opacity: 0;
}

.filter-slider-container.touch-active::after {
    animation: touchRipple 0.6s ease-out;
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Prevent body scroll when card is expanded */
body.card-expanded {
    overflow: hidden;
}

/* Car Cards */
.car-card {
    background: var(--black-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy), var(--shadow-gold);
    border-color: var(--gold-primary);
}

.car-card.expanded {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.car-details-expanded {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

.car-card.expanded .car-details-expanded {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.expanded-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.vintage-details h4 {
    color: #8B4513;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 5px;
}

.heritage-info {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-label {
    font-weight: 600;
    color: #8B4513;
    font-size: 0.9em;
}

.detail-value {
    color: #333;
    font-size: 0.9em;
}

.vintage-story {
    margin-top: 15px;
}

.vintage-story h5 {
    color: #8B4513;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.vintage-story p {
    color: #555;
    font-size: 0.85em;
    line-height: 1.4;
    font-style: italic;
}

.expanded-actions {
    margin-top: auto;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary,
.action-buttons .btn-outline {
    flex: 1;
    font-size: 0.85em;
    padding: 8px 12px;
}

.close-details {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #8B4513;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-details:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: rotate(90deg);
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.availability-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-badge.available {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.availability-badge.unavailable {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.car-info {
    padding: 1.5rem;
}

.car-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gold-primary);
}

.car-year {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.car-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--black-primary);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
    transform: translateY(-2px);
}

.btn-primary.disabled,
.btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-medium) 100%);
    margin: 1% auto;
    padding: 0;
    border-radius: 24px;
    width: 95%;
    max-width: 1000px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.show {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--gold-primary);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--white);
    background: var(--gold-primary);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    height: 100%;
    min-height: 600px;
}

.modal-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--black-medium), var(--black-primary));
}

.modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%
    );
    z-index: 1;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-image:hover img {
    transform: scale(1.05);
}

.modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--black-primary) 0%, var(--black-medium) 100%);
    overflow-y: auto;
}

.modal-info h2 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.modal-details {
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    background: rgba(212, 175, 55, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--gold-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.modal-description {
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 3px solid var(--gold-primary);
}

.modal-description h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-size: 1.3rem;
}

.modal-description p {
    color: var(--gray-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 2rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.modal-price span {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-shadow: inherit;
    z-index: 2;
    position: relative;
}

.modal-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modal-price:hover::before {
    left: 100%;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.modal-btn {
    flex: 1;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn::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.5s ease;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--black-primary);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--gold-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.footer-section p {
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        position: relative;
        padding: 1rem;
    }
    
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 2px solid var(--gold-primary);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li a {
        font-size: 1.5rem;
        color: var(--white-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 1rem 2rem;
        border-radius: 10px;
        display: block;
        text-align: center;
    }
    
    .nav-menu li a:hover {
        background: var(--gold-primary);
        color: var(--black-primary);
        transform: scale(1.05);
    }
    
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin-top: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .brand-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Layout */
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .featured-cars-scroll {
        padding: 20px 1rem;
        gap: 15px;
    }
    
    .featured-cars-scroll .car-card {
        min-width: 280px;
    }
    
    /* Filter Slider - Mobile Optimized */
    .filter-slider-container {
        margin: 0 1rem;
        padding: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .filter-slider-track {
        min-width: max-content;
        gap: 0;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100px;
        white-space: nowrap;
    }
    
    .filter-slider-indicator {
        width: 100px;
        height: calc(100% - 12px);
        top: 6px;
        left: 6px;
    }
    
    /* Modal Responsive */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        max-height: 96vh;
        overflow-y: auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-image {
        height: 250px;
        width: 100%;
    }
    
    .modal-details {
        padding: 1rem 0;
    }
    
    .modal-price {
        font-size: 1.8rem;
        text-align: center;
        margin: 1rem 0;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Car Actions */
    .car-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .car-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    /* Modal Extra Small */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .modal-image {
        height: 200px;
        border-radius: 10px;
    }
    
    .modal-price {
        font-size: 1.5rem;
    }
    
    /* Filter Slider Extra Small */
    .filter-slider-container {
        margin: 0 0.5rem;
        padding: 4px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .filter-slider-indicator {
        width: 80px;
        height: calc(100% - 8px);
        top: 4px;
        left: 4px;
    }
    
    /* Featured Cars Extra Small */
    .featured-cars-scroll .car-card {
        min-width: 250px;
    }
    
    /* Car Grid Extra Small */
    .car-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .car-card {
        padding: 1rem;
    }
    
    .car-image {
        height: 180px;
    }
    
    .car-title {
        font-size: 1.1rem;
    }
    
    .car-year {
        font-size: 0.85rem;
    }
    
    .car-price {
        font-size: 1.3rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-title {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 90%;
        max-height: 90vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .modal-image {
        height: 200px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .car-card:hover {
        transform: none;
    }
    
    .car-card:active {
        transform: scale(0.98);
    }
    
    .filter-tab:hover {
        color: var(--gray-medium);
        text-shadow: none;
        transform: none;
    }
    
    .filter-tab:active {
        color: var(--gold-primary);
        transform: scale(0.95);
    }
}

/* Loading Indicator Styles */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
}

/* Status Message Styles */
.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9998;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

.status-message.warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.status-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.status-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}