:root {
  --primary: #0ea5e9; /* Sky blue */
  --secondary: #1e40af; /* Dark blue */
  --accent: #14b8a6; /* Teal */
  --light: #f0f9ff; /* Light blue */
  --dark: #0c4a6e; /* Dark blue */
  --text: #334155; /* Slate gray */
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

/* Animasi hover card */
.card-hover {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: white;
}

/* Animasi tombol */
.btn-animate {
  transition: all 0.3s ease;
}

.btn-animate:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animasi floating */
.floating-contact a {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-contact a:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Animasi gambar mobil */
.car-image {
  transition: all 0.4s ease;
}

.car-image:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Animasi saat scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi loading */
.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid var(--primary);
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Floating contact styles */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-contact a {
  background-color: var(--secondary);
  color: white;
  padding: 12px 16px;
  border-radius: 9999px;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-contact a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Hero section overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form styling */
input,
select {
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  transition: all 0.3s;
}

.mobile-menu a:hover {
  background-color: #f3f4f6;
  color: var(--primary);
}

/* Section Transportasi*/
.car-card-container {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  width: 100%;
}

.car-card-title {
  margin-top: 24px;
}

.car-label-information {
  display: flex;
  gap: 12px;
}

.car-capacity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-capacity img {
  width: 20px;
  height: 20px;
}

.car-capacity p {
  font-size: 16px;
  color: #6b7280;
}

.car-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-type p {
  font-size: 16px;
  color: #6b7280;
}

.car-type img {
  width: 20px;
  height: 20px;
}

.car-card-title h3 {
  font-size: 24px;
  font-weight: 700;
}

.car-card-price {
  margin-top: 24px;
}

.price-label {
  font-size: 14px;
  color: #6b7280;
}

.harga-sewa-mobil {
  font-size: 20px;
  font-weight: 800;
}

.harga-sewa-mobil span {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

/* Akhir section transportasi */

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-contact {
    flex-direction: row;
    bottom: 10px;
    right: 10px;
  }

  .floating-contact a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu-button {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}
