@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #ff0000;
  --text-color: #333;
  --light-text-color: #000000;
  --card-background: rgba(255, 255, 255);
  --color-bar: linear-gradient(to right, #ff4e50, #c31432);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================
    AWAL STYLE NAVBAR
   ========================================== */

body {
  font-family: "Montserrat", sans-serif;
  background-image: url("../assets/banner/DST\ CONCEPT.jpg"); /* Desktop background */
  background-size: cover;
  background-position: center top 80px;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--text-color);
  overflow-x: hidden;
  z-index: 999;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* Navbar */
.navbar {
  background-color: var(--card-background);
  padding: 15px 0;
  box-shadow: 0 2px 4px var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text-color);
}

.navbar .logo img {
  height: 50px;
  margin-right: 10px;
}

.navbar .nav-links ul {
  display: flex;
}

.navbar .nav-links ul li {
  margin-left: 30px;
}

.navbar .nav-links ul li a {
  color: var(--light-text-color);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.navbar .nav-links ul li a:hover {
  color: var(--primary-color);
}

.navbar .nav-auth {
  display: flex;
  align-items: center;
}

.navbar .nav-auth .sign-in {
  margin-right: 20px;
  color: var(--light-text-color);
}

.navbar .nav-auth .get-demo {
  background-color: #eee;
  color: var(--text-color);
  padding: 8px 15px;
}

.navbar .nav-auth .get-demo:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
}

.nav-links a i {
  margin-right: 6px;
  color: #e60000;
}

.nav-links a {
  font-size: 20px !important;
}

/* ==========================================
    MOBILE STYLE
   ========================================== */
@media (max-width: 1024px) {
  .navbar .nav-links,
  .navbar .nav-auth {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .navbar .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--card-background);
    box-shadow: 0 4px 8px var(--shadow-medium);
    padding: 10px 0;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
  }

  .navbar .nav-links.active ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .navbar .nav-links.active ul li {
    margin: -5px 0;
  }

  .navbar .nav-links.active ul li a {
    font-size: 1.5rem;
    padding: 10px 0;
    display: block;
  }
}

/* Mobile background (max-width: 768px) */
@media (max-width: 768px) {
  body {
    background-image: url("../assets/banner/DST_20250707_113601_0000.jpg"); /* Mobile background */
    background-size: cover;
    background-position: center top 40px;
    background-repeat: no-repeat;
  }

  .nav-links a i {
    margin-right: 6px;
    color: #e60000;
  }

  .nav-links a {
    font-size: 18px !important;
    margin-bottom: 10px;
  }
}

/* ==========================================
    AKHIR STYLE NAVBAR
   ========================================== */
/* Styling untuk container utama */
.spesifikasi-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: 10px;
}

/* Header */
.spesifikasi-header h1 {
  font-size: 2rem;
  margin-bottom: -10px;
  color: #b20000; /* Warna khas Mitsubishi */
}

/* Konten spesifikasi */
.spesifikasi-content h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #222;
  border-bottom: 2px solid #b20000;
  padding-bottom: 5px;
}

