/* --- Modern Topbar (Navbar) Redesign --- */
.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 12px 24px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s ease !important;
}

.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.brand-text {
  display: flex !important;
  flex-direction: column !important;
}

.brand-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.brand-subtitle {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

.nav-link:hover {
  background-color: #f1f5f9 !important;
  color: #2563eb !important;
}

.header-tracking-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  order: 3 !important; /* Place it at the end nicely */
}

.header-tracking-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}

/* pulse dot animation inside tracking btn */
.pulse-dot {
  width: 8px !important;
  height: 8px !important;
  background-color: #ef4444 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7) !important;
  animation: pulse-red 2s infinite !important;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important; /* Managed by hamburger */
  }
  .header-tracking-btn {
    display: none !important; /* Hide on small mobile to keep topbar clean */
  }
}


/* --- Modern Homepage Redesign --- */

.landing-page {
  background-color: #f8fafc !important;
  min-height: 100vh !important;
  padding-bottom: 64px !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
  padding: 80px 24px 60px !important;
  text-align: center !important;
  color: white !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom-left-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3) !important;
  margin-bottom: -40px !important;
}

/* Abstract shapes for hero background */
.hero-section::before {
  content: '' !important;
  position: absolute !important;
  top: -50px !important;
  left: -50px !important;
  width: 200px !important;
  height: 200px !important;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%) !important;
  border-radius: 50% !important;
}
.hero-section::after {
  content: '' !important;
  position: absolute !important;
  bottom: -100px !important;
  right: -50px !important;
  width: 300px !important;
  height: 300px !important;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%) !important;
  border-radius: 50% !important;
}

.hero-section h1 {
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  position: relative !important;
  z-index: 10 !important;
}

.hero-section .hero-subtitle {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: #e0e7ff !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Search Container */
.search-container {
  background: white !important;
  border-radius: 24px !important;
  padding: 32px !important;
  max-width: 900px !important;
  margin: 0 auto 40px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05) !important;
  position: relative !important;
  z-index: 20 !important;
  border: 1px solid rgba(0,0,0,0.02) !important;
}

.search-container h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 24px !important;
  text-align: left !important;
}

.form-row {
  display: flex !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
}

.form-group {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.form-group label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 8px !important;
}

.form-group input {
  padding: 16px 20px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 1.05rem !important;
  color: #1e293b !important;
  transition: all 0.2s ease !important;
  background-color: #f8fafc !important;
}

.form-group input:focus {
  border-color: #3b82f6 !important;
  background-color: white !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.search-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  padding: 16px 32px !important;
  border-radius: 12px !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.search-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
}

.search-btn:disabled {
  background: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Quick Actions */
.quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  justify-content: center !important;
  max-width: 1000px !important;
  margin: 0 auto 60px !important;
  padding: 0 20px !important;
}

.cta-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 24px !important;
  background: white !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  min-width: 160px !important;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0,0,0,0.03) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(0,0,0,0.02) !important;
}

.cta-btn.cta-primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
}

.cta-btn:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0,0,0,0.05) !important;
}

.cta-btn.cta-primary:hover {
  box-shadow: 0 12px 25px -5px rgba(16, 185, 129, 0.3) !important;
}

/* Content Sections */
.content-section {
  max-width: 1200px !important;
  margin: 0 auto 60px !important;
  padding: 0 24px !important;
}

.content-section h2 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center !important;
  margin-bottom: 40px !important;
  position: relative !important;
}

.content-section h2::after {
  content: '' !important;
  position: absolute !important;
  bottom: -12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60px !important;
  height: 4px !important;
  background: #3b82f6 !important;
  border-radius: 2px !important;
}

.grid-layout {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 32px !important;
}

.feature-card {
  background: white !important;
  padding: 32px !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(0,0,0,0.03) !important;
}

.feature-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.feature-card h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.feature-card h3::before {
  content: '✦' !important;
  color: #3b82f6 !important;
  font-size: 1.5rem !important;
}

.feature-card p {
  color: #64748b !important;
  line-height: 1.7 !important;
  font-size: 0.95rem !important;
}

/* Popular Routes Section */
.popular-routes {
  background: white !important;
  padding: 60px 24px !important;
  border-radius: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto 60px !important;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05) !important;
}

.route-card {
  background: #f8fafc !important;
  padding: 24px !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  color: inherit !important;
}

.route-card:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  transform: scale(1.02) !important;
}

.route-info {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.route-cities {
  font-weight: 700 !important;
  color: #1e293b !important;
  font-size: 1.1rem !important;
}

.route-arrow {
  color: #94a3b8 !important;
  margin: 0 8px !important;
}

.route-trains {
  color: #64748b !important;
  font-size: 0.9rem !important;
}

