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

:root {
  --blue-50: #F0F9FF;
  --blue-100: #E0F2FE;
  --blue-200: #BAE6FD;
  --blue-300: #7DD3FC;
  --blue-400: #38BDF8;
  --blue-500: #0EA5E9;
  --blue-600: #0284C7;
  --blue-700: #0369A1;
  --blue-900: #0C4A6E;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(14,165,233,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(14,165,233,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(14,165,233,0.14), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(14,165,233,0.18), 0 8px 24px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

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

.gradient-text {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 60%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 36px; }
.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--gray-900); margin-bottom: 14px; letter-spacing: -0.025em;
}
.section-desc { font-size: 16px; color: var(--gray-400); max-width: 540px; margin: 0 auto; }

/* Light variants for dark sections */
.section-header-light { text-align: center; margin-bottom: 48px; }
.section-tag-light {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-400); margin-bottom: 12px;
}
.section-title-light {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: #fff; margin-bottom: 14px; letter-spacing: -0.025em;
}
.section-desc-light { font-size: 16px; color: rgba(255,255,255,0.5); max-width: 540px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #fff; padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
  transition: all 0.2s; white-space: nowrap; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-md); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue-600);
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--blue-200); transition: all 0.2s; white-space: nowrap;
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-outline.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-md); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.45); transition: all 0.2s; white-space: nowrap;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== LANG TOGGLE ===== */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-50); border: 1.5px solid var(--blue-200);
  color: var(--blue-600); padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.lang-toggle:hover { background: var(--blue-100); border-color: var(--blue-400); color: var(--blue-700); }
.lang-icon { font-size: 14px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.35s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 80px; display: flex; align-items: center; gap: 32px;
  transition: height 0.35s ease;
}
.nav.scrolled .nav-inner { height: 52px; }

/* ===== LOGO ===== */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height 0.35s ease;
}
.nav.scrolled .logo-img { height: 36px; }
.logo-wordmark {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}
.logo-img-footer { height: 52px; filter: brightness(0) invert(1) opacity(0.85); }
.logo-wordmark-footer { color: rgba(255,255,255,0.85); }

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

/* Nav dropdown */
.nav-dropdown {
  position: static;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger svg {
  transition: transform 0.25s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Dropdown menu — full width, centered items */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 160px;
  align-content: flex-start;
  gap: 0;
  padding-left: 0; /* set dynamically by JS */
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Bridge the gap between nav and menu with a transparent overlay */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 24px !important;
  font-size: 13px !important;
  color: var(--gray-600) !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.15s;
  white-space: nowrap;
  margin: 2px 4px;
}

.nav-dropdown-menu a:hover {
  background: var(--blue-50) !important;
  color: var(--blue-600) !important;
}
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--gray-600);
  padding: 20px 16px 20px; border-radius: var(--radius-sm); transition: all 0.3s;
}
.nav.scrolled .nav-links a { font-size: 13px; padding: 10px 14px; }
.nav-links a:hover { color: var(--blue-600); background: var(--blue-50); }

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

.btn-nav {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #fff; padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(14,165,233,0.3);
  transition: all 0.3s; white-space: nowrap; border: none;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,165,233,0.4); }
.nav.scrolled .btn-nav { padding: 6px 16px; font-size: 12px; }
.nav.scrolled .lang-toggle { padding: 5px 12px; font-size: 12px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 60vh;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A5A8A 0%, #1E6494 50%, #1B5E8E 100%);
  display: flex;
  align-items: center;
}

.hero-container {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
}

/* Left side: Slogan */
.hero-slogan {
  width: 45%;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: 
    linear-gradient(160deg, rgba(20, 70, 120, 0.95) 0%, rgba(42, 124, 184, 0.9) 50%, rgba(58, 142, 200, 0.85) 100%),
    url('../assets/main-page/main-1-1.jpeg');
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
}

