/* CSS Reset & Variables */
:root {
    --primary: #111111;
    --secondary: #f4f4f4;
    --accent: #C5A059;
    /* Premium Gold */
    --text-dark: #111111;
    --text-light: #666666;
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove blue highlight on tap */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: calc(var(--nav-height) + 20px);
    /* Space for bottom nav */
    overflow-x: hidden;
    cursor: url('../img/cursor_car.png'), auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

/* Utilities */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: #b08d4b;
    /* Darker Gold */
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.full-width {
    width: 100%;
}

/* Mobile Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.logo-container {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 500px;
    /* Increased size further */
}

.site-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(197, 160, 89, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    color: white;
    text-align: left;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Quick Booking Card */
.booking-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.booking-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.booking-card h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group label i {
    margin-right: 6px;
    color: var(--accent);
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--accent);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half {
    flex: 1;
}

/* Fleet Section */
.fleet-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 1.5rem;
}

.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    position: sticky;
    top: 0;
    background: var(--bg-body);
    z-index: 50;
    margin-bottom: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 50px;
    background: white;
    border: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.fleet-slider {
    display: flex;
    flex-direction: column;
    /* Vertical Stack */
    gap: 16px;
    padding-bottom: 20px;
}

.fleet-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 12px;
    gap: 16px;
    transition: transform 0.2s;
}

.fleet-card:active {
    transform: scale(0.98);
}

.fleet-img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8f8f8;
    flex-shrink: 0;
}

.fleet-info {
    flex: 1;
    padding: 0;
}

.fleet-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    line-height: 1.2;
}

.fleet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.fleet-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
}

.fleet-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.fleet-card .btn-book {
    width: auto;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: inline-flex;
    margin-top: 0;
}

@media (min-width: 768px) {
    .fleet-slider {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .fleet-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .fleet-img {
        width: 100%;
        height: 200px;
        border-radius: 0;
        object-fit: cover;
    }

    .fleet-info {
        padding: 20px;
    }

    .fleet-card .btn-book {
        width: 100%;
        margin-top: 12px;
    }
}

/* Services Grid */
.services-section {
    margin-bottom: 40px;
}

.services-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-card {
    background: var(--bg-card);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 500;
}

/* Why Choose Us */
.why-us-section {
    margin-bottom: 40px;
}

.why-us-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.features-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-card .text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-card .text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Testimonials */
.testimonials-section {
    margin-bottom: 40px;
    background: white;
    padding: 40px 0;
}

.testimonials-section h2 {
    margin-bottom: 20px;
}

.testimonial-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.testimonial-card {
    min-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: var(--radius-md);
    scroll-snap-align: center;
    border: 1px solid #eee;
}

.testimonial-card .stars {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.testimonial-card .author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* FAQ Accordion */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    margin-bottom: 20px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 16px;
    background: white;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-body {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-light);
    font-size: 0.9rem;
}

.accordion-item.active .accordion-body {
    padding-bottom: 16px;
    max-height: 200px;
}

/* Footer */
.footer-section {
    padding: 40px 0 100px;
    background: white;
    text-align: center;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-links p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    height: var(--nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.75rem;
    gap: 4px;
    padding: 8px;
    flex: 1;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Floating CTA (Hidden by default, shown based on scroll or consistently on desktop?) 
   User asked for "Persistent ‘Book on WhatsApp’ button" in nav AND "Bottom navigation bar". 
   I've put it in the nav as 'Book' but the user also asked for a "Sticky bottom CTA (fixed)" in Hero.
   Wait, the request says: "Sticky bottom CTA (fixed): Book on WhatsApp" in Hero Section? 
   No, it implies a Persistent button. I will add a floating button that appears when scrolling down, 
   or just stick to the Nav bar 'Book' which is highly visible.
   Actually, the user requested "Persistent 'Book on WhatsApp' button" AND "Bottom navigation bar".
   I made one of the nav items 'Book' and highlighted it. I will also add a float-cta that is hidden on mobile if nav is present to avoid clutter,
   OR show it above the nav? 
   Let's keep the nav bar as the primary persistent element for mobile cleanliness. 
   However, on larger screens, we might need a floating button.
*/




/* Floating elements */
.float-cta {
    display: flex;
    position: fixed;
    bottom: 80px;
    /* Above bottom nav */
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.float-cta span {
    display: none;
    /* Icon only on mobile */
}

.float-cta i {
    font-size: 1.8rem;
}

.float-cta:active {
    transform: scale(0.95);
}

/* Scroll Progress Car (Vertical) */
#scroll-track {
    position: fixed;
    top: 0;
    right: 5px;
    /* Right side track */
    width: 60px;
    height: 100vh;
    background: transparent;
    z-index: 99;
    pointer-events: none;
}

#scroll-car {
    position: absolute;
    left: 50%;
    margin-left: -20px;
    /* Center without transform */
    top: 0;
    width: 40px;
    height: 80px;
    transition: top 0.1s linear;
    will-change: top;
    z-index: 100;
}

.car-rotator {
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
    /* Default: Faces Down */
    transition: transform 0.3s ease;
}

#scroll-car.rotate-up .car-rotator {
    transform: rotate(360deg);
    /* Faces Up (Clockwise) */
}

.car-vibrator {
    width: 100%;
    height: 100%;
    position: relative;
}

#scroll-car img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.3));
}

