/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Logo */
.logo {
    text-align: center; /* Center the logo text */
    margin-bottom: 15px; /* Add some space below the logo */
}

.logo a {
    font-size: 28px; /* Slightly larger for prominence */
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Navigation */
header nav {
    width: 100%; /* Ensure nav takes full width for centering its content */
}

nav ul {
    display: flex;
    justify-content: center; /* Center navigation items */
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
    padding: 0;
    margin-bottom: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #77aaff;
}

/* Buttons */
.btn {
    display: inline-block;
    color: #fff;
    background: #77aaff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5588cc;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

/* Hero Section */
#hero {
    min-height: 400px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

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

#hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

#hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

/* Vehicle Card Images */
.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Vehicle Detail Page Image */
.detail-image {
    width: 100%;
    max-height: 400px; /* Adjust as needed */
    object-fit: contain; /* Ensures the whole image is visible */
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f0f0f0; /* Optional: background for images with transparent areas */
}

.vehicle-card h3 {
    margin: 15px 0 10px;
    color: #333;
}

.vehicle-card p {
    padding: 0 15px;
    margin-bottom: 15px;
    font-size: 15px;
}

/* About Us Snippet & About Us Page */
#about-snippet,
#about-us {
    padding: 40px 0;
    background: #fff;
    text-align: center;
}

#about-snippet h2,
#about-us h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

#about-snippet p,
#about-us p {
    font-size: 18px;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-member {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    margin: 0;
    color: #333;
}

.team-member p {
    font-size: 14px;
    color: #777;
}

/* Contact Page */
#contact {
    padding: 40px 0;
    background: #f9f9f9;
}

#contact h2 {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
}

.contact-form,
.contact-info {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form h3,
.contact-info h3 {
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
}

.form-group textarea {
    resize: vertical;
}

.map-container {
    background: #e9e9e9;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-top: 20px;
    color: #777;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer .social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer .social-links a:hover {
    color: #77aaff;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container,
    nav ul {
        text-align: center;
    }

    header .logo,
    header nav {
        float: none;
        display: block;
        width: 100%;
    }

    header li {
        margin-bottom: 5px;
    }

    #hero h1 {
        font-size: 36px;
    }

    #hero p {
        font-size: 16px;
    }

    .vehicle-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        width: 100%;
        min-width: unset;
    }
}
