:root {
    --bmw-blue: #0076a8;
    --text-color: #000000;
    --navbar-height: 60px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    overflow-x: hidden; /* Prevent shift */
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/section.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-content {
    position: absolute;
    bottom: 40px; 
    left: 40px;    
    display: flex;
    gap: 12px;
}
.cta-buttons {
    padding: 16px 28px;
  background: #004a82;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cta-buttons:hover {
    background: #004a82;
    transform: translateY(-2px);
} 


.hero-section {
    position: relative;
}

/* RIGHT SIDE OVERLAY FORM */
#hero-form {
    position: absolute;
    top: 50%;
    right:150px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    padding:50px;
    border-radius: 15px;
    width:450px;
    color: white;
    backdrop-filter: blur(5px);
}

#hero-form h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

#hero-form input,
#hero-form select {
    width: 100%;
    padding:10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
}

#hero-form button {
    width: 100%;
    padding: 12px;
    background: #0066b1;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    #hero-form {
        position: static;
        transform: none;
        margin: 20px;
        width: auto;
    }
}




/* ===== PREMIUM OVERLAY FORM ===== */

#hero-form{
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translateY(-50%);
  width: 360px;
  padding: 30px 28px;
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
  color: #fff;
}

#hero-form h3{
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

#hero-form p{
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 18px;
}

/* Inputs */
#hero-form input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #cfcfcf;
  font-size: 13px;
  margin-bottom: 14px;
  transition: 0.3s ease;

}
#hero-form select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color:black;
  font-size: 13px;
  margin-bottom: 14px;
  transition: 0.3s ease;
}


#hero-form input::placeholder{
  color: #bbb;
}

#hero-form input:focus,
#hero-form select:focus{
  border-color: #0066b1;
  background: rgba(255,255,255,0.08);
  outline: none;
}

/* Submit Button */
#hero-form button{
  width: 100%;
  padding: 14px;
  border-radius: 35px;
  border: none;
  background: linear-gradient(135deg, #0066b1, #00a3ff);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.4s ease;
}

#hero-form button:hover{
  box-shadow: 0 20px 35px rgba(0,163,255,0.4);
  transform: translateY(-2px);
}
#hero-form select {
  color: #fff !important;              /* Text white */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  appearance: none;                     /* Default style remove */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Dropdown list ke options */
#hero-form select option {
  color: #000; /* Dropdown list readable rahe */
}

/* Placeholder text bhi white */
#hero-form select option[value=""] {
  color: #fff;
}


/* CALL BUTTON */
.call-button{
  position: absolute;
  right: 40px;
  bottom: 40px;
  background: #00a3ff;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,163,255,0.6);
}

.call-button svg{
  width: 22px;
}

/* RESPONSIVE */
@media(max-width: 900px){
  #hero-form{
    right: 20px;
    width: 90%;
  }

  .hero-content{
    left: 20px;
  }
}



/* Navbar */
.navbar {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
}

/* NAVBAR */
.navbar {
    height: 85px;
    display: flex;
    align-items: center;     /* ✅ Vertical Center */
    justify-content: start; /* (agar pura header center chahiye to) */
    padding: 0 80px;
}

/* LEFT CONTAINER */
.nav-left {
    display: flex;
    align-items: center;     /* ✅ Logo + Links same line */
    gap: 50px;
}

/* LOGO */
.logo {
    height:90px;
    display: block;          /* ✅ inline gap remove */
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;     /* ✅ Links vertically center */
}

/* Remove extra top/bottom spacing */
.main-nav a {
    line-height: 1;          /* ✅ Important */
}

.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.call-button:hover {
    background: #f0f0f0;
}
@media (max-width: 768px) {
    .logo {
        height:100px;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .navbar {
        padding: 0 20px;
    }
}


#about-section {
    width: 100%;
    padding: 60px 100px;
    background:white;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-image img {
    width: 500px;
    max-width: 100%;
    border-radius: 10px;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: black;
}

.about-content p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: black;
}



/* Responsive for mobile */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    #about-section {
        padding: 40px 20px;
    }

    .about-image img {
        width: 100%;
    }
}




/* कंटेनर लेआउट */
.explore-section {
    display: flex;
    justify-content: space-between; /* कंटेंट को किनारों पर फैलाना */
    align-items: flex-end; /* सभी आइटम्स को नीचे की ओर अलाइन करना */
    max-width: 1200px;
    margin: 0 auto;
    font-family: sans-serif; /* साफ़, आधुनिक फॉन्ट */
}

/* --- हेडिंग्स स्टाइलिंग --- */
.explore-content {
    /* कंटेंट को flex-end के साथ सही ढंग से अलाइन करने में मदद करता है */
}