/* Decorative light accents */
.hero-slogan::before {
  content: '';
  position: absolute;
  top: -30%;
  right: 0%;
  width: 400px;
  height: 450px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-slogan::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 500;
  padding: 0; margin-bottom: 20px;
  width: fit-content;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-dot {
  width: 6px; height: 6px; background: rgba(255,255,255,0.5);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900; color: #fff;
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.25);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 0%, #BAE6FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.hero-desc {
  font-size: 15px; color: rgba(255,255,255,0.8);
  line-height: 1.8; margin-bottom: 0;
  max-width: 400px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Right side: Carousel (60%) */
.hero-carousel {
  width: 60%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  overflow: hidden;
  cursor: pointer;
}

/* Inner shadow along the diagonal edge */
.hero-carousel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg, 
    rgba(0, 0, 0, 0.32) 0%, 
    rgba(0, 0, 0, 0.22) 8%, 
    rgba(0, 0, 0, 0.14) 16%, 
    rgba(0, 0, 0, 0.08) 24%, 
    rgba(0, 0, 0, 0.04) 32%,
    rgba(0, 0, 0, 0.01) 40%,
    transparent 50%);
  pointer-events: none;
  z-index: 10;
  filter: blur(3px);
}

.hero-carousel:hover {
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Carousel track */
.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  padding: 80px;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  text-align: center;
  max-width: 600px;
  color: var(--white);
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: top 0.5s ease;
}

.hero-carousel:hover .slide-content {
  top: 48%;
}

.slide-icon {
  width: 100px;
  height: 100px;
  margin: 0 0 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.slide-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--white);
}

.slide-content h3 {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.slide-content p {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  white-space: nowrap;
}

.hero-carousel:hover .slide-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel indicators */
.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.indicator:hover {
  background: rgba(255,255,255,0.6);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--white);
  width: 32px;
  border-radius: 6px;
}

/* Carousel navigation button */
.carousel-nav-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-carousel:hover .carousel-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.carousel-nav-btn:hover {
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.3s;
}

.carousel-nav-btn:hover svg {
  transform: translateX(2px);
}

/* ===== CAPABILITIES ===== */
.capabilities { padding: 60px 0; background: var(--gray-50); }

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

.cap-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  position: relative; transition: all 0.3s; overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0EA5E9, #38BDF8);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
  z-index: 1;
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.cap-card:hover::before { transform: scaleX(1); }

.cap-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.cap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cap-card:hover .cap-img img {
  transform: scale(1.05);
}

.cap-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cap-icon {
  width: 48px; height: 48px; background: var(--blue-50);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.cap-icon svg { width: 28px; height: 28px; }
.cap-num { font-size: 11px; font-weight: 700; color: var(--blue-300); letter-spacing: 0.1em; margin-bottom: 10px; }
.cap-card h3, .cap-body h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; line-height: 1.4; }
.cap-card p, .cap-body p { font-size: 13px; color: var(--gray-400); line-height: 1.7; margin-bottom: 16px; }
.cap-tags { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.cap-tags li {
  font-size: 11px; color: var(--blue-600); background: var(--blue-50);
  padding: 3px 10px; border-radius: 100px; width: fit-content;
}
.cap-link { font-size: 13px; font-weight: 600; color: var(--blue-500); transition: all 0.2s; }
.cap-link:hover { color: var(--blue-700); letter-spacing: 0.02em; }

/* ===== GLOBAL — LIGHT ===== */
.global {
  position: relative;
  padding: 60px 0;
  background: var(--gray-50);
  overflow: hidden;
}

.global-container { position: relative; z-index: 1; }

/* Global map container */
.global-map-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Region cards topbar */
.region-cards-topbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Map wrapper */
.global-map-wrap {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex: 1;
}

/* Stats bar above map */
.map-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 32px;
  border-bottom: 1px solid var(--blue-100);
  background: linear-gradient(90deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
  position: relative;
}
.map-stat { text-align: center; padding: 0 28px; }
.map-stat-num {
  display: block;
  font-size: 22px; font-weight: 800;
  color: var(--gray-900); letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
}
.map-stat-num em { font-style: normal; font-size: 14px; color: var(--blue-500); }
.map-stat-label { font-size: 11px; color: var(--gray-400); white-space: nowrap; }
.map-stat-div { width: 1px; height: 36px; background: var(--blue-100); flex-shrink: 0; }

/* Map reset button in stats bar */
.map-reset-btn {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}

.map-reset-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.map-reset-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.map-reset-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.map-reset-btn:hover svg {
  transform: rotate(-45deg);
}

/* Map body */
.map-body {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Map interaction hint */
.map-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.map-hint svg {
  flex-shrink: 0;
  opacity: 0.7;
}

#leafletMap {
  width: 100%;
  height: 480px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  z-index: 0;
}

/* Override Leaflet tile layer to match brand palette */
.leaflet-tile { filter: saturate(0.25) brightness(1.05); }

/* Custom marker styles - simple dots */
.lf-marker {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-dot {
  width: 12px; height: 12px;
  background: #2563EB;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25), 0 2px 8px rgba(37,99,235,0.45);
  position: relative;
  z-index: 2;
}
.lf-dot-hq {
  width: 16px; height: 16px;
  background: #1D4ED8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(29,78,216,0.25), 0 3px 14px rgba(29,78,216,0.55);
}
.lf-label {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #1E40AF;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10;
}
.lf-label-hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
  border-color: rgba(37,99,235,0.5);
  background: rgba(255,255,255,1);
  z-index: 999;
}
.lf-label-hq {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  border-color: #1D4ED8;
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
}
.lf-label-hq.lf-label-hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
  box-shadow: 0 6px 24px rgba(29,78,216,0.5);
}
.lf-pulse {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: lf-pulse 2.2s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}
.lf-pulse-hq {
  width: 40px; height: 40px;
  background: rgba(29,78,216,0.18);
  animation-duration: 2s;
}
@keyframes lf-pulse {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}

