/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111; /* Match the site's background */
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease; /* Fade-out animation */
}

#preloader.preloader-hidden {
    opacity: 0;
    pointer-events: none; /* Disable clicks while fading out */
}
/* --- END PRELOADER --- */

/* --- TYPOGRAPHY --- */

/* Default Body Font */
body {
    font-family: 'Raleway', sans-serif;
}

/* Heading Font */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Russo One', sans-serif;
}

/* Optional: Make the main hero heading uppercase for more impact */
.hero-content h1 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- END TYPOGRAPHY --- */

/* --- STICKY FOOTER --- */
body {
    min-height: 100vh; /* Make body at least the height of the viewport */
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1; /* Allow the main content to grow and fill available space */
}


/* Hero Section Styling */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay to make text readable */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Navbar Styling */
#mainNavbar {
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
}

/* 
#mainNavbar.navbar-scrolled {
    background-color: #000;
}
*/


/* Custom Nav Link Style */
.navbar-nav .nav-link {
    font-weight: bold;
}


/* Page container to push content below the fixed navbar */
.page-container {
    padding-top: 80px; /* Adjust this value based on your navbar's height */
}

/* Style form inputs for dark theme */
.form-control {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
}

.form-control:focus {
    background-color: #333;
    color: #fff;
    border-color: #888;
    box-shadow: none;
}



/* Car Card Styling */
.car-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.car-card .card-title {
    font-weight: bold;
}

.car-card .card-subtitle {
    color: #aaa !important;
}

.car-card .card-footer {
    background-color: transparent;
    border-top: 1px solid #333;
}


/* Featured Cars Section Styling */
.featured-cars-section {
    background-color: #111; /* Match the body background */
}


/* "How It Works" Section Styling */
.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 60px;
    margin: 0 auto 20px;
    border: 2px solid #555;
}


/* Atelier Service Card Styling */
.service-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 30px;
    height: 100%;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.service-card:hover {
    background-color: #222;
}

.service-icon {
    font-size: 3rem; /* 48px */
    color: #fff;
    margin-bottom: 20px;
}


/* Footer Styling */
.site-footer {
    background-color: #000;
    border-top: 1px solid #333;
}

.site-footer h5 {
    color: #fff;
    font-weight: bold;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
    color: #fff;
}

.social-icons a {
    font-size: 1.5rem; /* 24px */
    margin-right: 15px;
}


/* Footer Visibility Fixes */
/* .site-footer .text-muted {
    color: #aaa !important;
} */
.text-muted {
    color: #aaa !important; /* Brighter muted text for better readability site-wide */
}

.site-footer ul li {
    color: #aaa; /* Make non-link list items brighter */
    margin-bottom: 0.5rem; /* Add some spacing */
}


/* Navbar solid background for scrolled OR mobile-open states */
#mainNavbar.navbar-scrolled,
#mainNavbar.navbar-mobile-open {
    background-color: #000; /* Solid black background */
}

/* Active Nav Link Styling */
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff; /* Make active link fully white */
    font-weight: bold;
}


/* Introduction Section Styling */
.introduction-section {
    background-color: #111;
}

.introduction-section h2 {
    font-weight: bold;
}

.introduction-section .text-muted {
    color: #ccc !important; /* Make the intro text a bit brighter */
}


/* Hero Video Controls */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.video-controls .btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem; /* 40px icon size */
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.video-controls .btn:hover {
    color: #fff;
}

/* Initially hide the play icon because the video is playing */
.video-controls .play-icon {
    display: none;
}

/* Make the video overlay clickable */
.hero-overlay {
    cursor: pointer;
}


/* Uniform Image Height for Car Cards */
.car-card .card-img-top {
    height: 220px; /* You can adjust this value to your liking */
    object-fit: cover; /* This is the magic property */
}

/* ... (previous CSS) ... */

/* Car Details Page Styling */
.car-price {
    font-family: 'Russo One', sans-serif;
    color: #fff;
    font-size: 2.5rem;
}

.thumbnail-images .img-thumbnail {
    cursor: pointer;
    width: 100px;
    margin-right: 10px;
    background-color: #333;
    border: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.thumbnail-images .img-thumbnail:hover {
    border-color: #fff;
}


/* Immersive Image Hover Zoom */
.car-card .card-img-top {
    transition: transform 0.4s ease-in-out; /* Add a smooth transition for the zoom effect */
}

/* We need to wrap the image in a container to hide the overflow */
.car-card .image-container {
    overflow: hidden;
}

.car-card:hover .card-img-top {
    transform: scale(1.1); /* Zoom the image by 10% on hover */
}