/* ==========================================================================
   CONVEYOR UNIEXPRESS - RED & BLACK LOGISTICS DESIGN SYSTEM (APP.CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Red & Black Brand Palette */
  --color-primary: #dc2626;
  /* Vibrant Crimson Red */
  --color-primary-hover: #b91c1c;
  --color-primary-dark: #991b1b;
  --color-primary-light: #fee2e2;
  --color-primary-glow: rgba(220, 38, 38, 0.35);

  --color-accent: #e11d48;
  /* Rose Crimson */
  --color-accent-hover: #be123c;
  --color-accent-light: #ffe4e6;

  /* Black & Dark Backgrounds */
  --color-dark-bg: #09090b;
  /* Pure Obsidian Black */
  --color-dark-surface: #121216;
  /* Deep Carbon */
  --color-dark-card: #18181b;
  /* Charcoal Card */
  --color-dark-border: #27272a;

  --color-light-bg: #f8fafc;
  --color-light-surface: #ffffff;
  --color-light-card: #ffffff;
  --color-light-border: #e2e8f0;

  --color-text-main: #09090b;
  --color-text-muted: #64748b;
  --color-text-light: #f8fafc;
  --color-text-light-muted: #a1a1aa;

  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-info: #dc2626;
  --color-info-light: #fee2e2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 35px var(--color-primary-glow);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-light-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

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

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

/* Top Announcement Bar */
.top-bar {
  background: #000000;
  color: var(--color-text-light-muted);
  font-size: 0.825rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(220, 38, 38, 0.25);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #a1a1aa;
}

.top-bar-contacts a:hover {
  color: #ef4444;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-actions a {
  color: #a1a1aa;
}

.top-bar-actions a:hover {
  color: #ef4444;
}

/* Main Navigation Header (Initial: White with Colored Elements; On-Scroll: Blurry Transparent Dark with White Elements) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(220, 38, 38, 0.15);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.main-header.scrolled .brand-logo {
  color: #ffffff;
}

.brand-name-highlight {
  color: #dc2626;
  transition: color 0.3s ease;
}

.main-header.scrolled .brand-name-highlight {
  color: #ef4444;
}

.brand-subtext {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #64748b;
  margin-top: -3px;
  transition: color 0.3s ease;
}

.main-header.scrolled .brand-subtext {
  color: #a1a1aa;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(1rem, 1.25vw, 1.5rem);
}

.nav-link {
  font-size: clamp(0.85rem, 0.9vw, 0.925rem);
  font-weight: 700;
  color: #18181b;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #dc2626;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #dc2626;
  border-radius: 2px;
}

/* Scrolled link colors (White elements) */
.main-header.scrolled .nav-link {
  color: #f4f4f5;
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
  color: #ef4444;
}

.main-header.scrolled .nav-link.active::after {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Nav Toggle */
.mobile-nav-btn {
  display: none;
  background: transparent;
  border: none;
  color: #18181b;
  cursor: pointer;
  padding: 0.25rem;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
}

.mobile-nav-btn:hover {
  color: #dc2626;
}

.mobile-nav-btn:active {
  transform: scale(0.95);
}

.main-header.scrolled .mobile-nav-btn {
  color: #ffffff;
}

.main-header.scrolled .mobile-nav-btn:hover {
  color: #ef4444;
}

.mobile-nav-btn.active {
  color: #ffffff !important;
}

.mobile-nav-btn .icon-close {
  display: none;
}

.mobile-nav-btn.active .icon-menu {
  display: none;
}

.mobile-nav-btn.active .icon-close {
  display: block;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.85rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-dark {
  background: #18181b;
  color: #d4d4d8;
  border: 1px solid #27272a;
}

/* Hero Section (Black Background + Red Highlights & Radial Glow) */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top right, #3f0d12 0%, #121216 45%, #09090b 100%);
  color: #ffffff;
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

/* Hero Background Slider Styles */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.55) 0%, rgba(9, 9, 11, 0.35) 100%);
  z-index: 0;
}

.hero-slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.65rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  background: #ef4444;
  width: 26px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #ef4444;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #a1a1aa;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Quick Tracking Widget Box */
.hero-track-box {
  background: rgba(24, 24, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(220, 38, 38, 0.15);
}

.track-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.track-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.track-input-group {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.track-input {
  flex: 1;
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-fast);
}

.track-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  background: #000000;
}

.sample-tracking-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #a1a1aa;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #ef4444;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-chip:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* Stats Counter Section */
.stats-banner {
  background: #121216;
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  padding: 2.75rem 0;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
  border-right: 1px solid #27272a;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.65rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: #09090b;
  color: #ffffff;
}

