/* =========================================================
   GLOBAL RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #fff;
}

a {
    text-decoration: none;
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */
.main-header {
    position: fixed; /* Scroll ke sath upar rahega */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: 0.4s ease;
    padding: 20px 0;
}

/* Scroll hone par glass effect */
.main-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background: transparent !important;
}

/* Perfect Grid Layout */
.navbar-grid {
    display: grid !important;
    grid-template-columns: 200px 1fr 200px; /* Logo | Menu | Button */
    align-items: center;
    width: 100%;
}

/* Logo */
.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -1px;
}

/* Center Menu */
.nav-center {
    display: flex !important;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 36px;
    margin: 0 auto;
    list-style: none;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0 !important;
    transition: 0.3s;
}

/* Underline Animation */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #e63946;
    transition: 0.3s;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #e63946 !important;
}

/* Right Side Alignment */
.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-right .btn {
    background: #e63946;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff !important;
    transition: 0.4s;
}

.nav-right .btn:hover {
    background: #fff;
    color: #e63946 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Mobile Toggler White Color */
.navbar-toggler {
    border: none;
    filter: invert(1);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .navbar-grid {
        grid-template-columns: 1fr auto; /* Logo aur Toggler */
    }

    .nav-center {
        background: #000;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-right .btn {
        display: none; /* Mobile par button hide (optional) */
    }
}

/* Aapka baaki CSS (Hero Slider, Brands, Featured Strip) yahan niche paste karein... */
/* =========================================================
   HERO SLIDER (FULL SCREEN)
========================================================= */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
}

.hero-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Each Slide */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Dark cinematic overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.15)
    );
}

/* =========================================================
   HERO CONTENT (LEFT – PRO AUTOMOTIVE)
========================================================= */
.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 620px;
    color: #fff;
    animation: fadeSlide 1.2s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* CTA Button */
.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #e63946;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #c92d3a;
    transform: translateY(-2px);
}

/* =========================================================
   SLIDER DOTS (BOTTOM CENTER)
========================================================= */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dots .dot.active {
    background: #e63946;
}

/* =========================================================
   MAIN & FOOTER
========================================================= */
main {
    margin: 0;
    padding: 0;
}

.footer {
    background: #111;
    color: #aaa;
}

/* =========================================================
   RESPONSIVE (ALL DEVICES)
========================================================= */
@media (max-width: 991px) {

    .navbar {
        background: #000 !important;
    }

    .navbar-grid {
        grid-template-columns: auto auto;
    }

    .navbar-center {
        justify-content: flex-start;
        background: #000;
        padding: 15px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-right {
        display: none;
    }

    .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }

    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 34px;
    }
}



/* ================================
   CAR BRANDS SECTION
================================ */

.brand-section {
    padding: 70px 0;
    background: #ffffff;
    overflow: hidden;
}

.brand-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

/* Slider container */
.brand-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Moving track */
.brand-track {
    display: flex;
    width: max-content;
    animation: brandScroll 25s linear infinite;
}

/* Each brand */
.brand-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    margin: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

/* Hover effect */
.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Infinite scroll animation */
@keyframes brandScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.brand-slider:hover .brand-track {
    animation-play-state: paused;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 991px) {
    .brand-item {
        width: 150px;
        margin: 0 18px;
    }
}

@media (max-width: 576px) {
    .brand-section {
        padding: 50px 0;
    }

    .brand-section .section-title {
        font-size: 28px;
    }

    .brand-item {
        width: 120px;
        margin: 0 12px;
    }
}


/* ================= FEATURED STRIP ================= */

.featured-strip {
    display: flex;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

/* Single card */
.featured-tile {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: flex 0.5s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Dark overlay for text readability */
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.15)
    );
    z-index: 1;
}

/* Hover expand effect */
.featured-tile:hover {
    flex: 1.4;
}

/* Text content */
.tile-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    text-align: center;
    color: #fff;
}

.model-label {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.85;
}

.tile-content h3 {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 700;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .featured-strip {
        flex-direction: column;
        height: auto;
    }

    .featured-tile {
        height: 300px;
    }

    .featured-tile:hover {
        flex: 1;
    }
}

/* ================= CAR LISTING ================= */

.car-listing {
    padding: 80px 0;
    background: #fff;
}

/* GRID */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CARD */
.car-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* IMAGE BOX (FIXED SIZE) */
.car-image-box {
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-image-box img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.car-card:hover img {
    transform: scale(1.05);
}

/* CONTENT */
.car-card-body {
    padding: 20px;
    text-align: center;
}

.car-type {
    font-size: 12px;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
}

.car-card-body h3 {
    font-size: 20px;
    margin: 8px 0 15px;
    font-weight: 600;
}

/* ICON SPECS */
.car-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin: 15px 0;
}

.car-specs div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.car-specs i {
    font-size: 18px;
    margin-bottom: 6px;
    color: #e63946;
}

/* PRICE */
.car-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* BUTTON */
.car-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 30px;
    background: #e63946;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.car-btn:hover {
    background: #c62835;
}


.car-detail-image {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
}

.car-detail-image img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    transition: 0.3s ease;
}

/* Thumbnails */
.car-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.car-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.car-thumbs img:hover,
.car-thumbs img.active {
    border-color: #e63946;
}





/* ================= SIMILAR CARS ================= */

.similar-cars {
    padding: 70px 0;
    background: #fafafa;
}

.similar-cars .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.similar-cars h2 {
    font-size: 32px;
    font-weight: 600;
}

.similar-cars p {
    color: #777;
}

/* Reuse listing grid */
.similar-cars .car-card {
    text-decoration: none;
    color: inherit;
}


/* ===============================
   HOME SERVICES SECTION
================================ */

.our-services-section {
    background: #ffffff;
    padding: 80px 0;
}

.services-header {
    max-width: 700px;
    margin-bottom: 50px;
}

.services-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #999;
    display: inline-block;
    margin-bottom: 10px;
}

.services-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
}

.services-header p {
    font-size: 16px;
    color: #444;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.service-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* IMAGE */
.service-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* CONTENT */
.service-content {
    padding: 25px;
}

.service-icon {
    font-size: 28px;
    color: #000;
    margin-bottom: 12px;
}

.service-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.service-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-header h2 {
        font-size: 32px;
    }
}


/* ================= BLOG SECTION ================= */

.blog-section {
    padding: 70px 0;
    background: #f4faf7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* CARD */
.blog-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
}

/* IMAGE FIX 🔥 */
.blog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ⭐ MAIN FIX */
    display: block;
}

/* CONTENT */
.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
}

.read-more {
    margin-top: 15px;
    font-weight: 600;
    color: #3aa17e;
    text-decoration: none;
}

.enquiry-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
}

.enquiry-card {
    background: #0d2235;
    color: #fff;
    padding: 40px;
    width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    transition: transform .3s;
}

.enquiry-card:hover {
    transform: translateY(-5px);
}

.enquiry-card h2 {
    margin-bottom: 5px;
}

.enquiry-card p {
    opacity: .8;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 10px;
    background: transparent;
    border: 1px solid #3a516b;
    color: #fff;
    border-radius: 6px;
    outline: none;
}

.form-group textarea {
    resize: none;
    height: 90px;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    transition: .3s;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -8px;
    font-size: 12px;
    background: #0d2235;
    padding: 0 5px;
    color: #ffb703;
}

.form-row {
    display: flex;
    gap: 15px;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg,#ffb703,#fb8500);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
}

button:hover {
    opacity: .9;
}

.success-msg {
    background: #28a745;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
