/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #d4af37;
    --text-color: #333333;
    --light-gray: #f8f8f8;
    --dark-gray: #222222;
    --ferrari-red: #FF2800;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

section {
    padding: 100px 0;
    position: relative;
}

.subheading {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    color: var(--accent-color);
}

/* Logo */
.logo-small {
    height: 40px;
}

.main-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

/* Navigation */
.navbar {
    padding: 10px 0;
    transition: var(--transition);
    background-color: var(--secondary-color);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand {
    color: var(--secondary-color) !important;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.0rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
    padding: 0 !important;
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.navbar-toggler {
    border: none;
    color: var(--secondary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}
.logo-container{
    margin-top: 60px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    /* background: url('../img/Logo/Logo.png') no-repeat center center; */
    /* background-color: var(--secondary-color); */
    background-size: cover;
    position: relative;
    color: var(--primary-color);
    display: flex;
    align-items: center;
   
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.4)); */
    z-index: 1;
}

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

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons .btn , .collection {
    padding: 12px 30px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: var(--transition);
}

.hero-buttons .btn-outline-dark:hover  {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Featured Section */
.featured-section {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-content {
    padding: 50px;
    background-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-content h2 {
    margin-bottom: 20px;
}

.featured-content p {
    margin-bottom: 30px;
}



.specs-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.specs-list li span {
    
    display: inline-block;
}

/* Collection Section */
.collection-section {
    background-color: var(--secondary-color);
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.filter-buttons {
    margin-bottom: 40px;
}

.filter-buttons .btn {
    margin: 0 5px;
    border-radius: 0;
    padding: 8px 20px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.filter-buttons .btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.car-card {
    background-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.car-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.car-details {
    padding: 20px;
}

.car-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

.car-specs {
    display: flex;
    justify-content: space-between;
}

.car-specs span {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.car-specs i {
    margin-right: 5px;
}

/* Brands Section */
.brands-section {
    background-color: var(--light-gray);
    padding: 120px 0;
}

.brand-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.brand-card:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-10px);
}

.brand-logo {
    margin-bottom: 20px;
}

.brand-logo i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.brand-logo h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.brand-card p {
    margin-bottom: 20px;
}

.brand-card .btn {
    border-radius: 0;
    padding: 8px 20px;
    transition: var(--transition);
}

.brand-card:hover .btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Services Section */
.services-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 120px 0;
}

.service-card {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 0 15px #d4af37;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 100px 0;
}

.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.testimonial-item p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.client-info h4 {
    margin-bottom: 5px;
}

.client-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.swiper-pagination-bullet {
    background-color: var(--secondary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
    padding: 120px 0;
}

.contact-info {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    color: var(--text-color);
    opacity: 0.8;
}

.contact-map {
    margin-top: 40px;
}

.contact-form-wrapper {
    background-color: var(--secondary-color);
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    height: 50px;
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

textarea.form-control {
    height: auto;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer-section {
    background-color: var(--dark-gray);
    color: var(--secondary-color);
    padding: 80px 0 0;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--secondary-color);
}

.newsletter-form .btn {
    border-radius: 0;
}

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

.copyright {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: flex-end;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .contact-form-wrapper {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .filter-buttons .btn {
        margin-bottom: 10px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .copyright {
        text-align: center;
    }
}

/* Animation Classes */
.car-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}



/* scroll bar */
/* width */
::-webkit-scrollbar {
    width: 7px;
    }

    /* Track */
    ::-webkit-scrollbar-track {
    background: var(--primary-color);
    box-shadow: inset 0 0 5px var(--primary-color); 
    padding-left: 2px;
    }

    /* Handle */
    ::-webkit-scrollbar-thumb {
    background: var(--secondary-color); 
    border-radius: 10px;
    }

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color); 
    }

    /* Adjustments for mobile devices */
    @media (max-width: 768px) {
        ::-webkit-scrollbar {
            width: 10px; /* Increased width for better visibility on mobile */
        }
    }


    .progress-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: #f1f1f1;
        z-index: 1031;
    }