/**
 * Equpoint - Apple-inspired Design System
 * Clean, minimal, whitespace-focused
 */

/* ========== VARIABLES ========== */
:root {
  --primary: #244ED1;
  --primary-light: #E8459A;
  --primary-hover: #B01766;
  --dark: #333333;
  --text: #666666;
  --background: #F5F5F5;
  --white: #FFFFFF;
  --border: #DDDDDD;

  --color-text: var(--dark);
  --color-text-secondary: var(--text);
  --color-text-tertiary: #999999;
  --color-bg: var(--white);
  --color-bg-secondary: var(--background);
  --color-bg-dark: var(--dark);

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --iso-bar-height: 30px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.47059;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  letter-spacing: -0.022em;
}

/* ========== ISO BAR ========== */
.iso-bar {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #0f172a; /* Deep premium slate blue (matches scrolled navigation) */
  color: #e2e8f0; /* Crisp, high-contrast silver-white text */
  height: var(--iso-bar-height, 30px);
  font-size: 12px;
  font-weight: 500; /* Increased for clean readability */
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15); /* Tech sky-blue glowing divider line */
  box-shadow: 0 1px 15px rgba(15, 23, 42, 0.4);
}
.iso-bar i { 
  color: #38bdf8; /* Vibrant glowing sky blue checks for absolute contrast */
  margin-right: 5px; 
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5); /* Ambient neon glow aura */
}

/* Keep ISO bar single-row and scrollable on mobile to prevent height jumps */
.iso-bar .container-apple {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  justify-content: center !important;
  height: 100%;
  align-items: center;
}
.iso-bar .container-apple::-webkit-scrollbar {
  display: none;
}

/* ========== NAVIGATION (Apple-style) ========== */
.nav-global {
  position: sticky;
  top: var(--iso-bar-height, 30px);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--transition-smooth);
}
.nav-global.scrolled {
  background: rgba(10, 14, 26, 0.85); /* Deep semi-translucent dark slate-indigo */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(36, 78, 209, 0.3); /* Subtle glowing brand-blue outline */
  box-shadow: 0 10px 40px rgba(10, 14, 26, 0.3), 0 1px 10px rgba(36, 78, 209, 0.1);
}
.nav-global.scrolled .nav-logo {
  color: #ffffff;
}
.nav-global.scrolled .nav-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(36, 78, 209, 0.3)); /* Clean logo inversion with soft blue aura */
}
.nav-global.scrolled .nav-links a {
  color: #cbd5e1; /* Smooth silver-grey */
  opacity: 0.85;
  transition: all 0.25s ease;
}
.nav-global.scrolled .nav-links a:hover {
  color: #E8459A; /* Glow brand-pink on hover */
  opacity: 1;
  text-shadow: 0 0 8px rgba(232, 69, 154, 0.5);
}
.nav-global.scrolled .nav-links a.active {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.nav-global.scrolled .dropdown-menu {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(36, 78, 209, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.nav-global.scrolled .dropdown-menu a {
  color: #cbd5e1 !important;
  transition: all 0.25s ease !important;
}
.nav-global.scrolled .dropdown-menu a:hover {
  background: rgba(36, 78, 209, 0.15) !important;
  color: #E8459A !important;
  padding-left: 28px;
  text-shadow: 0 0 6px rgba(232, 69, 154, 0.3);
}
.nav-global.scrolled .mobile-menu-btn {
  color: #ffffff;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--dark);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #fff;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none;
  z-index: 100;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.04);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  color: var(--color-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
  transition: all 0.2s !important;
}
.dropdown-menu a:hover {
  background: rgba(0,0,0,0.03);
  opacity: 1 !important;
  color: var(--primary) !important;
  padding-left: 28px;
}
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 980px;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-hover); transform: scale(1.03); }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text);
  cursor: pointer;
}

