:root {
    --bg-dark: #0f0f0f;
    --bg-light: #1a1a1a;
    --gold: #d4af37;
    --silver: #e0e0e0;
    --text-main: #ffffff;
    --transition: all 0.3s ease-in-out;
}

/* --- Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* --- Navigation --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 10%; background: rgba(15, 15, 15, 0.98);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333;
}
.logo { font-size: 1.6rem; font-weight: bold; color: var(--gold); text-transform: uppercase; }
.nav-links { display: flex; list-style: none; }
.nav-links li a { color: white; text-decoration: none; margin-left: 2rem; transition: var(--transition); }
.nav-links li a:hover, .nav-links li a.active { color: var(--gold); }
.hamburger { display: none; cursor: pointer; color: white; font-size: 1.5rem; }

/* --- Common Sections --- */
.section { padding: 80px 10%; text-align: center; }
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1583121274602-3e2820c69888?auto=format&fit=crop&w=1500');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero h1 { font-size: 3.5rem; color: var(--gold); text-transform: uppercase; }

/* --- Grid Systems (Home & Team) --- */
.car-grid, .why-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; margin-top: 40px; 
}

.car-card, .why-card { 
    background: var(--bg-light); padding-bottom: 20px; border-radius: 10px; 
    border: 1px solid #222; transition: var(--transition); 
}

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

/* Updated for Team Faces */
.car-card img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    object-position: top; /* Ensures faces aren't cropped in portraits */
    border-radius: 10px 10px 0 0; 
}





.car-card1, .why-card { 
    background: var(--bg-light); padding-bottom: 20px; border-radius: 10px; 
    border: 1px solid #222; transition: var(--transition); 
}

.car-card1:hover, .why-card:hover { border-color: var(--gold); transform: translateY(-10px); }

/* Updated for Team Faces */
.car-card1 img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    object-position: top; /* Ensures faces aren't cropped in portraits */
    border-radius: 5px 5px 0 0; 
}





/* --- Inventory Gallery (New Section) --- */
.inventory-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.inventory-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    transition: var(--transition);
    line-height: 0; 
}

.inventory-item img {
    width: 100%;
    height: auto; /* Shows entire image with embedded text/prices */
    display: block;
    transition: transform 0.5s ease;
}

.inventory-item:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.inventory-item:hover img {
    transform: scale(1.03);
}

/* --- Why Us Section Specifics --- */
.why-card { padding: 40px 20px; }
.why-card i { font-size: 3rem; color: var(--gold); margin-bottom: 20px; display: block; }
.why-card h3 { color: var(--gold); margin-bottom: 15px; text-transform: uppercase; }

/* --- Testimonials --- */
.testimonial { margin-top: 30px; padding: 20px; }
.testimonial p { font-style: italic; font-size: 1.2rem; color: var(--silver); }
.testimonial h4 { color: var(--gold); margin-top: 10px; }

/* --- Map --- */
/* --- Optimized Dark Mode Map --- */
.map { 
    width: 100%; 
    height: 450px; 
    /* This combination keeps it dark but preserves depth and some color */
   filter: grayscale(1) invert(0.9) contrast(1.2);
    border-bottom: 1px solid var(--gold);
    transition: var(--transition);
}

.map:hover {
    filter: none; /* Optional: Map turns to normal colors when user hovers over it */
}

/* --- Contact Page Layout --- */
.contact-container {
    display: flex; flex-wrap: wrap; gap: 50px; text-align: left; justify-content: center;
}
.contact-info { flex: 1; min-width: 300px; }
.info-item { margin-bottom: 30px; display: flex; align-items: center; gap: 20px; }
.info-item i {
    font-size: 1.5rem; color: var(--gold); background: #1a1a1a;
    padding: 15px; border-radius: 50%; border: 1px solid #333;
}

.form-wrapper { flex: 1.5; min-width: 300px; display: flex; flex-direction: column; gap: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: #151515; border: 1px solid #333;
    color: white; border-radius: 5px; outline: none; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }

/* --- Contact Socials Row --- */
.contact-socials { margin-top: 10px; padding-top: 20px; border-top: 1px solid #333; text-align: center; }
.social-icons-row { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }

/* --- Footer --- */
footer { padding: 60px 10% 40px; background: #050505; border-top: 1px solid #222; text-align: center; }
footer p { color: var(--silver); margin-bottom: 20px; font-size: 0.9rem; }

.social { display: flex; justify-content: center; gap: 25px; }
.social a, .s-btn {
    color: var(--text-main); font-size: 1.5rem; transition: var(--transition); text-decoration: none;
    display: inline-block;
}

/* Shared Social Hover Effects */
.social a:hover .fa-whatsapp, .s-btn.wa:hover { color: #25D366; }
.social a:hover .fa-envelope, .s-btn.gm:hover { color: var(--gold); }
.social a:hover .fa-tiktok, .s-btn.tt:hover { color: #ff0050; }
.social a:hover .fa-facebook, .s-btn.fb:hover { color: #1877F2; }
.social i, .s-btn i { transition: transform 0.3s ease; }
.social a:hover i, .s-btn:hover i { transform: translateY(-5px); }

/* Circle Buttons (Contact Page) */
.s-btn {
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #1a1a1a; border: 1px solid #333;
}

/* --- About Page --- */
.about-hero {
    height: 40vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1500');
    background-size: cover; border-bottom: 2px solid var(--gold);
}
.about-flex { display: flex; align-items: center; gap: 50px; text-align: left; flex-wrap: wrap; }
.about-image img { width: 100%; border-radius: 15px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.stats-row { display: flex; gap: 20px; margin-top: 30px; }
.stat-box { background: var(--bg-light); padding: 20px; border-radius: 8px; border-bottom: 3px solid var(--gold); text-align: center; flex: 1; }
.stat-box h3 { color: var(--gold); font-size: 1.8rem; }
.mv-box { flex: 1; background: #151515; padding: 40px; border-radius: 10px; border: 1px solid #222; min-width: 300px; }

/* --- Buttons --- */
.btn { padding: 12px 30px; background: var(--gold); color: #000; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; margin: 10px; border: 2px solid var(--gold); transition: var(--transition); }
.btn:hover { background: transparent; color: var(--gold); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; }

/* Scroll Top */
#scrollTop { position: fixed; bottom: 20px; right: 20px; background: var(--gold); border: none; padding: 12px 15px; cursor: pointer; display: none; border-radius: 5px; z-index: 1000; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #0f0f0f; padding: 20px; border-bottom: 1px solid #333; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .about-flex { text-align: center; }
    .inventory-display-grid { grid-template-columns: 1fr; }
}