/* Global Styles */
:root {
    --primary-color: #ffc107;
    --secondary-color: #343a40;
    --text-color: #212529;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Add padding to account for the fixed navbar height */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #e0a800;
}

.section-title {
    position: relative;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

/* Contact Confirmation Modal */
#contactConfirmationModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#contactConfirmationModal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

#contactConfirmationModal .modal-body {
    padding: 1.5rem;
}

#contactConfirmationModal .fas.fa-envelope-open-text {
    animation: bounce-in 1s ease;
}

#contactConfirmationModal .btn-success {
    transition: all 0.3s ease;
}

#contactConfirmationModal .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #1c1c1c, #2d2d2d);
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff9800 50%, var(--primary-color) 100%);
    z-index: 1001;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.navbar-brand:hover .text-warning {
    animation: colorShift 1.5s infinite;
}

@keyframes colorShift {
    0% {
        color: var(--primary-color);
    }

    50% {
        color: #ff9800;
    }

    100% {
        color: var(--primary-color);
    }
}

.navbar-brand small {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.brand-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 1rem;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
    animation: pulseIcon 2s infinite;
}

.brand-icon:hover {
    transform: rotate(15deg) scale(1.15);
    filter: brightness(1.3) contrast(1.2);
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1.2);
    }
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-icon {
    margin-right: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.nav-link:hover .nav-icon {
    transform: scale(1.2);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.navbar .btn-warning {
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
}

.navbar .btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.navbar .btn-warning:hover::before {
    left: 100%;
}

.driver-icon {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 1.2rem;
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
    padding: 60px 0;
    margin-bottom: 30px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

/* Hero Carousel */
#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    height: 100vh;
}

.carousel-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

.carousel-indicators {
    z-index: 3;
    margin-bottom: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 10%;
}

/* Responsive Hero Carousel */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 80vh;
    }

    .hero-section {
        min-height: 80vh;
    }

    .carousel-indicators {
        margin-bottom: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 70vh;
    }

    .hero-section {
        min-height: 70vh;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 80vh;
    }

    .hero-section {
        min-height: 80vh;
        padding-top: 70px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-section .phone-cta {
        margin: 0.5rem auto;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .carousel-item {
        height: 90vh;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .hero-section .phone-number-display {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .hero-section .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

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

.service-card .card-img-top {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 193, 7, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-card-overlay {
    transform: scale(1.1) rotate(10deg);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* Media queries for service cards */
@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 20px;
    }

    .service-card .card-body {
        padding: 15px;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card .feature-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .service-card .card-img-top {
        height: 150px !important;
    }
}

/* Fleet Section */
.fleet-card,
.fleet-detail-card,
.fleet-feature-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.fleet-detail-card:hover,
.fleet-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fleet-card {
    cursor: pointer;
}

.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.fleet-card:hover img {
    filter: grayscale(100%);
}

.fleet-card:hover .card-body {
    background-color: #f8f9fa;
}

.fleet-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.fleet-card:hover:before {
    opacity: 1;
}

.fleet-card img {
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.fleet-card .card-body {
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.fleet-card .card-title {
    font-weight: 700;
    transition: color 0.3s ease;
}

.fleet-card:hover .card-title {
    color: var(--secondary-color);
}

.fleet-small-card {
    height: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.fleet-small-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.fleet-small-card:hover .card-img-top {
    filter: grayscale(100%);
}

.fleet-small-card .card-img-top {
    height: 140px;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.fleet-small-card .card-body {
    padding: 1rem;
    text-align: center;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.fleet-small-card:hover .card-body {
    background-color: #f8f9fa;
}

.fleet-small-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.fleet-small-card .btn {
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.fleet-small-card:hover .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Features Section */
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--dark-color);
}

/* Testimonials Section */
.testimonial-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating i {
    color: var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Contact Section */
.contact-info-card {
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i,
.payment-icon i {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.payment-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.payment-icon i {
    font-size: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* Map Section */
.map-container {
    width: 100%;
    height: 450px;
}

/* Footer */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom-links a {
    color: #adb5bd;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Social Media Footer */
.social-footer-link {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.social-footer-link:hover {
    color: var(--primary-color);
}

/* Popular Routes */
.route-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.route-card-img {
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: all 0.4s ease;
    width: 100%;
    display: block;
    opacity: 1;
    max-height: 200px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Keep this for backward compatibility */
.service-detail-card.show-image .route-card-img {
    height: 200px;
    max-height: 200px;
    opacity: 1;
    margin-bottom: 10px;
}

.service-detail-card {
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-detail-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-detail-card .btn {
    margin-top: auto;
}

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

.route-title {
    color: var(--dark-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.route-details p {
    margin-bottom: 8px;
}

/* Hero Section Phone CTA */
.phone-cta {
    margin: 1rem auto;
}

.phone-number-display {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
}

.phone-number-display:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: scale(1.05);
}

.phone-icon {
    animation: pulse 1.5s infinite;
    margin-right: 8px;
}

.bounce-text {
    display: inline-block;
    animation: bounce 2s ease infinite;
}

/* Responsive Phone Display */
@media (max-width: 991.98px) {
    .phone-number-display {
        font-size: 1.6rem;
        padding: 0.7rem 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .phone-number-display {
        font-size: 1.4rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .phone-number-display {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        letter-spacing: 0.5px;
        width: auto;
        max-width: 100%;
        text-align: center;
    }

    .phone-icon {
        margin-right: 5px;
    }
    
    .phone-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .phone-number-display {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: normal;
    }
    
    .bounce-text {
        display: inline;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Phone Call Popup Modal */
.phone-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.phone-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.phone-popup-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--primary-color);
}

.phone-popup-modal.active .phone-popup-content {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #777;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background-color: #f0f0f0;
    color: #555;
}

.popup-phone-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 20px 0;
    letter-spacing: 3px;
}

.popup-cta {
    margin-top: 20px;
}

.popup-cta .btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.popup-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
    .popup-phone-number {
        font-size: 2.5rem;
    }

    .popup-cta .btn {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 5px;
    }
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e0a800;
    color: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }

    .carousel-item {
        height: 90vh;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }

    .hero-section {
        min-height: 70vh;
    }

    .carousel-item {
        height: 70vh;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .fleet-card img {
        height: 180px;
    }

    .contact-info-card {
        margin-bottom: 30px;
    }

    .map-container iframe {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .phone-number-display {
        font-size: 1.5rem;
        padding: 0.6rem 1.2rem;
    }

    .carousel-item {
        height: 60vh;
    }

    .service-card,
    .fleet-card,
    .testimonial-card {
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .map-container iframe {
        height: 350px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .social-footer-link {
        margin-right: 5px;
    }

    .footer-bottom-links a {
        margin-left: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand small {
        font-size: 0.8rem;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .phone-number-display {
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
        letter-spacing: 0.5px;
    }

    .phone-cta {
        margin: 0.75rem auto;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-4px);
        }

        60% {
            transform: translateY(-2px);
        }
    }

    .hero-section {
        min-height: 60vh;
    }

    .carousel-item {
        height: 60vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .service-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon i,
    .feature-icon i {
        font-size: 1.3rem;
    }

    .fleet-card img {
        height: 160px;
    }

    .map-container iframe {
        height: 300px;
    }

    .social-media-footer {
        display: flex;
        justify-content: center;
    }

    .footer-bottom-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }

    .footer-bottom-links a {
        margin: 5px 0;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Booking Confirmation Modal */
#bookingConfirmationModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#bookingConfirmationModal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
    color: #212529;
}

#bookingConfirmationModal .modal-body {
    padding: 1.5rem;
}

#bookingConfirmationModal .booking-success-icon {
    animation: bounce-in 1s ease;
}

#bookingConfirmationModal .booking-details {
    animation: fade-in 0.8s ease;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#bookingConfirmationModal .btn-warning {
    transition: all 0.3s ease;
}

#bookingConfirmationModal .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Additional Responsive Helper Classes */
.overflow-x-auto {
    overflow-x: auto;
}

.w-100-sm {
    width: 100%;
}

@media (min-width: 576px) {
    .w-100-sm {
        width: auto;
    }
}

.mb-sm-0 {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .mb-sm-3 {
        margin-bottom: 1rem !important;
    }

    .text-center-xs {
        text-align: center !important;
    }

    .d-flex-xs-column {
        flex-direction: column !important;
    }

    .w-100-xs {
        width: 100% !important;
    }
}

/* Fix for image sizing on small screens */
@media (max-width: 575.98px) {
    .card-img-top {
        height: auto !important;
    }

    .fleet-card img {
        height: auto !important;
        max-height: 180px;
        object-fit: cover;
    }

    .route-card-img {
        height: 150px !important;
    }

    .service-detail-card {
        margin-bottom: 15px;
        height: auto;
    }

    .service-detail-card .card-body {
        padding: 1rem;
    }

    .service-detail-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .route-card-img {
        height: 180px;
    }

    .service-detail-card .route-icon {
        min-width: 30px;
    }

    .service-detail-card .card-body {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .route-card-img {
        height: 160px;
    }

    .service-detail-card .badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (min-width: 992px) {
    .service-detail-card {
        min-height: 300px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 767.98px) {

    .btn,
    .form-control,
    select.form-select {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    input,
    button,
    select,
    a.btn {
        min-height: 44px;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background-color: #343a40;
    border: 1px solid #454d55;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1030;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #2b3035;
    color: var(--primary-color);
}

.dropdown-divider {
    border-top: 1px solid #454d55;
    margin: 0.5rem 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.3em;
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(52, 58, 64, 0.8);
        padding-left: 1rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

/* Custom Checkbox Styling */
.custom-control {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 0;
    min-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    padding-left: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.custom-control-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-control-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    transition: all 0.3s ease;
}

.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E");
}

.custom-control-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 575.98px) {
    .custom-control-options {
        flex-direction: column;
        gap: 8px;
    }
}

#booking {
    /* Add responsive styles for the booking form here */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 767.98px) {
    #booking {
        width: 100%;
    }
}


/* City Dropdown Search Styles */
.dropdown-search-container {
    position: relative;
}

.dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-results.show {
    display: block;
}

.city-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.city-item:hover, .city-item.active {
    background-color: #fff8e6;
}

.city-item .city-name {
    font-weight: 500;
}

.city-item .city-state {
    font-size: 0.8rem;
    color: #6c757d;
}

.popular-cities-section {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.popular-cities-section h6 {
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

.popular-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.popular-city-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popular-city-tag:hover {
    background-color: #ffc107;
    color: #212529;
}

@media (max-width: 575.98px) {
    #booking label {
        display: block;
        margin-bottom: 0.5rem;
    }

    #booking input[type="text"],
    #booking input[type="email"],
    #booking select,
    #booking textarea {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .dropdown-results {
        max-height: 180px;
    }
}