/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0D1B2A;
    --secondary-color: #1E90FF;
    --accent-color: #FF7F50;
    --neutral-light: #F8F9FA;
    --text-dark: #2F4F4F;
    --white: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* --- Corrected and Merged Body Styles --- */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f8f9fa; /* Light gray background */
    position: relative; 
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1; /* Allows the main content to grow and fill empty space */
}

/* --- Decorative Background Blobs --- */
body {
    position: relative; /* Required for positioning the blobs */
    background-color: #f8f9fa; /* A very light gray for a softer feel */
    overflow-x: hidden; /* Prevents blobs from creating a horizontal scrollbar */
}

.background-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* This creates the soft, out-of-focus effect */
    z-index: -1; /* Places them behind all content */
    animation: blob-move 15s ease-in-out infinite; /* Apply the animation to all blobs */
}

.blob1 {
    width: 500px;
    height: 500px;
    background-color: rgba(30, 144, 255, 0.3); /* Opacity increased to 0.3 */
    top: -150px;
    left: -200px;
}

.blob2 {
    width: 400px;
    height: 400px;
    background-color: rgba(255, 127, 80, 0.25); /* Opacity increased to 0.25 */
    bottom: 10%;
    right: -150px;
    animation-delay: -5s; /* Start 5s into the animation */
}

.blob3 {
    width: 300px;
    height: 300px;
    background-color: rgba(30, 144, 255, 0.2); /* Light blue */
    top: 30%;
    right: -50px;
    animation-delay: -10s; /* Start 10s into the animation */
}

.blob4 {
    width: 350px;
    height: 350px;
    background-color: rgba(255, 127, 80, 0.15); /* Light orange */
    bottom: -100px;
    left: -100px;
    animation-delay: -7s; /* Start 7s into the animation */
}

.blob5 {
    width: 250px;
    height: 250px;
    background-color: rgba(30, 144, 255, 0.1); /* Lighter blue */
    top: 50%;
    left: 20%;
    animation-delay: -3s; /* Start 3s into the animation */
}

.blob6 {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 127, 80, 0.1); /* Lighter orange */
    top: 10%;
    right: 30%;
    animation-delay: -8s; /* Start 8s into the animation */
}

.blob7 {
    width: 450px;
    height: 450px;
    background-color: rgba(30, 144, 255, 0.15); /* Light blue */
    bottom: 25%;
    left: -200px;
    animation-delay: -12s; /* Start 12s into the animation */
}

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

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* --- Header & Navigation (FINAL ANIMATED VERSION) --- */
.header {
    /* Initial state at the top of the page */
    background-color: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    position: fixed;
    z-index: 1000; 
    
    /* Use the same centering method for both states */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    top: 0;
    border-radius: 0;
    
    /* === THIS IS THE FIX: Define initial padding === */
    padding: 15px 5%;
    
    /* Smooth transition for all properties */
    transition: all 0.6s ease-in-out; 
}

.header.scrolled {
    /* Scrolled state (floating window) */
    background-color: rgba(13, 27, 42, 0.8);
    
    width: 95%;
    max-width: 1200px;
    top: 10px;
    border-radius: 12px;
    
    /* === THIS IS THE FIX: Define scrolled padding === */
    padding: 15px 2%; /* Adjust horizontal padding for the floating state */
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    margin-left: 0;
}

.nav-link {
    color: var(--neutral-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.nav-link.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section (REDESIGNED) --- */
.hero {
    height: 80vh;
    margin: 120px 5% 50px 5%;
    border-radius: 20px;
    background: radial-gradient(ellipse at center, #2c3e50 0%, #1a252f 100%); /* New dark gradient */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: visible;
}

/* This is the container for the 3D canvas */
#hero-canvas-container {
    position: absolute; /* Changed from absolute to fixed for full viewport coverage */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Make the entire canvas ignore mouse events by default */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from dark to transparent for a subtle effect */
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    border-radius: 20px; /* Match parent's border-radius */
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

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

/* --- Booking Widget --- */
.booking-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-widget form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.input-group {
    flex: 1;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-light);
}

.input-group i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* --- Styles for Booking Widget Inputs & Select --- */

/* This unified rule makes the dropdown and date pickers look identical */
.booking-widget input,
.booking-widget select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--neutral-light);
    color: var(--text-dark);
    font-family: var(--font-body);
}

/* This adds the custom arrow and corrects the padding ONLY for the dropdown */
.booking-widget select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* === THIS IS THE CORRECTED PART === */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    cursor: pointer;
    padding-right: 40px; /* Adds extra space for the arrow */
}

.btn-search {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #ff6347;
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 80px 0;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    max-width: 300px;
}

