body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    font-size: medium;
    color: #343a40; /* Ensuring text is dark enough */
}

h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #343a40;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #b22222;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

blockquote {
    border-left: 5px solid #b22222;
    padding: 25px;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}

blockquote:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 40px;
    color: rgba(178, 34, 34, 0.2);
    font-family: Georgia, serif;
}

blockquote footer {
    background-color: transparent;
    padding: 5px 0;
    margin-top: 10px;
    border-radius: 5px;
    display: block;
    text-align: right;
    font-weight: bold;
    color: #b22222;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    bottom: 50px;
    animation: fadeIn 1s ease-in-out;
}

.carousel-inner img {
    height: 600px; /* Taller carousel for more impact */
    object-fit: cover;
    filter: brightness(0.85); /* Slightly darker for better text visibility */
}

.carousel-item h5 {
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-item p {
    font-size: 18px;
}

.navbar {
    background-color: #b22222;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

#contact h5 {
    margin-top: 20px;
    color: #b22222; /* Red-ish color */
}

#contact p a {
    color: #b22222; /* Red-ish color */
    text-decoration: none;
}

#contact p a:hover {
    text-decoration: underline;
}

#why-us i {
    color: #b22222; /* Red-ish color */
    margin-bottom: 10px;
}

#why-us h5 {
    margin-top: 10px;
    color: #343a40;
}

.vehicle img {
    width: 100%; /* Ensures the image fits the container */
    height: 200px; /* Fixed height for all images */
    object-fit: cover; /* Ensures the image scales properly without distortion */
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

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

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
}

.card h5, .card h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #343a40;
    font-size: 18px;
}

.card p {
    color: #495057; /* Ensuring card text is dark enough */
}

.card-body .btn {
    align-self: flex-end;
    margin-top: 15px;
    background-color: #b22222;
    border-color: #b22222;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-body .btn:hover {
    background-color: #930000;
    border-color: #930000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.3);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.carousel-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-transform: uppercase;
    color: #ffffff; /* Solid white color for better visibility */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(178, 34, 34, 0.7); /* Enhanced shadow for visibility */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.whyus {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.whyus::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #b22222;
    transition: height 0.3s ease;
    z-index: -1;
    opacity: 0.05;
}

.whyus:hover::before {
    height: 100%;
}

.iconbox {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(178, 34, 34, 0.1);
    color: #b22222;
    font-size: 36px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(178, 34, 34, 0.15);
}

.whyus:hover .iconbox {
    background-color: #b22222;
    color: white;
    transform: rotateY(180deg);
}

.theme-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border-radius: 10px;
    background-color: white;
}

#other-banner {
    background: url(./suv.png);
    background-position: center;
    background-size: cover;
    height: 40vh;
}

h1, h2, h3,h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: #212529;
}

/* Make sure lead text is visible */
.lead {
    color: #495057;
}

footer {
    background-color: #1a1a1a;
    color: #fff;
    position: relative;
    margin-top: 100px;
    padding-top: 50px;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #b22222;
}

footer img {
    width: 100px;
    border-radius: 50%;
    border: 3px solid #b22222;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.1);
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #111111;
}

footer h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

footer li,
footer p,
footer a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    line-height: 1.8;
}

footer li {
    margin-bottom: 10px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer .line {
    width: 50px;
    height: 3px;
    background-color: #b22222;
    margin-top: 10px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #b22222;
    color: white;
    transform: translateY(-5px);
}

footer a:hover {
    color: #ffffff; /* Change to white for better visibility against dark footer */
    text-decoration: none;
    padding-left: 5px;
}

/* Ensure good visibility for carousel buttons */
.carousel-overlay .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.carousel-overlay .btn-primary,
.carousel-overlay .btn-outline-light {
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.carousel-overlay .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Additional modern styling */
:root {
    --primary: #b22222;
    --primary-dark: #8b0000;
    --primary-light: #f8d7da;
    --dark: #343a40;
    --light: #f8f9fa;
    --gray: #6c757d;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section styling */
section {
    padding: 80px 0;
}

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

/* Button styling */
.btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(178, 34, 34, 0.2);
}

/* Animate on scroll classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact section enhancement */
#contact iframe {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Vehicle card enhancements */
.vehicle-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    background-color: #fff;
    color: #343a40;
    height: 100%;
    font-size: 0.95rem;
}

.vehicle-card .card-body {
    padding: 0.75rem;
}

.vehicle-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.vehicle-card img {
    height: 160px;
    object-fit: cover;
}

.vehicle-card:hover {
    transform: translateY(-10px);
}

.vehicle-card .category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(178, 34, 34, 0.85);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
}

/* Form styling */
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(178, 34, 34, 0.25);
}

/* Pagination styling */
#pagination button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#pagination button:hover {
    transform: scale(1.1);
}

/* Service cards enhancement */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    background-color: #fff;
    height: 100%;
}

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

.service-card h5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.service-card h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    left: 0;
    bottom: 0;
}

/* Animated background for some sections */
.bg-light-animated {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f1f1 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #b22222;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}

/* Custom styling for the reset filters button */
.btn-reset {
    background: linear-gradient(45deg, #b22222, #d64343);
    border: none;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    min-width: 120px;
    box-shadow: 0 3px 6px rgba(178, 34, 34, 0.2);
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: linear-gradient(45deg, #8b0000, #b22222);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(178, 34, 34, 0.3);
}

.btn-reset:focus, .btn-reset:active {
    background: linear-gradient(45deg, #8b0000, #b22222) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(178, 34, 34, 0.3) !important;
    transform: translateY(0);
}

.btn-reset i {
    animation: spin 1.5s linear infinite;
    animation-play-state: paused;
    margin-right: 4px;
}

.btn-reset:hover i {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 3rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .carousel-inner img {
        height: 400px;
    }
}

/* Compact header styling for vehicles page */
.bg-light-animated {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f1f1 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Reduced font size for vehicles page */
.small.text-muted {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* More compact spacing for vehicle listing page */
.vehicle-card {
    margin-top: 10px;
}

/* Reduced padding for filter section */
.card.shadow-sm.border-0.mb-4 {
    margin-bottom: 1rem !important;
}

.card.shadow-sm.border-0.mb-4 .card-body {
    padding: 1rem;
}

/* Compact padding for vehicle filters */
.input-group-text {
    padding: 0.375rem 0.75rem;
}

/* Less vertical space between filter and results */
#results-count {
    margin-bottom: 0.5rem !important;
}

/* Responsive styling for reset button */
@media (min-width: 768px) {
    .btn-reset {
        width: auto;
        min-width: 140px;
    }
}

@media (max-width: 767.98px) {
    .btn-reset {
        width: 100%;
        margin-top: 5px;
    }
}