/* ============================================================
   SWIVICS – Custom CSS (HTML + Bootstrap Version)
   ============================================================ */

/* ---------- Google Font ---------- */
* { font-family: 'Inter', sans-serif; box-sizing: border-box; }

/* ---------- CSS Variables ---------- */
:root {
  --primary: #004AAD;
  --primary-light: rgba(29,78,216,0.08);
  --primary-hover: #1e40af;
  --dark: #111827;
  --text-gray: #4b5563;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
}

html { scroll-behavior: smooth; }
body { color: var(--dark); background: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNavbar {
  padding-top: 0; padding-bottom: 0;
}
#mainNavbar .container { padding-top: 14px; padding-bottom: 14px; }

.logo-circle {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-left: 0.5rem;
}

.nav-link-custom {
  font-weight: 600;
  color: #374151 !important;
  position: relative;
  padding-bottom: 4px !important;
  transition: color 0.25s;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link-custom:hover { color: var(--primary) !important; }
.nav-link-custom:hover::after { width: 100%; }
.nav-link-custom.active { color: var(--primary) !important; }
.nav-link-custom.active::after { width: 100%; }

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-primary-custom:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(29,78,216,0.3);
  transform: translateY(-2px);
  color: #fff;
}
.btn-primary-custom:active { transform: translateY(0); }

.btn-dark-custom {
  background: #111827;
  color: #fff;
  border: none;
  font-weight: 700;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-dark-custom:hover {
  background: #1f2937;
  box-shadow: 0 8px 24px rgba(17,24,39,0.3);
  transform: translateY(-2px);
  color: #fff;
}

.hamburger-icon {
  display: flex; flex-direction: column; gap: 5px;
  width: 22px;
}
.hamburger-icon span {
  display: block; height: 2px; width: 100%;
  background: #374151; border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  padding: 80px 0 100px;
}

.hero-bg-blob {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  background: var(--primary-light);
  border-radius: 9999px 0 0 9999px;
  z-index: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.00;
  color: #111827;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.text-primary-custom { color: var(--primary); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-btn {
  font-size: 1rem;
  transition: box-shadow 0.25s, transform 0.2s;
}

/* ---- Mockup ---- */
.mockup-wrapper {
  position: relative;
  width: 320px;
  height: 420px;
}

@media (min-width: 992px) {
  .mockup-wrapper { width: 380px; height: 480px; }
}

.mockup-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-radius: 28px;
  transform: rotate(3deg) scale(1.06);
  opacity: 0.15;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

.mockup-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 8px solid #f3f4f6;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-map {
  flex: 1;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  position: relative;
  overflow: hidden;
}

.map-dots { position: absolute; inset: 0; }
.map-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: #93c5fd;
  border-radius: 50%;
  border: 2px solid #fff;
}
.map-dot.active {
  width: 16px; height: 16px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(29,78,216,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(29,78,216,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(29,78,216,0.08); }
}

.route-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.map-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

/* Status card inside hero mockup */
.status-card {
  background: #fff;
  margin: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.status-icon {
  width: 36px; height: 36px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.status-dot {
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
}
.status-title { font-size: 0.875rem; font-weight: 700; color: #111827; }
.status-sub { font-size: 0.75rem; color: var(--text-gray); }

.bg-primary-bar { background: var(--primary) !important; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.bg-light-gray { background: #f9fafb; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #111827;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 650px;
}

/* Badge pills */
.badge-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-dark { background: #111827; color: #fff; }

.feature-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}
.feature-desc {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Feature cards */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  height: 100%;
}
.feature-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}
.feature-card:hover .feature-icon.icon-primary {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.feature-card:hover .feature-icon.icon-dark {
  background: #111827;
  color: #fff;
  transform: scale(1.1);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }

.icon-primary { background: var(--primary-light); color: var(--primary); }
.icon-dark { background: #f3f4f6; color: #111827; }

.feature-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}
.feature-card-desc {
  font-size: 0.78rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Ride Info Card (Passenger) */
.ride-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  /* max-width: 360px; */
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s;
}
.ride-info-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(40px);
}
.ride-info-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
  transform: translateY(-6px);
}

.badge-on-way {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.driver-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  flex-shrink: 0;
}

.eta-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.text-primary-custom { color: var(--primary); }

/* ---- Driver section ---- */
.driver-section { background: #f9fafb; }

.driver-bg-blob {
  position: absolute;
  top: 0; left: 0;
  width: 45%;
  height: 100%;
  background: var(--primary-light);
  border-radius: 0 9999px 9999px 0;
  z-index: 0;
}

.driver-mockup-wrapper {
  position: relative;
  width: 300px; height: 380px;
}
@media (min-width: 992px) {
  .driver-mockup-wrapper { width: 360px; height: 440px; }
}

.driver-mockup-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-radius: 28px;
  transform: rotate(3deg) scale(1.06);
  opacity: 0.15;
  animation: pulse-glow 3s ease-in-out infinite;
}

.driver-mockup-card {
  position: absolute; inset: 0;
  background: #fff;
  border: 8px solid #f3f4f6;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.5s;
}
.driver-mockup-card:hover { transform: translateY(-8px); }

.driver-mockup-map {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: center;
  /* padding: 24px; */
}

.earnings-widget {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  width: 100%;
}
.earnings-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.earnings-value { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.earnings-bar-wrap {
  height: 8px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden;
}
.earnings-bar {
  height: 100%; width: 72%; background: #60a5fa; border-radius: 999px;
}
.earnings-sub { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.text-success-custom { color: #4ade80 !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  background: linear-gradient(to bottom, #0b1120, #0a192f, #0c1f3f);
  border-top: 1px solid #1f2937;
  padding: 80px 0 32px;
}

.footer-logo-circle {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px;
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.footer-brand-link:hover .footer-logo-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
}

.footer-brand-name {
  font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.5px;
}

.footer-body-text { color: #9ca3af; font-size: 0.875rem; line-height: 1.7; max-width: 280px; }

.footer-heading { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem; }

.footer-links { margin: 0; }
.footer-links li { margin-bottom: 14px; }
.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  transition: color 0.25s, transform 0.25s;
}
.footer-links a:hover { color: #60a5fa; transform: translateX(4px); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1f2937;
}
.footer-copy { color: #6b7280; font-size: 0.825rem; }

.social-icon {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}
.social-icon:hover { color: #60a5fa; transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
  .hero-section { padding: 60px 0 80px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .feature-heading { font-size: 1.5rem; }
  .mockup-wrapper { width: 280px; height: 360px; }
  .ride-info-card { max-width: 100%; }
  .driver-mockup-wrapper { width: 260px; height: 340px; }
}
