/* ADDED: For "delightful" smooth scroll animation */
html {
    scroll-behavior: smooth;
    /* FIX: Prevents horizontal scroll/white bars on some browsers */
    overflow-x: hidden; 
}

/* Custom Properties and Reset (High-Contrast Red Design) */
:root {
    --color-primary: #000000;      /* Deep Black (Main background/Text) */
    --color-secondary: #FF0000;    /* Vibrant Red (Main Accent/Buttons) */
    --color-light-bg: #FFFFFF;     /* Crisp White (Sections/Cards) */
    --color-text-dark: #222222;    /* Near Black for readability */
    --color-text-light: #FFFFFF;
    --font-heading: 'Impact', sans-serif; 
    --font-body: 'Arial', sans-serif; 
    --padding-main: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-light-bg);
    padding-top: 170px; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
}

/* === Utility Styles (Buttons) === */
.btn-primary {
    background-color: var(--color-secondary); 
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 2px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease; 
}

/* ADDED: Professional Lift Effect */
.btn-primary:hover {
    background-color: #CC0000;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4); 
    transform: translateY(-2px); 
}

.btn-secondary {
    background-color: var(--color-primary); 
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
    padding: 8px 18px;
    border-radius: 2px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease; 
}

/* ADDED: Professional Invert Effect */
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.large {
    padding: 15px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.btn-reserve {
    background-color: var(--color-secondary); 
    color: var(--color-text-light);
    padding: 12px 18px;
    border-radius: 2px;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 15px;
    transition: all 0.3s ease; 
}

.btn-reserve:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.6); 
    transform: translateY(-1px);
}

/* === 1. HEADER/NAVBAR STYLES (MOBILE) === */
header {
    width: 100%; 
    /* FINAL ENHANCEMENT: Richer, dynamic dark gradient for a premium look */
    background: linear-gradient(180deg, rgba(30, 30, 30, 1) 0%, rgba(0, 0, 0, 1) 100%);
    padding: 30px var(--padding-main); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    /* Darker shadow to enhance the depth effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6); 
}

/* Hide tagline on mobile */
.tagline {
    display: none;
}

/* Adjusted logo height */
header .logo img {
    /* FINAL MOBILE FIX: Increased height for better balance with the 'Book Now' button */
    height: 120px; 
}

/* Mobile ordering/display */
header > .btn-primary { order: 3; }
header .logo { order: 1; }
.hamburger { order: 4; display: block; background: none; border: none; cursor: pointer; font-size: 1.8rem; color: var(--color-secondary); }
.nav-menu { display: none; }

/* ADDED: Utility Class for cleaner JS/CSS logic */
.hide-on-mobile-menu {
    display: none !important; 
}


/* === 2. HERO SECTION STYLES === */
.hero-section {
    position: relative;
    height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: url('images/background 1.jpeg') center/cover no-repeat;
    color: var(--color-text-light);
    text-align: center; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 var(--padding-main);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-text-light);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center; 
}

/* === 3. VEHICLE SELECTION STYLES (Cards) === */
.card-section {
    background-color: #F7F7F7; 
    padding: 60px var(--padding-main);
    text-align: center;
    background: url('images/cards-bg.jpg') center top / cover no-repeat fixed;
    background-blend-mode: multiply; 
    background-color: #F7F7F7; 
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vehicle-card-container {
    display: grid;
    gap: 30px;
}

.vehicle-card {
    background-color: var(--color-light-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-secondary); 
    transition: all 0.4s ease; 
    cursor: pointer; 
}

/* ADDED: Attractive Card Lift Effect */
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vehicle-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    text-align: left;
}

.card-body h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.card-body p {
    margin-bottom: 15px;
    color: #444;
}

.card-body .details {
    font-size: 1rem;
    color: var(--color-secondary); 
    font-weight: 500;
}

/* === 4. CORPORATE EXCELLENCE STYLES (Service Cards) === */
.service-section {
    background-color: var(--color-light-bg);
    padding: 60px var(--padding-main);
    background: url('images/services-bg.jpg') center top / cover no-repeat fixed;
    background-blend-mode: multiply; 
    background-color: var(--color-light-bg); 
}

.service-card {
    background-color: #F7F7F7; 
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 5px solid var(--color-secondary); 
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-primary);
}

/* === 5. FOOTER STYLES === */
footer {
    /* FINAL ENHANCEMENT: Use a very dark charcoal for a richer, less flat black look */
    background-color: #111111; 
    color: var(--color-text-light);
}

.footer-content {
    padding: 40px var(--padding-main);
    display: grid;
    gap: 30px;
}

