:root {
  --Main-Blue: #3aa0cf;
  --Dark-Blue: #002c5f;
  --Black: #09090b;
  --Gray-Black: #111214;
  --Gray: #262626;
  --White: #ffffff;
  --Muted-White: #dddddd;
  --Dark-Text: #414141;
  --Muted-Dark-Text: #515151;
  --Whatsapp-Green: #25d366;
  --Red-Text: #f23a3a;

  --EvenLargerTitle: 96px;
  --LargeTitle: 64px;
  --Title: 48px;
  --eLarge: 36px;
  --Large: 32px;
  --mLarge: 24px;
  --Medium: 20px;
  --Small: 16px;
  --Tiny: 14px;
  --vTiny: 12px;
}

/* Base Styles & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  /* 1. Makes ALL anchor links scroll smoothly instead of snapping */
  scroll-behavior: smooth;

  /* 2. Adds a buffer at the top so the sticky navbar doesn't cover the title */
  scroll-padding-top: 100px;
}

body {
  background-color: var(--Black);
  color: var(--White);
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.lorem-placeholder {
  color: var(--Red-Text) !important;
}

/* --- SCROLL ANIMATION UTILITY CLASSES --- */

/* 1. Standard Fade-in (Upwards) */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Fade-in with 0.5s Buffer/Delay */
.fade-in-delay {
  opacity: 0;
  transform: translateY(0px);
  transition:
    opacity 0.8s ease-out 0.2s,
    transform 0.8s ease-out 0.2s;
}
.fade-in-delay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Slide Down (No Fade/Opacity Change) */
.slide-down-on-scroll {
  transform: translateY(-20px); /* Starts 50px above */
  transition: transform 0.8s ease-out 0.3s;
}
.slide-down-on-scroll.is-visible {
  transform: translateY(0);
}

/* Header Container */
.header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}
.header-container.scrolled-down {
  transform: translateY(calc(-1 * var(--top-bar-height, 35px)));
}

/* Top Contact Bar */
.top-bar {
  background-color: var(--Gray);
  color: var(--Muted-White);
  font-size: 12px;
  padding: 8px 0;
}
.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
}
.contact-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-icon {
  font-size: 14px;
}

/* Navbar */
.navbar {
  background-color: var(--Gray-Black);
  border-bottom: 1px solid var(--Gray);
  position: relative;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 35px;
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links a {
  color: var(--White);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--Main-Blue);
}

/* Dropdown */
.dropdown {
  position: relative;
  justify-content: center;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--Gray-Black);
  list-style: none;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}
.dropdown-menu.active {
  display: block;
}
.dropdown-menu li {
  border-bottom: 1px solid #2a2a2a;
}
.dropdown-menu a {
  display: block;
  padding: 12px 15px;
  font-size: 14px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--White);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle .material-symbols-outlined {
  font-size: 28px;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Image/Foto\ Byd\ M6/BYD-M6-Stasiun-Daya-VtoL.png") no-repeat center
      center/cover;
  height: 65vh;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-subtitle {
  color: var(--Main-Blue);
  font-size: var(--vTiny);
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.hero-subtitle::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  max-width: 500px;
  width: 100%;
  height: 2px;
  background-color: var(--Main-Blue);
}
.hero-title {
  font-size: var(--EvenLargerTitle);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -2px;
}
.hero-description {
  max-width: 500px;
  font-size: var(--Tiny);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--White);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--Small);
  transition: all 0.3s;
}
.btn-primary {
  background-color: var(--Main-Blue);
  color: var(--Black);
}
.btn-primary:hover {
  background-color: #2b7a9e;
}
.btn-secondary {
  background-color: var(--Gray);
  color: var(--White);
  border: 1px solid #555;
}
.btn-secondary:hover {
  background-color: var(--Gray-Black);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 135px; /* Increased from 30px to make room for the WA button */
  right: 30px;
  background-color: var(--Main-Blue);
  color: var(--Black);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background-color: #2a7395;
}

/* Floating WhatsApp Button (Split Dual-Pill Design) */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  z-index: 999;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  gap: 10px;
}

.floating-wa-btn:hover {
  transform: translateY(-3px);
}