.section-light {
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-tag-light {
  color: #ef4444;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}

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

.section-subtitle-light {
  color: #a1a1aa;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #fca5a5;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
  border-color: transparent;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.service-card-link:hover {
  gap: 0.6rem;
  color: var(--color-primary-hover);
}

/* Interactive Rate Estimator Card */
.calculator-card {
  background: #ffffff;
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px #fee2e2;
}

.calc-result-box {
  background: radial-gradient(circle at top, #1f0b0f 0%, #09090b 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-price {
  font-size: 3.25rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  margin: 1rem 0 0.5rem 0;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Tracking Page Header & Timeline */
.track-detail-header {
  background: linear-gradient(135deg, #18181b, #09090b);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(220, 38, 38, 0.1);
}

.track-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.track-number-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.track-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.track-meta-item small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.track-meta-item strong {
  font-size: 1.05rem;
  color: #ffffff;
}

/* Checkpoint Timeline */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-event {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-primary);
  z-index: 2;
}

.timeline-event.active .timeline-node {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px #fee2e2;
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.timeline-time {
  font-size: 0.825rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.timeline-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-box {
  background: #121216;
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.feature-box:hover {
  background: #18181b;
  border-color: rgba(220, 38, 38, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.feature-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-box-desc {
  color: #a1a1aa;
  font-size: 0.875rem;
}

/* Global Hubs Grid */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.hub-card {
  background: #ffffff;
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.hub-country {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-city {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hub-address {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Footer (Pure Black + Red Border Accent) */
.main-footer {
  background: #000000;
  color: #a1a1aa;
  padding: 4.5rem 0 2rem 0;
  border-top: 3px solid #dc2626;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a:hover {
  color: #ef4444;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #27272a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   SMOOTH SCROLL-REVEAL & MICRO-ANIMATION SYSTEM
   ========================================================================== */

/* Keyframe Animations */
@keyframes subtlePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.85;
  }
}

@keyframes glowPulseRed {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.55);
  }
}

@keyframes shimmerEffect {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Base Scroll Reveal Classes (Slower, Silky Smooth & Cinematic Pacing) */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Active Visible State */
.reveal.is-revealed,
.reveal-left.is-revealed,
.reveal-right.is-revealed,
.reveal-scale.is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Slower Stagger Delays for Graceful Cascade */
.delay-1 {
  transition-delay: 150ms;
}

.delay-2 {
  transition-delay: 300ms;
}

.delay-3 {
  transition-delay: 450ms;
}

.delay-4 {
  transition-delay: 600ms;
}

.delay-5 {
  transition-delay: 750ms;
}

.delay-6 {
  transition-delay: 900ms;
}

/* Enhanced Interactive Hover & Micro-Animations */
.hero-track-box {
  animation: glowPulseRed 5s infinite ease-in-out;
}

.service-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15), 0 0 20px rgba(220, 38, 38, 0.15);
}

.hub-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12), 0 0 15px rgba(220, 38, 38, 0.12);
  border-color: #fca5a5;
}

.feature-box {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.feature-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(220, 38, 38, 0.2);
}

.timeline-event.active .timeline-node {
  animation: subtlePulse 2.5s infinite ease-in-out;
}

/* Button Shimmer / Ripple Micro-interaction */
.btn-primary,
.btn-accent {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after,
.btn-accent:hover::after {
  transform: translateX(100%);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item {
    border-right: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .track-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile Navigation Menu Drawer styling at 992px */
  .mobile-nav-btn {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6.5rem 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #ef4444 !important;
  }

  .nav-menu .nav-link::after {
    display: none;
  }
}

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hubs-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .track-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   News & Editorial Cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(220, 38, 38, 0.12), 0 10px 15px -3px rgba(0, 0, 0, 0.06);
  border-color: #fca5a5;
}

.news-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #0f172a;
}

.news-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-thumbnail {
  transform: scale(1.07);
}

.news-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 40%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

.news-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.news-card-title {
  font-size: 1.225rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card-title {
  color: var(--color-primary);
}

.news-card-desc {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.news-card:hover .news-link-btn {
  gap: 0.65rem;
  color: var(--color-primary-hover);
}

/* News Featured Image in Detail View */
.news-detail-featured-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.25rem;
  background: #0f172a;
  aspect-ratio: 21 / 9;
  max-height: 460px;
}

.news-detail-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-detail-featured-media {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   Navigation Services Dropdown & Service Items with Icons
   ========================================================================== */
.nav-dropdown-item {
  position: relative;
}

.services-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 620px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  pointer-events: none;
}

.nav-dropdown-item:hover .services-dropdown,
.nav-dropdown-item:focus-within .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-service-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  color: #1e293b;
}

.dropdown-service-link:hover {
  background: #fef2f2;
  color: #dc2626;
  transform: translateX(3px);
}

.dropdown-service-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.dropdown-service-link:hover .dropdown-service-icon {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.dropdown-service-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  display: block;
}

.dropdown-service-desc {
  font-size: 0.725rem;
  color: #64748b;
  display: block;
  line-height: 1.3;
  margin-top: 2px;
}

.dropdown-footer {
  grid-column: 1 / -1;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-footer a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-footer a:hover {
  color: var(--color-primary-hover);
  gap: 0.5rem;
}

/* Service Detail Sidebar Items */
.service-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.service-sidebar-item:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  transform: translateX(4px);
}

.service-sidebar-item.active {
  background: #dc2626;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.service-sidebar-item.active .service-sidebar-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.service-sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.service-sidebar-item:hover .service-sidebar-icon {
  background: #dc2626;
  color: #ffffff;
}

/* Footer Service Link */
.footer-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #a1a1aa;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-service-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-service-icon {
  width: 16px;
  height: 16px;
  color: #ef4444;
  flex-shrink: 0;
}

/* Mobile Nav Dropdown adjustments */
@media (max-width: 992px) {
  .services-dropdown {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown-item.open .services-dropdown {
    display: grid;
  }
  .dropdown-service-link {
    color: #f4f4f5;
  }
  .dropdown-service-desc {
    color: #a1a1aa;
  }
}