html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

.text-justify {
  text-align:justify;
}
.navbar {
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.navbar-nav .nav-link {
    color: #fff;
    padding: 10px 20px;
    margin: 0 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
}
.navbar-nav .nav-link:hover {
    background-color: #ED1C39;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237,28,57,0.5);
}
.navbar-nav .nav-link.active {
    background-color: #ED1C39;
    color: #fff;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.3);
}
.navbar-toggler {
  background-color:#fff;
}

.dropdown-menu-dark {
    background-color: #000; /* sama dengan navbar */
    border-radius: 10px;
}
.dropdown-menu-dark .dropdown-item {
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.dropdown-menu-dark .dropdown-item:hover {
    background-color: #ED1C39;
    color: #fff;
    transform: translateX(5px);
}
/* Active parent (sudah ada di CSS kamu) */
.navbar-nav .nav-link.active {
    background-color: #ED1C39;
    color: #fff;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.3);
}

/* Active item di dropdown */
.dropdown-menu-dark .dropdown-item.active {
    background-color: #ED1C39;
    color: #fff;
    font-weight: bold;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    display: block;
    animation: slideIn 1s ease-in-out;
}
@keyframes slideIn {
    from { transform: scale(1.05); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ED1C39;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 5px;
}
.carousel-indicators [data-bs-target]:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(237,28,57,0.6);
}
.carousel-indicators .active {
    background-color: #c41630;
    box-shadow: 0 0 10px rgba(237,28,57,0.8);
}
.btn-optimus {
    background-color: #ED1C39;
    color: white;
    border: none;
    padding: 6px 18px;
    font-weight: 500;
    border-radius: 10px;
    box-shadow: 0 6px 0 #b2132e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-optimus:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(237, 28, 57, 0.3);
    background-color: #c41630;
}
.btn-optimus:active {
    transform: translateY(2px);
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.2);
}

.btn-optimus-black {
    background-color: #262525;
    color: white;
    border: none;
    padding: 6px 18px;
    font-weight: 500;
    border-radius: 10px;
    box-shadow: 0 6px 0 #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-optimus:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(237, 28, 57, 0.3);
    background-color: #c41630;
}
.btn-optimus:active {
    transform: translateY(2px);
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.2);
}
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #ED1C39, #a31328);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 20px rgba(237,28,57,0.5);
    background: linear-gradient(145deg, #c41630, #ED1C39);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100% 100%;
    filter: invert(1);
}
.card-used {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: none;
}
.card-used:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.card-used .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card-used:hover .card-img-top {
    transform: scale(1.05);
}
.card-body h6 {
    font-size: 1.1rem;
}
.card-body p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.section-header {
    font-weight: 700;
    font-size: 2rem;
    color: #ED1C39;
    margin-bottom: 2rem;
    position: relative;
}
.section-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ED1C39;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header-white {
  font-weight: 700;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
}

.section-header-white::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #fff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header-left {
    font-weight: 700;
    font-size: 2rem;
    color: #ED1C39;
    margin-bottom: 2rem;
    position: relative;
}
.section-header-left::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ED1C39;
    margin-top:10px;
    margin-left:0px;
    margin-bottom:0px;
    border-radius: 2px;
}

.category-box {
    background-color: #000;
    color: #fff;
    padding: 20px;
    padding-top:70px;
    padding-bottom:70px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}