.spesifikasi-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.spesifikasi-content ul li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Responsif untuk tablet dan smartphone */
@media screen and (max-width: 768px) {
  .spesifikasi-container {
    padding: 1rem;
  }

  .spesifikasi-header h1 {
    font-size: 1.5rem;
  }

  .spesifikasi-content h2 {
    font-size: 1.1rem;
  }

  .spesifikasi-content ul li {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .spesifikasi-container {
    padding: 0.8rem;
  }

  .spesifikasi-header h1 {
    font-size: 1.3rem;
    text-align: left;
  }

  .spesifikasi-content h2 {
    font-size: 1rem;
  }

  .spesifikasi-content ul {
    padding-left: 1.2rem;
  }

  .spesifikasi-content ul li {
    font-size: 0.9rem;
  }
}

/*=====================================
  | Akhir Style Spesifikasi
=======================================*/

.video-banner {
  width: 100%;
  overflow: hidden;
  margin-top: 70px;
}

.video-wrapper {
  width: 100%;
  max-width: 100%;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/*=====================================
  | Akhir Style Banner Vidio
=======================================*/

.color-selector {
  padding: 2rem;
  background-color: white;
  text-align: center;
}

.color-selector h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.color-options {
  position: absolute;
  bottom: 15px; /* bisa diubah sesuai kebutuhan */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3; /* pastikan berada di atas */
  /* background: rgba(255, 255, 255, 0.6); */
  padding: 10px;
  border-radius: 8px;
  /* backdrop-filter: blur(4px); */
}

.color-options button {
  width: 50px;
  height: 50px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  background: none;
  outline: none;
  box-shadow: none;
  border-radius: 10px;
}

.color-options button:hover,
.color-options button:focus {
  transform: scale(1.1);
  outline: none;
}

.color-name-container {
  margin-top: 5px;
  background-color: rgba(
    255,
    0,
    0,
    0.37
  ); /* agar menyatu lembut dengan background */
  padding: 8px 16px;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

.car-image-preview {
  position: relative;
  background-image: url("../bg/20250717_165546_0000.png");
  background-size: cover;
  background-position: center;
  padding: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  flex-direction: column; /* tambahkan ini untuk susun vertikal */
}

/* .car-image-preview img {
  max-width: 100%;
  height: auto;
  z-index: 2;
  position: relative;
  transform: translateY(75px);
} */

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100%) translateY(75px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(40%) translateY(75px) scale(1);
  }
}

.car-image-preview img {
  max-width: 55%;
  height: auto;
  z-index: 2;
  position: relative;
  animation: slideInFromRight 0.8s ease-out forwards;
}

.smoke {
  position: absolute;
  bottom: 10%;
  width: 100px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 10%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: none;
  z-index: 9;
  left: 50%;
  transform: translateX(-50%);
}

/* Judul "Pilih Varian" */
.varian-title {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 700;
  text-align: left;
  padding-left: 2rem;
}

/* Kontainer tombol tipe mobil */
.type-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ⬅️ Tombol rata kiri */
  gap: 12px;
  margin-left: 2rem; /* ⬅️ Jarak dari sisi kiri layar */
  margin-bottom: 2rem;
}

/* Tombol tipe mobil */
.type-btn {
  padding: 12px 20px;
  border: 1px solid #ff0000;
  background-color: white;
  color: #000000;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 220px;
  text-align: center;
}

.type-btn:hover {
  background-color: #e20000;
  color: white;
}

.type-btn.active {
  background-color: #e20000;
  color: white;
  box-shadow: 0 0 8px rgba(226, 0, 0, 0.4);
}

.harga {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 700;
  text-align: left;
  padding-left: 2rem;
}

