/* CSS Variables - Modern Automotive Theme */
:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #f87171;
    --secondary-color: #1f2937;
    --accent-color: #f59e0b;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-card: #ffffff;
    --background-hover: #fef2f2;
    --border-color: rgba(220, 38, 38, 0.1);
    --border-light: #f3f4f6;
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --gradient-secondary: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-light: 0 1px 3px rgba(220, 38, 38, 0.1);
    --shadow-medium: 0 4px 20px rgba(220, 38, 38, 0.15);
    --shadow-large: 0 20px 40px rgba(220, 38, 38, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
}

/* Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Button Styles - Modern Automotive */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: var(--background-card);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary:hover {
    background: var(--background-hover);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* Navigation - Modern Automotive */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-contact-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-contact-btn:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #5a5a5a 100%);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
}

/* Hero Section - Dynamic Automotive */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23dc2626" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23dc2626" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23dc2626" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23dc2626" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23dc2626" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
    transition: var(--transition);
}

.hero-phone:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.35);
}

.hero-phone i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.phone-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-number {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    transition: var(--transition);
}

.phone-number:hover {
    opacity: 0.9;
    text-decoration: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 2rem;
    font-size: 1.05rem;
}

.hero-buttons .btn span {
    font-weight: 600;
}

.hero-image {
    max-width: 600px;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-large);
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    
    .hero-text {
        text-align: left;
        flex: 1;
    }
    
    .hero-actions {
        align-items: flex-start;
    }
    
    .hero-phone {
        width: 100%;
        max-width: 350px;
    }
    
    .hero-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .hero-buttons .btn {
        flex: 0 1 auto;
        min-width: 200px;
    }
}

/* Section Styles - Modern Automotive */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Featured Inventory */
.featured-inventory {
    padding: 4rem 0;
    background: var(--background-primary);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.car-card {
    background: var(--background-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.car-card:hover::before {
    transform: scaleX(1);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    border-color: var(--primary-color);
}

.car-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.car-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.car-details {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background-card);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, rgba(245, 158, 11, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section - Modern Automotive */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23dc2626" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Contact Form - Modern Automotive */
.contact-form {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--background-primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-map {
    width: 100%;
    margin-top: 2rem;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: none;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map iframe {
        height: 300px;
    }
}

/* Footer - Modern Automotive */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #111827 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
    color: #9ca3af;
}

/* 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.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--background-card);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-large);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    transition: var(--transition);
}

.close:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: 1rem 2rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-header p {
    font-size: 1rem;
    margin: 0;
}

.modal-image-gallery {
    padding: 1rem 2rem;
}

.image-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.modal-main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1776/1184;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-main-image:hover {
    transform: scale(1.02);
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.4rem;
}

.thumbnail {
    width: 100%;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
}

.modal-details {
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--border-light);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.detail-value {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.modal-contact-button {
    margin-top: 1rem;
    padding-top: 1rem;
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.modal-contact-button .btn {
    display: inline-flex;
    width: auto;
    min-width: 200px;
    justify-content: center;
}

/* Fullscreen image modal */
.image-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.image-fullscreen.show {
    display: flex;
}

.image-fullscreen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.image-fullscreen .close-fullscreen {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-fullscreen .close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal.show {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-image-gallery,
    .modal-details {
        padding: 1rem;
    }
    
    .modal-main-image {
        height: 250px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-image-gallery {
        padding: 0.75rem 1rem;
    }
    
    .modal-details {
        padding: 0.5rem 1rem;
    }
    
    .detail-row {
        padding: 0.35rem 0;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-header p {
        font-size: 0.875rem;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.8125rem;
    }
    
    .image-fullscreen {
        padding: 1rem;
    }
    
    .image-fullscreen .close-fullscreen {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 0.3rem;
    }
    
    .thumbnail {
        height: 35px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
select:focus,
textarea:focus,
.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-muted: #000000;
    }
}

/* Additional Page Styles */

/* Legal Pages */
.legal-page {
    padding: 4rem 0;
    background: var(--background-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--background-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.cookie-table th {
    background: var(--background-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-table td {
    color: var(--text-secondary);
}

/* Success Page */
.success-page {
    padding: 4rem 0;
    background: var(--background-primary);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.success-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 2rem;
}

.success-content h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-details {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-light);
}

.success-details h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.success-details li i {
    color: var(--primary-color);
    width: 20px;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-info {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-methods {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.contact-method i {
    color: var(--primary-color);
}

/* About Page Styles */
.our-story {
    padding: 4rem 0;
    background: var(--background-primary);
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-card);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

.values {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.team {
    padding: 4rem 0;
    background: var(--background-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--border-light);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p:last-child {
    color: var(--text-secondary);
    line-height: 1.6;
}

.services-overview {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Service Pages Styles */
.financing-details,
.service-types,
.vehicle-types {
    padding: 4rem 0;
    background: var(--background-primary);
}

.financing-grid,
.service-grid,
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.financing-card,
.service-card,
.type-card {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.financing-card:hover,
.service-card:hover,
.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.financing-card h3,
.service-card h3,
.type-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.financing-card ul,
.service-card ul,
.type-card ul {
    list-style: none;
    padding: 0;
}

.financing-card li,
.service-card li,
.type-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.financing-card li:last-child,
.service-card li:last-child,
.type-card li:last-child {
    border-bottom: none;
}

.financing-card li:before,
.service-card li:before,
.type-card li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.requirements {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.requirements-list h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.requirements-list ul {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.process {
    padding: 4rem 0;
    background: var(--background-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact CTA Section */
.contact-cta {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: white;
    color: var(--text-primary);
}

.cta-buttons .btn:hover {
    background: var(--background-hover);
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for New Styles */
@media (max-width: 768px) {
    .hero-actions {
        gap: 1.25rem;
        margin-top: 2rem;
        align-items: center;
    }
    
    .hero-phone {
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }
    
    .hero-phone i {
        font-size: 1.25rem;
        width: 36px;
        height: 36px;
    }
    
    .phone-label {
        font-size: 0.75rem;
    }
    
    .phone-number {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .hero-buttons .btn {
        min-width: 100%;
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .requirements-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .car-card {
        margin-bottom: 1rem;
    }
}
