/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;

    /* display: flex; */
    justify-content: left;
    align-items: center;
    height: 100vh;
}

/*-----------Header Section Setting---------------------------*/
header {
    background: #ffcc00; /* Taxi-themed yellow background */
    color: #333;
    padding: 5px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spaces elements apart */
    flex-wrap: wrap; /* Ensures responsiveness */
}

#contact-mini {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    width: 100%;
    font-size: 1rem;
}

.contact-left p {
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
    color: white;
}

.contact-left a,
.contact-right a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin-left: 8px;
}

.contact-left a:hover,
.contact-right a:hover {
    text-decoration: underline;
}

.contact-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.fab.fa-whatsapp {
    color: #25D366;
    font-size: 1.2rem;
}


/* #contact-mini{
    padding: 0px;
    color: white;
    background-color: #333;
    width: 100%;
    
}
#contact-mini p{
    display: inline-block;
    justify-content: center; 
    font-weight: 900;
}

#contact-mini a{
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    flex-wrap: wrap;
}
.fab.fa-whatsapp{
    color: green;
    size: 2ch;
} */
 
/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 150px; /* Adjust the width */
    height: auto; /* Maintain aspect ratio */
}

/* Centered Text Content */
.text-content {
    text-align: center;
    flex-grow: 1; /* Allows the text block to expand evenly */
}

.text-content h1 {
    font-size: 2rem;
    margin: 0;
}

.text-content p {
    margin: 0 0 0;
    font-size: 1.5rem;
}

/* Button Container */
.button-container {
    display: flex;
    align-items: center;
}

.button {
    background: #333;
    color: white;
    padding: 20px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

.button:hover {
    background: #555;
}
/*---------------- Header Section Ends ------------------- */

/*-----------Gallery Section Settings---------------*/
section {
    padding: 20px;
    text-align: center;
}

/* Gallery Section */
#gallery {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
}

#gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1200 / 800;
}

.slides {
    display: flex;
    width: 100%; 
    height: 100%; 
    animation: slide 40s infinite;
    /* transition: transform 0.5s ease; */
}

.slides img {
    width: 100%; /* Ensures the image scales to the full width of its container */
    height: 100%; /* Ensures the image fills the container height */
    object-fit: fill; /*object-fit: cover/fill*//* "contain" Maintains aspect ratio and fills the container without distortion */ 
    display: block; /* Removes unwanted inline spacing caused by images */
    /* height: auto;  */
    flex-shrink: 0;
}
/* ------------------Gallery SECTION END ------------------------------ */


/*---------Services Section Settings---------------------*/
.container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items when there are fewer than 3 in a row */
    gap: 20px; /* Adds spacing between service cards */
    margin-bottom: 40px; /* Adds space between two rows */
}

.container h2 {
    font-size: 2rem;
}

.container .row .service {
    flex: 1 1 calc(33.333% - 20px); /* Ensures three services per row */
    max-width: 340px;
    transition: all 0.3s ease-in-out;
}

.container .row .service:hover {
    max-width: 330px;
    box-shadow: 1px 1px 3px 3px #d9d9d9;
    border-radius: 10px;
}

.container .row .service h3 {
    color: #ffbb00;
    font-weight: 700;
    font-size: 22px;
}

.container .row .service p.rate {
    color: rgb(41, 102, 126);
    font-weight: 700;
    text-align: center !important;
}

.container .row .service img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.container .row .service button {
    background: linear-gradient(to right, #FFD700 0%, #FFA500 100%);
    min-width: 150px;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.container .row .service button:hover {
    background: linear-gradient(to right, #FFD700 0%, #FFA500 100%);
}
/*------------------Service Section Ends ----------------------------  */

/*-------------------Convoy SECTION BEGINS----------------------------- */
/* Choose Your convoy - Slider Styles */
.convoy-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    overflow: hidden;
}

.convoy-container h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Slider Wrapper */
.convoy-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}

/* Slide Track */
.convoy-track {
    display: flex;
    width: calc(300px * 8); /* Adjust width based on number of slides */
    animation: scrollSlider 30s linear infinite;
}

/* Individual Slide */
.convoy-slide {
    min-width: 300px;
    margin: 0 15px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

/* Ensuring All Images Are of the Same Size Without Cutting */
.convoy-slide img {
    width: 250px; /* Fixed width */
    height: 180px; /* Fixed height */
    object-fit: contain; /* Ensures the entire image fits inside */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: white; /* Optional: adds padding around images */
    padding: 10px;
}

/* Vehicle Name */
.convoy-title {
    font-size: 16px;
    color: #06013d;
    font-weight: 700;
    margin-top: 10px;
}

/* Infinite Scrolling Animation */
@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 4)); /*Moves by half the track width*/
    }
}

/* Pause animation on hover */
.convoy-slider:hover .convoy-track {
    animation-play-state: paused;
}
/* ------------------- convoy SECTION ENDS   -----------------------------*/

#testimonials blockquote {
    font-style: italic;
    color: #555;
    margin: 20px auto;
    max-width: 600px;
}

#contact form {
    max-width: 400px;
    margin: 0 auto;
}

#contact form label {
    display: block;
    margin: 10px 0 5px;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact form button {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact form button:hover {
    background: #555;
}

.large {
    font-size: 22px;
}

footer {
    text-align: left;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    position: relative;
    bottom: 0;
}


/* Responsive Design */

@media (max-width: 992px) {
    .container .row .service {
        flex: 1 1 calc(50% - 20px); /* Two per row for tablets */
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .services-container {
        flex-direction: column;
        gap: 15px;
    }

    .container .row .service {
        flex: 1 1 100%; /* One per row for mobile */
    }

    .service {
        flex: 1 1 100%;
    }

    #contact form {
        padding: 0 10px;
    }

    #gallery h2 {
        font-size: 1.5rem;
    }
    .slides {
        animation: slide 12s infinite;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    header p {
        font-size: 0.9rem;
    }

    header .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    #testimonials blockquote {
        font-size: 0.9rem;
    }

    #gallery h2 {
        font-size: 1.2rem;
    }

    /* .service {
        flex: 1 1 calc(100% - 20px);
    } */
}

/*-----------------------------*/
/* Animation for Auto-Swiping */
/* @keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
} */
@keyframes slide {
    0%    { transform: translateX(0); }
    12.5% { transform: translateX(-100%); }
    25%   { transform: translateX(-200%); }
    37.5% { transform: translateX(-300%); }
    50%   { transform: translateX(-400%); }
    62.5% { transform: translateX(-500%); }
    75%   { transform: translateX(-600%); }
    87.5% { transform: translateX(-700%); }
    100%  { transform: translateX(0);     } /* Loop back to first image */
}