.category-box:hover {
    transform: scale(1.05);
    background-color: #ED1C39;
}
.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}
.contact-form input, .contact-form textarea {
    border-radius: 0;
}
.option-boxes {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.0rem;
    padding: 2rem 0; */
    display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 40px;
      flex-wrap: wrap;
}
.option-card {
    width: 220px;
    height: 320px;
    background: #111111;
    border-radius: 30px;
    overflow: hidden;
    transform: perspective(1200px) rotateY(-12deg);
    box-shadow:
      -25px 25px 40px rgba(0, 0, 0, 0.4),
      inset 0 0 15px rgba(255, 255, 255, 0.05),
      10px 0 0 #0d0d0d, /* right side thickness */
      0 10px 0 #0d0d0d; /* bottom thickness */
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.option-card:hover {
    transform: perspective(1200px) rotateY(0deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.option-card img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-radius: 30px 30px 0 0;
}
.option-card-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
@keyframes fadeBodyIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.car-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInZoom 0.6s ease-out forwards;
  border-left: 6px solid #d91f37;
  will-change: transform;
}

.car-card:hover {
  transform: rotateY(5deg) scale(1.03);
  box-shadow: 8px 8px 20px #a21527, -8px -8px 20px #f54257;;
}

.car-img img {
  width: 100%;
  max-width:350px;
  transition: transform 0.5s;
  border-radius: 12px;
}

.car-card:hover .car-img img {
  transform: scale(1.08);
}

.car-img {
  position:relative;
}

.sold-overlay {
  position:absolute;
  left:0%;
  width:80% !important;
  height:auto;
  z-index:10;
}

.car-price-col {
    background: linear-gradient(145deg, #d91f37, #a21527);
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pagination-3d a {
  color: #d91f37;
  font-weight: bold;
  padding: 10px 18px;
  margin: 0 5px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
}

.pagination-3d a:hover {
  transform: translateY(-5px) rotateX(5deg);
  background: #d91f37;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.pagination-3d .active {
  background: #d91f37;
  color: #fff;
}

.search-btn {
  background-color: #d91f37;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.car-price {
  font-size: 1.75rem;
  font-weight: bold;
  color: #fff;
}

.filter-box {
  background: linear-gradient(145deg, #d91f37, #a21527); 
  color: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 8px 8px 20px #a21527, -8px -8px 20px #f54257;
  animation: fadeSlideIn 1s ease-in-out;
}

.filter-range {
  background: linear-gradient(145deg, #d91f37, #a21527); /* warna merah redup Optimus */
  height:100%;
  box-shadow: 8px 8px 20px #a21527, -8px -8px 20px #f54257;
  border-radius: 20px;
  color: white;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-select {
  border-radius: 10px;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #fff, #f3c2c2, #fff);
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  accent-color: #d91f37;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: linear-gradient(to bottom, #d91f37, #a10f23);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1) rotateX(10deg);
}

input[type=range]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: linear-gradient(to bottom, #d91f37, #a10f23);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}

input[type=range]::-ms-thumb {
  height: 20px;
  width: 20px;
  background: linear-gradient(to bottom, #d91f37, #a10f23);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}

@keyframes fade3d {
  0% { opacity: 0; transform: perspective(800px) rotateX(10deg) scale(0.95) translateY(30px); }
  100% { opacity: 1; transform: perspective(800px) rotateX(0) scale(1) translateY(0); }
}
.gallery-main img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: 12px; cursor: pointer;
  transition: transform 0.4s;
}
.gallery-main img:hover {
  transform: scale(1.03) rotateY(5deg);
}
.gallery-thumbs img {
  max-height: 80px; 
  max-width:100%;
  object-fit: cover;
  border-radius: 8px; cursor: pointer;
  opacity: 0.6; transition: 0.3s;
}
.gallery-thumbs img.swiper-slide-thumb-active {
  opacity: 1; border: 2px solid #d72638;
}
.swiper-button-next, .swiper-button-prev {
  color: white !important;
  width: 55px; height: 55px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.5rem; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border: none; cursor: pointer;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.2) rotateY(15deg);
  /* box-shadow: 0 15px 30px rgba(215, 38, 56, 0.6); */
}
.feature-box {
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 1.5rem;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: fade3d 1s ease;
}
.feature-box:hover {
  transform: translateY(-5px) rotateY(3deg) scale(1.01);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}
.feature-box ul {
  columns: 2; list-style: none; padding-left: 0;
}
.feature-box h4::before {
  content: "\f1b9"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-right: 0.5rem; color: #d72638;
}
.feature-box h5::before {
  content: "\f085"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-right: 0.5rem; color: #d72638;
}
.popup-image {
  display: none; position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85); justify-content: center; align-items: center;
  z-index: 9999;
}
.popup-image.active { display: flex; }
.popup-image img {
  max-width: 90%; max-height: 90%; transition: transform 0.3s;
}
.popup-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 2.5rem; color: white; cursor: pointer;
}
.description-box {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2rem; margin-top: 2rem;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: fade3d 1s ease;
}
.description-box:hover {
  transform: rotateX(2deg) rotateY(-2deg) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.description-box h5 {
  display: flex; align-items: center;
  font-weight: 600; margin-bottom: 1rem;
}
.description-box h5::before {
  content: "\f05a"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-right: 0.5rem; color: #d72638;
}
.description-box p {
  line-height: 1.7; font-size: 1.05rem;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.popup-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90%;
  width: 400px;
  transform: translate(-50%, -50%) perspective(800px) rotateX(0deg) scale(1);
  z-index: 9999;
  padding: 1.5rem 1.8rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: all 0.3s ease;
}
.popup-alert:hover {
  transform: translate(-50%, -50%) perspective(800px) rotateX(8deg) scale(1.03);
}

.popup-success {
  background: #e30613;
  color: white;
}

.popup-fail {
  background: #222;
  color: white;
}

.popup-warning {
  background: #ffc107;
  color: #000;
}

.popup-alert i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.popup-alert button {
  margin-top: 15px;
  background-color: white;
  color: #e30613;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  padding: 10px 20px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.popup-alert button:hover {
  transform: scale(1.05);
}


/* Container Floating sosmed*/
.social-floating {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
}

.social-floating ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-floating ul li {
  margin: 5px 0;
}

.social-floating ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #E81C3B; /* Warna merah Optimus */
  color: white;
  text-decoration: none;
  border-radius: 5px 0 0 5px;
  transition: all 0.3s ease;
  font-size: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.social-floating ul li a:hover {
  background-color: #000000; /* Warna hitam Optimus */
  color: #E81C3B;
  transform: translateX(-5px);
}
/* End social floating */


/* Article */
.hero-article {
  background: linear-gradient(120deg, #E11B2A 0%, #000000 100%);
  padding: 110px 0;
  text-align: center;
  color: #fff;
}
.hero-article h1 {
  font-weight: 900;
  color: #fff;
  font-size: 3.2rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.hero-article span {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.hero-article p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* 3D Card Effect */
.article-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.1),
    0 10px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  perspective: 1000px;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-15px) rotateX(8deg) rotateY(5deg);
  box-shadow:
    0 15px 25px rgba(225, 27, 42, 0.4),
    0 30px 40px rgba(0,0,0,0.3);
  z-index: 10;
}
.article-card img {
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
.article-card:hover img {
  transform: scale(1.05) translateZ(30px);
}

.badge-tag-article {
  background: #E11B2A;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35em 0.9em;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 0.7rem;
  user-select: none;
  box-shadow: 0 2px 6px rgba(225,27,42,0.5);
}

h5 {
  font-weight: 700;
  margin-top: 0.25rem;
}

.readmore-article {
  color: #E11B2A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.readmore-article:hover {
  color: #a70f1a;
  text-decoration: underline;
}
/* End Article */

@media (max-width: 768px) {
  .car-details {
    flex-direction: column;
    align-items: flex-start;
  }
  .car-img, .car-info, .car-price-col {
    width: 100% !important;
  }
  .car-details .row > div {
    margin-bottom: 1rem;
  }
  .filter-range {
    margin-top:25px;
  }
  .option-card {
    width: 100%;
    height: 280px;
  }
  .option-card-title {
    font-size: 0.9rem;
    padding: 14px 8px;
  }

  .popup-alert {
    width: 90%;
    padding: 1.2rem;
  }

  .popup-alert .popup-text {
    font-size: 1rem;
  }

  .popup-alert button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .gallery-main img {
    height: 300px;
  }
}

@media (max-width: 650px) {
  .container{
    width:80%;
    padding-left:0px;
    padding-right:0px;
  }
  .gallery-main img {
    height: 200px;
  }
}