/* SIMPLY LOGISTIC - Modern Corporate Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --primary: #0066cc;
  --primary-dark: #004c99;
  --primary-light: #3388ff;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-blue: #0284c7;
  --bg-light: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono-tech {
  font-family: 'Space Grotesk', monospace;
}

/* Custom Gradients */
.bg-gradient-radial-blue {
  background: radial-gradient(circle at 50% 0%, rgba(0, 102, 204, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.bg-gradient-brand {
  background: linear-gradient(135deg, #0066cc 0%, #0284c7 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transparent Ultra-Blurred Header */
.glass-header {
  background: rgba(10, 15, 30, 0.35) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-header.scrolled,
.glass-header-solid {
  background: rgba(10, 15, 30, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

/* Brand Blue Highlight matching header LOGISTIC (#0066cc) */
.text-brand-highlight {
  color: #0066cc !important;
  text-shadow: 0 0 24px rgba(0, 102, 204, 0.75), 0 2px 6px rgba(0, 0, 0, 0.95);
  font-weight: 900;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 102, 204, 0.1), 0 8px 10px -6px rgba(0, 102, 204, 0.05);
}

/* Glowing accent effects */
.glow-primary {
  box-shadow: 0 0 25px rgba(0, 102, 204, 0.35);
}

/* Pulse animation for live indicators */
@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-pulse {
  animation: pulse-dot 2s infinite;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  color: white;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out forwards;
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.toast-info {
  background: linear-gradient(135deg, #0066cc, #0284c7);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Drawer & Backdrop (Pure CSS Transitions, Stacking Safe) */
#mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background-color: #ffffff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu.active {
  transform: translateX(0);
}

/* Floating WhatsApp / Phone button */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Map container styling */
#map {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  z-index: 10;
}

/* Stat Cards & Key Numbers Animations */
.stat-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: 0.6s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 30px -10px rgba(0, 102, 204, 0.35);
}

.stat-card:hover::before {
  left: 100%;
}

.stat-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}

.stat-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-float-subtle {
  animation: float-badge 3s ease-in-out infinite;
}

/* ==============================================================================
   KEN BURNS HERO SLIDER & CINEMATIC TRANSITIONS
   ============================================================================== */

.kenburns-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background-color: #050b18;
}

@media (min-width: 768px) {
  .kenburns-hero {
    min-height: 700px;
  }
}

@media (min-width: 1280px) {
  .kenburns-hero {
    min-height: 740px;
  }
}

.kb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity;
}

.kb-slide.kb-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* Ken Burns background image */
.kb-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.kb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  filter: brightness(0.48) contrast(1.12);
  will-change: transform;
}

/* Variations of slow pan & zoom for each slide */
.kb-active .kb-anim-1 {
  animation: kb-zoom-in 9s ease-out forwards;
}

.kb-active .kb-anim-2 {
  animation: kb-pan-right 9s ease-out forwards;
}

.kb-active .kb-anim-3 {
  animation: kb-zoom-out 9s ease-out forwards;
}

.kb-active .kb-anim-4 {
  animation: kb-pan-left 9s ease-out forwards;
}

.kb-active .kb-anim-5 {
  animation: kb-zoom-in-center 9s ease-out forwards;
}

.kb-active .kb-anim-6 {
  animation: kb-pan-up 9s ease-out forwards;
}

@keyframes kb-zoom-in {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1.5%, -1%); }
}

@keyframes kb-pan-right {
  0% { transform: scale(1.12) translate(-2%, 0); }
  100% { transform: scale(1.03) translate(1.5%, -1%); }
}

@keyframes kb-zoom-out {
  0% { transform: scale(1.15) translate(1%, 1%); }
  100% { transform: scale(1.02) translate(-1%, -0.5%); }
}

@keyframes kb-pan-left {
  0% { transform: scale(1.04) translate(2%, 0); }
  100% { transform: scale(1.14) translate(-2%, -1%); }
}

@keyframes kb-zoom-in-center {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(0, -1.5%); }
}

@keyframes kb-pan-up {
  0% { transform: scale(1.10) translate(0, 2%); }
  100% { transform: scale(1.03) translate(0, -2%); }
}

/* Slide Content Entrance Animation */
.kb-content-box {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kb-content-box.kb-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.kb-text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.95), 0 4px 16px rgba(0, 0, 0, 0.9);
}

/* Ken Burns Progress Bar & Tabs */
.kb-progress-fill {
  width: 0%;
  transition: width 6.5s linear;
}

/* ==============================================================================
   FLEET & TEAM SHOWCASE CAROUSEL (Google Stitch "Precision Logistics" Design)
   ============================================================================== */
.fleet-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
}

.fleet-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.fleet-caption {
  animation: fleetCaptionFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fleetCaptionFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fleet-dot {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================================================
   SUPERVAN-STYLE BOOKING ENGINE & ADDRESS AUTOCOMPLETE STYLES
   ============================================================================== */
.address-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 60;
  max-height: 220px;
  overflow-y: auto;
}

.address-item {
  padding: 9px 12px;
  font-size: 11px;
  color: #f1f5f9;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: background 0.15s ease;
  line-height: 1.35;
}

.address-item:last-child {
  border-bottom: none;
}

.address-item:hover, .address-item.selected {
  background: rgba(14, 165, 233, 0.22);
  color: #ffffff;
}

.address-item .address-city {
  font-size: 10px;
  color: #94a3b8;
  display: block;
}

.waypoint-item {
  animation: waypointSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waypointSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.date-pill.active {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

#btn-asap.active {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}



