/* General Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: #222;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
}

.logo a {
    color: #222;
    text-decoration: none;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #555;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
    text-decoration: none;
}

.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: url('https://via.placeholder.com/1500x800/222/fff?text=Luxury+Car+Showroom') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
}

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

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Sections General Styling */
section {
    padding: 60px 0;
}

section:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* Services Section */
.services-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    margin-bottom: 20px;
    max-width: 60px;
    height: auto;
}

.service-item h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
}

/* Products Carousel Section */
.products-carousel-section {
    text-align: center;
}

.products-carousel-section h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto; /* Prevent items from shrinking */
    /* width is set by JS for responsiveness */
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 10px; /* Space between items */
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.carousel-item h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.carousel-item .price {
    font-size: 1.1em;
    color: #007bff;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* About Us Section */
.about-us-section {
    padding: 60px 0;
}

.about-us-section h2 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 30px;
}

.about-us-section h3 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.about-us-section p {
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.google-map-container {
    margin-top: 30px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #ccc; /* Placeholder background */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.google-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #777;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    margin: 0;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
}

.social-links img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header .container {
        flex-wrap: wrap;
        justify-content: space-between; /* Adjusted to place logo left, hamburger right */
        align-items: center;
    }

    .logo {
        width: auto; /* Allow logo to take natural width */
        text-align: left;
        margin-bottom: 0;
    }

    .main-nav {
        width: auto; /* Allow nav to take natural width */
        position: relative;
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
        order: 2; /* Place hamburger after logo conceptually */
    }

    .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-radius: 5px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack services vertically */
    }

    .carousel-btn {
        padding: 10px;
        font-size: 1.2em;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2em;
    }

    .about-us-section h2, .services-section h3, .products-carousel-section h3 {
        font-size: 2em;
    }

    .about-us-section p {
        text-align: left;
    }

    footer .container {
        gap: 10px;
    }
}