/* --- LARGE FOOTER IMAGE STYLING --- */
.footer-main-image {
    width: 100%; 
    height: 200px; 
    overflow: hidden; 
    border-radius: 4px; 
    margin-bottom: 20px; 
}

.large-footer-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
}


.contact-info p {
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--color-secondary); 
    width: 25px;
}

.quick-links h4, .connect-with-us h4 {
    color: var(--color-secondary); 
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.quick-links ul {
    list-style: none;
}

/* FINAL TOUCH: Ensure link hover is the vibrant secondary color */
.quick-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline; 
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.copyright-text {
    font-style: normal;
    font-size: 0.9rem;
    color: #999;
}

.sub-footer {
    border-top: 1px solid #333;
    text-align: center;
    padding: 15px var(--padding-main);
    font-size: 0.85rem;
    color: #777;
}

/* --- MOBILE MENU STYLES (Necessary for JS toggle to work) --- */
@media (max-width: 767px) {
    /* Initially hide the nav menu on mobile */
    .nav-menu {
        display: none; 
    }
    /* Show the menu when the 'active' class is added by JavaScript */
    .nav-menu.active {
        display: block;
        position: absolute;
        top: 170px; /* Aligned with the body padding-top */
        left: 0;
        width: 100%;
        background-color: var(--color-primary, #000); 
        padding: 10px 0;
        box-shadow: 0 4px 5px rgba(0,0,0,0.4);
        z-index: 1001; /* Z-INDEX FIX: Ensures menu is above header buttons */
    }
    .nav-menu.active ul {
        flex-direction: column;
        padding: 10px 0;
    }
    .nav-menu.active ul li {
        text-align: center;
        margin: 10px 0;
    }
    .nav-menu.active ul li a {
        color: var(--color-text-light, #fff);
        display: block;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* === DESKTOP MEDIA QUERY (Wider screens) === */
@media (min-width: 768px) {
    :root {
        --padding-main: 40px; 
    }
    
    body {
        padding-top: 0; 
    }

    header {
        width: 100%; 
        max-width: none; 
        display: flex;
        justify-content: space-between; 
        align-items: center; 
        padding: 10px 40px; 
    }
    
    .hamburger { 
        display: none; 
    }
    
    .header-inner-content {
        width: 100%;
        max-width: 1400px;
        display: flex;
        justify-content: space-evenly; 
        align-items: center;
        margin: 0 auto; 
    }

    .header-left-group {
        display: flex;
        align-items: center;
        gap: 30px; 
    }

    header .logo img {
        height: 80px; 
        transition: transform 0.3s;
    }
    
    header .logo img:hover { 
        transform: scale(1.05);
    }
    
    .tagline {
        display: block;
        flex-grow: 1; 
        text-align: center;
        margin: 0 10px; 
        
        /* EXECUTIVE POLISH: */
        color: #ddd; 
        letter-spacing: 4px; 
        text-transform: uppercase;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); 
        
        font-size: 1.1rem; 
        font-weight: bold;
    }
    
    .nav-menu {
        display: block;
    }
    
    .nav-menu ul {
        list-style: none;
        display: flex;
        justify-content: flex-end; 
        gap: 25px; 
    }
    
    .nav-menu a {
        color: var(--color-text-light);
        font-size: 1.0rem; 
        font-weight: 500;
        transition: color 0.3s, border-bottom 0.3s;
        padding-bottom: 8px; 
        border-bottom: 2px solid transparent; 
        position: relative;
    }
    
    /* Sliding Underline Base */
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-secondary);
        transition: width 0.3s ease-out;
    }
    
    /* Sliding Underline Hover Effect */
    .nav-menu a:hover::after {
        width: 100%;
    }

    .nav-menu a:hover {
        color: var(--color-secondary);
        border-bottom-color: transparent; 
    }
    
    .hero-section { height: 650px; padding-top: 0; }
    .hero-content h1 { font-size: 5rem; }
    .hero-buttons { flex-direction: row; gap: 20px; }
    .vehicle-card-container { grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto; }
    .footer-content { grid-template-columns: 2fr 1fr 1fr 2fr; max-width: 1300px; margin: 0 auto; }
    .footer-main-image { height: 250px; }
}

/* ===== BOOKING POPUP STYLING ===== */
.booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    z-index: 2000; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    display: none; 
}

.booking-form {
    background: var(--color-light-bg); 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.6); 
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.booking-form h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.booking-form form input,
.booking-form form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background: #f8f8f8;
    color: #333;
}

.booking-form form textarea {
    resize: vertical;
}

.booking-form .btn-primary,
.booking-form .btn-secondary {
    display: inline-block;
    width: 48%; 
    margin: 5px 1%;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}