/* ========== HERO (Apple-style) ========== */
.hero-apple {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-apple.dark {
  background: var(--dark);
  color: #fff;
}
.hero-apple.light {
  background: var(--color-bg);
  color: var(--color-text);
}
.hero-apple.gradient {
  background: linear-gradient(180deg, rgba(51, 51, 51, 0.85) 0%, rgba(51, 51, 51, 0.95) 100%), url('../assets/scraped_images/telecom-radio-network.jpg') center/cover no-repeat;
  color: #fff;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 40px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #FBBF24; /* High visibility warm golden amber */
  margin-bottom: 20px;
  background: rgba(245, 158, 11, 0.12); /* Delicate gold background glow */
  padding: 6.5px 18px;
  border-radius: 980px;
  border: 1px solid rgba(245, 158, 11, 0.35); /* Crisp amber border */
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1); /* Premium micro-glow */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.hero-badge:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.hero-badge i { font-size: 12px; color: #FBBF24 !important; }
.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  border: none;
}
.btn-apple-primary {
  background: var(--primary);
  color: #fff;
}
.btn-apple-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.04);
}
.btn-apple-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-apple-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-apple-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-apple-light:hover {
  background: rgba(255,255,255,0.25);
}
.btn-apple-link {
  color: var(--primary);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.btn-apple-link:hover { gap: 10px; }
.btn-apple-link::after {
  content: '\2192';
  font-size: 20px;
}

/* ========== SECTIONS ========== */
.section-apple {
  padding: 120px 0;
  position: relative;
}
.section-apple.dark {
  background: var(--dark);
  color: #fff;
}
.section-apple.gray {
  background: var(--color-bg-secondary);
}
.container-apple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.section-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}
.section-subheadline {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.5;
}
.section-apple.dark .section-subheadline {
  color: rgba(255,255,255,0.7);
}

