@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-glow: rgba(22,163,74,0.25);
  --bg: #f8faf9;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.5px; display: flex; align-items: center;
}
.nav-logo span { color: var(--text); }
.nav-logo-img {
  height: 48px; width: auto; object-fit: contain;
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.05); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #000;
  position: relative; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; transition: var(--transition); border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(22,163,74,0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff; color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: var(--transition); border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: blur(4px); -webkit-filter: blur(4px);
  transform: scale(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(22,163,74,0.2) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff; max-width: 650px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem; border-radius: 50px; font-size: 0.85rem;
  margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px;
}
.hero h1 .highlight { color: var(--primary-light); }
.hero p {
  font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem;
  font-weight: 300; max-width: 500px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .label {
  display: inline-block; background: rgba(22,163,74,0.1); color: var(--primary);
  padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.5px; margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-light); max-width: 550px; margin: 0 auto; }

/* ===== CAR GRID ===== */
.car-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.car-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition); border: 1px solid var(--border);
  cursor: pointer;
}
.car-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.car-card-img {
  position: relative; overflow: hidden; height: 220px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.car-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.car-card:hover .car-card-img img { transform: scale(1.05); }
.car-card-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--primary); color: #fff; padding: 0.35rem 0.9rem;
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.car-card-body { padding: 1.5rem; }
.car-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.car-card-body .desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }
.car-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.car-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.car-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

/* ===== LOCATION ===== */
.location-section { background: #fff; }
.location-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 3rem;
  display: flex; gap: 2rem; align-items: center;
  border: 1px solid var(--border);
}
.location-icon {
  width: 80px; height: 80px; min-width: 80px;
  background: rgba(22,163,74,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.location-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.location-info p { color: var(--text-light); font-size: 0.95rem; }
.location-map {
  margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); height: 350px;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* ===== DRIVER ===== */
.driver-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center;
}
.driver-section .section-header .label { background: rgba(255,255,255,0.2); color: #fff; }
.driver-section .section-header h2 { color: #fff; }
.driver-section .section-header p { color: rgba(255,255,255,0.8); }
.driver-price {
  font-size: 2.5rem; font-weight: 800; margin: 1.5rem 0;
}
.driver-price span { font-size: 1rem; font-weight: 400; opacity: 0.8; }
.driver-note { opacity: 0.8; font-size: 0.95rem; max-width: 500px; margin: 0 auto 2rem; }

/* ===== DETAIL PAGE ===== */
.detail-hero {
  padding-top: 100px; padding-bottom: 4rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8faf9 100%);
  min-height: 60vh; display: flex; align-items: center;
}
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.detail-img-wrap {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius-lg); overflow: hidden; padding: 2rem;
}
.detail-img-wrap img { width: 100%; height: auto; object-fit: contain; }
.detail-info .car-name {
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800;
  margin-bottom: 0.5rem; letter-spacing: -0.5px;
}
.detail-info .car-price-tag {
  font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 1.5rem;
}
.detail-info .car-price-tag span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.detail-info .car-desc {
  color: var(--text-light); font-size: 1rem; margin-bottom: 2rem; line-height: 1.8;
}
.feature-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2.5rem; }
.feature-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg-card); padding: 0.8rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(22,163,74,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem;
}
.feature-item span { font-weight: 500; font-size: 0.95rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-weight: 600; margin-bottom: 1.5rem;
  font-size: 0.9rem; transition: var(--transition);
}
.back-link:hover { gap: 0.8rem; }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a; color: #fff; padding: 3rem 0 1.5rem; text-align: center;
}
.footer-brand { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--primary-light); }
.footer-contact { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-contact a { color: var(--primary-light); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 1.5rem 0; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ===== WA FLOATING ===== */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition); animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: all 0.7s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: #fff;
    padding: 2rem; gap: 1.5rem; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .car-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .location-card { flex-direction: column; text-align: center; padding: 2rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