/* Gray Text Container (Left Side) */
.wa-btn-text {
  background-color: var(--Gray);
  color: var(--White);
  padding: 20px 15px;
  font-size: var(--Medium);
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

.floating-wa-btn:hover .wa-btn-text {
  background-color: var(--Gray-Black);
}

/* Green WhatsApp Badge (Right Side) */
.wa-btn-icon {
  background-color: var(--Whatsapp-Green);
  padding: 15px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.floating-wa-btn:hover .wa-btn-icon {
  background-color: #1ebe5d;
}

.wa-btn-icon img {
  width: 50px;
  height: 50px;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  /* Hide floating WA on mobile to prevent clutter */
  .floating-wa-btn {
    display: none;
  }
}

/* ------------------------------------- */
/* CAROUSEL STYLES                       */
/* ------------------------------------- */
.car-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background-color: var(--Gray-Black);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.carousel-title,
.carousel-desc,
.carousel-btn {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.carousel-title {
  font-size: var(--Title);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 5px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.carousel-desc {
  font-size: var(--Small);
  font-weight: 500;
  margin-bottom: 25px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
  background-color: transparent;
  border: 2px solid var(--Main-Blue);
  color: var(--White);
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: 500;
}
.carousel-btn:hover {
  background-color: rgba(58, 160, 207, 0.2);
}

.carousel-slide.active .carousel-title,
.carousel-slide.active .carousel-desc,
.carousel-slide.active .carousel-btn {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide.active .carousel-title {
  transition-delay: 0.2s;
}
.carousel-slide.active .carousel-desc {
  transition-delay: 0.3s;
}
.carousel-slide.active .carousel-btn {
  transition-delay: 0.4s;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
  z-index: 10;
}

.carousel-arrow .material-symbols-outlined {
  font-size: 48px;
}

.carousel-arrow:hover {
  color: var(--White);
}
.carousel-arrow.prev {
  left: 30px;
}
.carousel-arrow.next {
  right: 30px;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--White);
}

@media (hover: hover) and (pointer: fine) {
  .car-carousel:hover .carousel-arrow {
    opacity: 1;
  }
}

/* ------------------------------------- */
/* BRAND CONSULTANT & FEATURES GRID      */
/* ------------------------------------- */
.section-title-wrapper {
  text-align: center;
  padding: 60px 20px 0;
  background-color: var(--Black);
}

.section-title-wrapper img {
  margin-top: 20px;
  max-width: 600px;
  width: 80%;
  border-radius: 10px;
}

.section-title {
  font-size: var(--Title);
  font-weight: 700;
  color: var(--White);
}

.title-underline {
  max-width: 500px;
  width: 75%;
  height: 2px;
  background-color: var(--Main-Blue);
  margin: 15px auto 0;
}

.brand-section {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      var(--Black) 0,
      var(--Black) 25%,
      rgba(9, 9, 11, 0.5) 100%
    ),
    url("Image/Foto\ Byd\ M6/BYD-M6-Kokpit-Cerdas-BYD-M6.png") no-repeat center
      center/cover;
  padding: 100px 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 40px),
    50% 100%,
    0 calc(100% - 40px)
  );
}

.brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.consultant-card {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  background-color: #171717;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 40px),
    50% 100%,
    0 calc(100% - 40px)
  );
  align-items: center;
}

.consultant-logo {
  flex: 1;
  background-color: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.consultant-logo img {
  max-width: 150px;
  width: 100%;
}

.consultant-text {
  flex: 1.2;
  /* Added extra bottom padding (90px) so the text doesn't overlap the new chevron cutout */
  padding: 50px 40px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 15px;
  color: var(--White);
  font-size: var(--Small);
  line-height: 1.6;
}

.consultant-text h3 {
  color: var(--White);
  font-size: var(--Large);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.consultant-text strong {
  color: var(--White);
  font-weight: 700;
}

.features-wrapper {
  margin-top: 80px;
  text-align: center;
  padding: 0 20px;
}

.features-main-title {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-title {
  font-size: var(--mLarge);
  font-weight: 600;
  color: var(--White);
}

.feature-desc {
  font-size: var(--Tiny);
  color: var(--Muted-White);
  line-height: 1.6;
}

/* Mobile Sticky Footer */
.mobile-footer {
  display: none;
}

/* --- MOBILE RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .header-container {
    position: static;
    transform: none !important;
  }
  .top-bar-content {
    justify-content: center;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--Black);
    padding: 0;
    gap: 0;
    border-top: 1px solid #333;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--Gray);
  }
  .nav-links a {
    display: block;
    padding: 15px 20px;
  }
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--Gray);
    background-color: #1a1a1a;
  }
  .dropdown-menu a {
    padding-left: 40px;
    color: #aaa;
  }
  .hero-title {
    font-size: var(--Title);
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    text-align: center;
  }

  /* Carousel Mobile Specifics */
  .car-carousel {
    height: 40vh;
  }
  .carousel-title {
    font-size: var(--Large);
  }
  .carousel-desc {
    font-size: var(--Tiny);
  }
  .carousel-arrow {
    opacity: 1;
  }
  .carousel-arrow .material-symbols-outlined {
    font-size: 36px;
  }
  .carousel-arrow.prev {
    left: 10px;
  }
  .carousel-arrow.next {
    right: 10px;
  }

  .section-title {
    font-size: var(--Large);
  }

  /* Brand Section Mobile Specifics */
  .brand-section {
    padding: 60px 0;
    background:
      linear-gradient(
        to bottom,
        var(--Black) 0%,
        var(--Black) 50%,
        rgba(9, 9, 11, 0.7) 100%
      ),
      url("Image/Foto\ Byd\ M6/BYD-M6-Kokpit-Cerdas-BYD-M6.png") no-repeat
        center center/cover;
  }

  .consultant-card {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(to right, #0c0c0c, #171717);
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 40px),
      50% 100%,
      0 calc(100% - 40px)
    );
  }

  .consultant-logo {
    padding: 40px 30px 20px;
    background-color: transparent;
  }

  .consultant-text {
    padding: 20px 20px 70px;
    background-color: transparent;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Enable Mobile Sticky Footer */
  .mobile-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--Gray);
    padding: 10px 0;
    border-top: 1px solid #333;
    z-index: 1000;
  }
  .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--White);
    text-decoration: none;
    font-size: 12px;
    gap: 5px;
  }
  .footer-item .icon {
    font-size: 24px;
    font-weight: 300;
  }
  .scroll-top-btn {
    bottom: 85px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  body {
    padding-bottom: 65px;
  }
}

