/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - MY COLIS (2026)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Brand Colors */
  --primary-rgb: 10, 45, 82;     /* #0a2d52 */
  --secondary-rgb: 13, 162, 224; /* #0da2e0 */
  
  --primary: rgb(var(--primary-rgb));
  --primary-hover: #061b32;
  --secondary: rgb(var(--secondary-rgb));
  --secondary-hover: #0b8ec5;
  --accent-light: #e0f2fe;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout Constants */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Light Theme (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f8fc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-color: rgba(10, 45, 82, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(10, 45, 82, 0.08);
  --shadow-sm: 0 2px 8px rgba(10, 45, 82, 0.04);
  --shadow-md: 0 12px 24px rgba(10, 45, 82, 0.06);
  --shadow-lg: 0 20px 40px rgba(10, 45, 82, 0.1);
  --input-bg: #ffffff;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --preloader-bg: #061325;
  
  /* Hero background overlay light mode */
  --hero-overlay: linear-gradient(to right, rgba(255, 255, 255, 0.96) 20%, rgba(255, 255, 255, 0.6) 100%);
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-primary: #061325;
  --bg-secondary: #0a1b32;
  --bg-card: #0e2442;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #061325;
  --border-color: rgba(13, 162, 224, 0.15);
  --glass-bg: rgba(6, 19, 37, 0.75);
  --glass-border: rgba(13, 162, 224, 0.15);
  
  /* Hero background overlay dark mode */
  --hero-overlay: linear-gradient(to right, rgba(6, 19, 37, 0.96) 20%, rgba(6, 19, 37, 0.6) 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --input-bg: #0a1b32;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SCROLLBAR & UTILITIES
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--border-radius-full);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 55px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 35px 0;
  }
}

.text-center { text-align: center; }

.section-header {
  max-width: 650px;
  margin: 0 auto 30px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(13, 162, 224, 0.1);
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d7c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(10, 45, 82, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 45, 82, 0.35);
  background: linear-gradient(135deg, #123e6b 0%, #061b32 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-3px);
  background: rgba(13, 162, 224, 0.03);
}

.btn-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, #0873ab 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(13, 162, 224, 0.2);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 162, 224, 0.35);
  background: linear-gradient(135deg, #0ba0dd 0%, #075f8e 100%);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--preloader-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader-logo {
  width: 100px;
  height: 100px;
  position: relative;
  margin-bottom: 30px;
  animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-track {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  position: relative;
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), #60a5fa);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--border-radius-full);
}

.preloader-text {
  margin-top: 15px;
  font-family: var(--font-title);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.8;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(13, 162, 224, 0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(13, 162, 224, 0.8)); }
}