/* ========== CARDS (Apple-style) ========== */
.card-apple {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
  position: relative;
}
.card-apple:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.card-apple-img {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--dark), var(--dark));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.card-apple-img.gold {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
}
.card-apple-img.teal {
  background: linear-gradient(135deg, var(--primary-light), #D81B7D);
  color: #fff;
}
.card-apple-body {
  padding: 32px;
}
.card-apple-body h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.card-apple-body p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.card-apple-link {
  font-size: 16px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-apple-link:hover { gap: 8px; }

/* ========== GRID ========== */
.grid-apple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-apple-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-apple-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ========== FEATURE ROW (Apple-style alternating) ========== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-text h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.feature-text p {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.feature-visual {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.feature-visual i {
  font-size: 120px;
  color: var(--dark);
  opacity: 0.15;
}
.feature-visual.gold-bg {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}
.feature-visual.gold-bg i { color: #fff; opacity: 0.3; }

/* ========== BANNER / PROMO BAR ========== */
.promo-bar {
  background: var(--color-bg-secondary);
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.promo-bar h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.promo-bar p {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ========== STATS (Apple-style) ========== */
.stats-apple {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.stat-apple {
  text-align: center;
}
.stat-apple-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.stat-apple-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* ========== BREADCRUMB / PAGE HEADER ========== */
.page-header-apple {
  background: var(--color-bg-secondary);
  padding: 100px 0 60px;
  text-align: center;
}
.page-header-apple h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-header-apple p {
  font-size: 20px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb-apple {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.breadcrumb-apple a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-apple a:hover { text-decoration: underline; }

/* ========== SUB-NAV (Apple product nav style) ========== */
.sub-nav {
  background: rgba(245,245,247,0.8);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: calc(var(--iso-bar-height, 30px) + 52px);
  z-index: 100;
}
.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 22px;
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-inner a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.6;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  padding: 6px 0;
  line-height: 1.5;
  border-bottom: 2px solid transparent;
}
.sub-nav-inner a:hover, .sub-nav-inner a.active {
  opacity: 1;
  border-bottom-color: var(--primary);
}

/* ========== FOOTER (Apple-style Premium Dark) ========== */
.footer-apple {
  position: relative;
  background-color: #060607; /* Ultra-deep luxury black base */
  padding: 90px 0 45px;
  font-size: 13px;
  color: #86868b; /* Apple-style legible muted grey text */
  line-height: 1.6;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1;
}

/* Technical blueprint grid overlay */
.footer-apple::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.009) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 85%);
  pointer-events: none;
  z-index: -1;
}

/* Swirling, rotating luxury brand glow aura */
.footer-apple::after {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(36, 78, 209, 0.22) 0%, transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(232, 69, 154, 0.16) 0%, transparent 35%),
    radial-gradient(circle at 50% 40%, rgba(36, 78, 209, 0.1) 0%, transparent 40%);
  animation: bgRotate 26s linear infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes bgRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.footer-apple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-apple-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7; /* High visibility near-white header */
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.footer-apple-col ul {
  list-style: none;
}
.footer-apple-col li {
  margin-bottom: 10px;
  color: #86868b;
}
.footer-apple-col a {
  color: #a1a1a6; /* Premium visibility link text color */
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-apple-col a:hover {
  color: #ffffff; /* Brilliant white on hover */
  text-decoration: none;
}
.footer-apple-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle, high-quality white divider line */
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #86868b;
}
.footer-apple-bottom a {
  color: #a1a1a6;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-apple-bottom a:hover {
  color: #ffffff;
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .nav-links {
    gap: 20px; /* Compress spacing slightly to fit clean headers on standard laptops */
  }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-apple, .grid-apple-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-text, .feature-row.reverse .feature-visual { order: unset; }
  .footer-apple-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --iso-bar-height: 27px;
  }
  .grid-apple, .grid-apple-2, .grid-apple-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .section-apple { padding: 80px 0; }
  .feature-row { margin-bottom: 80px; }
  .stats-apple { gap: 30px; }
  .footer-apple-grid { grid-template-columns: 1fr; }
  .iso-bar { font-size: 10px; }
  .iso-bar .gap-4 { gap: 12px !important; }
  .iso-bar .container-apple {
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 0 16px;
  }
  .sub-nav-inner {
    gap: 20px; /* Closer fit for horizontal scroll on mobile */
  }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9998;
  padding: 80px 32px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto; /* Enable safe vertical scrolling on mobile overlays */
  -webkit-overflow-scrolling: touch; /* Liquid scrolling for iOS touch events */
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay a {
  font-size: 18px !important; /* Premium scaled-down font for mobile */
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}
.mobile-nav-overlay a:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  color: var(--primary) !important;
  padding-left: 16px !important;
}
/* Style static category titles (like "Solutions:") beautifully */
.mobile-nav-overlay a[style*="pointer-events: none"] {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--color-text-tertiary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  border-bottom: none !important;
  padding: 12px 12px 4px !important;
  margin-top: 12px !important;
  background: transparent !important;
  opacity: 0.7 !important;
}
.mobile-nav-close {
  display: none !important;
}

/* Ensure nav-global matches the white active overlay when menu is open */
.mobile-menu-open .nav-global {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}
.mobile-menu-open .nav-global .nav-logo {
  color: var(--dark) !important;
}
.mobile-menu-open .nav-global .mobile-menu-btn {
  color: var(--dark) !important;
}

/* Scroll progress (thin Apple-style) */
.scroll-progress-apple {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  z-index: 10005; /* High enough to stay on top of the sticky bar */
  width: 0%;
  transition: width 0.1s linear;
}

/* Image placeholder style */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-secondary), #e8e8ed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

/* Divider */
.divider-apple {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0 auto;
  max-width: 1200px;
}
.dark .divider-apple {
  background: rgba(255,255,255,0.1);
}

/* ========== MARQUEE ANIMATION ========== */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: scroll-horizontal 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.client-logo {
  height: 60px;
  width: auto;
  transition: all 0.3s;
}

.client-logo:hover {
  transform: scale(1.1);
}

@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 20px)); }
}

@keyframes scroll-horizontal-reverse {
  0% { transform: translateX(calc(-50% - 20px)); }
  100% { transform: translateX(0); }
}

.marquee-track.reverse {
  animation: scroll-horizontal-reverse 30s linear infinite;
}

/* ========== SLIDESHOW ========== */
.slideshow-container {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: kenBurnsFade 15s infinite;
  z-index: 1;
}

