/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    background-color: #1a1a1a;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}
header.scrolled {
    background: rgba(0, 0, 0, 0.9);
}

/* Header Container Flex Setup */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Left Section: Logo */
.header-left {
    flex: 1;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Center Section: Navigation */
.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}


/* Right Section: Book Now Button & Language Selector */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px; /* Spacing between button and selector */
}

.cta-button {
    padding: 8px 16px;
    background: #C0392B; /* Crimson Red for CTA */
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #A93226;
}

/* Language Selector Styling */
.language-selector select {
    padding: 4px;
    border: none;
    border-radius: 3px;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
}

/* Mobile Menu Toggle Styling */
.menu-toggle {
    display: none; /* Hidden by default */
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

     /* Hero / Carousel Section */
     .car-hero {
        position: relative;
        width: 100%;
        height: 70vh;
        overflow: hidden;
        margin-top: 70px; /* Adjust if your header is fixed */
    }
    .car-hero img {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 0;
        transition: opacity 1s ease;
    }
    .car-hero img.active {
        opacity: 1;
    }
    .car-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.3);
    }
    .car-intro {
        position: relative;
        z-index: 2;
        text-align: center;
        color: #fff;
        top: 50%;
        transform: translateY(-50%);
        max-width: 800px;
        margin: 0 auto;
        padding: 0 15px;
    }
    .car-intro h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    .car-intro p {
        font-size: 1.1rem;
        margin: 0 auto;
    }

    /* Key Features Section: LESS EMPTY SPACE, auto-resize columns */
    .car-features {
        background: #1a1a1a;
        color: #fff;
        padding: 40px 30px; /* Reduced from 60px for tighter spacing */
        text-align: center;
    }
    .car-features h2 {
        font-size: 1.8rem;
        margin-bottom: 20px; 
    }
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px; /* Less gap than before */
        justify-items: center;
        margin-top: 25px; 
    }
    .feature-item {
        background: #2a2a2a;
        padding: 15px; /* Slightly smaller padding */
        border-radius: 8px;
        transition: background 0.3s ease;
        width: 100%;
        max-width: 300px; /* Optional max width if you want uniform card widths */
    }
    .feature-item:hover {
        background: #3a3a3a;
    }
    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    /* Pricing & Booking: Tighter spacing */
    .car-pricing {
        background: #000;
        color: #fff;
        padding: 40px 30px; /* Reduced from 60px */
        text-align: center;
    }
    .car-pricing h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .price-list p {
        font-size: 1rem;
        margin: 5px auto; /* Tighter vertical spacing */
        max-width: 400px;
    }
    .book-button {
        display: inline-block;
        margin-top: 15px; /* Slightly reduced top margin */
        padding: 10px 20px;
        background: #C0392B;
        color: #fff;
        font-weight: 600;
        border-radius: 5px;
        text-decoration: none;
        transition: background 0.3s ease;
    }
    .book-button:hover {
        background: #A93226;
    }

    /* Book Now (Embedded) Section: Tighter spacing */
    .book-now-section {
        background: #1a1a1a;
        color: #fff;
        text-align: center;
        padding: 40px 30px; /* Reduced from 60px */
    }
    .book-now-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .book-now-section p {
        max-width: 500px;
        margin: 0 auto 20px;
        font-size: 1rem;
    }

    /* RESPONSIVE adjustments if needed */
    @media (max-width: 768px) {
      .car-hero {
        height: 50vh; /* Possibly smaller hero for mobile */
      }
      .car-intro h1 {
        font-size: 2rem;
      }
    }
/* Sections */
section {
    padding: 60px 30px;
    min-height: 80vh;
}
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #C0392B;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.service-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    background: #3a3a3a;
}
.service-card img {
    width: 80px;
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.service-card p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Book Now Section */
.book-now-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-list, .fare-estimation {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 400px;
    max-width: 600px;
    transition: background 0.3s ease;
}

.pricing-list h3, .fare-estimation h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.pricing-list table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-list th, .pricing-list td {
    padding: 10px;
    border-bottom: 1px solid #444;
    text-align: center;
}

.fare-estimation form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fare-estimation .form-group button#use-location {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}


.fare-estimation .form-group button#use-location:hover {
    background: #444;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #1a1a1a;
    color: #fff;
}

.fare-result {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #C0392B;
    text-align: center;
}

.fare-result p {
    color: #C0392B;
}

.fare-result strong {
    color: #fff;
}

/* Fleet Section */
.fleet-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.fleet-item {
    flex: 0 0 calc(33.333% - 30px);
    height: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #2a2a2a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.fleet-item:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.fleet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.fleet-item:hover img {
    transform: scale(1.05);
}
.fleet-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fleet-item:hover .fleet-info {
    opacity: 1;
}

/* About Us Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.timeline {
    width: 100%;
    max-width: 800px;
    position: relative;
    margin-top: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #C0392B;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 15px 30px;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #C0392B;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::before {
    left: -8px;
    right: auto;
}
.timeline-item-content {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    transition: background 0.3s ease;
}
.timeline-item-content:hover {
    background: #3a3a3a;
}
.timeline-item-content h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.timeline-item-content p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Drivers Section */
.drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.driver-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}
.driver-card:hover {
    transform: translateY(-8px);
    background: #3a3a3a;
}
.driver-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.driver-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.driver-info p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Blog/News Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.blog-post {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}
.blog-post:hover {
    transform: translateY(-8px);
    background: #3a3a3a;
}
.blog-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-content {
    padding: 15px;
}
.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.blog-content p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
}
.blog-content .cta-button {
    background: #C0392B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.blog-content .cta-button:hover {
    background: #A93226;
}

/* Promotions Section */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.promotion-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.promotion-card:hover {
    transform: translateY(-8px);
    background: #3a3a3a;
}
.promotion-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}
.promotion-card p {
    color: #ccc;
    margin-bottom: 15px;
}
.promotion-card .cta-button {
    background: #C0392B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.promotion-card .cta-button:hover {
    background: #A93226;
}

/* Repeat Booking Section */
.repeat-booking {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: background 0.3s ease;
}
.repeat-booking:hover {
    background: #3a3a3a;
}
.repeat-booking h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}
.repeat-booking p {
    color: #ccc;
    margin-bottom: 15px;
}
.repeat-booking .cta-button {
    background: #C0392B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.repeat-booking .cta-button:hover {
    background: #A93226;
}

/* Footer Styles */
footer {
    background: #1a1a1a;
    padding: 30px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}
.footer-section h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #fff;
}
.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: #fff;
}
.footer-contact a {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: #fff;
}
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #fff;
}
.newsletter input[type="email"] {
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 200px;
}
.newsletter button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #C0392B;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}
.newsletter button:hover {
    background: #A93226;
}

.footer-credits {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}
.footer-credits a {
    color: #C0392B;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.footer-credits a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #444;
}
.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: #C0392B;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-center {
        display: none; /* Hide navigation links on mobile */
    }
    .header-right {
        justify-content: flex-end;
    }
    .menu-toggle {
        display: block; /* Show menu toggle on mobile */
    }
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
    }
    nav ul.active li {
        text-align: center;
        margin-bottom: 15px;
    }

    .hero {
        height: 70vh;
    }

    .book-now-container {
        flex-direction: column;
        align-items: center;
    }

    .fare-estimation form {
        width: 100%;
    }

    .language-selector select {
        width: 100%;
    }

    .fleet-carousel {
        flex-wrap: wrap;
        justify-content: center;
    }
    .fleet-item {
        flex: 0 0 calc(50% - 30px);
        height: 200px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .drivers-grid {
        grid-template-columns: 1fr;
    }
}
