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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: rgba(20, 20, 20, 0.95);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

#nav-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

#Logo-brandname h1 {
    font-size: 1.5rem;
    color: #fff;
}

.pages {
    display: flex;
    gap: 2rem;
}

.pages a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.pages a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hamburger-menu-items {
    display: none;
    background: rgba(20, 20, 20, 0.98);
    padding: 1rem;
    list-style: none;
    border-bottom: 1px solid #333;
}

.hamburger-menu-items li {
    margin: 0.5rem 0;
}

.hamburger-menu-items a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #111 0%, #000 100%);
    padding: 4rem 5%;
    text-align: center;
    border-bottom: 1px solid #222;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #555;
}

.btn-primary:hover {
    background: #555;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Car Sections */
.car-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* Available Cars - Only 2 per row + Bigger Images */
.cars-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 3rem;
}

/* Car Cards */
.car-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #333;
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.car-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    background: rgba(40, 40, 40, 0.9);
    margin: 0;
}

/* Gallery Layout - Bigger */
.gallery {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 0 0 100px;
}

.thumbnails img {
    width: 100px;
    height: 75px;
    object-fit: contain;
    background: #222;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnails img:hover {
    border-color: #555;
}

.thumbnails img.active {
    border-color: #888;
}

.main-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image img {
    width: 100%;
    max-width: 550px;
    height: 380px;
    object-fit: contain;
    background: #222;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

/* Sold Cars Carousel Container */
.sold-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.sold-carousel {
    display: flex;
    gap: 2rem;
    animation: scrollSold 40s linear infinite; /* Adjust time based on number of cars (e.g., 5s per item) */
    width: max-content;
}

.sold-carousel:hover {
    animation-play-state: paused;
}

.sold-card {
    flex: 0 0 420px;
    min-width: 420px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
}

.sold-card img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    background: #222;
    border-radius: 10px;
    cursor: pointer;
}

@keyframes scrollSold {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #888;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Section */
.contact-section {
    background: rgba(20, 20, 20, 0.9);
    padding: 4rem 5%;
    border-top: 1px solid #222;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.contact-info {
    background: rgba(30, 30, 30, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #888;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 1px solid #444;
}

.contact-btn:hover {
    background: #444;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.contact-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.contact-btn.whatsapp:hover {
    background: #1da851;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 2rem 5%;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-brand p {
    color: #888;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .cars-container {
        grid-template-columns: 1fr; /* 1 per row on tablets */
    }
}

@media (max-width: 768px) {
    .pages {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hamburger-menu-items.active {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .thumbnails {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-image img {
        height: 280px;
        max-width: 400px;
    }
    
    .sold-card {
        flex: 0 0 300px;
        min-width: 300px;
    }
    
    .sold-card img {
        height: 220px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