.slideshow-slide:nth-child(1) { animation-delay: 0s; }
.slideshow-slide:nth-child(2) { animation-delay: 5s; }
.slideshow-slide:nth-child(3) { animation-delay: 10s; }

@keyframes kenBurnsFade {
  0% { opacity: 0; transform: scale(1.1); }
  6.66% { opacity: 1; transform: scale(1.08); }
  33.33% { opacity: 1; transform: scale(1.02); }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* ========== FLOATING WHATSAPP BUTTON (Apple Premium Style) ========== */
.whatsapp-float-apple {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #10B981;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4), 0 2px 10px rgba(16, 185, 129, 0.2);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none !important;
}
.whatsapp-float-apple:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5), 0 4px 15px rgba(16, 185, 129, 0.3);
}
.whatsapp-float-apple:active {
  transform: scale(0.95) translateY(0);
}
.whatsapp-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #10B981;
  animation: whatsappPulse 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.6); opacity: 0; }
}
.whatsapp-tooltip-apple {
  position: absolute;
  right: 76px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateX(12px);
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.whatsapp-float-apple:hover .whatsapp-tooltip-apple {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}
@media (max-width: 768px) {
  .whatsapp-float-apple {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .whatsapp-tooltip-apple {
    display: none;
  }
}

/* ========== INTERACTIVE SHARE MODAL SYSTEM ========== */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10009;
}
.share-overlay.active {
  opacity: 1;
  visibility: visible;
}
.share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 400px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 10010;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  padding: 30px;
  box-sizing: border-box;
}
.share-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.share-modal-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}
.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.share-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.share-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  transition: transform 0.2s;
}
.share-item-btn:hover .share-icon-wrapper {
  transform: scale(1.1);
}
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0077b5; }
.share-x { background: #111113; }
.share-facebook { background: #1877f2; }
.share-platforms-grid span {
  font-size: 11px;
  font-weight: 600;
  color: #515154;
}
.share-copy-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 8px 12px;
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}
.share-copy-input {
  font-size: 12px;
  color: #515154;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
}
.btn-copy-link {
  background: #0066cc;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-copy-link:hover {
  background: #004499;
}

/* ========== FLOATING TOASTS ========== */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10020;
  pointer-events: none;
}
.toast-apple {
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-apple.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PREMIUM COMMENTS MODAL SYSTEM (Centered Card Popup Dialog) ========== */
.comments-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comments-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.comments-modal {
  width: 90%;
  max-width: 500px;
  height: 75vh;
  max-height: 600px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: scale(0.95);
  opacity: 0;
  overflow: hidden;
}
.comments-modal-overlay.active .comments-modal {
  transform: scale(1);
  opacity: 1;
}
@media (max-width: 768px) {
  .comments-modal {
    width: 92%;
    height: 70vh;
    max-height: 80%;
    border-radius: 20px;
  }
}
/* Modal Header */
.modal-header {
  padding: 16px 24px 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}
.btn-close-modal-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #86868b;
  transition: background 0.2s, color 0.2s;
}
.btn-close-modal-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}
/* Scrollable comments list */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}
/* Form footer sticky at the bottom of the modal card */
.modal-footer {
  flex: 0 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}
/* Comment Items */
.comment-list-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d1d1f, #86868b);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-bubble {
  background: rgba(0, 0, 0, 0.03);
  padding: 14px 18px;
  border-radius: 18px;
  border-top-left-radius: 4px;
  flex-grow: 1;
}
.comment-author-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.comment-author-name {
  font-weight: 600;
  font-size: 13px;
  color: #1d1d1f;
}
.comment-time {
  font-size: 10px;
  color: #86868b;
}
.comment-body {
  font-size: 13.5px;
  color: #333336;
  line-height: 1.5;
}
.empty-comments-state {
  text-align: center;
  padding: 40px 0;
  color: #86868b;
}
.empty-comments-state i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}
/* Form input styling */
.comment-input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #1d1d1f;
  outline: none;
  transition: all 0.3s;
  margin-bottom: 10px;
}
.comment-input-field:focus {
  background: #ffffff;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
textarea.comment-input-field {
  height: 70px;
  resize: none;
}
.btn-submit-comment {
  width: 100%;
  background: #0066cc;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-submit-comment:hover {
  background: #004499;
}
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.35); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== CONTACT PAGE REDESIGN ========== */
.hero-contact {
  position: relative;
  background: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 50%, #090514 100%);
  color: #ffffff;
  padding: 140px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-contact::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(36, 78, 209, 0.15) 0%, rgba(232, 69, 154, 0.08) 40%, transparent 70%);
  z-index: 1;
  animation: contact-bg-glow 15s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes contact-bg-glow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 5%) scale(1.05); }
  100% { transform: translate(5%, -5%) scale(0.95); }
}

