/* ============================================
   FREEDOM MOTORS - Premium Car Dealer Template
   Color Palette: Based on Freedom Motors Logo
   Updated: 2024 - Freedom Motors Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap&subset=latin-ext');

/* ============================================
   CSS VARIABLES - Silver & Gold Palette (Freedom Motors)
   ============================================ */
:root {
    /* Primary Colors - Freedom Motors Brand Colors (Silver & Gold) */
    --primary: #4A4A4A;
    /* Dark Gray - Main Brand */
    --primary-dark: #3A3A3A;
    /* Darker Gray Variant */
    --primary-light: #5A5A5A;
    /* Lighter Gray Variant */

    /* Secondary & Accent */
    --secondary: #000000;
    /* Black - Dark Backgrounds */
    --accent: #FFD700;
    /* Metallic Gold - Freedom Gold */
    --accent-gold: #FFD700;
    /* Metallic Gold for Highlights */
    --accent-teal: #4A4A4A;
    /* Dark Gray for Success/Action */
    --accent-silver: #4A4A4A;
    /* Dark Gray */

    /* Neutrals */
    --dark: #000000;
    /* Black */
    --dark-gray: #1A1A1A;
    /* Dark Gray for Card Backgrounds */
    --medium-gray: #333333;
    /* Medium Gray for Borders */
    --light-gray: #E8E8E8;
    /* Light Gray Backgrounds */
    --white: #FFFFFF;
    --off-white: #F8F8F8;

    /* Gradients - Silver & Gold Theme */
    --gradient-primary: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    --gradient-dark: linear-gradient(180deg, var(--secondary) 0%, var(--dark) 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(74, 74, 74, 0.3) 50%, rgba(255, 215, 0, 0.2) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.4);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6);

    /* Typography - Poppins has better Romanian diacritics */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-lg {
    max-width: 1600px;
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    border-radius: 2px;
}

.section-header p {
    color: var(--light-gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: var(--space-md) auto 0;
    opacity: 0.9;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 200px;
    width: auto;
    transition: var(--transition-base);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Compact spacing for glassmorphism buttons */
    /* Increased from 2rem for better spacing */
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    display: none;
    /* Remove underline effect */
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(74, 74, 74, 0.3), rgba(255, 215, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: var(--space-xs);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-base);
}

/* Mobile Nav Actions - hidden on desktop */
.mobile-nav-actions {
    display: none;
}

/* Show mobile nav actions in mobile menu */
@media (max-width: 992px) {
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        list-style: none;
    }

    .mobile-nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1rem;
    transition: var(--transition-base);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(74, 74, 74, 0.1);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.btn-teal {
    background: var(--accent-teal);
    color: var(--white);
}

.btn-teal:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-top: 4rem;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--accent-gold);
}

.hero h1 {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease 0.1s both;
    font-family: var(--font-body);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.stat-number span {
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Featured Car */
.hero-featured {
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
    z-index: 10;
}

.featured-car-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.featured-car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: auto;
    background: var(--accent-gold);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.featured-car-image {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.2);
}

.featured-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition-slow);
}

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

.featured-car-info h3 {
    margin-bottom: var(--space-xs);
}

.featured-car-specs {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-sm) 0;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.spec-badge i {
    color: var(--accent);
    font-size: 0.75rem;
}

.featured-car-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.price-tag small {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* ============================================
   CAR CARDS - Inventory Grid
   ============================================ */
.inventory-section {
    background: var(--gradient-dark);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.car-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-base);
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 215, 0, 0.3);
}

.car-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.image-count-badge {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
}

.car-card-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}


/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.float-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.float-btn-phone {
    background: var(--gradient-primary);
}

.float-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    transition: 0.3s;
}

.float-btn:hover::before {
    inset: -8px;
    border-color: currentColor;
    opacity: 0.2;
}

/* Tooltip on hover */
.float-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: 0.3s;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.float-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pulse animation for phone button */
@keyframes floatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.float-btn-phone {
    animation: floatPulse 2s infinite;
}

.float-btn-phone:hover {
    animation: none;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .float-btn::after {
        display: none;
        /* Hide tooltips on mobile */
    }
}