@keyframes smokeRise {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(15px) translateY(-30px) scale(1.3);
    opacity: 0.3;
  }
  100% {
    transform: translateX(30px) translateY(-60px) scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .car-image-preview {
    padding: 24px;
    min-height: 250px;
    background-image: url("../bg/dst_mobile.png");
  }

  .car-image-preview img {
    transform: translateY(45px);
    max-width: 85%;
  }

  .color-options {
    gap: 6px;
    padding: 8px;
    bottom: 15px;
  }

  .color-options button {
    width: 35px;
    height: 30px;
    border-radius: 5px;
  }

  .color-selector h2 {
    font-size: 1.1rem;
  }

  .color-name-container {
    font-size: 0.95rem;
    padding: 6px 12px;
  }

  .varian-title {
    font-size: 0.9rem;
    padding-left: 1rem;
    text-align: center;
    margin-top: -15px;
  }

  .type-buttons {
    align-items: center;
    margin-left: 0;
    gap: 5px;
  }

  .type-btn {
    width: 100%;
    max-width: 280px;
    padding: 8px 8px;
    font-size: 0.8rem;
  }

  @keyframes slideInFromRight {
    0% {
      opacity: 0;
      transform: translateX(100%) translateY(27px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateX(0) translateY(27px) scale(1);
    }
  }
}

@media (max-width: 480px) {
  .car-image-preview {
    padding: 16px;
    min-height: 250px;
    background-image: url("../bg/dst_mobile.png");
  }

  .car-image-preview img {
    transform: translateY(25px);
    max-width: 85%;
  }

  .color-options {
    gap: 5px;
    padding: 6px;
    bottom: 12px;
  }

  .color-options button {
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }

  .color-selector h2 {
    font-size: 0.95rem;
  }

  .color-name-container {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .varian-title {
    font-size: 0.9rem;
    padding-left: 1rem;
    text-align: center;
    margin-top: -15px;
  }

  .type-buttons {
    align-items: center;
    margin-left: 0;
    gap: 5px;
  }

  .type-btn {
    width: 100%;
    max-width: 280px;
    padding: 8px 8px;
    font-size: 0.8rem;
  }

  .harga {
    font-size: 0.9rem;
    margin-top: 0rem;
    text-align: center;
    padding-left: 0rem;
  }

  @keyframes slideInFromRight {
    0% {
      opacity: 0;
      transform: translateX(100%) translateY(27px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateX(0) translateY(27px) scale(1);
    }
  }
}

.color-options button.active {
  border: 3px solid #ff0000;
  box-shadow: 0 0 5px #ff0000;
}

.color-options button:focus {
  outline: none;
  box-shadow: none;
}

/*=====================================
  | STYLE TABEL
=======================================*/
.tipe-table {
  padding: 2rem;
  text-align: center;
}

.tipe-table h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.tipe-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tipe-table th,
.tipe-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.tipe-table th {
  background-color: #ff0000;
  color: #fff;
  font-weight: bold;
}

/* MEDIA QUERY UNTUK LAYAR KECIL */
@media screen and (max-width: 768px) {
  .tipe-table {
    padding: 1rem;
  }

  .tipe-table h2 {
    font-size: 1.25rem;
  }

  .tipe-table table {
    min-width: 100%;
    font-size: 0.9rem;
  }

  .tipe-table th,
  .tipe-table td {
    padding: 0.5rem;
  }
}

/*=====================================
  | Efek Reveal
=======================================*/
.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease;
}
.reveal-bottom {
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.8s ease;
}
.reveal-top {
  opacity: 0;
  transform: translateY(-100px);
  transition: all 0.8s ease;
}
.reveal-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}
.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-left.active,
.reveal-right.active,
.reveal-bottom.active,
.reveal-top.active,
.reveal-zoom.active,
.reveal-fade.active {
  opacity: 1;
  transform: none;
}

.btn-download {
  display: inline-block;
  background-color: #c30000;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #a30000;
}

/* ==========================================
    AWAL FOOTER
   ========================================== */
/* --- Footer Section --- */
footer {
  background-color: #ffffff; /* Warna putih untuk background footer */
  color: #555; /* Warna teks utama yang lebih gelap agar terbaca di background putih */
  padding: 60px 20px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  border-top: 1px solid #eee; /* Tambahkan sedikit border atas untuk pemisah */
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.footer-about .footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 25px;
  color: #666; /* Warna paragraf agar lebih gelap dari warna teks utama */
}

.footer-about .social-links {
  display: flex;
  justify-content: flex-start;
}

.footer-about .social-links a {
  color: #777; /* Warna ikon sosial yang sedikit abu-abu */
  font-size: 1.5em;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-about .social-links a:hover {
  color: var(--primary-color); /* Warna merah Mitsubishi untuk hover */
}

.footer-links h3,
.footer-contact h3,
.footer-map h3 {
  font-size: 1.4em;
  margin-bottom: 25px;
  color: #333; /* Warna judul yang lebih gelap agar kontras */
  position: relative;
  padding-bottom: 10px;
  text-align: left;
}

/* Underline effect for headings */
.footer-links h3::after,
.footer-contact h3::after,
.footer-map h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color); /* Tetap merah untuk accent */
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #666; /* Warna link yang lebih gelap */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #666; /* Warna teks kontak */
  text-align: left;
  justify-content: flex-start;
}