/* छोटी सब-हेडिंग: "TRUSTED CAR DEALER SERVICE" */
.sub-heading {
    color:black;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px; /* मुख्य हेडिंग से थोड़ी दूरी */
    text-transform: uppercase;
    position: relative;
    display: inline-block; /* ताकि केवल टेक्स्ट के नीचे अंडरलाइन आए */
}

/* सब-हेडिंग अंडरलाइन इफ़ेक्ट */
.sub-heading::after {
    content: '';
    position: absolute;
    bottom: -3px; /* टेक्स्ट से नीचे की ओर दूरी */
    left: 0;
    width: 100%;
    height: 1px; /* पतली रेखा */
    background-color: var(--accent-pink);
}

/* मुख्य हेडिंग: "Explore All Vehicles" */
.main-heading {
    color:black;
    font-size: 40px;
    font-weight: 900; /* बहुत बोल्ड */
    line-height: 1.1;
    margin: 0;
}


#car-section {
  width: 100%;
  margin-top:30px;
  padding: 60px 100px;
  background: rgba(38, 38, 38, 0.65);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #333;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.car-card {

  background: rgba(38, 38, 38, 0.65);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}
.car-card h3{
    color:white;
    font-size:18px;
    padding-top:8px;
  
}
.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.car-info {
  display: flex;
  justify-content: space-evenly; /* left & right */
  align-items: center;
  padding: 10px 20px;
}





.car-info {
  display: flex;
  justify-content:space-around; /* left & right */
  align-items: center;
  padding: 5px 5px;
}

.model {
  font-size: 16px;
  font-weight: 600;
}

.cta-button {
  padding: 12px 14px;
  background: #0066b1;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.cta-button:hover {
  background: #004a82;
}


.brand {
  margin-top: 10px;
  color: #0066cc;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
}

.model {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

/* 📱 Responsive */
@media(max-width: 1024px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 768px) {
  .cars-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}




/* मुख्य कंटेनर स्टाइलिंग */
.legal-bar {
    background-color: var(--bar-bg);
    padding: 15px 50px; /* ऊपर/नीचे और किनारों पर पैडिंग */
    font-family: Arial, sans-serif;
    font-size: 14px;
    
    /* कंटेंट को एक पंक्ति में लाने के लिए */
    display: flex; 
    justify-content: space-between; /* कॉपीराइट और लिंक्स को किनारों पर फैलाना */
    align-items: center;
    border-top: 1px solid #e0e0e0; /* मुख्य फ़ुटर से अलग करने के लिए पतली रेखा */
}

/* कॉपीराइट टेक्स्ट */
.copyright-text {
    color: #555555;
    margin: 0;
}

/* नेविगेशन लिंक्स कंटेनर */
.legal-nav {
    display: flex;
    gap: 20px; /* लिंक्स के बीच की दूरी */
}

/* व्यक्तिगत लिंक स्टाइलिंग */
.legal-nav a {
     color: #555555;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-nav a:hover {
    color: var(--hover-color);
    text-decoration: underline; /* होवर पर हल्की अंडरलाइन */
}

/* --- रिस्पॉन्सिवनेस --- */
@media (max-width: 768px) {
    .legal-bar {
        flex-direction: column; /* छोटे स्क्रीन पर वर्टिकल स्टैक */
        padding: 15px 20px;
        text-align: center;
    }
    
    .copyright-text {
        margin-bottom: 10px;
    }
    
    .legal-nav {
        flex-wrap: wrap; /* लिंक्स को भी रैप करें */
        justify-content: center;
        gap: 10px; /* छोटे गैप */
    }
}



/* ============= MOBILE PERFECT RESPONSIVE (≤ 768px) ============= */
@media (max-width: 768px) {

  html, body {
    font-size: 14px;
  }

  /* HERO SECTION */
  .hero-section {
    height: auto;
    padding: 90px 20px 40px;  /* top me navbar ka space bhi */
    flex-direction: column;
    align-items: flex-start;
  }

  /* QUOTE HIDE KARNA */
  .hero-content {
    display: none; 
  }

  /* FORM – center / full width */
  #hero-form {
    position: static;
    transform: none;
    width: 100%;
    max-width: 420px;
    padding: 24px 20px;
    margin: 0px auto 0;   /* center horizontally */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  }

  #hero-form h3 {
    font-size:32px;
    /* display: flex;
    align-items: center;
    justify-content: center; */
  }

  #hero-form input,
  #hero-form select {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* NAVBAR */
  .navbar {
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;  /* logo left, button right */
  }

  .logo {
    height:109px;
  }

  .nav-left {
    display: flex;
    align-items: center;
  }

  .main-nav {
    display: none;   /* mobile me menu hide */
  }

  /* TOP RIGHT TEST DRIVE BUTTON (mobile sizing) */
 
  /* ABOUT SECTION */
  #about-section {
    padding: 40px 20px;
  }

  .about-container {
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }

  .about-image img {
    width: 100%;
  }

  /* EXPLORE SECTION */
  .explore-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .main-heading {
    font-size: 28px;
  }

  /* CARS GRID */
  #car-section {
    padding: 40px 20px;
  }

  .cars-grid {
    grid-template-columns: 1fr;  /* 1 card per row */
    gap: 20px;
  }

  .car-card img {
    height: 220px;
  }

  /* CALL BUTTON */
  .call-button {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  /* LEGAL BAR / FOOTER */
  .legal-bar {
    padding: 15px 20px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .legal-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 768px) {

  /* Hero section ka background white kar do */
  .hero-section {
    background: #ffffff !important;
  }

  /* Gradient + image bhi remove */
  .hero-section::before {
    content: none !important;
  }

}


@media (max-width: 768px) {

  /* Quote button hide */
  .instant-quote {
    display: none !important;
  }

  /* Hero content ko top pe le jao */
  .hero-content {
    position: fixed;
    top: 10px;
    right: 15px;
    left: auto;
    bottom: auto;
    display: flex;
    justify-content: flex-end;
    z-index: 9999;
  }

  /* Book Test Drive ko compact banao */
  .book-btn {
    padding: 8px 14px;
    font-size: 18px;
    border-radius: 20px;
    white-space: nowrap;
  }
}


@media (max-width: 768px) {

  /* Quote button hide */
  .instant-quote {
    display: none !important;
  }

  /* Hero content ko top pe le jao */
  .hero-content {
    position: fixed;
    top: 10px;
    right: 15px;
    left: auto;
    bottom: auto;
    display: flex;
    justify-content: flex-end;
    z-index: 9999;
  }

  /* Book Test Drive ko compact banao */
  .book-btn {
    padding: 8px 14px;
    font-size: 18px;
    border-radius: 20px;
    white-space: nowrap;
  }
}
.about-content {
  height: auto;
}

.about-content h3 {
  margin-top: 25px;
  font-size: 22px;
  font-weight: 600;
  color: #000;
}

.about-content ul {
  margin-top: 10px;
  padding-left: 20px;
}

.about-content ul li {
  margin-bottom: 8px;
}
.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    margin-right: 25px;
    opacity: 0.8;
    transition: 0.2s;
    font-weight: 300;
}