@keyframes loadingProgress {
  0% { width: 0%; }
  20% { width: 15%; }
  50% { width: 65%; }
  80% { width: 90%; }
  100% { width: 100%; }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 162, 224, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo img {
  height: 52px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

/* Logo light/dark visibility switches */
.logo-dark-img {
  display: none !important;
}

.logo-light-img {
  display: inline-block !important;
}

body.dark-theme .logo-dark-img {
  display: inline-block !important;
}

body.dark-theme .logo-light-img {
  display: none !important;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Switcher Toggle */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
  background: var(--bg-secondary);
  color: var(--secondary);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

body.dark-theme .theme-toggle-btn .fa-moon {
  display: none;
}

body.dark-theme .theme-toggle-btn .fa-sun {
  display: block;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  flex: 1;
}

@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  
  .nav-links-wrapper {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 85px);
    background: var(--bg-primary);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links-wrapper.open {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    width: 100%;
  }
  
  .nav-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 20px;
  }
  
  .theme-toggle-btn {
    align-self: center;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* ==========================================================================
   HERO SECTION (Kadex inspired)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 70px 0;
  background-image: var(--hero-overlay), url('hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax scroll */
  overflow: hidden;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 5;
}

.hero-unlimited {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(13, 162, 224, 0.1);
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.05;
  color: var(--text-main);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

.hero h1 span {
  font-style: italic;
  display: inline-block;
  padding-right: 0.15em;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-theme .hero h1 span {
  background: linear-gradient(135deg, #60a5fa 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Quick Tracking Input (Hero UX) */
.hero-tracking-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 8px 8px 24px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 550px;
  margin-bottom: 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.hero-tracking-box:hover {
  transform: translateY(-2px);
}

.hero-tracking-box:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(13, 162, 224, 0.15);
}

.hero-tracking-box i.input-icon {
  color: var(--secondary);
  font-size: 1.1rem;
}

.hero-tracking-box input {
  border: none;
  background: transparent;
  color: var(--text-main);
  flex: 1;
  font-size: 1rem;
  padding: 10px 0;
  font-weight: 500;
}

.hero-tracking-box input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

@media (max-width: 600px) {
  .hero-tracking-box {
    border-radius: var(--border-radius-md);
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .hero-tracking-box input {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
  }
  .hero-tracking-box .btn {
    width: 100%;
  }
  .hero-tracking-box i.input-icon {
    display: none;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual Frame (Cleaned up) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* HUD Ops Terminal Widget */
.hud-terminal {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 45, 82, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: transform 0.4s ease, border-color 0.4s;
}

body.dark-theme .hud-terminal {
  background: rgba(4, 15, 28, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.hud-terminal:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 162, 224, 0.3);
}

/* Header */
.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-dots {
  display: flex;
  gap: 6px;
}

.hud-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hud-dots .dot.red { background: #ef4444; }
.hud-dots .dot.yellow { background: #f59e0b; }
.hud-dots .dot.green { background: #10b981; }

.hud-title {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.hud-status {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--success);
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Map Simulator */
.hud-map-simulator {
  height: 200px;
  background: #04101f;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}

.city-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.city-node.active .city-dot {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
}

.city-node.active .city-dot::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  animation: mapPulse 1.8s infinite ease-out;
}

.city-name {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.city-node.active .city-name {
  color: #ffffff;
}

.simulation-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Courier bike following path */
.simulated-courier {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 0 8px var(--secondary);
  z-index: 4;
  offset-path: path("M 60 40 Q 140 50 180 110");
  animation: moveCourier 6s infinite linear;
}

@keyframes moveCourier {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Logs */
.hud-logs {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-code);
  font-size: 0.7rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 95px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.log-entry {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-entry.system { color: #94a3b8; }
.log-entry.info { color: #38bdf8; }
.log-entry.warning { color: #f59e0b; }
.log-entry.success { color: #4ade80; }

/* Metrics */
.hud-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

.hud-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-metric:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-val {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

.metric-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}

.hero-visual-bg {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(13, 162, 224, 0.12) 0%, transparent 70%);
  z-index: 1;
  top: -15%;
  left: -15%;
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge-1 {
  top: 15%;
  left: -10px;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 15%;
  right: -10px;
  animation-delay: 2s;
}

@media (max-width: 1200px) {
  .floating-badge {
    display: none;
  }
}

.floating-badge i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.floating-badge span.badge-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  display: block;
}

body.dark-theme .floating-badge span.badge-num {
  color: var(--secondary);
}

.floating-badge span.badge-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.metrics {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.metric-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
}

body.dark-theme .metric-num {
  color: var(--secondary);
}

.metric-num span {
  color: var(--secondary);
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ==========================================================================
   TRACKING SECTION
   ========================================================================== */
.tracking-results-section {
  padding: 100px 0;
  background: var(--bg-primary);
  display: none; /* Shown dynamically when tracked */
}

.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .tracking-card {
    padding: 24px;
  }
}

.tracking-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.tracking-title-box h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.tracking-title-box span.tracking-code {
  color: var(--secondary);
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.tracking-status-badge {
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Timeline vertical/horizontal wrapper */
.timeline-wrapper {
  overflow-x: auto;
  padding: 20px 0;
}

.timeline-flow {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-width: 900px;
  padding-bottom: 40px;
}

.timeline-line-bg {
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
  border-radius: var(--border-radius-full);
}

.timeline-line-progress {
  position: absolute;
  top: 24px;
  left: 5%;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--success));
  z-index: 2;
  border-radius: var(--border-radius-full);
  transition: width 1s ease-out;
}

.timeline-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12%;
  text-align: center;
}

.node-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.timeline-node.active .node-icon-circle {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 15px rgba(13, 162, 224, 0.4);
}

.timeline-node.completed .node-icon-circle {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
}

.timeline-node.completed-success .node-icon-circle {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.timeline-node.completed-warning .node-icon-circle {
  background: var(--warning);
  border-color: var(--warning);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.timeline-node.completed-danger .node-icon-circle {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.node-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-node.active .node-label,
.timeline-node.completed .node-label,
.timeline-node.completed-success .node-label,
.timeline-node.completed-warning .node-label,
.timeline-node.completed-danger .node-label {
  color: var(--text-main);
}

.node-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRESENTATION SECTION
   ========================================================================== */
.presentation {
  background: var(--bg-primary);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.presentation-images {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Dashboard Mockup in presentation section */
.dashboard-mockup {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(10, 45, 82, 0.08);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.dashboard-mockup:hover {
  transform: translateY(-5px);
}

body.dark-theme .dashboard-mockup {
  background: rgba(14, 36, 66, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(13, 162, 224, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(10, 45, 82, 0.03);
  border-bottom: 1px solid var(--border-color);
}

body.dark-theme .dash-header {
  background: rgba(0, 0, 0, 0.2);
}

.dash-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  display: inline-block;
}

.pulse-dot-green::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--success);
  border-radius: 50%;
  animation: mapPulse 1.5s infinite ease-out;
}

.dash-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-stat {
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

body.dark-theme .dash-stat {
  background: rgba(255, 255, 255, 0.02);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-val.text-green {
  color: var(--success);
}

.dash-api-key {
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

body.dark-theme .dash-api-key {
  background: rgba(255, 255, 255, 0.02);
}

.api-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.api-val {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--secondary);
  word-break: break-all;
  display: block;
}

.dash-recent {
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

body.dark-theme .dash-recent {
  background: rgba(255, 255, 255, 0.02);
}

.recent-shipment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.ship-id {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.ship-status.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.pres-badge-years {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.pres-badge-years span.years-num {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.pres-badge-years span.years-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.presentation-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.presentation-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.pres-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 576px) {
  .pres-features {
    grid-template-columns: 1fr;
  }
}

.pres-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pres-feat-item i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.pres-feat-item span {
  font-weight: 600;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 162, 224, 0.3);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: rgba(13, 162, 224, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background: var(--secondary);
  color: #ffffff;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-us {
  background: var(--bg-primary);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

.why-us-content h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 20px;
}

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 45, 82, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

body.dark-theme .why-icon {
  background: rgba(13, 162, 224, 0.1);
  color: var(--secondary);
}

.why-item:hover .why-icon {
  background: var(--secondary);
  color: #ffffff;
  transform: scale(1.08);
}

.why-text h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.why-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Visual Mockup Why Us */
.why-us-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
}

.dashboard-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dash-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.dash-header h5 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  flex-grow: 1;
}

.dash-badge {
  font-size: 0.75rem;
  background: rgba(13, 162, 224, 0.1);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

.dash-chart-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dash-svg-chart {
  width: 100%;
  height: 100%;
}

.dash-pulse-circle {
  animation: mapPulse 2s infinite ease-out;
  transform-origin: 120px 45px;
}

@keyframes mapPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 48px 32px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 162, 224, 0.2);
}

.step-num {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(10, 45, 82, 0.3);
}

.step-icon-wrapper {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.step-card:hover .step-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Connective lines for desktop stepper */
@media (min-width: 993px) {
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 15%;
    right: 15%;
    height: 2px;
    border-top: 2px dashed var(--border-color);
    z-index: 1;
  }
  .step-card {
    z-index: 2;
  }
}

/* ==========================================================================
   TRANSIT ANIMATION SECTION (COLIS AVEC BORDEREAU)
   ========================================================================== */
.transit-animation-section {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.transit-track {
  width: 100%;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
}

/* A glowing grid lines overlay for tech aesthetics */
.transit-track::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
              rgba(13, 162, 224, 0) 0%, 
              var(--secondary) 20%, 
              var(--secondary) 80%, 
              rgba(13, 162, 224, 0) 100%);
  box-shadow: 0 0 10px var(--secondary);
  z-index: 1;
}

.transit-track-dashes {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 8px;
  background-image: linear-gradient(90deg, var(--bg-primary) 50%, transparent 50%);
  background-size: 40px 100%;
  z-index: 2;
}

.transit-package {
  position: absolute;
  left: -250px;
  top: calc(50% - 60px);
  width: 180px;
  height: 120px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-animation .transit-package {
  animation: driveColis 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes driveColis {
  0% {
    left: -250px;
  }
  100% {
    left: 105%;
  }
}

/* speed lines trailing the package */
.transit-trails {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.start-animation .transit-trails {
  opacity: 0.8;
}

.trail-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary));
  border-radius: var(--border-radius-full);
}

.trail-line:nth-child(1) { width: 120px; align-self: flex-end; animation: trailShift 1s infinite linear; }
.trail-line:nth-child(2) { width: 80px; align-self: flex-end; animation: trailShift 1.3s infinite linear; }
.trail-line:nth-child(3) { width: 140px; align-self: flex-end; animation: trailShift 0.8s infinite linear; }

@keyframes trailShift {
  0% { transform: scaleX(0.8); }
  50% { transform: scaleX(1.2); }
  100% { transform: scaleX(0.8); }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}

.testimonials-wrapper {
  position: relative;
  height: 340px;
  perspective: 1000px;
}

@media (max-width: 600px) {
  .testimonials-wrapper {
    height: 420px;
  }
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, -200px) scale(0.8);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s, visibility 0.6s;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1) rotateY(0);
  z-index: 5;
  pointer-events: auto;
}

.testimonial-slide.next {
  opacity: 0.5;
  visibility: visible;
  transform: translate3d(22%, 0, -100px) scale(0.9) rotateY(-12deg);
  z-index: 3;
  pointer-events: none;
}

.testimonial-slide.prev {
  opacity: 0.5;
  visibility: visible;
  transform: translate3d(-22%, 0, -100px) scale(0.9) rotateY(12deg);
  z-index: 3;
  pointer-events: none;
}

.test-rating {
  color: #fbbf24;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.test-quote {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
  font-style: italic;
}

@media (max-width: 600px) {
  .test-quote {
    font-size: 1.05rem;
  }
}

.test-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13, 162, 224, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-title);
  border: 2px solid var(--border-color);
}

.test-info h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.test-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--secondary);
  width: 24px;
  border-radius: var(--border-radius-full);
}

/* ==========================================================================
   COVERAGE / MAP SECTION
   ========================================================================== */
.coverage {
  background: var(--bg-primary);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }
}



.hubs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coverage-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.info-card-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.coverage-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  font-family: var(--font-title);
}

.coverage-info-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 15px;
  font-size: 0.98rem;
}

.coverage-sub-info {
  font-size: 0.88rem !important;
  opacity: 0.85;
}

.coverage-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 162, 224, 0.08);
  border: 1px dashed rgba(13, 162, 224, 0.3);
  color: var(--secondary);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 15px;
}

.map-container-3d {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  height: 480px;
}

@media (max-width: 768px) {
  .map-container-3d {
    height: 400px;
  }
}

.tunisia-dot-map {
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 440px;
  overflow: visible;
}

.map-dot {
  fill: rgba(148, 163, 184, 0.12);
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1.5px;
  transition: fill 0.6s cubic-bezier(0.19, 1, 0.22, 1), stroke 0.6s, filter 0.6s;
}

.map-dot.active {
  fill: var(--secondary);
  stroke: #60a5fa;
  filter: drop-shadow(0 0 5px var(--secondary));
}

.map-link {
  stroke: rgba(148, 163, 184, 0.08);
  stroke-width: 1px;
  stroke-dasharray: 2,2;
  transition: stroke 0.6s, stroke-width 0.6s;
}

.map-link.active {
  stroke: rgba(96, 165, 250, 0.35);
  stroke-width: 1.5px;
  stroke-dasharray: none;
}

.tunisia-dot-map {
  width: 100%;
  height: 100%;
  max-width: 230px;
  max-height: 470px;
  overflow: visible;
}

.tunisia-governorate {
  fill: rgba(148, 163, 184, 0.015);
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.6s cubic-bezier(0.19, 1, 0.22, 1), stroke 0.6s, filter 0.6s;
}

.tunisia-governorate.active {
  fill: rgba(57, 255, 20, 0.04);
  stroke: #39ff14;
  stroke-width: 2px;
  filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.8));
}

.map-dot {
  fill: rgba(148, 163, 184, 0.15);
  stroke: rgba(148, 163, 184, 0.3);
  stroke-width: 2px;
  transition: fill 0.6s cubic-bezier(0.19, 1, 0.22, 1), stroke 0.6s, filter 0.6s;
}

.map-dot.active {
  fill: var(--secondary);
  stroke: #60a5fa;
  filter: drop-shadow(0 0 8px var(--secondary));
}

.map-link {
  stroke: rgba(148, 163, 184, 0.08);
  stroke-width: 2px;
  stroke-dasharray: 4,4;
  transition: stroke 0.6s, stroke-width 0.6s;
}

.map-link.active {
  stroke: rgba(96, 165, 250, 0.45);
  stroke-width: 3px;
  stroke-dasharray: none;
}

.map-label {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  fill: var(--text-muted);
  opacity: 0;
  pointer-events: auto; /* Enable mouse hover on labels directly */
  transition: fill 0.3s, opacity 0.3s, font-size 0.3s, transform 0.3s;
}

.map-label.active {
  fill: var(--text-main);
  opacity: 0.9;
}

/* Enlarge text when dot is hovered or label is hovered directly */
.map-dot:hover + .map-label,
.map-label:hover {
  font-size: 21px !important;
  fill: var(--secondary) !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  cursor: pointer;
}

/* Highlight dot on hover */
.map-dot:hover {
  fill: var(--secondary) !important;
  stroke: #ffffff !important;
  cursor: pointer;
  filter: drop-shadow(0 0 10px var(--secondary));
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq {
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-header {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 162, 224, 0.05);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
  padding: 0 24px;
}

.faq-body-content {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Active State */
.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--secondary);
  color: #ffffff;
}

.faq-item.active .faq-body {
  padding: 0 24px 24px 24px;
}

/* ==========================================================================
   CONTACT & DEVIS (TABS INTERACTION)
   ========================================================================== */
.contact-devis {
  background: var(--bg-primary);
}

.contact-card-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--secondary);
  box-shadow: inset 0 -3px 0 var(--secondary);
}

@media (max-width: 600px) {
  .tab-btn {
    padding: 16px 8px;
    font-size: 0.95rem;
  }
}

.tabs-body {
  padding: 48px;
}

@media (max-width: 768px) {
  .tabs-body {
    padding: 24px;
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-control-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control-wrapper i {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(13, 162, 224, 0.12);
}

textarea.form-control {
  padding-left: 20px;
  min-height: 150px;
  resize: vertical;
}

/* Success/Error messages for forms */
.form-feedback {
  padding: 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: block;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #061526;
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 52px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.social-btn.whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
}

.social-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-contact-item strong {
  color: #ffffff;
  display: block;
}

/* Footer map embed */
.footer-map-wrapper {
  height: 180px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
}

.footer-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links button {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

.footer-bottom-links button:hover {
  color: var(--secondary);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & CALL)
   ========================================================================== */
.floating-ctas {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.float-whatsapp {
  background-color: #25d366;
}

.float-call {
  background-color: var(--secondary);
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 19, 37, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  padding: 16px;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

/* Modal Branding Header */
.modal-header {
  padding: 40px 40px 24px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 600px) {
  .modal-header {
    padding: 30px 20px 20px 20px;
    flex-direction: column;
    text-align: center;
  }
}

.modal-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: rgba(13, 162, 224, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.modal-title-box h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.modal-title-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-body {
  padding: 40px;
}

@media (max-width: 600px) {
  .modal-body {
    padding: 20px;
  }
}

/* Select option styles in Modal */
.modal-select {
  cursor: pointer;
}

/* Privacy Body details */
.privacy-body {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-body h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 24px 0 8px 0;
}

.privacy-body h3:first-of-type {
  margin-top: 0;
}

.privacy-body p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer classes)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Custom Cursor (glowing cyan dot trailing mouse) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: rgba(13, 162, 224, 0.12);
  border: 1.5px solid rgba(13, 162, 224, 0.45);
  box-shadow: 0 0 15px rgba(13, 162, 224, 0.25);
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
  mix-blend-mode: screen; /* beautiful blend on both light & dark bg */
}

/* On hoverable elements, the cursor expands and becomes visible */
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Premium Button Sweep Hover Animation */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(13, 162, 224, 0.4);
}

.btn:hover::after {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

/* Theme Toggle spin hover */
.theme-toggle-btn i {
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
  transform: rotate(25deg);
}

/* Interactive zoom-in expansion for timeline nodes */
.timeline-node {
  transition: transform 0.3s ease;
}

.timeline-node:hover {
  transform: scale(1.08);
}

.timeline-node:hover .node-icon-circle {
  box-shadow: 0 0 15px var(--secondary);
}