/* ------------------------------------- */
/* PRICELIST PAGE STYLES                 */
/* ------------------------------------- */
.pricelist-section {
  padding: 20px 20px 60px;
  background-color: var(--Black);
}

.pricelist-container {
  max-width: 1000px;
  margin: 0 auto;
}

.pricelist-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricelist-header h2 {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
}

.pricelist-header p {
  font-size: var(--Small);
  color: #ccc;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* 2x4 Grid */
.pricelist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 40px;
}

/* Card Styling */
.car-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.car-img-wrapper {
  width: 100%;
  margin-bottom: 20px;
}

.car-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.car-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--White);
}

/* Trim Buttons */
.car-trims {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.trim-btn {
  background-color: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trim-btn:hover {
  border-color: #888;
}

.trim-btn.active {
  border-color: var(--Main-Blue);
  color: var(--White);
}

.trim-price {
  font-size: 12px;
  color: #888;
}

/* Pricing */
.car-price-wrapper {
  margin-bottom: 20px;
}

.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--White);
  margin-bottom: 5px;
}

.price-note {
  font-size: 11px;
  color: #888;
}

/* Divider */
.card-divider {
  width: 100%;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--Main-Blue),
    transparent
  );
  margin-bottom: 25px;
}

/* Specs List */
.car-specs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--White);
}

.spec-label {
  font-size: 14px;
  color: #aaa;
}

/* WhatsApp Button */
.chat-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--Whatsapp-Green);
  color: var(--Whatsapp-Green);
  background-color: transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.chat-wa-btn:hover {
  background-color: rgba(37, 211, 102, 0.1);
}

.chat-wa-btn .icon {
  font-size: 16px;
}

/* ------------------------------------- */
/* FOOTER BANNER & SOCIAL SECTION        */
/* ------------------------------------- */
.footer-banner {
  position: relative;
  background:
    linear-gradient(rgba(0, 5, 70, 0.5), rgba(0, 5, 70, 0.5)),
    url("Image/Foto\ Byd\ Atto\ 3/BYD-ATTO-3-Vehicle-becomes-Mobile-Power-Station.png")
      no-repeat center center/cover;
  text-align: center;
}

.footer-banner-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
  padding: 80px 20px;
}

.banner-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-subtitle {
  font-size: var(--Small);
  color: var(--White);
  line-height: 1.4;
  margin-bottom: 10px;
}

.banner-title {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 30px;
}

.call-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.call-icon-wrapper .material-symbols-outlined {
  font-size: 30px;
  color: var(--White);
}

.banner-sales-text {
  font-size: var(--Small);
  color: #ccc;
  margin-bottom: 5px;
}