/* Leaflet tooltip styling */
.leaflet-tooltip {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.leaflet-tooltip::before {
  display: none !important;
}

.lf-tooltip {
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(37,99,235,0.3) !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #1E40AF !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15) !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.25s ease !important;
}

.lf-tooltip-hq {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%) !important;
  border: 1px solid #1D4ED8 !important;
  color: #fff !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  box-shadow: 0 4px 16px rgba(29,78,216,0.4) !important;
}

/* Tooltip connector line */
.leaflet-tooltip-top::before,
.leaflet-tooltip-bottom::before,
.leaflet-tooltip-left::before,
.leaflet-tooltip-right::before {
  border: none !important;
}

.lf-tooltip::after {
  content: '';
  position: absolute;
  width: 1px;
  background: rgba(37,99,235,0.3);
}

.leaflet-tooltip-bottom .lf-tooltip::after {
  bottom: 100%;
  left: 50%;
  height: 15px;
  transform: translateX(-50%);
}

.leaflet-tooltip-top .lf-tooltip::after {
  top: 100%;
  left: 50%;
  height: 15px;
  transform: translateX(-50%);
}

.leaflet-tooltip-right .lf-tooltip::after {
  right: 100%;
  top: 50%;
  width: 15px;
  height: 1px;
  transform: translateY(-50%);
}

.leaflet-tooltip-left .lf-tooltip::after {
  left: 100%;
  top: 50%;
  width: 15px;
  height: 1px;
  transform: translateY(-50%);
}

.lf-tooltip-hq::after {
  background: rgba(29,78,216,0.5) !important;
  width: 2px !important;
}

/* Leaflet attribution small */
.leaflet-control-attribution {
  font-size: 9px !important;
  opacity: 0.5;
}

/* Leaflet zoom control styling */
.leaflet-control-zoom {
  border: 1px solid var(--blue-100) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--white) !important;
  color: var(--blue-600) !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.leaflet-control-zoom a:hover {
  background: var(--blue-50) !important;
  color: var(--blue-700) !important;
}

.leaflet-control-zoom a:first-child {
  border-bottom: 1px solid var(--blue-100) !important;
}

/* ===== MAP PINS ===== */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.pin-dot {
  width: 12px; height: 12px;
  background: #2563EB;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.25), 0 2px 6px rgba(37,99,235,0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.pin-dot-hq {
  width: 16px; height: 16px;
  background: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.25), 0 3px 10px rgba(29,78,216,0.5);
}
.pin-dot-sm {
  width: 9px; height: 9px;
  background: #3B82F6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(59,130,246,0.3);
}

