/* ==========================================================================
   WORLD BUSINESS LOGISTICS LTD — Premium Website Redesign
   Color System: Deep Navy #071A2B | Primary Blue #0877FF | Sky Blue #2EA7FF
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; background: #F5F8FC; color: #0B1220; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.font-display { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; }
.font-body { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #071A2B;
  --blue: #0877FF;
  --sky: #2EA7FF;
  --white: #FFFFFF;
  --light-bg: #F5F8FC;
  --dark-text: #0B1220;
  --muted: #64748B;
  --navy-90: rgba(7, 26, 43, 0.9);
  --navy-80: rgba(7, 26, 43, 0.8);
  --blue-glow: rgba(8, 119, 255, 0.15);
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.glass-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(7, 26, 43, 0.06);
}
.glass-nav {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 30px rgba(7, 26, 43, 0.08);
}

/* ---------- Decorative Backgrounds ---------- */
.bg-grid-dark {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-light {
  background-image:
    linear-gradient(rgba(8, 119, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 119, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-dots-light {
  background-image: radial-gradient(rgba(8, 119, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(8, 119, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-primary:hover {
  background: #0665E0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 119, 255, 0.4);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(7, 26, 43, 0.15);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(7, 26, 43, 0.12);
}

/* ---------- Nav Links ---------- */
.nav-link { position: relative; color: #334155; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; transition: color 0.25s ease; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--blue); }

/* ---------- Inputs ---------- */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(7, 26, 43, 0.12);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--dark-text);
  outline: none;
  transition: all 0.25s ease;
}
.input-field::placeholder { color: #94A3B8; }
.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 119, 255, 0.1);
}
.input-field.input-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
textarea.input-field { resize: vertical; min-height: 120px; }
select.input-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -24px) scale(1.04); }
  66% { transform: translate(-18px, 16px) scale(0.96); }
}
.animate-float { animation: float 18s ease-in-out infinite; }
.animate-float-slow { animation: float 26s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.4; }
}
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

@keyframes route-dash {
  to { stroke-dashoffset: 0; }
}

@keyframes route-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes counter-bump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 40s linear infinite; }
.marquee-mask {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-mask:hover .animate-marquee { animation-play-state: paused; }

/* ---------- Route Float (hero) ---------- */
.route-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: float 16s ease-in-out infinite;
}
.route-float .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2EA7FF;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float, .animate-float-slow, .animate-marquee { animation: none; }
  .route-float { animation: none; }
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 30rem);
  border-radius: 0.75rem;
  background: rgba(7, 26, 43, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F8FC; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0877FF, #071A2B); border-radius: 6px; }

/* ---------- Selection ---------- */
::selection { background: rgba(8, 119, 255, 0.2); }

/* ---------- Map ---------- */
.map-container { position: relative; width: 100%; max-width: 700px; margin: 0 auto; }
.map-svg { width: 100%; height: auto; }
.map-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}
.map-dot:hover .dot-outer { r: 14; opacity: 0.3; }
.map-dot:hover .dot-inner { r: 5; fill: #2EA7FF; }

.map-tooltip {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  z-index: 20;
  white-space: nowrap;
}
.map-tooltip.active { opacity: 1; transform: translateY(0); }

/* ---------- Process Steps ---------- */
.process-line {
  position: absolute;
  top: 2rem;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: rgba(8, 119, 255, 0.15);
}
.process-line-fill {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible .process-line-fill { width: 100%; }

/* ---------- Tracking ---------- */
.tracking-input-wrap {
  display: flex;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid rgba(7, 26, 43, 0.1);
  background: var(--white);
  transition: border-color 0.3s ease;
}
.tracking-input-wrap:focus-within { border-color: var(--blue); }
.tracking-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--dark-text);
}
.tracking-input-wrap input::placeholder { color: #94A3B8; }
.tracking-input-wrap button {
  padding: 0 2rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.tracking-input-wrap button:hover { background: #0665E0; }

/* ---------- Stat Counter ---------- */
.stat-number {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--white);
}

/* ---------- Footer ---------- */
footer a { transition: color 0.25s ease; }
footer a:hover { color: var(--sky); }

/* ---------- Section Utilities ---------- */
.section-navy { background: var(--navy); color: var(--white); }
.section-light { background: var(--light-bg); }

/* ---------- Service Card Variant ---------- */
.service-card-large {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(7, 26, 43, 0.06);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(7, 26, 43, 0.1);
}
.service-card-large .card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card-large .card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(7, 26, 43, 0.7));
}

/* ---------- Team Card ---------- */
.team-card {
  background: var(--white);
  border: 1px solid rgba(7, 26, 43, 0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(7, 26, 43, 0.1);
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(7, 26, 43, 0.06);
  border-radius: 0.75rem;
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(8, 119, 255, 0.12);
  line-height: 1;
}

/* ---------- Placeholder Images (CSS gradients) ---------- */
.img-placeholder-port {
  background: linear-gradient(135deg, #071A2B 0%, #0877FF 50%, #2EA7FF 100%);
}
.img-placeholder-truck {
  background: linear-gradient(135deg, #0B1220 0%, #1d4ed8 50%, #0877FF 100%);
}
.img-placeholder-customs {
  background: linear-gradient(135deg, #071A2B 0%, #0653c4 50%, #2EA7FF 100%);
}
.img-placeholder-ship {
  background: linear-gradient(135deg, #0B1220 0%, #0877FF 60%, #60a5fa 100%);
}
.img-placeholder-team {
  background: linear-gradient(135deg, #071A2B 0%, #1e3a8a 50%, #0877FF 100%);
}

/* ---------- Responsive Typography ---------- */
@media (max-width: 640px) {
  .stat-number { font-size: 2.25rem; }
  .hero-title { font-size: 2.25rem !important; line-height: 1.15 !important; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-title { font-size: 3rem !important; }
}