.step-icon {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Featured Fleet Section --- */
.featured-fleet {
    background-color: var(--neutral-light);
    padding: 80px 0;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.car-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.car-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.car-features span {
    color: #555;
    font-size: 0.9rem;
}

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

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
}

.btn-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-card:hover {
    background-color: #000;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Homepage Blog Section --- */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.blog-read-more {
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto;
}

/* --- Single Blog Post Styles --- */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-meta {
    color: #777;
    font-style: italic;
}

.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.back-to-blog {
    display: inline-block;
    margin-top: 40px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
    padding: 80px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--neutral-light);
    padding-top: 60px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--white);
}
.footer p {
    color: #ccc;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #2c3e50;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Fleet Page Specific Styles (REDESIGNED) --- */
.page-container {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.fleet-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.filters {
    width: 300px;
    flex-shrink: 0;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.filters h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    cursor: pointer;
}

.price-range-values {
    display: flex;
    justify-content: flex-end; /* Aligns the single item to the right */
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
}

.filter-loading {
    font-style: italic;
    color: #888;
}

/* Modern Range Slider Styles */
#price-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd; 
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}
#price-range:hover {
    opacity: 1;
}
#price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
}
#price-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
}

.fleet-grid-container {
    flex-grow: 1;
}

#fleet-grid.fleet-grid {
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns */
}

.loader {
    border: 8px solid var(--neutral-light);
    border-top: 8px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Booking Page Specific Styles --- */

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.summary-label {
    color: #555;
}
.summary-value {
    font-weight: 600;
    color: var(--text-dark);
}
.summary-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.booking-form-final .form-group {
    margin-bottom: 20px;
}

#booking-location-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    cursor: pointer;
}

.booking-location-details {
    background-color: var(--neutral-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.booking-location-details h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.booking-location-details i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.booking-location-details p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-left: 30px;
}

.booking-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.booking-main {
    flex-grow: 1;
}

#car-details-container {
    background: var(--neutral-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

#car-details-container img {
    width: 250px;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.booking-form-final h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.extras label {
    display: block;
    margin-bottom: 10px;
}

.booking-summary {
    width: 320px;
    flex-shrink: 0;
    background: var(--neutral-light);
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 120px; /* Aligns with page padding top */
}
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
}

.btn-primary-full {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}
.btn-primary-full:hover {
    background-color: #ff6347;
}

/* --- Services Page Styles --- */

.page-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 50px auto;
    font-size: 1.1rem;
    color: #555;
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the content to fill the card */
}

.service-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-content p {
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.btn-service {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Aligns button to the bottom */
}

.btn-service:hover {
    background-color: #1c7ed6; /* A slightly darker blue */
}

/* --- About Us Page Styles --- */

.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.values-section {
    background-color: var(--neutral-light);
    padding: 80px 0;
}

.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--neutral-light);
}

.team-member h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
}

.team-member-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    margin: 40px auto;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-section p {
    color: #ccc;
    margin-bottom: 30px;
}

/* Override btn-secondary for light text on dark background */
.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Contact Page Styles --- */

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes 2/3, details take 1/3 */
    gap: 50px;
    margin-top: 40px;
}

.contact-form-container h3, .contact-details-container h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 30px; /* Aligns the text nicely */
    text-align: center;
    margin-right: 10px;
}

.contact-details a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* --- Style for Homepage Search Info on Fleet Page --- */
.search-info {
    background-color: #e7f5ff; /* A light blue */
    border: 1px solid #a5d8ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.search-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #1864ab;
}

.search-info small {
    color: #555;
}

.summary-location {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    color: #333;
}

.summary-location i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* --- Style for Price on Booking Page Car Display --- */

.car-price-display {
    margin-top: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.car-price-display span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-left: 5px;
}

/* --- Admin Dashboard Styles --- */

.nav-admin-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
}

.admin-table-container {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 0.95rem;
}

.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.admin-table thead {
    background-color: var(--primary-color);
    color: var(--white);
    font-family: var(--font-heading);
}

.admin-table tbody tr:nth-child(even) {
    background-color: var(--neutral-light);
}

.admin-table tbody tr:hover {
    background-color: #e9ecef;
}

.loading-row, .error-row {
    text-align: center !important;
    font-style: italic;
    color: #555;
    padding: 40px !important;
}

/* --- Admin Login Page Styles --- */

.login-logo-link {
    display: inline-block;
    margin-bottom: 10px;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--neutral-light);
}

.login-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
}

.login-header p {
    color: #555;
    font-size: 1.1rem;
}

.error-message {
    color: #d9534f; /* A shade of red */
    text-align: center;
    margin-top: 15px;
    height: 20px; /* Reserve space to prevent layout shift */
}

/* --- Style for Hidden Admin Link in Footer --- */