/* Headlights at the FRONT (Top of local div) */
#scroll-car .headlights {
    position: absolute;
    top: -10px;
    /* Front of car */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Headlight Beams (Projecting UP in local space -> 'Forward') */
#scroll-car .headlights::before,
#scroll-car .headlights::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 223, 0, 0.8), transparent);
    border-radius: 4px;
    box-shadow: 0 0 15px 2px rgba(255, 223, 0, 0.6);
}

#scroll-car .headlights::before {
    left: 4px;
}

#scroll-car .headlights::after {
    right: 4px;
}

#scroll-car.moving .headlights {
    opacity: 1;
}

#scroll-car.moving .car-vibrator {
    animation: vibrate 0.2s infinite;
}

@keyframes vibrate {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, 1px);
    }

    50% {
        transform: translate(0, 0);
    }

    75% {
        transform: translate(1px, -1px);
    }

    100% {
        transform: translate(0, 0);
    }
}



/* Response for Tablet/Desktop */
@media (min-width: 768px) {
    .container {
        width: 85%;
        max-width: 1200px;
    }

    .hero-section {
        height: 60vh;
        border-radius: 0 0 30px 30px;
    }

    .booking-section {
        margin-top: -80px;
    }

    .booking-card {
        display: flex;
        align-items: flex-end;
        gap: 20px;
    }

    .booking-form {
        display: flex;
        gap: 16px;
        width: 100%;
        align-items: flex-end;
    }

    .booking-form .form-group {
        margin-bottom: 0;
        flex: 1;
    }

    .booking-form button {
        width: auto;
        height: 50px;
    }

    .booking-card h2 {
        display: none;
    }

    /* Hide title on desktop row layout */

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 1;
        min-width: 200px;
    }

    .bottom-nav {
        display: none;
    }

    .float-cta {
        display: flex;
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: #25D366;
        color: white;
        padding: 16px 24px;
        border-radius: 50px;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        z-index: 101;
        transition: transform 0.3s;
    }

    .float-cta:hover {
        transform: translateY(-4px);
    }


}

/* Modal / Bottom Sheet */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: flex-end;
    /* Bottom sheet effect */
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.bottom-sheet {
    background: white;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .bottom-sheet {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sheet-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    font-size: 2rem;
    border: none;
    padding: 0;
    color: #999;
}

.sheet-body {
    margin-bottom: 24px;
    color: #555;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        justify-content: center;
    }

    .bottom-sheet {
        border-radius: 20px;
        transform: translateY(20px);
        opacity: 0;
    }

    .modal-overlay.open .bottom-sheet {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Image Zoom Modal --- */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#image-modal.open {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

#image-modal.open .image-modal-content {
    transform: scale(1);
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 3001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-image-modal:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}


/* --- Cursor Following Car --- */
#cursor-car {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: auto;
    pointer-events: none;
    z-index: 9999;
    /* Hidden initially until JS activates it */
    opacity: 0;
    transition: opacity 0.3s;
    /* Centering the pivot point */
    margin-left: -20px;
    margin-top: -20px;
    will-change: transform;
}

#cursor-car img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}



/* Headlights for Cursor Car */
#cursor-car .headlights {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 0;
    opacity: 0;
    /* Default off */
    transition: opacity 0.2s ease;
}

#cursor-car.moving .headlights {
    opacity: 1;
    /* On when moving */
}

#cursor-car .headlights::before,
#cursor-car .headlights::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 223, 0, 0.8), transparent);
    border-radius: 4px;
    box-shadow: 0 0 15px 2px rgba(255, 223, 0, 0.6);
}

#cursor-car .headlights::before {
    left: 4px;
}

#cursor-car .headlights::after {
    right: 4px;
}