.badge-hot {
    background: var(--primary);
    color: var(--white);
}

.badge-price-drop {
    background: var(--accent-gold);
    color: var(--dark);
}

.car-card-favorite {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
}

.car-card-favorite:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.car-card-favorite i {
    color: var(--white);
    font-size: 1rem;
}

.car-card-delete {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    background: rgba(220, 53, 69, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
    border: none;
}

.car-card-delete:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.car-card-delete i {
    color: var(--white);
    font-size: 1rem;
}

.car-card-content {
    padding: var(--space-md);
}

.car-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.car-card-year {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 400;
}

.car-card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-sm);
}

.car-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.feature-tag i {
    font-size: 0.7rem;
    color: var(--accent);
}

.car-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.car-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-align: center;
}

.car-price small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-us-section {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    right: var(--space-lg);
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.testimonial-stars i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.author-info h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: var(--space-sm);
    font-size: 2rem;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A4A4A 0%, #FFD700 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.contact-details h4 {
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.contact-details a:hover {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Sell Car Form */
.sell-car-form {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
    max-width: 320px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--white);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.75rem;
    opacity: 0;
    transition: var(--transition-base);
}

.footer-links a:hover i {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
}

.footer-anpc-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.footer-anpc-icons a {
    display: inline-flex;
    align-items: center;
}

.footer-anpc-icons img {
    height: 38px;
    width: auto;
}

.footer-payments {
    display: flex;
    gap: var(--space-sm);
}

.payment-icon {
    width: 45px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
    background: var(--gradient-dark);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-header .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
}

.page-header h1 {
    position: relative;
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb span {
    color: var(--primary);
}

/* ============================================
   FILTERS & SEARCH
   ============================================ */
.filters-bar {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.filter-select {
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9rem;
    min-width: 140px;
    cursor: pointer;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CAR DETAILS PAGE
   ============================================ */
.car-details {
    padding: var(--space-2xl) 0;
}

.car-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.custom-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.manual-car-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.description-editor-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.manual-images-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.car-gallery {
    margin-bottom: var(--space-lg);
}

.car-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gallery-main {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
    min-height: 600px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.gallery-main img {
    max-height: 600px;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
    border-radius: var(--radius-md);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-sm);
}

.gallery-thumbs::-webkit-scrollbar {
    width: 8px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.gallery-thumb {
    aspect-ratio: 4/3;
    background: var(--dark-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-base);
    position: relative;
}

.gallery-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* ============================================
   CAR DESCRIPTION
   ============================================ */
#carDescription {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
}

#carDescription .desc-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.25rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

#carDescription .desc-header:first-child {
    margin-top: 0;
}

#carDescription .desc-line {
    margin: 0.8rem 0;
    padding: 0;
    line-height: 1.7;
    white-space: pre-wrap;
    text-align: justify;
}

#carDescription .desc-line:first-child {
    margin-top: 0;
}

#carDescription .desc-line:last-child {
    margin-bottom: 0;
}

#carDescription .desc-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
}