.main-nav a:hover {
    color: #ffffff;
    opacity: 1;
}

/* ================= MOBILE PERFECT RESPONSIVE ================= */
@media (max-width: 768px) {

  html, body {
    font-size: 14px;
    overflow-x: hidden;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    padding: 0 15px;
    height: 60px;
    justify-content: space-between;
  }

  .logo {
    height: 151px;
  }

  .main-nav {
    display: none; /* hide desktop menu */
  }

  /* ===== HERO SECTION ===== */
  .hero-section {
    height: auto;
    padding: 90px 15px 40px;
    background: #ffffff !important; /* remove bg image mobile */
  }

  .hero-content {
    display: none;
  }

  /* ===== FORM ===== */
  #hero-form {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
    border-radius: 15px;
  }

  #hero-form h3 {
    font-size: 20px;
    text-align: center;
  }

  #hero-form input,
  #hero-form select {
    font-size: 14px;
    padding: 10px;
  }

  #hero-form button {
    padding: 12px;
  }

  /* ===== ABOUT SECTION ===== */
  #about-section {
    padding: 40px 20px;
  }

  .about-container {
    flex-direction: column;
    gap: 20px;
  }

  .about-image img {
    width: 100%;
  }

  .about-content h2 {
    font-size: 24px;
  }

  /* ===== EXPLORE SECTION ===== */
  .explore-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .main-heading {
    font-size: 26px;
  }

  /* ===== CAR SECTION ===== */
  #car-section {
    padding: 40px 20px;
  }

  .cars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .car-card img {
    height: 220px;
  }

  .car-info {
    flex-direction: column;
    gap: 10px;
  }

  /* ===== CALL BUTTON ===== */
  .call-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  /* ===== FOOTER ===== */
  .legal-bar {
    flex-direction: column;
    text-align: center;
    padding: 15px 20px;
    gap: 10px;
  }

  .legal-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

}
@media (max-width: 768px) {

  .navbar {
      justify-content: center;
  }

  .nav-left {
      width: 100%;
      justify-content: center;
  }

  .logo {
      margin: 0 auto;
  }

}