/* Reset dan dasar */
* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: "Segoe UI", sans-serif;
}

:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --accent: #22c55e;
  --dark: #1e293b;
  --light: #f8fafc;
}

body {
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header & Navigasi */
header {
  background: linear-gradient(135deg, #007bff, #181818);
  color: white;
  padding: 0px 7px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
}

/* Navigasi Dropdown */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  position: relative;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  display: block;
}

.nav-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.35);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-width: 200px;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}
/* Header dan Hamburger */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo span {
  color: var(--accent);
  font-weight: 400;
  text-shadow: 2px 1px 1px #fafafa;
}

.hamburger {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

nav#nav-menu {
  display: none;
  margin-top: 1px;
}

nav#nav-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

nav#nav-menu ul li {
  margin: 0.5rem 3px;
}

nav#nav-menu ul li a {
  font-size: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 7px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

nav#nav-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.35);
}

.tagline {
  margin-top: 0px;
  font-size: 14px;
  padding: 10px;
}

.tagline {
    text-align: center;
    padding: 5px 0;
    margin: 16px auto;
    max-width: 81%;
    background: linear-gradient(135deg, #007bff, #181818);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.tagline p {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    padding: 15px 30px;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
}

.tagline p::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.tagline:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Untuk efek animasi tambahan */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.tagline {
    animation: pulse 3s infinite;
}

/* Jika ingin menambahkan style khusus untuk WhatsApp */
.whatsapp-cta {
    color: #25D366;
    font-weight: bold;
    transition: color 0.3s ease;
}

.whatsapp-cta:hover {
    color: #128C7E;
}

/* Kartu Mobil */
.car-badge {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 56px;
  height: 23px;
  background: #007bff;
  color: white;
  padding: 1px;
  text-align: center;
  border-radius: 50px;
  font-size: 12px;
}

.car-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  gap: 2rem;
}

.car-card {
  position: relative;
  width: 338px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.car-card:hover {
  transform: scale(1.03);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.car-info {
  padding: 1rem;
}

.price-detail {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1rem;
}


.status {
  font-weight: bold;
}

.book-btn {
  margin-top: -27px;
  right: 0px;
  height: 33px;
  background-color: #28a745;
  color: white;
  padding: 1px;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  float: right;
}

.book-btn:hover {
  background-color: #218838;
}

.book-btn.disabled {
  background-color: #6c757d;
  pointer-events: none;
  cursor: not-allowed;
}

.booked .status {
  color: red;
}

.available .status {
  color: green;
}

/* Seksi Informasi (Tentang, Syarat, Blog, Kontak) */
.info-section {
  padding: 2rem;
  background: white;
  margin: 1rem auto;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.info-section h2 {
  margin-bottom: 1rem;
  color: #007bff;
}

.info-section ul {
  padding-left: 1.5rem;
}

.info-section ul li {
  margin-bottom: 0.5rem;
}

/* Footer modern */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 1rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 14px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-links a:hover {
  background: var(--accent);
}

#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#scrollTop.show {
  opacity: 1;
}


/* Responsif */
@media (max-width: 600px) {
  .nav-menu {
    flex-direction: row;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .dropdown-menu li a {
    text-align: center;
  }
}
  .hamburger {
    display: block;
    margin-top: -7px;
  }

  .book-btn {
    padding: 4px 11px;
    font-size: 0.9rem;
  }