.banner-phone {
  font-size: var(--Large);
  font-weight: 800;
  color: var(--White);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.banner-btn {
  border: 1px solid var(--White);
  color: var(--White);
  padding: 10px 30px;
  font-size: var(--Small);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.banner-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-footer {
  background-color: var(--Gray-Black);
  text-align: center;
  padding: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.social-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.social-icon img {
  width: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.social-icon p {
  color: var(--Muted-White);
}

.copyright {
  font-size: var(--Tiny);
  color: var(--White);
}

/* --- MOBILE RESPONSIVE DESIGN (PRICELIST) --- */
@media (max-width: 900px) {
  /* Changes 2x4 grid to 1x7 grid */
  .pricelist-grid {
    grid-template-columns: 1fr;
    gap: 60px 20px;
  }

  .footer-banner-overlay {
    padding: 60px 20px;
  }

  .banner-phone {
    font-size: 28px;
  }
}

/* ------------------------------------- */
/* KONTAK PAGE STYLES                    */
/* ------------------------------------- */

/* Contact Hero Section */
.contact-hero-section {
  background:
    linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.6)),
    url("Image/Foto\ Byd\ M6/BYD-M6-Kokpit-Cerdas-BYD-M6.png") no-repeat center
      center/cover;
  padding: 20px 20px;
}

.contact-hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.contact-text-content {
  flex: 1.5;
}

.contact-title-wrapper {
  margin-bottom: 25px;
}

.contact-title {
  font-size: var(--Large);
  font-weight: 800;
  color: var(--White);
  letter-spacing: 1px;
  text-align: center;
}

.contact-title-underline {
  width: 100%;
  height: 2px;
  background-color: var(--Main-Blue);
  margin-top: 15px;
}

.contact-desc {
  font-size: var(--Medium);
  color: var(--White);
  line-height: 1.8;
}

.contact-desc strong {
  color: var(--White);
}

.contact-profile-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 320px; /* Slightly taller to fit a portrait photo */
  width: 100%;
}

.contact-profile-img {
  width: 100%;
  height: auto;
  object-fit: cover;

  /* Remove the old borders and shadows since the background is now transparent */
  border: none;
  border-radius: 0;
  box-shadow: none;

  /* The magic fade trick */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.contact-logo {
  flex: 1;
  background-color: var(--Gray-Black);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 1/1;
  max-width: 300px;
  max-height: 300px;
}

.contact-logo img {
  width: 90%;
}

/* Contact Info & Map Section */
.contact-info-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url("Image/Foto\ Byd\ Seal/BYD-Boundless-One-piece-Through-LED-Tailligh.png")
      no-repeat center center/cover;
  padding: 0 20px 100px; /* Padding bottom for space, no padding top so blue banner connects */
}

.contact-info-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
}

/* Blue Details Banner */
.contact-details-card {
  flex: 1;
  background-color: var(--Dark-Blue);
  padding: 50px 40px 90px; /* Extra bottom padding for the chevron */
  display: flex;
  flex-direction: column;
  gap: 35px;
  /* Chevron shape cutout at the very bottom */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 40px),
    50% 100%,
    0 calc(100% - 40px)
  );
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 24px;
  color: var(--White);
  margin-top: 2px;
}

.contact-item-text h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--White);
  margin-bottom: 8px;
}

.contact-item-text p,
.contact-item-text strong {
  font-size: 18px;
  color: #ddd;
  line-height: 1.6;
}

.contact-item-text strong {
  color: var(--White);
}

/* Map Wrapper */
.contact-map-wrapper {
  flex: 1.2;
  margin-top: 50px; /* Aligns map nicely next to the text */
  max-width: 500px;
  max-height: 500px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Map Clickable Overlay */
.map-clickable-overlay {
  position: absolute;
  inset: 0;
  z-index: 10; /* Sits on top of the iframe */
  background-color: transparent;
  cursor: pointer;
}

/* --- MOBILE RESPONSIVE DESIGN (KONTAK) --- */
@media (max-width: 900px) {
  .contact-hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .contact-title {
    font-size: var(--eLarge);
  }

  .contact-title-underline {
    margin: 15px auto 0;
  }

  .contact-desc {
    font-size: var(--Small);
  }

  .contact-profile-wrapper {
    margin: 0 auto;
    max-width: 250px;
  }

  .contact-info-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-details-card {
    padding: 50px 30px 90px;
  }

  .contact-map-wrapper {
    margin-top: 0;
  }
}

/* ------------------------------------- */
/* MOBIL TERBARU (2x2 GRID)              */
/* ------------------------------------- */
.latest-cars-section {
  padding: 80px 20px;
  background-color: var(--Black);
}

.latest-cars-container {
  max-width: 1000px;
  margin: 0 auto;
}

.latest-cars-header {
  text-align: center;
  margin-bottom: 50px;
}

.latest-cars-header h2 {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 5px;
}

.latest-cars-header p {
  font-size: var(--Small);
  color: var(--Main-Blue);
  font-style: italic;
}

/* Centered, Strict 2-Column Grid for Mobil Terbaru */
.cars-2x2-grid {
  display: grid;
  /* This creates exactly 2 columns that cannot grow larger than 400px */
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center; /* This perfectly centers the two columns */
  gap: 40px;
}

/* Reverted Car Card Styling */
.new-car-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  /* We don't need max-width here anymore because the grid handles it! */
}

