/* General Styles */
:root {
    --primary-color: #FF5722; /* Deep Orange */
    --secondary-color: #4CAF50; /* Green */
    --accent-color: #FFC107; /* Amber */
    --dark-bg: #212121;
    --light-bg: #f5f5f5;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --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(--light-bg);
    color: var(--text-color-dark);
    overflow-x: hidden;
}

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

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

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

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

p {
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

section:nth-child(odd) {
    background-color: #fff;
}

/* Header */
header {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-family: var(--font-family-secondary);
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s ease;
}

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: var(--text-color-light);
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

/* Features Section */
.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.features .feature-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.features .feature-item i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features .feature-item h3 {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.features .feature-item p {
    color: #666;
}

/* Car Listings Section */
.car-listings .car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.car-listings .car-item {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-listings .car-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.car-listings .car-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.car-listings .car-info {
    padding: 20px;
}

.car-listings .car-info h3 {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.car-listings .car-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.car-listings .car-info .details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.car-listings .car-info .details span {
    display: flex;
    align-items: center;
}

.car-listings .car-info .details i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* Call to Action Section */
.cta {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    color: var(--text-color-light);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer .footer-links li {
    margin: 0 15px;
}

footer .footer-links li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #1a1a1a;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f5f5f5;
}

body.dark-mode header {
    background-color: #333;
    box-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

body.dark-mode nav ul li a {
    color: #e0e0e0;
}

body.dark-mode .features .feature-item,
body.dark-mode .car-listings .car-item {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(255,255,255,0.08);
}

body.dark-mode .features .feature-item i {
    color: var(--accent-color);
}

body.dark-mode .features .feature-item p,
body.dark-mode .car-listings .car-info .details {
    color: #bbb;
}

body.dark-mode footer {
    background-color: #333;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 24px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}