/* Base Styles */
.carousel-item {
    height: 90vh;
    min-height: 400px;
    background: no-repeat center center scroll;
    background-size: cover;
}

.carousel-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-weight: bold;
    text-transform: uppercase;
}

.carousel-caption p {
    font-weight: 500;
    color: gainsboro;

}

/* Service Buttons Container */
.service-buttons-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 90%;
    max-width: 800px;
}


.service-btn {
    padding: 6px 16px; /* Reduced padding */
    font-size: 0.9rem;  /* Slightly smaller text */
    font-weight: bold;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
    margin-right: 5px;
}


.btn-towing {
    background-color: #e67e22;
    border-color: #e67e22;
}

.btn-customs {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-import {
    background-color: #2ecc71;
    border-color: #2ecc71;
}


.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: red;
}

/* Section Styles */
.service-section {
    scroll-margin-top: 80px;
    padding: 60px 0;
    transition: all 0.5s ease;
}

.service-section:nth-child(odd) {
    background-color: #f8f9fa;
}

.service-section:target {
    animation: highlight 2s;
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 255, 0, 0.1);
    }

    100% {
        background-color: inherit;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Navbar Adjustments */
.navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
.navbar {
    padding: 0.1rem 0; /* This is not in your style.css */
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand img {
    max-width: 225px;
}

.navbar-toggler {
    margin-left: auto;
    border: none;
    padding: 0.25rem 0.5rem;
    position: relative;
    z-index: 1000;
}

.navbar-collapse {
    background-color: #212529;
    /* Match navbar bg */
    width: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav {
    padding: 1rem;
    flex-grow: 1;
}

.navbar-nav .nav-link {
    color: #fff;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Emergency Button */
.nav-emergency {
    background-color: #dc3545;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-left: auto;
    margin-right: 1rem;
    color: #fff;
    text-decoration: none;
}

.nav-emergency:hover {
    background-color: #c82333;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-item {
        height: 60vh;
        min-height: 350px;
    }

    .carousel-caption {
        width: 90%;
        padding: 15px;
    }

    .service-buttons-container {
        bottom: 5%;
        width: 95%;
    }

    .service-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .service-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
.carousel-item {
        height: 50vh;
        min-height: 300px;
        position: relative;
    }

    .carousel-caption {
        display: flex; /* Ensure flexbox is active */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Center both horizontally and vertically */
        background-color: rgba(0, 0, 0, 0.6); /* Slightly darker background for better contrast */
        padding: 10px 15px; /* Reduced padding for smaller screens */
        width: 90%; /* Full width with some margin */
        max-width: 500px; /* Limit max width for larger tablets */
        border-radius: 8px;
        text-align: center; /* Center text inside caption */
        margin-top: 10px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem; /* Smaller font size for mobile */
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 0.9rem; /* Smaller font size for readability */
        font-weight: 500;
        color: gainsboro;
        margin-bottom: 0; /* Remove extra margin */
    }

    .service-buttons-container {
        top: auto;
        bottom: 5%; /* Position at bottom for better visibility */
        left: 50%;
        transform: translateX(-50%); /* Only horizontal centering */
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 80%;
        max-width: none;
    }

    .service-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

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

    .navbar-brand img {
        max-width: 175px !important;
    }

    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-toggler {
        position: static;
        /* Prevent jumping */
        margin-left: auto;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        padding-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-emergency {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .quick-nav .container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px; /* Increased gap for visible spacing between buttons */
        padding: 0 10px; /* Ensure some padding for smaller screens */
    }

    .quick-nav .service-btn {
        width: 50%; /* Set button width to 50% of the container */
        padding: 8px 10px; /* Adjust padding for balance */
        font-size: 0.85rem; /* Smaller font for mobile */
        text-align: center; /* Ensure text is centered */
        box-sizing: border-box; /* Ensure padding doesn't affect width */
    }
    #myfooter{
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Existing mobile styles... */

    .footer h2::after {
        left: 50% !important; /* Center the left edge */
        transform: translateX(-50%) !important; /* Shift left by half the width */
        width: 60px; /* Ensure consistency */
        height: 2px;
        bottom: 0;
        background: #f4b621;
    }

    .footer .footer-contact {
        margin-left: 0 !important; /* Remove offset for "Get in Touch" to avoid visual misalignment */
        text-align: center; /* Center the h2 text and content */
    }

    .footer h2 {
        text-align: center; /* Ensure h2 text is centered for consistency */
    }
    #footergetintouch{margin-left: 0px}
}

@media (max-width: 576px) {
    .carousel-item {
        height: 40vh;
        min-height: 250px;
    }

    .service-buttons-container {
        width: 90%;
    }

    .service-btn {
        font-size: 0.8rem;
    }

    .service-section {
        padding: 20px 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        max-width: 80px;
    }
}

/* Quick Nav */
.quick-nav {
    top: 85px;
    z-index: 1020;
}

/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
    position: relative;
    margin-top: 45px;
    padding-top: 90px;
    background: #212529;
    color: #ffffff;
}

.footer .footer-contact,
.footer .footer-link,
.footer .newsletter {
    position: relative;
    margin-bottom: 45px;
}

.footer h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.footer h2::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #f4b621;
}

.footer .footer-link a {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    transition: .3s;
}

.footer .footer-link a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .footer-link a:hover {
    color: #f4b621;
    letter-spacing: 1px;
}

.footer .footer-contact p i {
    width: 25px;
}

.footer .footer-social {
    position: relative;
    margin-top: 20px;
}

.footer .footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 7px 0;
    text-align: center;
    border: 1px solid rgba(256, 256, 256, .3);
    border-radius: 60px;
    transition: .3s;
}

.footer .footer-social a i {
    font-size: 15px;
    color: #ffffff;
}

.footer .footer-social a:hover {
    background: #f4b621;
    border-color: #f4b621;
}

.footer .footer-social a:hover i {
    color: #030f27;
}

.footer .newsletter .form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.footer .newsletter input {
    height: 50px;
    border: 2px solid #121518;
    border-radius: 0;
}

.footer .newsletter .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #f4b621;
    background: #121518;
    border-radius: 0;
    border: 2px solid #f4b621;
    transition: .3s;
}