.new-car-img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Forces the perfect 4:3 box */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.new-car-img img {
  width: 100%;
  height: 100%; /* Tells the image to fill the 4:3 box entirely */
  display: block;
  object-fit: cover; /* Crops the image gracefully if it doesn't fit perfectly */
  transition: transform 0.5s ease;
}

.new-car-img:hover img {
  transform: scale(1.05);
}

.car-category {
  font-size: 10px;
  color: var(--Main-Blue);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.car-name-large {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 15px;
}

.car-quick-specs {
  list-style: none;
  margin-bottom: 25px;
  width: 100%;
}

.car-quick-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--Muted-White);
  margin-bottom: 10px;
}

.car-quick-specs li .material-symbols-outlined {
  font-size: var(--mLarge);
  color: var(--Main-Blue);
}

.car-quick-specs a {
  color: var(--Muted-White);
  text-decoration: none;
  transition: color 0.3s;
}

.car-quick-specs a:hover {
  color: var(--White);
}

.btn-outline-arrow {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--Main-Blue);
  color: var(--White);
  background: transparent;
  text-decoration: none;
  border-radius: 4px;
  font-size: var(--Small);
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-outline-arrow:hover {
  background: rgba(58, 160, 207, 0.1);
}

.latest-cars-footer {
  text-align: center;
  margin-top: 50px;
}

.btn-outline-primary {
  border: 1px solid var(--Main-Blue);
  color: var(--White);
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--Main-Blue);
  color: var(--Black);
}

/* ------------------------------------- */
/* PROMO BANNER                          */
/* ------------------------------------- */
.promo-text-banner {
  background:
    linear-gradient(rgba(17, 34, 51, 0.8), rgba(17, 34, 51, 0.8)),
    url("Image/Side-by-side-cars.png") no-repeat center center/cover;
  padding: 70px 20px 50px;
  text-align: center;
  clip-path: polygon(0 0, 50% 40px, 100% 0, 100% 100%, 0 100%);
}

.promo-banner-content p {
  color: var(--White);
  font-size: var(--mLarge);
  margin-bottom: 8px;
}

.promo-banner-content p strong {
  font-size: var(--Large);
  font-weight: 700;
  display: block;
  margin: 15px 0 25px;
}

.btn-small {
  padding: 10px 30px;
  font-size: 13px;
}

/* ------------------------------------- */
/* CREDIT SIMULATION (White Section)     */
/* ------------------------------------- */
.credit-simulation-section {
  background-color: var(--White);
  padding: 80px 20px;
  color: var(--Black);
}

.credit-sim-container {
  max-width: 1000px; /* Made wider to fit both sides */
  margin: 0 auto;
}

.credit-header {
  text-align: center;
  margin-bottom: 40px;
}

.credit-header h2 {
  font-size: var(--eLarge);
  font-weight: 800;
  margin-bottom: 15px;
}

.credit-header p {
  font-size: var(--Small);
  color: var(--Muted-Dark-Text);
  line-height: 1.6;
}

/* Flex Wrapper for Desktop Layout */
.credit-content-wrapper {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.credit-form-side {
  flex: 1;
  width: 100%;
}

.credit-partners-side {
  flex: 1;
  width: 100%;
}

/* Form Styles */
.credit-form {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--Dark-Text);
}

.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background-color: var(--White);
  color: var(--Black);
}

.w-100 {
  width: 100%;
}

.mt-15 {
  margin-top: 15px;
}

.credit-result {
  margin-top: 30px;
  padding: 25px;
  background-color: var(--Gray-Black);
  color: var(--White);
  border-radius: 8px;
  text-align: center;
}

.credit-result.hidden {
  display: none;
}

.credit-result h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #ccc;
  border-bottom: 1px dashed #444;
  padding-bottom: 8px;
}

.result-row.highlight {
  font-size: 18px;
  font-weight: 700;
  color: var(--Main-Blue);
  border-bottom: none;
  margin-top: 20px;
  padding-bottom: 0;
}

.result-disclaimer {
  font-size: 10px;
  color: #888;
  margin-top: 20px;
  text-align: left;
}

/* Partners Grid Styles */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.partner-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  overflow: hidden;
  aspect-ratio: 2/1;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-card img {
  max-width: 100%;
  height: auto;
  object-fit: fill;
}

