:root {
    --bg: #0a0a0a;
    --surface: #161616;
    --accent: #25D366;
    --white: #ffffff;
    --text-dim: #888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(15px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; text-decoration: none; color: #fff; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: #fff; opacity: 0.7; transition: 0.3s; font-size: 0.9rem; }
.nav-links a:hover { opacity: 1; color: var(--accent); }

/* Hero */
section { padding: 100px 5%; }
.hero {
    height: 85vh; display: flex; align-items: center;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent), 
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1600') center/cover;
}
.hero-content { max-width: 600px; }
.section-tag { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.section-title { font-size: 3rem; font-weight: 900; margin-bottom: 30px; line-height: 1.1; }
.section-title span { color: var(--accent); }
.btn-main { background: var(--accent); color: #000; padding: 15px 35px; border-radius: 10px; text-decoration: none; font-weight: 800; display: inline-block; }

/* Features (Why Choose Us) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-box { background: var(--surface); padding: 40px; border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.feature-box i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

/* Inventory Grid */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.car-card { background: var(--surface); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.car-img-wrap { height: 220px; overflow: hidden; }
.car-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.car-info { padding: 20px; }
.car-price { font-size: 1.5rem; font-weight: 900; color: var(--accent); margin: 10px 0; }

/* Footer */
footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.bottom-bar { text-align: center; padding-top: 50px; color: #444; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
}

/* Scroll Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* WhatsApp */
.wa-float { position: fixed; bottom: 30px; right: 30px; background: var(--accent); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #000; z-index: 1000; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
/* --- CINEMATIC FOOTER & MAP STYLES --- */
.site-footer {
    background: #000;
    position: relative;
}

/* Map with Overlay Design */
.map-section {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.google-map {
    filter: grayscale(1) invert(0.9) contrast(1.2); /* Makes the map look "Dark Mode" and Designer */
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 400px;
    width: 90%;
}

.contact-card {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.contact-card h3 { margin: 15px 0; font-size: 1.5rem; }
.contact-card p { color: var(--text-dim); margin-bottom: 15px; font-size: 0.95rem; }
.contact-card i { color: var(--accent); margin-right: 10px; }

.btn-outline {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--accent); color: #000; }

/* Bottom Footer Area */
.footer-bottom { padding: 80px 5% 20px; }
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p { color: var(--text-dim); margin: 20px 0; max-width: 400px; }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; text-decoration: none;
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.05);
}
.social-links a:hover { background: var(--accent); color: #000; }

.footer-nav h4, .footer-hours h4 { margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-nav ul, .footer-hours ul { list-style: none; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a { color: var(--text-dim); text-decoration: none; transition: 0.3s; }
.footer-nav ul li a:hover { color: var(--accent); padding-left: 5px; }

.footer-hours ul li { color: var(--text-dim); margin-bottom: 10px; font-size: 0.9rem; }
.footer-hours span { color: #fff; font-weight: 600; }

.copyright-bar {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: #444;
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .map-overlay { position: static; transform: none; margin: -50px auto 40px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .map-section { height: auto; display: flex; flex-direction: column; }
    .google-map { height: 350px; order: 2; }
}

/* --- HORIZONTAL SLIDER DESIGN --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.carousel-container {
    width: 100%;
    overflow-x: auto; /* Allows touch swipe on mobile */
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-container::-webkit-scrollbar {
    display: none;
}

.car-grid-horizontal {
    display: flex; /* Makes them sit in a row */
    gap: 25px;
    width: max-content; /* Ensures the row doesn't wrap */
    padding: 10px;
}

.car-card {
    width: 350px; /* Fixed width for slider items */
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0; /* Prevents cards from squishing */
    transition: 0.3s;
}

/* Control Buttons */
.slider-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.control-btn {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .car-card { width: 280px; } /* Slightly smaller for mobile */
    .slider-controls { display: none; } /* Mobile users just swipe */
}
/* --- BUTTON STYLING --- */

/* 1. Inquire Now (Inside the Car Card) */
.view-detail-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05); /* Subtle transparent look */
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: var(--accent); /* Turns Green on hover */
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* 2. View All Inventory (Bottom of Section) */
.action-center {
    text-align: center;
    margin-top: 50px;
}

.btn-mega {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-mega:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #1eb956; /* Slightly darker green on hover */
}

/* 3. Slider Control Buttons (The Circles) */
.control-btn {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
/* --- INFINITE SMOOTH SLIDER --- */
.infinite-slider {
    width: 100%;
    overflow: hidden; /* Hide the cars outside the screen */
    padding: 20px 0;
    position: relative;
    background: linear-gradient(to right, var(--bg), transparent 10%, transparent 90%, var(--bg));
}

.car-track {
    display: flex;
    width: max-content; /* Allow the row to be as long as needed */
    gap: 30px;
    animation: scrollTrack 40s linear infinite; /* 40s is the professional speed */
}

/* Pause animation on hover so users can look at a car */
.infinite-slider:hover .car-track {
    animation-play-state: paused;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }
    100% {
        /* We move exactly half of the duplicated track */
        transform: translateX(-50%);
    }
}

.car-card {
    width: 320px;
    flex-shrink: 0;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.car-card:hover {
    border-color: var(--accent);
}