/* ==========================================================================
   HK LOGISTICS - PREMIUM DESIGN SYSTEM & STYLESHEET
   Supports Dark (default) and Light theme via CSS variables.
   ========================================================================== */

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

:root {
  /* Theme variables - DARK (Default) */
  --bg-primary: #070b19;
  --bg-secondary: #0d1527;
  --bg-tertiary: #131e36;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.3);
  --accent-cyan-glow: rgba(0, 240, 255, 0.2);
  --accent-orange: #ff9f1c;
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  
  /* Glassmorphism settings */
  --glass-bg: rgba(13, 21, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 240, 255, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e5eaf3;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --accent-cyan: #0d9488;
  --accent-blue: #1d4ed8;
  --accent-blue-glow: rgba(29, 78, 216, 0.15);
  --accent-cyan-glow: rgba(13, 148, 136, 0.15);
  --accent-orange: #d97706;
  --accent-green: #059669;
  --accent-green-glow: rgba(5, 150, 105, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(13, 148, 136, 0.4);
  --glass-shadow: rgba(31, 41, 55, 0.08);
  --card-shadow: 0 8px 32px 0 rgba(31, 41, 55, 0.08);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION (WITH GLASSMORPHISM)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px var(--glass-shadow);
  transition: background var(--transition-normal), border-color var(--transition-normal), padding var(--transition-normal);
}

header.scrolled {
  padding: 8px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 42px;
  height: 42px;
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-top: -4px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  color: var(--text-secondary);
  padding: 8px 0;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width var(--transition-normal);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Right Options */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Light/Dark Toggle Switch */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.theme-toggle-btn .sun-icon {
  fill: var(--accent-orange);
  opacity: 0;
  transform: translateY(30px) rotate(120deg);
}

.theme-toggle-btn .moon-icon {
  fill: var(--accent-cyan);
  opacity: 1;
  transform: translateY(0) rotate(0);
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: translateY(-30px) rotate(-120deg);
}

.btn-header-quote {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-blue-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-header-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

/* Mobile Menu Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
}

.burger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   APP VIEWS & PANEL LAYOUT
   ========================================================================== */
main {
  margin-top: 80px;
}

.app-view {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  padding: 60px 0;
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Custom Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px var(--accent-blue-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 32px;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

/* ==========================================================================
   VIEW: HOME (HERO, METRICS, QUICK ACTION)
   ========================================================================== */
.hero-section {
  display: flex;
  align-items: center;
  min-height: calc(85vh - 80px);
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  width: fit-content;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-ring 1.5s infinite;
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 8px;
}

/* Quick Search Tracking Bar */
.hero-search-container {
  max-width: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  padding: 12px 16px;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition-fast);
}

.hero-search-btn:hover {
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Hero Visual Graphic */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-globe-placeholder {
  width: 100%;
  max-width: 450px;
  height: 450px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animated graphic overlay */
.rotating-ring-1 {
  position: absolute;
  width: 90%;
  height: 90%;
  border: 2px dashed rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: rotate-clockwise 40s linear infinite;
}

.rotating-ring-2 {
  position: absolute;
  width: 75%;
  height: 75%;
  border: 1.5px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-bottom-color: var(--accent-blue);
  border-radius: 50%;
  animation: rotate-counter-clockwise 25s linear infinite;
}

.globe-core {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(59, 130, 246, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.globe-core svg {
  width: 55%;
  height: 55%;
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.node-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.node-1 { top: 25%; left: 20%; animation: pulse-ring 2s infinite 0.5s; }
.node-2 { bottom: 30%; right: 15%; animation: pulse-ring 2.5s infinite 1s; }
.node-3 { top: 15%; right: 30%; animation: pulse-ring 1.8s infinite; }

/* Metrics Row */
.metrics-section {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, var(--bg-secondary), transparent);
}

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

.metric-card {
  text-align: center;
  padding: 24px;
  position: relative;
}

.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--glass-border);
}

.metric-number {
  font-size: 48px;
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.metric-number span {
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
}

.metric-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   VIEW: SERVICES (GRID & HIGHLIGHTS)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
}

.service-icon-box svg {
  width: 30px;
  height: 30px;
  fill: var(--accent-blue);
  transition: fill var(--transition-fast), filter var(--transition-fast);
}

.service-card:hover .service-icon-box svg {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
}

.service-title {
  font-size: 22px;
  color: var(--text-primary);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 15px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.service-features li svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-cyan);
}

/* ==========================================================================
   VIEW: TRACKING DASHBOARD
   ========================================================================== */
.tracker-container {
  max-width: 900px;
  margin: 0 auto;
}

.tracker-search-box {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.tracker-search-box input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-fast);
}

.tracker-search-box input:focus {
  border-color: var(--accent-cyan);
}

.tracker-results {
  display: none;
}

.tracker-results.active {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Ship Info Header */
.ship-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
}

.ship-id h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.ship-id p {
  color: var(--text-secondary);
  font-size: 14px;
}

.ship-badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.badge-transit {
  background: rgba(255, 159, 28, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 159, 28, 0.3);
}

.badge-delivered {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Timeline component */
.timeline-wrapper {
  padding: 40px 0;
  position: relative;
}

.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--bg-tertiary);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  top: 25px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  z-index: 2;
  transition: width 1s ease-in-out;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 120px;
  text-align: center;
}

.step-node {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.step-node svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
  transition: fill var(--transition-fast);
}

.timeline-step.completed .step-node {
  border-color: var(--accent-blue);
  background-color: var(--bg-primary);
}

.timeline-step.completed .step-node svg {
  fill: var(--accent-blue);
}

.timeline-step.active .step-node {
  border-color: var(--accent-cyan);
  background-color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.timeline-step.active .step-node svg {
  fill: var(--accent-cyan);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.timeline-step.active .step-label {
  color: var(--accent-cyan);
}

.step-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Shipment Details Grid */
.shipment-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   VIEW: DYNAMIC RATE CALCULATOR
   ========================================================================== */
.calc-container {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.calc-form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fade-in 0.4s ease;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.indicator-dot {
  flex: 1;
  height: 4px;
  background-color: var(--bg-tertiary);
  border-radius: 2px;
}

.indicator-dot.active {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group select, .form-group input {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color var(--transition-fast);
}

.form-group select:focus, .form-group input:focus {
  border-color: var(--accent-cyan);
}

.calc-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

/* Quote Sidebar Card */
.quote-result-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.quote-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.quote-header h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.quote-header p {
  color: var(--text-secondary);
  font-size: 13px;
}

.price-display {
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

.price-currency {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.breakdown-row.total {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Carbon footprint footprint */
.eco-impact-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-green);
  flex-shrink: 0;
}

.eco-details h5 {
  color: var(--accent-green);
  font-size: 14px;
  margin-bottom: 2px;
}

.eco-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-print-quote {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   VIEW: GLOBAL NETWORK ROUTE MAP
   ========================================================================== */
.map-container {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
}

.map-wrapper {
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
}

/* Custom SVG map styling */
.svg-world-map {
  width: 100%;
  height: 100%;
}

.map-sea-lane {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 2;
  stroke-dasharray: 6, 6;
  opacity: 0.6;
  animation: dash-pulse 20s linear infinite;
}

.map-air-lane {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 4, 4;
  opacity: 0.8;
  animation: dash-pulse 12s linear infinite reverse;
}

.map-pin {
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.map-pin:hover {
  transform: scale(1.2);
}

.map-pin-circle {
  fill: var(--bg-primary);
  stroke: var(--accent-cyan);
  stroke-width: 3;
}

.map-pin-pulse {
  fill: var(--accent-cyan);
  opacity: 0.4;
  animation: pulse-ring 2s infinite;
}

.map-pin.hq .map-pin-circle {
  stroke: var(--accent-orange);
}

.map-pin.hq .map-pin-pulse {
  fill: var(--accent-orange);
}

/* Map Office Tooltips/Cards list */
.office-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-card {
  cursor: pointer;
  border-left: 3px solid transparent;
}

.office-card.active, .office-card:hover {
  border-left-color: var(--accent-cyan);
  background-color: rgba(255, 255, 255, 0.02);
}

.office-card.hq.active, .office-card.hq:hover {
  border-left-color: var(--accent-orange);
}

.office-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.office-title h4 {
  font-size: 18px;
}

.office-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.office-tag.hq {
  background: rgba(255, 159, 28, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 159, 28, 0.3);
}

.office-tag.branch {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.office-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.office-info p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-info svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

/* ==========================================================================
   VIEW: FLEET & CAPACITY SHOWCASE
   ========================================================================== */
.fleet-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.fleet-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fleet-tab-btn.active, .fleet-tab-btn:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.fleet-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fleet-visual-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Animated 3D projection container for container boxes */
.container-3d-model {
  width: 80%;
  height: 60%;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-graphic {
  width: 200px;
  height: 120px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(40deg);
  transition: transform 0.8s ease;
}

.fleet-content-wrapper:hover .cube-graphic {
  transform: rotateX(-20deg) rotateY(220deg);
}

.cube-face {
  position: absolute;
  border: 2.5px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

/* Standard dimensions of 3D box */
.cube-face.front  { width: 200px; height: 120px; transform: translateZ(60px); background: rgba(0, 240, 255, 0.15); }
.cube-face.back   { width: 200px; height: 120px; transform: rotateY(180deg) translateZ(60px); background: rgba(0, 240, 255, 0.1); }
.cube-face.right  { width: 120px; height: 120px; transform: rotateY(90deg) translateZ(100px); background: rgba(0, 240, 255, 0.2); }
.cube-face.left   { width: 120px; height: 120px; transform: rotateY(-90deg) translateZ(100px); background: rgba(0, 240, 255, 0.2); }
.cube-face.top    { width: 200px; height: 120px; transform: rotateX(90deg) translateZ(60px); background: rgba(0, 240, 255, 0.08); }
.cube-face.bottom { width: 200px; height: 120px; transform: rotateX(-90deg) translateZ(60px); background: rgba(0, 240, 255, 0.3); }

/* Color overrides for Reefer (orange/red) */
.reefer-cube .cube-face {
  border-color: var(--accent-orange);
}
.reefer-cube .cube-face.front  { background: rgba(255, 159, 28, 0.15); }
.reefer-cube .cube-face.right  { background: rgba(255, 159, 28, 0.2); }

.fleet-specs-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fleet-specs-title {
  font-size: 32px;
}

.fleet-specs-desc {
  color: var(--text-secondary);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Calculator for loading */
.cargo-packing-calculator {
  grid-column: span 2;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  margin-top: 10px;
}

.cargo-packing-calculator h5 {
  font-size: 16px;
  margin-bottom: 12px;
}

.packing-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.packing-inputs input {
  width: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.packing-result-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 12px;
}

/* ==========================================================================
   VIEW: CLIENT PORTAL (AUTHENTICATED VIEW)
   ========================================================================== */
.portal-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.portal-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-error-msg {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

/* Client Portal Dashboard (Visible after login) */
.portal-dashboard {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portal-dashboard.active {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.portal-dash-header {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.client-welcome h3 {
  font-size: 28px;
}

.client-welcome p {
  color: var(--text-secondary);
}

.btn-portal-logout {
  padding: 8px 16px;
  font-size: 13px;
}

/* Portal Active Shipments */
.portal-section-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.portal-shipment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.portal-shipment-row:hover {
  transform: translateX(4px);
  border-color: var(--accent-cyan);
}

.portal-ship-info h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.portal-ship-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Portal Billing & Invoices Card */
.portal-billing-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.invoice-id {
  font-weight: 600;
}

.invoice-amount {
  color: var(--text-secondary);
}

.btn-download-pdf {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  fill: var(--accent-cyan);
}

.btn-download-pdf svg {
  width: 18px;
  height: 18px;
}

/* Portal Chat Widget */
.portal-chat-widget {
  margin-top: 24px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.chat-box-display {
  height: 180px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  width: fit-content;
}

.chat-msg.agent {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  align-self: flex-end;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.chat-input-row button {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-input-row button svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ==========================================================================
   VIEW: CAREERS PORTAL
   ========================================================================== */
.careers-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.job-info h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.job-meta-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.job-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-meta-row svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

/* Application Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 550px;
  width: 90%;
  animation: zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  fill: var(--text-secondary);
  display: flex;
  align-items: center;
}

.modal-close-btn svg {
  width: 24px;
  height: 24px;
}

/* Drag-drop file area */
.drag-drop-area {
  border: 2px dashed var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.drag-drop-area.highlight {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.02);
}

.drag-drop-area svg {
  width: 40px;
  height: 40px;
  fill: var(--text-muted);
  margin-bottom: 12px;
}

.drag-drop-area p {
  font-size: 14px;
  color: var(--text-secondary);
}

.drag-drop-area span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   VIEW: CONTACT & FAQS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--glass-border-hover);
}

.faq-question {
  padding: 18px 24px;
  background: var(--bg-secondary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question svg {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-secondary);
  font-size: 14px;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 18px 24px;
  border-top: 1px solid var(--glass-border);
}

/* Form confirmation notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  padding: 16px 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  z-index: 1002;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification.success {
  border-color: var(--accent-green);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
}

.social-icon-btn:hover svg {
  fill: var(--accent-cyan);
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* Footer Affiliations Logos */
.footer-affiliations {
  grid-column: span 4;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.affiliation-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}

.affiliation-logo:hover {
  opacity: 0.9;
}

.affiliation-logo svg {
  width: 48px;
  height: 48px;
  fill: var(--text-primary);
  margin-bottom: 8px;
}

.affiliation-logo span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* WhatsApp Float Bubble */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

@keyframes dash-pulse {
  to {
    stroke-dashoffset: -100;
  }
}

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

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-search-container {
    width: 100%;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-card:nth-child(2)::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .quote-result-card {
    position: static;
  }
  .map-container {
    grid-template-columns: 1fr;
  }
  .fleet-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .careers-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none; /* In mobile, toggle and quote buttons can go inside menu or separate header bar */
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
    transition: left var(--transition-normal);
    overflow-y: auto;
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  /* Show hamburger button */
  .burger-menu {
    display: flex;
  }
  
  .burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* We show theme-toggle-btn in header-container in mobile anyway, so let's adjust */
  .header-container {
    gap: 16px;
  }
  .header-actions-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-card::after {
    display: none !important;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .timeline-horizontal {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    padding-left: 30px;
  }
  .timeline-horizontal::before {
    width: 4px;
    height: 100%;
    left: 27px;
    top: 0;
  }
  .timeline-progress-line {
    width: 4px;
    height: 0; /* Will transition vertically in JS */
    left: 27px;
    top: 0;
  }
  .timeline-step {
    flex-direction: row;
    text-align: left;
    width: 100%;
    gap: 20px;
  }
  .step-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .shipment-details-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .portal-dashboard.active {
    grid-template-columns: 1fr;
  }
  .portal-dash-header {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-affiliations {
    grid-column: span 1;
  }
}