.hero-contact-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-contact-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #f1f5f9 70%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-contact-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto;
}

/* Bento Grid */
.offices-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.office-bento-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s var(--transition-smooth);
}

.office-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  border-color: rgba(36, 78, 209, 0.25);
}

/* Highlight Card for Tanzania HQ */
.office-bento-card.hq-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.7) 100%);
  border: 1px solid rgba(36, 78, 209, 0.15);
  box-shadow: 0 10px 30px rgba(36, 78, 209, 0.03);
  position: relative;
  overflow: hidden;
}

.office-bento-card.hq-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(36, 78, 209, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.office-bento-card.hq-card:hover {
  border-color: rgba(36, 78, 209, 0.35);
  box-shadow: 0 20px 45px rgba(36, 78, 209, 0.08);
}

/* Custom CTA Bento Card inside grid */
.office-bento-card.cta-card {
  background: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 100%);
  color: #ffffff;
  border: 1px solid rgba(36, 78, 209, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 24px;
}

.office-bento-card.cta-card h4 {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.office-bento-card.cta-card p {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.office-bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.office-bento-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.office-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.office-meta-item i {
  color: var(--primary);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

.office-meta-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.office-meta-item a:hover {
  color: var(--primary);
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
}

.flag-image {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  display: block;
}

/* Glassmorphic Form Card */
.form-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.form-glass-card:hover {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.form-glass-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.form-glass-subtitle {
  font-size: 14.5px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.input-custom {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: all 0.3s var(--transition-smooth);
}

.input-custom:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 78, 209, 0.12);
}

.select-custom-wrapper {
  position: relative;
  width: 100%;
}

.select-custom-wrapper::after {
  content: '\F2E0'; /* bootstrap icon chevron-down */
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
  font-size: 12px;
}

.select-custom {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text-secondary);
  outline: none;
  transition: all 0.3s var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-custom:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 78, 209, 0.12);
}

.textarea-custom {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  resize: vertical;
  transition: all 0.3s var(--transition-smooth);
}

.textarea-custom:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 78, 209, 0.12);
}

/* Custom Leaflet Map Container */
#contact-map {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* Map Header details */
.map-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.map-header-title h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 4px;
}

.map-header-title p {
  font-size: 14.5px;
  color: var(--color-text-secondary);
}

/* Leaflet Overrides */
.leaflet-container {
  font-family: var(--font-stack) !important;
}

.leaflet-bar {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: #ffffff !important;
  color: var(--dark) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  transition: all 0.2s;
}

.leaflet-bar a:hover {
  background-color: #f8fafc !important;
  color: var(--primary) !important;
}

/* Responsive Rules for Bento Grid */
@media (max-width: 1024px) {
  .offices-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .office-bento-card {
    grid-column: span 1 !important;
  }
  .office-bento-card.hq-card {
    grid-column: span 2 !important;
  }
}

@media (max-width: 768px) {
  .hero-contact-title {
    font-size: 40px;
  }
  .offices-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .office-bento-card {
    grid-column: span 1 !important;
  }
  .office-bento-card.hq-card {
    grid-column: span 1 !important;
  }
  .form-glass-card {
    padding: 32px 24px;
  }
  #contact-map {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero-contact-title {
    font-size: 32px;
  }
}

/* =========================================================
   PREMIUM CUSTOM APPLE DIALOG & CONFIRMATION BOX STYLING
   ========================================================= */
