/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

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

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #333;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e60000;
}

a {
    text-decoration: none;
    color: #e60000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100; /* Reduced z-index to allow scrolling */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e60000;
}

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

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

.nav-links a {
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #e60000;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    padding-right: 20px;
}

.typing-container {
    height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#typing-text {
    font-size: 2.5rem;
    color: #e60000;
    border-right: 3px solid #e60000;
    padding-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #e60000; }
    51%, 100% { border-color: transparent; }
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.hero-btn.primary {
    background-color: #e60000;
    color: white;
}

.hero-btn.primary:hover {
    background-color: #cc0000;
}

.hero-btn.secondary {
    background-color: transparent;
    color: #e60000;
    border: 2px solid #e60000;
}

.hero-btn.secondary:hover {
    background-color: #e60000;
    color: white;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #fff;
}

/* How It Works Section */
.how-it-works {
    background-color: #fff;
}

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

.step {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #e60000;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e60000;
}

.step p {
    color: #666;
}

/* Car Grid Styles */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.car-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.car-card img {
    height: 200px;
    object-fit: cover;
}

.car-card h3 {
    padding: 15px 15px 5px;
    font-size: 1.5rem;
}

.car-card p {
    padding: 0 15px 15px;
    color: #666;
}

.price-tag {
    background-color: #e60000;
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    margin: 0 15px 15px;
    border-radius: 5px;
}

.features {
    padding: 0 15px 15px;
    display: flex;
    justify-content: space-between;
}

.features span {
    display: flex;
    align-items: center;
    color: #666;
}

.features i {
    margin-right: 5px;
    color: #e60000;
}

/* Section Styles */
.car-types, .quality-cars, .excellent-cars {
    background-color: #fff;
}

.testimonials, .blog {
    background-color: #f8f8f8;
}

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

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial h4 {
    font-weight: normal;
    color: #e60000;
}

.view-all-testimonials, .view-all-blog {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    background-color: #e60000;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #cc0000;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    height: 200px;
    object-fit: cover;
}

.blog-post h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
}

.blog-post p {
    padding: 0 20px 20px;
    color: #666;
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 8px 15px;
    background-color: #e60000;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #cc0000;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #e60000;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: #e60000;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e60000;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e60000;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #e60000;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e60000;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
        z-index: 10;
    }

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

    .nav-links.active {
        transform: translateY(0);
    }

    .burger {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    #typing-text {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    h2 {
        font-size: 2rem;
    }

    .carousel-slide img {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    #typing-text {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .car-grid, .testimonial-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}