/* Update Mobile Breakpoint for Credit Section */
@media (max-width: 900px) {
  /* 1 Column for Mobile Terbaru */
  .cars-2x2-grid {
    grid-template-columns: minmax(0, 400px);
  }

  .promo-banner-content p {
    font-size: var(--Small);
  }

  .promo-banner-content p strong {
    font-size: var(--Medium);
  }

  /* Stacks the partners below the form on mobile */
  .credit-content-wrapper {
    flex-direction: column;
    gap: 40px;
  }
}

/* ------------------------------------- */
/* INFO & PROMO SECTION                  */
/* ------------------------------------- */
.info-promo-section {
  background-color: var(--White);
  padding: 80px 20px 100px;
}

.info-promo-container {
  max-width: 1000px;
  margin: 0 auto;
}

.info-promo-header {
  text-align: center;
  margin-bottom: 50px;
}

.info-promo-header h2 {
  font-size: var(--Large);
  font-weight: 800;
  color: var(--Black);
}

/* Centered Flexbox Grid */
.promo-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* This perfectly centers the cards */
  gap: 40px;
}

/* Modern Card Styling */
.promo-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 400px; /* Tells the card to scale smoothly */
  max-width: 400px; /* Caps the maximum width to exactly 500px */
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.promo-img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.promo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.promo-card:hover .promo-img-wrapper img {
  transform: scale(1.05);
}

.promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.promo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--Black);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-meta {
  font-size: 11px;
  color: #ed5555; /* The requested red/pink accent */
  margin-bottom: 15px;
  font-weight: 500;
}

.promo-tags {
  color: #ed5555;
}

.promo-excerpt {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------- */
/* SPLIT CONTACT SECTION (HOME PAGE)     */
/* ------------------------------------- */
.home-contact-section {
  display: flex;
  width: 100%;
  /* Creates the downward pointing chevron at the top edge */
  clip-path: polygon(0 0, 50% 40px, 100% 0, 100% 100%, 0 100%);
  margin-top: -40px; /* Pulls it up to overlap cleanly with the section above */
}

/* Left side - Car Background */
.home-contact-info {
  flex: 1;
  background:
    linear-gradient(
      to right,
      rgba(20, 25, 30, 0.95) 0%,
      rgba(20, 25, 30, 0.6) 100%
    ),
    url("Image/Foto\ Byd\ Seal/BYD-SEAL-front-600x450-1.png") no-repeat left
      center/cover;
  padding: 120px 40px 80px 10%; /* Extra top padding to clear the chevron */
  display: flex;
  justify-content: flex-end; /* Pushes content towards the center split */
}

.home-contact-info-content {
  max-width: 450px;
  width: 100%;
}

.contact-heading {
  font-size: var(--Large);
  font-weight: 800;
  color: var(--White);
  margin-bottom: 40px;
}

.contact-block {
  margin-bottom: 30px;
}

.contact-block h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--White);
  margin-bottom: 8px;
  line-height: 1.3;
}

.contact-block p {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
}

.contact-highlight {
  font-size: 22px !important;
  font-weight: 700;
  color: var(--White) !important;
}

/* Right side - Blue Map Area */
.home-contact-map {
  flex: 1;
  background-color: var(--Dark-Blue);
  padding: 120px 10% 80px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Pushes content towards the center split */
}

.home-map-wrapper {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1; /* Perfect Square */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --- MOBILE RESPONSIVE UPDATES --- */
@media (max-width: 900px) {
  /* Contact section stacks vertically */
  .home-contact-section {
    flex-direction: column;
  }

  .home-contact-info {
    padding: 100px 20px 60px;
    justify-content: center;
  }

  .home-contact-map {
    padding: 60px 20px 80px;
    justify-content: center;
  }

  .home-map-wrapper {
    margin: 0 auto;
  }
}

/* ------------------------------------- */
/* INFO & PROMO PAGE STYLES              */
/* ------------------------------------- */

/* Hero Banner */
.infopromo-hero {
  background: linear-gradient(to right, #0c0c0c, #242424);
  padding: 80px 20px 120px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 40px),
    50% 100%,
    0 calc(100% - 40px)
  );

  /* Pulls the white section up underneath the chevron */
  margin-bottom: -40px;
  /* Ensures this dark banner stays visually on top of the white background */
  position: relative;
  z-index: 2;
}

.infopromo-hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.hero-text h2 {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  text-align: right;
  line-height: 1.3;
}

.hero-logo {
  background-color: var(--Gray-Black);
  padding: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 250px;
  width: 100%;
  aspect-ratio: 1/1;
}