#carDescription .desc-list li {
    padding: 0.4rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-base);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-base);
    z-index: 10001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    margin-top: 1rem;
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.car-info-panel {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.car-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.car-main-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item {
    text-align: center;
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.spec-item span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.spec-item strong {
    display: block;
    font-size: 1rem;
    color: var(--white);
}

.car-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.car-actions .btn {
    flex: 1;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.about-image::before {
    display: none;
}

.about-text h2 {
    margin-bottom: var(--space-md);
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.highlight-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Team Section */
.team-section {
    background: var(--secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.team-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-base);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.team-photo {
    height: 280px;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.team-info {
    padding: var(--space-lg);
}

.team-info h4 {
    margin-bottom: var(--space-xs);
}

.team-role {
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.team-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-featured {
        margin-top: var(--space-2xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}


/* Car Specs Badges - Optimized Layout */
.car-specs-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge-item {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly transparent background */
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.badge-item i {
    font-size: 1.4rem;
    color: var(--accent);
    /* Gold color for icons */
    margin-bottom: 0.2rem;
}

.badge-item span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .stat-item {
        flex: 1 1 45%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        gap: var(--space-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
    }

    .contact-social {
        justify-content: center;
        margin-top: var(--space-md);
        flex-wrap: wrap;
    }

    .social-link {
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.1);
    }

    .social-link i {
        opacity: 1 !important;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-specs-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {

    /* Hero - CENTERED */
    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
        margin: 0 auto;
    }

    .section {
        padding: var(--space-2xl) 0;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .stat-item {
        flex: 1 1 100%;
        text-align: center;
    }

    /* All text centered */
    .section-header {
        text-align: center;
    }

    .section-header h2 {
        text-align: center;
    }

    .section-header p {
        text-align: center;
        margin: 0 auto;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - Enhanced
   ============================================ */

/* --- Tablet (max 992px) --- */
@media (max-width: 992px) {

    /* Navigation - hide actions on tablet, show in menu */
    .nav-actions {
        display: none;
    }

    /* Show nav actions in mobile menu when active */
    .nav-menu.active .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Logo smaller on tablet */
    .logo img {
        height: 100px;
    }

    /* Featured car adjustments */
    .hero-featured {
        max-width: 100%;
    }

    .featured-image img {
        max-height: 300px;
    }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {

    /* Container padding and centering */
    .container {
        padding: 0 var(--space-sm);
        margin: 0 auto;
        max-width: 100%;
    }

    /* Navbar adjustments */
    .navbar {
        padding: var(--space-sm) 0;
    }

    .navbar.scrolled {
        padding: var(--space-xs) 0;
    }

    /* Logo even smaller on mobile */
    .logo img {
        height: 80px;
        display: block;
        margin: 0 auto;
    }

    /* Menu toggle larger touch target */
    .menu-toggle {
        padding: var(--space-sm);
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
    }

    /* Mobile menu full width */
    .nav-menu {
        padding: var(--space-md);
    }

    .nav-menu .nav-link {
        display: block;
        padding: var(--space-sm) 0;
        font-size: 1.1rem;
        text-align: center;
    }

    /* Hero section mobile - CENTERED */
    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-badge {
        margin: 0 auto var(--space-md);
        display: inline-flex;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    /* Hero buttons stack - CENTERED */
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
        max-width: 100%;
        align-items: center;
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    /* Section titles mobile - CENTERED */
    .section {
        text-align: center;
    }

    .section-header {
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .section-title p {
        font-size: 0.95rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Car grid mobile - CENTERED */
    .cars-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        justify-items: center;
        padding: 0 var(--space-sm);
    }

    /* Car cards mobile - CENTERED */
    .car-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .car-image {
        height: 200px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .car-info {
        padding: var(--space-md);
        text-align: center;
    }

    .car-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .car-specs {
        gap: var(--space-xs);
        justify-content: center;
        flex-wrap: wrap;
    }

    .car-specs span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .car-price-row {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
        justify-content: center;
    }

    .car-price-row .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        margin: 0 auto;
    }

    .car-price {
        text-align: center;
        margin: 0 auto;
    }

    /* Featured car mobile - CENTERED */
    .hero-featured {
        margin-top: var(--space-lg);
        width: 100%;
        max-width: 100%;
    }

    .featured-card {
        padding: var(--space-md);
        margin: 0 auto;
        text-align: center;
    }

    .featured-image {
        height: 200px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .featured-info {
        padding: var(--space-md);
        text-align: center;
    }

    .featured-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .featured-specs {
        flex-wrap: wrap;
        gap: var(--space-xs);
        justify-content: center;
    }

    .featured-specs span {
        font-size: 0.75rem;
        flex: 0 0 auto;
    }

    .featured-price {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 auto;
    }

    /* Filter bar mobile - CENTERED */
    .filter-bar,
    .filters-container {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
        width: 100%;
        padding: var(--space-md);
        text-align: center;
    }

    .filter-bar>*,
    .filters-container>* {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .filter-select,
    .search-box {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .search-box input {
        width: 100%;
        text-align: left;
    }

    .filter-bar .btn,
    #filterBtn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }

    /* Car detail page mobile - CENTERED */
    .car-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .car-gallery {
        order: 1;
        width: 100%;
        margin: 0 auto;
    }

    .gallery-main {
        width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 250px;
        max-height: 400px;
    }

    .gallery-main img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
    }

    .gallery-thumbs {
        width: 100%;
        margin: var(--space-sm) auto 0;
        justify-content: center;
    }

    .car-info-panel {
        order: 2;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: var(--space-md);
    }

    .car-title-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-sm);
    }

    .car-main-price {
        font-size: 2rem;
        text-align: center;
        margin: 0 auto;
        word-wrap: break-word;
        width: 100%;
    }

    .car-main-price small {
        display: block;
        margin-top: var(--space-xs);
        font-size: 0.9rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        text-align: center;
    }

    .spec-item {
        text-align: center;
    }

    .car-actions {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
        align-items: stretch;
    }

    .car-actions .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }

    .car-description {
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .description-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Contact form mobile */
    .contact-form {
        padding: var(--space-md);
        text-align: center;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: var(--space-sm);
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Sell car form mobile optimization */
    .sell-car-form {
        padding: 1.25rem !important;
        border-radius: var(--radius-lg) !important;
    }

    .sell-car-form h3 {
        font-size: 1.1rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .sell-car-form .form-group label {
        text-align: left;
        display: block;
    }

    .sell-car-form hr {
        margin: 1.5rem 0 !important;
    }

    .sell-car-form .btn {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Contact info cards */
    .info-card {
        padding: var(--space-md);
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    /* Footer mobile */
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .footer-grid {
        gap: var(--space-lg);
    }

    .footer-brand .logo img {
        height: 60px;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }

    .footer-column ul {
        gap: var(--space-xs);
    }

    .footer-bottom {
        padding-top: var(--space-md);
        text-align: center;
    }

    /* CTA section mobile */
    .cta-section {
        padding: var(--space-xl) var(--space-sm);
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Filters mobile - CENTERED */
    .filters-bar,
    .filter-bar {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
        width: 100%;
        padding: var(--space-md);
        text-align: center;
    }

    .filters-bar>*,
    .filter-bar>* {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .filter-select {
        width: 100%;
        max-width: 100%;
        padding: var(--space-sm);
        font-size: 16px;
        /* Prevents zoom on iOS */
        margin: 0 auto;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .search-box input {
        width: 100%;
        text-align: left;
    }

    .filters-bar .btn,
    .filter-bar .btn,
    #filterBtn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }

    /* Gallery mobile */
    .detail-gallery {
        gap: var(--space-xs);
    }

    .gallery-main {
        min-height: 250px !important;
        max-height: 60vh !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: var(--space-sm) !important;
    }

    .gallery-main img {
        max-height: 60vh !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .gallery-thumbs {
        max-height: 150px;
    }

    .gallery-thumb {
        width: 70px;
        height: 50px;
    }

    /* Lightbox mobile */
    .lightbox-image {
        max-width: 95vw;
        max-height: 70vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Specs grid mobile */
    .specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .spec-item {
        padding: var(--space-sm);
    }

    .spec-item i {
        font-size: 1.25rem;
    }

    .spec-value {
        font-size: 0.9rem;
    }

    /* About page mobile */
    .about-content {
        padding: var(--space-md);
    }

    .about-image {
        height: 250px;
    }

    .about-image img {
        height: 100%;
    }

    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-md);
    }

    /* Testimonials mobile */
    .testimonial-card {
        padding: var(--space-md);
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Page header mobile */
    .page-header {
        padding: calc(70px + var(--space-lg)) 0 var(--space-lg);
        min-height: auto;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    /* Description section mobile */
    .description-section {
        padding: var(--space-md);
    }

    .description-section h3 {
        font-size: 1.1rem;
    }

    /* Price badge mobile */
    .price-badge {
        font-size: 1.5rem;
        padding: var(--space-sm) var(--space-md);
    }

    /* TVA badge mobile */
    .tva-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Warranty badge mobile */
    .warranty-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Car details page mobile */
    .car-detail-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }

    .car-gallery {
        order: 1;
    }

    .car-info-panel {
        order: 2;
        padding: var(--space-md) !important;
    }

    .gallery-main {
        min-height: 300px !important;
        max-height: 70vh !important;
        padding: var(--space-md) !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .gallery-main img {
        max-height: 70vh !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        max-height: 200px !important;
        gap: var(--space-xs) !important;
    }

    .gallery-thumb {
        min-width: 80px;
        height: 60px;
    }

    .car-main-price {
        font-size: 1.75rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .car-main-price small {
        display: block;
        margin-top: 0.5rem;
        margin-left: 0 !important;
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .car-title-row h1 {
        font-size: 1.5rem !important;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--space-sm) !important;
    }

    .spec-item {
        padding: var(--space-sm) !important;
        font-size: 0.875rem;
    }

    .car-actions {
        flex-direction: column;
        gap: var(--space-sm) !important;
    }

    .car-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .description-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    .lightbox-content {
        max-width: 95vw !important;
        max-height: 90vh !important;
        padding: 1rem;
    }

    .lightbox-content img {
        max-height: 80vh !important;
    }

    /* Custom order section mobile */
    .custom-order-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }

    .custom-order-grid h2 {
        font-size: 1.75rem !important;
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md) !important;
    }

    .stats-grid>div {
        font-size: 2.5rem !important;
    }

    /* Contact map section mobile */
    section[style*="height: 400px"] {
        height: 300px !important;
        padding: var(--space-md) !important;
    }

    section[style*="height: 400px"] h3 {
        font-size: 1.25rem !important;
    }

    section[style*="height: 400px"] .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Admin panel mobile */
    .manual-car-form {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
    }

    .description-editor-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: var(--space-sm) !important;
    }

    .manual-images-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: var(--space-sm) !important;
    }

    /* About highlights mobile */
    .about-highlights {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
    }
}

/* --- Small Mobile (max 375px) --- */
/* ============================================
   ENHANCED MOBILE OPTIMIZATIONS
   ============================================ */

/* Mobile Logo Optimization */
@media (max-width: 768px) {
    .logo img {
        height: 70px !important;
        width: auto !important;
        max-width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px !important;
        /* Even smaller on very small screens */
    }

    /* Navbar optimization */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar.scrolled {
        padding: 0.375rem 0;
    }
}

/* Touch-Friendly Buttons - Minimum 44x44px */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    .btn-sm {
        min-height: 44px;
        padding: 0.625rem 1.25rem;
    }

    .btn-lg {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    /* Menu toggle - ensure touch-friendly */
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
    }

    /* Nav links - larger touch targets */
    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    /* Form inputs - larger for mobile */
    .form-control {
        min-height: 48px;
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    /* Car card optimization */
    .car-card-image {
        height: 180px;
        /* Reduced from 220px */
    }

    /* Section padding optimization */
    .section {
        padding: 3rem 0;
        /* Reduced from 6rem */
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
    }

    /* Typography optimization */
    body {
        font-size: 16px;
        /* Prevents zoom on iOS */
        line-height: 1.7;
        /* Better readability */
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.3;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    /* Container optimization */
    .container {
        padding: 0 1rem;
        /* Reduced from 1.5rem */
    }

    /* Hero actions full width on mobile */
    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    /* Card spacing */
    .cars-grid {
        gap: 1.25rem;
        /* Slightly larger gap for easier tapping */
    }

    /* Feature grid optimization */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Stats optimization */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
        padding: 0 5px;
    }

    .stats-grid>div>div:first-child {
        font-size: 1.75rem !important;
        /* Smaller font for numbers on mobile */
    }

    .stats-grid>div>div:last-child {
        font-size: 0.75rem !important;
        /* Smaller label on mobile */
    }

    /* About page mobile optimization */
    .about-image {
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .about-text h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        /* Stack highlights */
        gap: 1rem;
    }

    .why-us-section .features-grid {
        gap: 1.5rem;
    }

    /* Car Detail Page Spacing Optimization */
    .car-info-panel {
        padding: 0.5rem !important;
        width: 100% !important;
        max-width: 95vw !important;
        margin: 0 auto !important;
    }

    .car-main-price {
        font-size: 1.5rem !important;
        margin: 0.5rem 0 !important;
    }

    .specs-grid {
        gap: 0.5rem !important;
    }

    .spec-item {
        padding: 0.5rem !important;
    }

    .gallery-main {
        padding: 0.5rem !important;
        min-height: 200px !important;
    }

    .section {
        padding: 2rem 0 !important;
    }

    .page-header {
        padding-top: 100px !important;
        padding-bottom: 30px !important;
        min-height: auto !important;
    }

    /* FIX: Ensure container does not overflow */
    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* FIX: Force images to fit */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {

    /* Simplify animations */
    * {
        animation-duration: 0.3s !important;
    }

    /* Reduce shadow complexity */
    .car-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .car-card:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    /* Optimize transforms */
    .car-card:hover {
        transform: translateY(-4px);
        /* Reduced from -8px */
    }

    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .car-card:hover {
            transform: none;
        }

        .btn:hover {
            transform: none;
        }
    }
}

/* Very Small Screens (max 375px) */
@media (max-width: 375px) {

    /* Even smaller logo */
    .logo img {
        height: 60px;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    /* Buttons smaller */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Car cards */
    .car-image {
        height: 180px;
    }

    .car-info {
        padding: var(--space-sm);
    }

    .car-title {
        font-size: 1rem;
    }

    /* Featured car */
    .featured-image {
        height: 180px;
    }

    .featured-price {
        font-size: 1.25rem;
    }

    /* Footer brand */
    .footer-brand .logo img {
        height: 50px;
    }

    /* Specs grid single column on very small */
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Touch Improvements --- */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .btn {
        min-height: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .filter-select {
        min-height: 44px;
    }

    /* Remove hover effects on touch */
    .car-card:hover {
        transform: none;
    }

    .car-card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    /* Gallery touch scrolling */
    .gallery-thumbs {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .gallery-thumb {
        scroll-snap-align: start;
    }

    /* Lightbox swipe hint */
    .lightbox-prev,
    .lightbox-next {
        opacity: 0.8;
    }
}

/* --- Landscape Mobile --- */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-md)) 0 var(--space-md);
    }

    .hero-featured {
        display: none;
        /* Hide featured car in landscape to save space */
    }

    .gallery-main {
        min-height: 200px !important;
        max-height: 50vh !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: var(--space-xs) !important;
    }

    .gallery-main img {
        max-height: 50vh !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .lightbox-image {
        max-height: 80vh;
    }
}

/* --- iOS Safe Areas --- */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(var(--space-sm), env(safe-area-inset-left));
        padding-right: max(var(--space-sm), env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
        gap: 0.5rem !important;
        text-align: center;
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: wrap;
    }

    .footer-anpc-icons {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-anpc-icons a {
        display: block;
        max-width: 100%;
    }

    .footer-anpc-icons img {
        max-width: 100%;
        height: auto !important;
        max-height: 40px;
        /* Limit height to keep it proportional */
    }
}

/* --- Print Styles --- */
@media print {

    .navbar,
    .footer,
    .cta-section,
    .hero-actions,
    .menu-toggle {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--space-md) 0;
    }

    .car-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCORDION STYLES (Finantare Page)
   ============================================ */
.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header h2 {
    color: var(--white);
    font-size: 1.25rem;
    /* Smaller font as requested */
    margin: 0;
    font-weight: 600;
}

.accordion-toggle-icon {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.accordion-item.active .accordion-toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

.accordion-content-inner {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 1rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    animation: slideUp 0.5s forwards 0.5s;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--gold);
}

.cookie-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--gold);
    transition: all 0.3s ease;
}

.cookie-link:hover {
    color: var(--white);
    border-bottom-style: solid;
}

.cookie-banner .btn {
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-banner.fade-out {
    animation: slideDown 0.5s forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-text {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-banner {
        animation: slideUp 0.3s forwards 0s;
        /* Immediate animation on mobile */
        bottom: 0;
        /* Ensure it's at the bottom */
        padding: 1.5rem 0;
        /* Slightly more padding for touch targets */
    }
}