/* Custom Variables */
:root {
    --primary: #0d6efd;
    --dark: #212529;
    --light: #f8f9fa;
    --transition: all 0.3s ease-in-out;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}


/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    transition: var(--transition);
    padding: 1rem 0;
    z-index: 1029;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

/* Hero Section with Swiper */
.hero-section {
    height: 100vh;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    background: #fff;
    height: calc(100vh - 117px);
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: left;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #fff;
    opacity: 0.9;
}

.slide-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    text-transform: capitalize;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.4);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

/* Animation Classes */
.animate__fadeInDown {
    animation: fadeInDown 1s ease forwards;
}

.animate__fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* Section Headers */
.section-header {
    position: relative;
}

.header-line {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

/* Topbar */
.topbar {
    font-size: 0.9rem;
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; */
}

.topbar a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.topbar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.topbar .social-icons a:hover {
    background-color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.topbar a:not(.social-icons a):hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* Cars Section */
.cars-section {
    background-color: var(--light);
}

/* Cars Grid */
.filters-button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-button-group .btn {
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filters-button-group .btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Car Card */
.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.car-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-card:hover .car-overlay {
    opacity: 1;
}

.car-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.car-card:hover .car-overlay .btn {
    transform: translateY(0);
}

.car-content {
    padding: 20px;
}

.car-content h4 {
    margin: 0 0 15px;
    color: var(--dark);
    font-weight: 600;
}

.car-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.car-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-info i {
    color: var(--primary);
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

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

.car-price .badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Services Section */
.services-section {
    background: linear-gradient(to right, #f8f9fa 50%, #fff 50%);
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    a {
        text-decoration: none; color: #333;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.service-features li i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section i {
    transition: var(--transition);
}

.contact-section .col-md-4:hover i {
    transform: scale(1.1);
}

/* Page Header */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary);
}

/* Specific page headers */
.about-header {
    background-image: url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c?auto=format&fit=crop&w=1920&q=80');
}

.services-header {
    background-image: url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1920&q=80');
}

.cars-header {
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80');
}

.contact-header {
    background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1920&q=80');
}

/* Footer */
.footer {
    background-color: var(--dark);
}

.social-icons {
    justify-content: end;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    transition: var(--transition);
}

.btn-primary {
    padding: 0.8rem 2rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: var(--light);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .navbar {
        padding: 0.5rem 0;
        margin-top:30px;
    }

    .social-icons{
        margin-top: 10px;
        justify-content: start;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
}

/* Cars Section */
.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.copyright {
    background-color: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover {
    color: inherit;
}

/* About Section Detailed */
.about-section-detailed .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Features Section */
.feature-card {
    background: #fff;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #eee;
}

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

/* Counters Section */
.counters-section {
    background-color: var(--primary);
    color: #fff;
}

.counters-section .counter-box h2 {
    color: #fff;
}

.counters-section .counter-box p {
    color: rgba(255,255,255,0.8);
}


/* Gallery Section */
.gallery-section a {
    display: block;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-section img {
    transition: var(--transition);
}

.gallery-section a:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    background-color: var(--light);
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links-contact .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-section {
    line-height: 0; /* Removes space below iframe */
}

/* Services List Section */
.services-list-section .service-item-card {
    transition: var(--transition);
    border: 0;
}

.services-list-section .service-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.services-list-section .service-item-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.services-list-section .service-item-card .card-title a:hover {
    color: var(--primary) !important;
}

/* Service Detail Section */
.service-detail-section .sidebar .widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.service-detail-section .sidebar .service-list .list-group-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.service-detail-section .sidebar .service-list .list-group-item:first-child {
    border-top: 0;
}

.service-detail-section .sidebar .service-list .list-group-item:last-child {
    border-bottom: 0;
}

.service-detail-section .sidebar .service-list .list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.service-detail-section .sidebar .contact-widget {
    border: 1px solid #eee;
}

.service-full-content h1,
.service-full-content h2,
.service-full-content h3,
.service-full-content h4,
.service-full-content h5,
.service-full-content h6 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.service-full-content p {
    line-height: 1.8;
    color: #6c757d;
}

.service-full-content ul {
    list-style: none;
    padding-left: 0;
}

.service-full-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-full-content ul li::before {
    content: '\f058'; /* Font Awesome check-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}