/* General Styles */
:root {
    --primary-color: #FF5722; /* Deep Orange */
    --secondary-color: #4CAF50; /* Green */
    --accent-color: #FFC107; /* Amber */
    --dark-text: #333;
    --light-text: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50; /* Dark Blue Gray */
    --border-color: #ddd;
    --font-family-primary: 'Roboto', sans-serif;
    --font-family-secondary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--dark-text);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    color: var(--dark-text);
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 10px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Header & Navigation */
header {
    background: var(--bg-dark);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .logo {
    float: left;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--light-text);
    font-family: var(--font-family-secondary);
}

header nav {
    float: right;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: var(--light-text);
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: url('https://images.pexels.com/photos/170811/pexels-photo-170811.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

#hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #fff;
}

/* Car Search Form */
.car-search-form {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: -50px; /* Overlap with hero section */
    position: relative;
    z-index: 2;
}

.car-search-form .form-group {
    margin-bottom: 0;
}

.car-search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-text);
}

.car-search-form input[type="text"],
.car-search-form input[type="date"],
.car-search-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.car-search-form button {
    width: 100%;
    grid-column: span 1; /* Ensure button takes full column width */
    margin-top: 25px; /* Align with other inputs */
}

/* Featured Cars Section */
#featured-cars {
    padding: 50px 0;
    text-align: center;
}

#featured-cars h2 {
    margin-bottom: 40px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

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

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.car-card-content {
    padding: 20px;
}

.car-card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.car-card-content .price {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.car-card-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.car-card-content ul li {
    margin-bottom: 8px;
    color: var(--dark-text);
}

.car-card-content .btn {
    width: 100%;
}

/* Testimonials Section */
#testimonials {
    background: var(--bg-dark);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
}

#testimonials h2 {
    color: var(--light-text);
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-background);
    color: var(--dark-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer .social-links a {
    color: var(--light-text);
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color);
}

footer p {
    margin-top: 15px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-50 { margin-top: 50px; }