.pin-pulse {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  animation: pin-pulse-anim 2.2s ease-out infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.pin-dot-hq ~ .pin-pulse,
.pin-hq .pin-pulse {
  width: 36px; height: 36px;
}
@keyframes pin-pulse-anim {
  0% { transform: translate(-50%,-50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(2); opacity: 0; }
}

.pin-label {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}
.pin-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #1E40AF;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}
.pin-dot-hq + .pin-label .pin-name,
.pin-hq .pin-name {
  font-size: 11.5px;
  color: #1D4ED8;
}

/* Pulse rings on key cities */
.loc-pulse-ring {
  animation: loc-ring 2.5s ease-out infinite;
}
.loc-pulse-ring2 {
  animation: loc-ring 2.5s ease-out infinite 0.6s;
}
@keyframes loc-ring {
  0% { r: 9; opacity: 0.35; }
  100% { r: 28; opacity: 0; }
}

/* Region cards */
.region-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex; 
  align-items: center; 
  gap: 8px;
  cursor: pointer; 
  transition: all 0.3s;
  position: relative; 
  overflow: hidden;
}
.region-card:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.region-card.active {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
  box-shadow: var(--shadow-md);
  border-width: 2px;
  transform: translateY(-2px);
}

.rc-icon { 
  font-size: 16px; 
  flex-shrink: 0; 
  transition: transform 0.3s; 
}
.region-card:hover .rc-icon { transform: scale(1.15); }
.region-card.active .rc-icon { transform: scale(1.1); }

.rc-body { flex: 1; }
.rc-body h4 { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--gray-900); 
  margin-bottom: 0; 
  transition: color 0.3s; 
}
.region-card.active .rc-body h4 { color: var(--blue-700); }
.rc-body p { 
  display: none; 
}

.rc-badge {
  font-size: 8px; 
  font-weight: 700; 
  letter-spacing: 0.04em;
  padding: 2px 6px; 
  border-radius: 100px;
  background: var(--blue-50); 
  color: var(--blue-600);
  margin-left: auto;
  white-space: nowrap;
  border: 1px solid var(--blue-200);
}
.rc-badge-grow { background: #F0FDF4; color: #16A34A; border-color: #BBF7D0; }
.rc-badge-new { background: #FAF5FF; color: #7C3AED; border-color: #DDD6FE; }

/* ===== PARTNERS ===== */
.partners { padding: 60px 0; background: var(--white); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.partner-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s;
  cursor: default;
}
.partner-en {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  line-height: 1.2;
}
.partner-zh {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.3;
}
.partner-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.partner-item:hover .partner-en { color: var(--blue-700); }
.partner-item:hover .partner-zh { color: var(--blue-400); }
.partner-item:hover small { color: var(--blue-400); }

/* ===== CTA ===== */
.cta-section { padding: 60px 0; background: var(--gray-50); }
.cta-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #E0F2FE 100%);
  border-radius: var(--radius-xl); padding: 80px 60px;
  text-align: center; position: relative; overflow: hidden;
  border: 1px solid rgba(14,165,233,0.15);
  box-shadow: 0 8px 40px rgba(14,165,233,0.1);
}
/* Large decorative cloud SVG — right side */
.cta-cloud {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  color: var(--blue-600);
}
/* Small cloud — left */
.cta-cloud-sm {
  position: absolute;
  left: -20px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  color: var(--blue-500);
}
.cta-orb {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}
.cta-content { position: relative; z-index: 1; }
.cta-card h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  color: var(--gray-900); margin-bottom: 16px; letter-spacing: -0.025em;
}
.cta-card p { font-size: 16px; color: var(--gray-500); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 72px 0 0; }
.footer-top {
  display: grid; grid-template-columns: 280px 1fr; gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub { color: var(--blue-400); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.35); margin: 16px 0 20px; line-height: 1.6; }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.footer-company { font-size: 12px !important; color: rgba(255,255,255,0.5) !important; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 10px !important; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.38); margin-bottom: 16px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-400); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 12px; color: rgba(255,255,255,0.22);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.22); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--blue-400); }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-slogan { width: 45%; padding: 60px 40px; }
  .hero-carousel { width: 55%; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero-container { flex-direction: column; height: auto; }
  .hero-slogan { 
    width: 100%; 
    clip-path: none; 
    padding: 60px 24px;
  }
  .hero-carousel { 
    width: 100%; 
    position: relative;
    height: 500px;
    clip-path: none;
  }
  .global-map-container { flex-direction: column; }
  .region-cards-topbar { 
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .map-stats-bar { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .map-stat-div { display: none; }
  .map-reset-btn { position: static; margin-top: 8px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { padding: 60px 24px 60px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 12px; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-card { padding: 48px 24px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .region-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr; }
  .region-cards-topbar { grid-template-columns: 1fr 1fr; }
}
