* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111;
    background: #fff;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: #111;
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3d5a80;
}

/* Pages */
.page {
    display: none;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Home Page */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2d4059  0%, #3d5a80 50%, #3d5a80 75%, #a64848 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

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

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #e5e5e5;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.view-all-photos-btn {
    background: #fff;
    padding: 0rem 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 550;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.view-all-photos-btn:hover {
    color: #3d5a80;
}

.btn {
    background: #fff;
    color: #3d5a80;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(61, 90, 128, 0.2);
}

.btn-dark {
    background: #3d5a80;
    color: #fff;
}

.btn-dark:hover {
    background: #2d4059;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(61, 90, 128, 0.3);
}

/* Featured Section */
.featured {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.featured h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
    color: #2d4059;
}

/* Cars Grid */
.cars-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
}

.cars-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2d4059;
}

.cars-header p {
    font-size: 1.2rem;
    color: #666;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.car-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(61, 90, 128, 0.15);
}

.car-image {
    aspect-ratio: 16/9;
    background: #e5e5e5;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    overflow: hidden;
}

.car-image img {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.car-card:hover .car-image {
    background: #d5d5d5;
}

.car-icon {
    width: 80px;
    height: 80px;
    color: #999;
}

.car-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.car-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3d5a80;
    padding: 0 0.5rem;
}

.car-card .mileage {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.car-card .details {
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 0.5rem 0.5rem;
    transition: color 0.2s;
}

.car-card .details:hover {
    color: #3d5a80;
}

/* Car Profile Modal */
.model {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 64, 89, 0.85);
    z-index: 2000;
    overflow-y: auto;
}

.model.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.model-content {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(61, 90, 128, 0.3);
}

.model-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #3d5a80;
    line-height: 1;
    transition: all 0.2s;
}

.model-close:hover {
    background: #f5f5f5;
    border-color: #3d5a80;
}

/* Main Car Image */
.model-image-main {
    width: 100%;
    background: #e5e5e5;
    position: relative;
    touch-action: pan-y; /* Allow vertical scroll but handle horizontal swipes */
    user-select: none;
}

.model-image-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

/* Swipe indicator hint for mobile */
@media (max-width: 768px) {
    .model-image-main::after {
        content: '← Swipe →';
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(61, 90, 128, 0.8);
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        pointer-events: none;
        opacity: 0;
        animation: swipeHint 3s ease-in-out 0.5s;
    }
    
    @keyframes swipeHint {
        0%, 100% { opacity: 0; }
        10%, 90% { opacity: 1; }
    }
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f5f5f5;
}

.photo-grid-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.photo-grid-item:hover {
    transform: scale(1.05);
    border-color: #3d5a80;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-body {
    padding: 2.5rem;
}

.model-header {
    margin-bottom: 2rem;
}

.model-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2d4059;
}

.model-header .price {
    font-size: 2rem;
    font-weight: bold;
    color: #3d5a80;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-left: 4px solid #3d5a80;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d4059;
}

.description {
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    color: #444;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:before {
    content: "✓ ";
    color: #a64848;
    font-weight: bold;
    margin-right: 0.5rem;
}

.contact-section {
    background: linear-gradient(135deg, #2d4059 0%, #3d5a80 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border-radius: 4px;
}

.contact-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    color: #e5e5e5;
    margin-bottom: 1.5rem;
}

.contact-btn {
    background: #fff;
    color: #3d5a80;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.contact-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Form Modal */
.contact-form-model {
    max-width: 600px;
}

.contact-form-container {
    padding: 3rem;
}

.contact-form-container h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2d4059;
}

.form-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d4059;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e5e5;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3d5a80;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: #3d5a80;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.submit-btn:hover {
    background: #2d4059;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(61, 90, 128, 0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 64, 89, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 4rem;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    border-radius: 50%;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow-left {
    left: 2rem;
}

.lightbox-arrow-right {
    right: 2rem;
}

.image-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(61, 90, 128, 0.9);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
}

/* About Page */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #2d4059;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.values-box {
    background: #f8f9fa;
    padding: 3rem;
    margin: 3rem 0;
    border-left: 4px solid #3d5a80;
    border-radius: 4px;
}

.values-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #2d4059;
}

.value {
    margin-bottom: 2rem;
}

.value:last-child {
    margin-bottom: 0;
}

.value h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3d5a80;
}

.value p {
    color: #666;
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d4059  0%, #3d5a80 50%, #3d5a80 75%, #a64848 100%);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 5rem;
}

footer .brand {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

footer .tagline {
    color: #e5e5e5;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #3d5a80;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 4px 8px rgba(61, 90, 128, 0.1);
    }

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

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

    .model.active {
        padding: 0.5rem;
    }

    .model-content {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .model-body,
    .contact-form-container {
        padding: 1.5rem;
    }

    .lightbox-arrow {
        width: 60px;
        height: 60px;
        font-size: 3rem;
    }

    .lightbox-arrow-left {
        left: 0.5rem;
    }

    .lightbox-arrow-right {
        right: 0.5rem;
    }

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

    .image-counter {
        bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}