.footer-contact p i {
  margin-right: 10px;
  font-size: 1.1em;
  color: var(--primary-color); /* Tetap merah untuk ikon kontak */
  flex-shrink: 0;
  padding-top: 2px;
}

.footer-map iframe {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sesuaikan shadow untuk background terang */
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ff0000; /* Warna border pemisah yang lebih terang */
  padding-top: 25px;
  margin-top: 25px;
  color: #000000; /* Warna teks copyright yang sedikit lebih terang */
  font-size: 0.9em;
}

.limapx {
  margin-top: -15px;
}

.cw {
  margin-top: -35px;
  font-weight: 600;
}

.area {
  margin-top: -35px;
  font-weight: 600;
}

/* Responsive adjustments for footer for screens up to 768px */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-map {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-about p {
    text-align: center;
  }

  .footer-about .social-links {
    justify-content: center;
  }

  .footer-links h3,
  .footer-contact h3,
  .footer-map h3 {
    text-align: center;
  }

  .footer-links h3::after,
  .footer-contact h3::after,
  .footer-map h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul {
    text-align: center;
  }

  .footer-links ul li {
    display: inline-block;
    margin: 0 10px 12px;
  }

  .footer-contact p {
    justify-content: center;
    text-align: center;
  }

  .limapx {
    margin-top: -15px;
  }

  .cw {
    margin-top: -40px;
    font-weight: 600;
  }

  .area {
    margin-top: -40px;
    font-weight: 600;
  }
}

/* Responsive adjustments for footer specifically for screens up to 480px */
@media (max-width: 480px) {
  footer {
    padding: 40px 15px 15px;
    font-size: 0.85em;
  }

  .footer-container {
    gap: 20px;
  }

  .footer-about .footer-logo {
    height: 50px;
  }

  .footer-about p,
  .footer-links ul li a,
  .footer-contact p,
  .footer-bottom p {
    font-size: 0.9em;
  }

  .footer-links h3,
  .footer-contact h3,
  .footer-map h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }

  .footer-about .social-links a {
    font-size: 1.3em;
    color: red;
    margin: 0 8px;
  }

  .footer-contact p i {
    font-size: 1em;
  }

  .footer-links ul li {
    margin: 0 8px 10px;
  }

  .strong {
    margin-top: -15px;
  }

  .footer-bottom {
    padding-bottom: 10px;
  }

  .limapx {
    margin-top: -15px;
  }

  .cw {
    margin-top: -40px;
    font-weight: 600;
  }

  .area {
    margin-top: -40px;
    font-weight: 600;
  }
}

/* ==========================================
    FLOATING WHATSAPP
   ========================================== */

.whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: Arial, sans-serif;
}

.chat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ff0000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.chat-bubble {
  background-color: #e60000;
  color: #fff;
  padding: 12px 15px;
  border-radius: 15px 15px 15px 0;
  max-width: 250px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #fff;
  font-size: 10px;
}

span.farah {
  font-size: 12px;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .whatsapp-chat {
    bottom: 15px;
    right: 15px;
  }

  .chat-bubble {
    max-width: 220px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .chat-avatar {
    width: 35px;
    height: 35px;
  }

  .chat-icon {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 480px) {
  .chat-bubble {
    max-width: 180px;
    font-size: 13px;
    padding: 8px 10px;
  }

  .chat-close {
    pointer-events: auto;
    display: block;
  }

  .chat-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-close {
    font-size: 25px;
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 999;
  }

  .chat-avatar {
    width: 30px;
    height: 30px;
  }

  .chat-icon {
    width: 70px;
    height: 70px;
  }

  span.farah {
    font-size: 11px;
  }
}