.apple-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.apple-dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.apple-dialog-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1) inset;
  width: 100%;
  max-width: 380px;
  padding: 28px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.apple-dialog-overlay.active .apple-dialog-card {
  transform: scale(1);
}

.apple-dialog-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 24px;
}

.apple-dialog-icon.danger {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

.apple-dialog-icon.info {
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
}

.apple-dialog-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.apple-dialog-message {
  font-size: 14.5px;
  color: #515154;
  line-height: 1.5;
  margin-bottom: 24px;
}

.apple-dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.apple-dialog-btn {
  flex: 1;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
}

.apple-dialog-btn.cancel {
  background: #f5f5f7;
  color: #515154;
}

.apple-dialog-btn.cancel:hover {
  background: #e8e8ed;
  color: #1d1d1f;
}

.apple-dialog-btn.confirm {
  background: #0066cc;
  color: #ffffff;
}

.apple-dialog-btn.confirm:hover {
  background: #004499;
}

.apple-dialog-btn.danger {
  background: #ff3b30;
  color: #ffffff;
}

.apple-dialog-btn.danger:hover {
  background: #dc2626;
}


@media (max-width: 480px) {
  .hero-contact-title {
    font-size: 32px;
  }
}

/* =========================================================
   PREMIUM CUSTOM APPLE SIDEBAR LAYOUT
   ========================================================= */
.admin-sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 99;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #1d1d1f;
  margin-bottom: 36px;
  padding-left: 8px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-link {
  padding: 12px 18px;
  border-radius: 12px;
  color: #515154;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sidebar-link i {
  font-size: 16px;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #1d1d1f;
}

.sidebar-link.active {
  background: rgba(0, 102, 204, 0.08);
  color: #0066cc;
  font-weight: 600;
}

.sidebar-link.active i {
  color: #0066cc;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc, #0088ff);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 13px;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 10px;
  color: #86868b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 76px;
    padding: 24px 8px;
    align-items: center;
  }
  .sidebar-logo span, .sidebar-link span, .sidebar-footer .sidebar-user-info {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
    margin-bottom: 24px;
    padding-left: 0;
  }
  .sidebar-link {
    padding: 12px;
    justify-content: center;
    border-radius: 50%;
  }
  .sidebar-profile {
    justify-content: center;
    padding: 0;
  }
}

/* ========== DYNAMIC COLORFUL SIDEBAR ICONS (Apple-style Settings tiles) ========== */
.sidebar-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-icon-wrapper i {
  font-size: 14px !important;
  color: #ffffff !important;
}

.sidebar-icon-wrapper.icon-posts { background: linear-gradient(135deg, #007aff, #0056b3); }
.sidebar-icon-wrapper.icon-comments { background: linear-gradient(135deg, #ff9500, #cc7600); }
.sidebar-icon-wrapper.icon-subscribers { background: linear-gradient(135deg, #34c759, #208038); }
.sidebar-icon-wrapper.icon-messages { background: linear-gradient(135deg, #5856d6, #3f3bbf); }
.sidebar-icon-wrapper.icon-users { background: linear-gradient(135deg, #af52de, #7d31a5); }
.sidebar-icon-wrapper.icon-profile { background: linear-gradient(135deg, #5ac8fa, #007bb3); }
.sidebar-icon-wrapper.icon-website { background: linear-gradient(135deg, #8e8e93, #5a5a5d); }

.sidebar-link:hover .sidebar-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.sidebar-link.active .sidebar-icon-wrapper {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* ========== PREMIUM LOGOUT BUTTON ========== */
.sidebar-logout-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  color: #8e8e93;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sidebar-logout-btn:hover {
  background: rgba(255, 59, 48, 0.08);
  color: #ff3b30;
}

.sidebar-icon-wrapper.icon-logout {
  background: linear-gradient(135deg, #ff3b30, #ff2d55);
}

.sidebar-logout-btn:hover .icon-logout {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}

@media (max-width: 768px) {
  .sidebar-logout-btn {
    padding: 12px;
    justify-content: center;
    border-radius: 50%;
  }
  .sidebar-logout-btn span:not(.sidebar-icon-wrapper) {
    display: none;
  }
}