.footer .newsletter .btn:hover {
    color: #121518;
    background: #f4b621;
}

.footer .footer-menu .f-menu {
    position: relative;
    padding: 15px 0;
    font-size: 0;
    text-align: center;
    border-top: 1px solid rgba(256, 256, 256, .1);
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.footer .footer-menu .f-menu a {
    color: #ffffff;
    font-size: 16px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu .f-menu a:hover {
    color: #f4b621;
}

.footer .footer-menu .f-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer .copyright {
    padding: 30px 15px;
}

.footer .copyright p {
    margin: 0;
    color: #ffffff;
}

.footer .copyright .col-md-6:last-child p {
    text-align: right;
}

.footer .copyright p a {
    color: #f4b621;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer .copyright p a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {

    .footer .copyright p,
    .footer .copyright .col-md-6:last-child p {
        margin: 5px 0;
        text-align: center;
    }
}

/******slider *******/
.logo-slider-section {
            padding: 50px 0;
            background: white;
            position: relative;
            overflow: hidden;
        }
        
        .logo-slider-heading {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
            z-index: 2;
        }
        
        .logo-slider-heading h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .logo-slider-heading h2::after {
            content: '';
            position: absolute;
            width: 60px;
            height: 4px;
            background: var(--primary-color);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        .logo-slider-heading p {
            color: #6c757d;
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .logo-slider-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 20px 0;
        }
        
        .logo-slider-track {
            display: flex;
            width: max-content;
            animation: scroll 40s linear infinite;
        }
        
        .logo-slide {
            flex: 0 0 auto;
            width: 400px;
            margin: 0 2px;
            padding: 0;
            background: white;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }
        
        .logo-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(108, 99, 255, 0.08) 0%, rgba(77, 68, 219, 0.08) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .logo-slide img {
            width: 100%;
            height: 200px;
            object-fit: contain;
            transition: all 0.4s ease;
        }
        
        .logo-slide .company-info {
            text-align: center;
            padding: 10px;
            width: 100%;
        }
        
        .logo-slide .company-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--dark-color);
            margin-bottom: 5px;
        }
        
        .logo-slide .company-link {
            font-size: 0.9rem;
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .logo-slide .company-link:hover {
            color: var(--secondary-color);
        }
        
        /* Animation */
        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }
        
        /* Pause animation on hover */
        .logo-slider-container:hover .logo-slider-track {
            animation-play-state: paused;
        }
        
        /* Gradient overlay for fading effect */
        .logo-slider-container::before,
        .logo-slider-container::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100px;
            z-index: 2;
            pointer-events: none;
        }
        
        .logo-slider-container::before {
            left: 0;
            background: linear-gradient(90deg, white 0%, transparent 100%);
        }
        
        .logo-slider-container::after {
            right: 0;
            background: linear-gradient(90deg, transparent 0%, white 100%);
        }
        
        /* Decorative elements */
        .decorative-shape {
            position: absolute;
            opacity: 0.05;
            z-index: 1;
        }
        
        .shape-1 {
            width: 400px;
            height: 400px;
            background: var(--primary-color);
            top: -200px;
            right: -200px;
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }
        
        .shape-2 {
            width: 300px;
            height: 300px;
            background: var(--secondary-color);
            bottom: -150px;
            left: -150px;
            border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .logo-slide {
                width: 200px;
                margin: 0 2px;
            }
            
            .logo-slide img {
                height: 100px;
            }
            
            .logo-slider-heading h2 {
                font-size: 2rem;
            }
            
            .logo-slider-container::before,
            .logo-slider-container::after {
                width: 50px;
            }
            
            .logo-slide .company-title {
                font-size: 0.9rem;
            }
            
            .logo-slide .company-link {
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 576px) {
            .logo-slide {
                width: 150px;
                margin: 0 2px;
            }
            
            .logo-slide img {
                height: 75px;
            }
            
            .logo-slider-section {
                padding: 60px 0;
            }
            
            .logo-slider-track {
                animation: scroll 30s linear infinite;
            }
            
            .shape-1 {
                width: 300px;
                height: 300px;
                top: -150px;
                right: -150px;
            }
            
            .shape-2 {
                width: 200px;
                height: 200px;
                bottom: -100px;
                left: -100px;
            }
            
            .logo-slide .company-title {
                font-size: 0.8rem;
            }
            
            .logo-slide .company-link {
                font-size: 0.7rem;
            }
        }
/*************** slider ********************/