.footer-bottom a.admin-link {
    text-decoration: none !important; /* Removes the underline */
    color: #ccc !important;            /* Matches the normal footer text color */
    cursor: pointer;                   /* Changes the cursor to a pointer on hover */
    transition: color 0.3s ease;
}

.footer-bottom a.admin-link:hover {
    color: var(--white) !important;   /* Adds a subtle brightening effect on hover */
}

/* --- Footer Link Color Adjustment --- */

/* Target the links in the 'Quick Links' and 'Contact Us' sections of the footer */
.footer-links a,
.footer-contact a {
    color: #ccc;            /* Sets the default color to a soft light gray */
    text-decoration: none;   /* Removes the underline */
    transition: color 0.3s ease;
}

/* Change the color on hover to a clean white for a subtle, elegant effect. */
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

/* --- Admin Dashboard - Status Styles (Dropdown) --- */

.status-select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    -webkit-appearance: none; /* Removes default browser styling */
    -moz-appearance: none;
    appearance: none;
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 1em;
    padding-right: 2em; /* Make space for arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

/* Color coding for the dropdown based on its status class */
.status-pending { background-color: #f0ad4e; } /* Orange */
.status-approved { background-color: #5cb85c; } /* Green */
.status-declined { background-color: #d9534f; } /* Red */
.status-completed { background-color: #5bc0de; } /* Blue */

/* --- Booking Page Car Image Size --- */

#car-details-container img {
    width: 300px; /* You can adjust this value */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Admin Dashboard - Delete Icon Style (UPDATED for Font Awesome) --- */

.delete-icon {
    font-size: 1.1rem; /* Adjust size as needed */
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    padding: 5px 10px;
}

.delete-icon:hover {
    color: #d9534f; /* Red */
}

.icon-edit-booking {
    font-size: 1.1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
    color: #6c757d; /* Neutral gray */
}

.icon-edit-booking:hover {
    color: var(--secondary-color); /* Blue */
}

/* --- Admin Fleet Management Styles (UPDATED) --- */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* This new rule makes the title expand and center itself */
.admin-header .page-title {
    flex-grow: 1; /* Allows the title to take up the middle space */
    margin-bottom: 0; /* Removes the default bottom margin for better alignment */
    text-align: center;
}

.admin-header .btn-primary-full {
    width: auto;
}

.nav-cta-secondary {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.nav-cta-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.action-icon {
    font-size: 1.1rem;
    cursor: pointer;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.icon-edit { color: #6c757d; }
.icon-edit:hover { color: var(--secondary-color); }
.icon-delete { color: #6c757d; }
.icon-delete:hover { color: #d9534f; }

/* --- Floating Action Button (FAB) Style --- */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001; /* Above content, below modal */
    transition: transform 0.2s ease-in-out;
}

.fab:hover {
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--primary-color);
}

#car-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#car-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Base styles for BOTH buttons in the modal to ensure identical size */
.modal-actions .btn-primary-full,
.modal-actions .btn-secondary {
    width: auto;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent; /* Added for consistent height */
    margin-top: 0; /* Override base margin */
}

/* Specific color for the "Cancel" button */
.modal-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
.modal-actions .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* --- Fleet Management Modal - New Type Field --- */
#new-car-type-group {
    grid-column: 2 / 3; /* Position it in the second column */
    grid-row: 1 / 2;    /* On the same row as the dropdown */
    align-self: end;    /* Align it to the bottom */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .fleet-grid, .features-grid, .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item { margin: 20px 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .booking-widget form { flex-direction: column; align-items: stretch; }
    .steps-container { flex-direction: column; align-items: center; }
    .fleet-grid, .features-grid, .footer-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}

/* --- NEW: Animations & Visual Polish --- */

/* Keyframe Animations for scroll effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* General animation class for scroll-triggered elements */
.animate-on-scroll {
    opacity: 0; /* Start hidden */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Class added by JavaScript when element is in view */
.is-visible {
    opacity: 1;
    transform: none !important;
}

/* Specific starting positions */
.slide-in-up { transform: translateY(40px); }
.slide-in-left { transform: translateX(-40px); }


/* Enhanced Hover Effects for Cards */
.car-card, .service-card, .blog-card, .team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.car-card:hover, .service-card:hover, .blog-card:hover, .team-member:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Button Hover Effects */
.btn-search:hover, .nav-cta:hover, .btn-primary-full:hover, .btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- NEW: Advanced Animations & Effects --- */

/* Staggered Animation Delays */
/* We will apply these delays using JavaScript */
.stagger-child-1 { transition-delay: 0.1s; }
.stagger-child-2 { transition-delay: 0.2s; }
.stagger-child-3 { transition-delay: 0.3s; }
.stagger-child-4 { transition-delay: 0.4s; }
.stagger-child-5 { transition-delay: 0.5s; }
.stagger-child-6 { transition-delay: 0.6s; }