.hero-logo img {
  width: 90%;
}

/* Page Container - Wider to fit 3 columns exactly */
.infopromo-page-section {
  /* Increased top padding to 80px so the cards don't touch the chevron */
  padding: 80px 20px 100px;
  background-color: var(--White);

  /* Keeps this section behind the hero banner */
  position: relative;
  z-index: 1;
}

.infopromo-page-container {
  max-width: 1300px; /* 3 cards (400px each) + 2 gaps (40px each) = 1280px */
  margin: 0 auto;
}

/* --- MOBILE RESPONSIVE UPDATES (INFO & PROMO PAGE) --- */
@media (max-width: 900px) {
  .infopromo-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text h2 {
    text-align: center;
  }
}

/* ------------------------------------- */
/* GALLERY PAGE STYLES                   */
/* ------------------------------------- */

/* Hero Banner */
.gallery-hero {
  background: linear-gradient(to right, #0c0c0c, #242424);
  padding: 80px 20px 120px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 40px),
    50% 100%,
    0 calc(100% - 40px)
  );
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

.gallery-hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.gallery-hero .hero-text {
  max-width: 500px;
  text-align: right;
}

.gallery-hero .hero-text h2 {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  line-height: 1.3;
  margin-bottom: 10px;
}

.gallery-hero .hero-text p {
  font-size: var(--Small);
  color: #ccc;
  line-height: 1.6;
}

/* Page Section (White Background) */
.gallery-page-section {
  padding: 80px 20px 100px;
  background-color: var(--White);
  position: relative;
  z-index: 1;
}

.gallery-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.gallery-card {
  flex: 1 1 320px;
  max-width: 360px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* Fits portrait customer handover photos */
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.04);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .gallery-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .gallery-hero .hero-text {
    text-align: center;
  }
}

/* ------------------------------------- */
/* DEALERSHIP SHOWCASE SECTION           */
/* ------------------------------------- */
.dealer-showcase-section {
  padding-top: 60px;
  background-color: var(--White);
}

.showcase-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.showcase-header h2 {
  font-size: var(--Large);
  font-weight: 800;
  color: var(--Black);
  margin-bottom: 8px;
}

.showcase-header p {
  font-size: var(--Small);
  color: var(--Muted-Dark-Text);
}

/* Full Width 50%-50% Grid */
.showcase-grid {
  display: flex;
  width: 100%;
}

.showcase-img-item {
  flex: 1 1 50%;
  width: 50%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: zoom-in;
}

.showcase-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.showcase-img-item:hover img {
  transform: scale(1.03);
}

/* Mobile Stacking (Top and Bottom) */
@media (max-width: 900px) {
  .showcase-grid {
    flex-direction: column;
  }

  .showcase-img-item {
    flex: 1 1 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* ------------------------------------- */
/* LIGHTBOX ZOOM & HOVER MAGNIFIER       */
/* ------------------------------------- */

/* Magnifying Glass Indicator on Hover */
.gallery-img-wrapper {
  cursor: zoom-in;
  position: relative;
}

.gallery-img-wrapper::after {
  content: "search"; /* Material Symbols Magnifying Glass Icon */
  font-family: "Material Symbols Outlined";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-size: 32px;
  color: var(--White);
  background: rgba(0, 0, 0, 0.5);
  padding: 14px;
  border-radius: 50%;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-img-wrapper::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox Modal Overlay */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--White);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--Main-Blue);
}

.lightbox-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  user-select: none;
  touch-action: none; /* Prevents unwanted mobile page scrolling while pinching */
}

.lightbox-content-wrapper:active {
  cursor: grabbing;
}

.lightbox-content-wrapper img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.08s ease-out;
  will-change: transform;
}

/* ------------------------------------- */
/* EMPTY GALLERY PLACEHOLDER             */
/* ------------------------------------- */

.empty-gallery-message {
  text-align: center;
  padding: 60px 30px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.empty-gallery-icon {
  font-size: 56px;
  color: var(--Main-Blue);
  margin-bottom: 10px;
}

.empty-gallery-message h3 {
  font-size: var(--Large);
  font-weight: 800;
  color: var(--Black);
  letter-spacing: -0.5px;
}

.empty-gallery-message p {
  font-size: var(--Small);
  color: var(--Muted-Dark-Text);
  line-height: 1.6;
  margin-bottom: 15px;
}

.mt-15 {
  margin-top: 15px;
}

/* ------------------------------------- */
/* INDIVIDUAL MODEL PAGES                */
/* ------------------------------------- */

.model-page-wrapper {
  background-color: var(--Black);
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Block: Light Title & Car Type Badge */
.model-header-block {
  max-width: 800px;
  width: 100%;
  margin-bottom: 50px;
}

.model-light-title {
  font-size: var(--eLarge);
  font-weight: 300; /* Light Font */
  color: var(--White);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.car-type-badge {
  font-size: var(--vTiny);
  font-weight: 500;
  color: var(--Main-Blue);
  margin-top: 4px;
}

/* Energy in Motion & Feature Blocks */
.model-block {
  max-width: 800px;
  width: 100%;
  margin-bottom: 60px;
}

.model-block-title {
  font-size: var(--eLarge);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.model-block-subtitle {
  font-size: var(--Small);
  font-weight: 600;
  color: var(--Main-Blue);
  margin-bottom: 20px;
}

.model-feature-block {
  max-width: 800px;
  width: 100%;
  margin-bottom: 50px;
}

.feature-title {
  font-size: var(--mLarge);
  font-weight: 600;
  color: var(--White);
  margin-bottom: 8px;
}

.feature-blue-underline {
  width: 100%;
  height: 2px;
  background-color: var(--Main-Blue);
  margin-bottom: 15px;
}

.feature-desc {
  font-size: var(--Tiny);
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.model-img-wrapper img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.model-specs-list {
  list-style: none;
  margin-top: 20px;
}

.model-specs-list li {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.model-specs-list li::before {
  content: "•";
  color: var(--White);
  margin-right: 12px;
  font-size: 18px;
}

/* ------------------------------------- */
/* COLOR CAROUSEL & SPEC SHEET           */
/* ------------------------------------- */

.color-section {
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin: 40px auto 80px;
}

.color-display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.color-car-img {
  max-width: 450px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.color-arrow {
  background: none;
  border: none;
  color: var(--White);
  font-size: 36px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
}

.color-arrow:hover {
  color: var(--Main-Blue);
}

.color-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.color-dot {
  width: 8px;
  height: 8px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}

.color-dot.active {
  background: var(--White);
  transform: scale(1.3);
}

.color-name {
  font-size: var(--Small);
  font-weight: 500;
  color: var(--White);
}

.spec-sheet-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 80px;
  text-align: center;
}

.spec-sheet-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

.wa-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  border: 2px solid var(--Whatsapp-Green);
  color: var(--Whatsapp-Green);
  padding: 12px 30px;
  border-radius: 4px;
  font-size: var(--Small);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.wa-action-btn:hover {
  background-color: rgba(37, 211, 102, 0.1);
}

.pricelist-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  border: 1px solid var(--Main-Blue);
  color: var(--White);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: var(--Small);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.pricelist-btn:hover {
  background-color: var(--Gray-Black);
}

/* ------------------------------------- */
/* OTHER MODELS GRID                     */
/* ------------------------------------- */

.other-models-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.other-models-title {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 30px;
}

.other-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.other-model-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  border: 1px solid #222;
}

.other-model-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.other-model-card:hover img {
  transform: scale(1.05);
}

/* Mobile Adjustments for Models */
@media (max-width: 600px) {
  .model-block-title {
    font-size: var(--Large);
  }
  .color-car-img {
    max-width: 250px;
  }
}

/* ------------------------------------- */
/* OTHER MODELS GRID                     */
/* ------------------------------------- */

.other-models-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.other-models-title {
  font-size: var(--Large);
  font-weight: 700;
  color: var(--White);
  margin-bottom: 30px;
}

.other-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.other-model-card {
  display: block;
  position: relative; /* Needed to anchor the absolute overlay */
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  border: 1px solid #222;
}

.other-model-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover Overlay Styling (Desktop Default) */
.other-model-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.other-model-overlay span {
  color: var(--White);
  font-size: var(--Medium);
  font-weight: 700;
  letter-spacing: 1px;
  transform: translateY(15px);
  transition: transform 0.3s ease;
}

/* Hover Interactions */
.other-model-card:hover img {
  transform: scale(1.05);
}

.other-model-card:hover .other-model-overlay {
  opacity: 1;
}

.other-model-card:hover .other-model-overlay span {
  transform: translateY(0);
}

/* Mobile Adjustments for Models */
@media (max-width: 700px) {
  .model-block-title {
    font-size: var(--Large);
  }
  .color-car-img {
    max-width: 250px;
  }

  .other-model-overlay {
    opacity: 1; /* Always visible on mobile */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    align-items: flex-end; /* Push text to the bottom */
    padding-bottom: 15px;
  }

  .other-model-overlay span {
    transform: translateY(0); /* Remove the upward slide animation */
    font-size: var(--Small);
  }
}
