/* ==========================================
   THE643 GCC | PAGE-SPECIFIC UNIQUE LAYOUTS
   ========================================== */

/* ------------------------------------------
   HOME PAGE (index.html)
   ------------------------------------------ */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 9.5rem;
  padding-bottom: 6rem;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

#three-hero-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
  overflow: hidden;
}

.hero-dark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(9, 9, 9, 0.18) 0%, rgba(5, 5, 5, 0.5) 100%), rgba(0, 0, 0, 0.22);
  z-index: calc(var(--z-canvas) + 1);
  pointer-events: none;
}

#three-hero-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-content-wrap {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-main-title {
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.15rem auto;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
}

.hero-main-title .hero-line {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  white-space: nowrap;
}

.hero-main-title .hero-line.line-1 {
  letter-spacing: -0.015em;
}

.hero-main-title .hero-line.line-2 {
  letter-spacing: 0.035em;
}

.hero-main-title .hero-line.line-3 {
  letter-spacing: 0.01em;
}

@media (min-width: 769px) {
  .hero-main-title .hero-line {
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .hero-main-title .hero-line.line-1 {
    transform: translateX(clamp(-5.5rem, -4.5vw, -3.2rem));
  }
}

.hero-main-title .gold-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-soft) 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.05em 0;
}

.hero-arabic-sub {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 600;
  color: var(--gold-soft);
  direction: rtl;
  margin: 0 auto 1.35rem auto;
  text-align: center !important;
  line-height: 1.45;
  text-shadow: 0 0 30px var(--gold-glow);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  width: 100%;
  display: block;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 2.2rem auto;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .hero-home {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
    min-height: 85vh;
  }
  .hero-main-title {
    font-size: clamp(1.8rem, 5.5vw, 4.2rem);
  }
  .hero-arabic-sub {
    font-size: clamp(1.1rem, 3vw, 2.1rem);
  }
}

@media (max-width: 768px) {
  .hero-home {
    padding-top: 6.25rem;
    padding-bottom: 3rem;
    min-height: auto;
    overflow-x: hidden;
  }
  .hero-content-wrap {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .sovereign-frame-badge {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    max-width: 100%;
    width: auto;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    justify-content: center;
    line-height: 1.4;
    margin: 0 auto 0.85rem auto;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero-main-title {
    font-size: clamp(1.4rem, 6.2vw, 2.5rem);
    line-height: 1.25;
    margin: 0.85rem 0;
    text-align: center;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
  }
  .hero-main-title .hero-line {
    white-space: normal !important;
    display: inline-block !important;
    width: 100% !important;
    letter-spacing: normal !important;
  }
  .word-nowrap {
    white-space: normal !important;
    display: inline !important;
  }
  .hero-arabic-sub {
    font-size: clamp(0.98rem, 3.8vw, 1.35rem);
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center !important;
    padding: 0 0.25rem;
    width: 100%;
    direction: rtl;
  }
  .hero-content-wrap .ornamental-divider {
    margin: 1rem auto !important;
    max-width: 220px !important;
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 auto 1.75rem auto;
    padding: 0 0.25rem;
    text-align: center;
    max-width: 100%;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.85rem;
    margin: 0 auto;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero-home {
    padding-top: 5.5rem;
    padding-bottom: 2.25rem;
  }
  .sovereign-frame-badge {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
  }
  .hero-main-title {
    font-size: clamp(1.28rem, 5.8vw, 1.95rem);
    line-height: 1.28;
    letter-spacing: -0.01em;
  }
  .hero-arabic-sub {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .hero-description {
    font-size: 0.88rem;
    line-height: 1.58;
  }
}

/* Marquee / Credentials Logo Slider */
.credentials-marquee {
  width: 100%;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.75rem 0;
  position: relative;
  z-index: var(--z-content);
  user-select: none;
  cursor: grab;
}

.credentials-marquee:active {
  cursor: grabbing;
}

.marquee-drag-instruction {
  position: absolute;
  top: 0.4rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-soft);
  opacity: 0.65;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

.marquee-track-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-track-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  will-change: transform;
  touch-action: pan-y;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  min-width: 220px;
  padding: 0.8rem 2rem;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease-luxury), border-color 0.25s, box-shadow 0.25s;
  cursor: grab;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.logo-item:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--gold-primary);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.3);
}

.logo-item img {
  max-height: 72px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.partner-item span.highlight {
  color: var(--gold-soft);
}

/* Interactive Sovereign Architecture Stack */
.stack-tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stack-tab-btn {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.stack-tab-btn.active, .stack-tab-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-soft);
}

.architecture-viewport {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(23, 23, 23, 0.9), rgba(9, 9, 9, 0.95));
  border: 1px solid var(--border-active);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (max-width: 992px) {
  .architecture-viewport {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.blueprint-canvas-box {
  position: relative;
  width: 100%;
  height: 380px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GCC Interactive Map Section */
.gcc-map-section {
  position: relative;
  background: var(--bg-secondary);
  border-y: 1px solid var(--border-color);
}

.gcc-map-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .gcc-map-grid {
    grid-template-columns: 1fr;
  }
}

.gcc-map-visual {
  position: relative;
  width: 100%;
  height: 480px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ------------------------------------------
   ABOUT PAGE (about.html)
   ------------------------------------------ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding-top: 10rem;
}

@media (max-width: 992px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }
}

.timeline-container {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-primary);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-soft);
  font-weight: 700;
}

/* Leadership Council Cards */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2.5rem;
}

.leader-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.4s var(--ease-luxury);
}

.leader-card:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-8px);
}

.leader-img-box {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: grayscale(80%);
  transition: filter 0.4s;
}

.leader-card:hover .leader-img-box {
  filter: grayscale(0%);
}

.leader-info {
  padding: 1.75rem;
}

/* ------------------------------------------
   SERVICES PAGE (services.html)
   ------------------------------------------ */
.services-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxury);
}

.service-accordion-item.open {
  border-color: var(--gold-primary);
  background: rgba(23, 23, 23, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-subtle);
}

.service-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold-soft);
  font-weight: 700;
}

.service-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), opacity 0.5s;
  opacity: 0;
}

.service-accordion-item.open .service-accordion-body {
  max-height: 600px;
  opacity: 1;
  margin-top: 2rem;
}

/* Project Estimator / Architect Tool */
.estimator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
}

/* ------------------------------------------
   PORTFOLIO & CASE STUDY PAGES
   ------------------------------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.4s var(--ease-luxury);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
}

.project-media-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.project-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}

.project-card:hover .project-media-wrap img {
  transform: scale(1.06);
}

.project-meta-overlay {
  padding: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 9, 0.95) 100%);
}

/* Case Study Template */
.case-hero-cover {
  position: relative;
  width: 100%;
  height: 70vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 4rem;
}

.case-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 4rem 0;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
}

/* ------------------------------------------
   PROCESS & INDUSTRIES PAGES
   ------------------------------------------ */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2.5rem;
}

.process-step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.2);
  margin-bottom: 1rem;
}

/* ------------------------------------------
   INSIGHTS & BLOG PAGE
   ------------------------------------------ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 3rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-luxury);
}

.article-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-6px);
}

.article-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.article-content {
  padding: 2rem;
}

/* ------------------------------------------
   CONTACT & VIP RFP PAGE
   ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.rfp-step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
}

/* ------------------------------------------
   404 PAGE
   ------------------------------------------ */
.error-404-container {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 800;
  color: rgba(212, 175, 55, 0.1);
  line-height: 0.9;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ------------------------------------------
   COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES
   ------------------------------------------ */
@media (max-width: 992px) {
  .about-hero-grid,
  .contact-grid,
  .gcc-map-grid,
  .architecture-viewport {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .architecture-viewport {
    padding: 2rem;
  }

  .case-hero-cover {
    height: 400px;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .about-hero-grid {
    padding-top: 6rem;
  }

  .glass-card,
  .leader-card,
  .bento-card,
  .portfolio-card,
  .case-study-card,
  .insight-card,
  .industry-card,
  .service-accordion-item,
  .rfp-step-box,
  .estimator-box,
  .process-step-card {
    padding: 1.5rem 1.25rem !important;
  }

  .architecture-viewport {
    padding: 1.25rem;
  }

  .blueprint-canvas-box {
    height: 250px;
  }

  .case-hero-cover {
    height: 260px;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
  }

  .case-metrics-row {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    margin: 2rem 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-number {
    font-size: 2.2rem;
  }

  .project-media-wrap {
    height: 250px;
  }

  .project-meta-overlay {
    padding: 1.25rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-img {
    height: 200px;
  }

  .article-content {
    padding: 1.25rem;
  }

  .timeline-container {
    padding-left: 1.5rem;
  }

  .timeline-node {
    left: -2rem;
  }

  .stack-tabs-header {
    gap: 0.5rem;
  }

  .stack-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    width: 100%;
    text-align: center;
  }

  .service-accordion-header h3 {
    font-size: 1.1rem;
  }

  .service-num {
    font-size: 1.2rem;
  }

  .gcc-map-visual {
    height: 320px;
  }

  .logo-item {
    height: 72px;
    min-width: 170px;
    padding: 0.5rem 1.25rem;
  }

  .logo-item img {
    max-height: 52px;
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: 2.75rem 0;
  }

  .case-hero-cover {
    height: 200px;
  }

  .case-metrics-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .metric-number {
    font-size: 1.8rem;
  }

  .project-media-wrap {
    height: 200px;
  }

  .footer-wrap {
    padding: 4rem 0 2rem 0;
  }

  .footer-brand-heading {
    font-size: 1.8rem;
  }
}

/* ==========================================
   GLOBAL NETWORK MAP SECTION
   ========================================== */
.global-map-section {
  position: relative;
  padding: 6.5rem 0 7.5rem 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(18, 26, 42, 0.85) 0%, rgba(3, 5, 10, 0.99) 75%);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.global-map-glow {
  position: absolute;
  top: 40%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(216, 107, 39, 0.12) 0%, rgba(0, 108, 103, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.map-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 2.5rem auto;
  position: relative;
  z-index: 2;
}

.map-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 0.75rem;
  letter-spacing: -0.02em;
}

.map-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Country Selector Pills */
.map-pill-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.map-country-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.map-country-btn:hover {
  border-color: rgba(216, 107, 39, 0.5);
  color: #FFFFFF;
  background: rgba(216, 107, 39, 0.1);
  transform: translateY(-2px);
}

.map-country-btn.active {
  background: linear-gradient(135deg, rgba(216, 107, 39, 0.28), rgba(212, 175, 55, 0.18));
  border-color: var(--terracotta-primary);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(216, 107, 39, 0.25);
}

.map-country-btn .flag-emoji {
  font-size: 1rem;
}

/* Map Card & Container */
.map-viewport-card {
  position: relative;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.map-svg-wrap {
  width: 100%;
  height: clamp(380px, 55vh, 560px);
  position: relative;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 63% 36%, rgba(20, 28, 45, 0.9) 0%, rgba(4, 7, 14, 0.98) 75%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.map-svg-element {
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

/* Arc & SVG Map Styling */
.map-arc-line {
  fill: none;
  stroke: url(#arcGradient);
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(216, 107, 39, 0.5));
  transition: stroke 0.3s ease;
}

.map-node-group {
  cursor: pointer;
}

.map-node-group:hover .map-node-marker {
  transform: scale(1.3);
  filter: drop-shadow(0 0 12px var(--gold-primary));
}

.map-node-marker {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.map-pulse-ring {
  transform-origin: center;
  animation: mapPulse 2.5s ease-out infinite;
}

@keyframes mapPulse {
  0% {
    r: 6;
    opacity: 0.9;
    stroke-width: 2;
  }
  100% {
    r: 24;
    opacity: 0;
    stroke-width: 0.5;
  }
}

.map-pulse-ring-ksa {
  transform-origin: center;
  animation: mapPulseKsa 2s ease-out infinite;
}

@keyframes mapPulseKsa {
  0% {
    r: 8;
    opacity: 1;
    stroke-width: 2.5;
  }
  100% {
    r: 32;
    opacity: 0;
    stroke-width: 0.5;
  }
}

/* Floating HUD Box inside Map */
.map-hud-overlay {
  position: absolute;
  top: 2.25rem;
  right: 2.25rem;
  width: 320px;
  background: rgba(10, 15, 25, 0.88);
  border: 1px solid rgba(216, 107, 39, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(216, 107, 39, 0.15);
  z-index: 10;
  pointer-events: auto;
  transition: all 0.35s ease;
}

.map-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
}

.map-hud-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--terracotta-soft);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-hud-tag .blink-dot {
  width: 6px;
  height: 6px;
  background: var(--terracotta-primary);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.map-hud-latency {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.map-hud-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.map-hud-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}

.map-hud-city {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-primary);
  margin-bottom: 0.75rem;
}

.map-hud-info {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Bottom Controls Bar */
.map-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-stats-counter {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.map-stat-item {
  display: flex;
  flex-direction: column;
}

.map-stat-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.map-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.map-btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-action-btn:hover {
  background: var(--terracotta-primary);
  border-color: var(--terracotta-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(216, 107, 39, 0.3);
}

@media (max-width: 992px) {
  .map-hud-overlay {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-top: 1rem;
  }
  .map-svg-wrap {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .global-map-section {
    padding: 4.5rem 0 5rem 0;
  }
  .map-actions-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .map-country-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.72rem;
  }
}

.what-we-do-section {
  position: relative;
  padding: 7rem 0 8rem 0;
  background: radial-gradient(circle at 50% 20%, rgba(12, 18, 28, 0.75) 0%, rgba(3, 4, 6, 0.98) 70%);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.what-we-do-ambient-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(216, 107, 39, 0.15) 0%, rgba(212, 175, 55, 0.06) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.what-we-do-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem auto;
  position: relative;
  z-index: 2;
}

.what-we-do-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  color: #FFFFFF;
}

.what-we-do-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Interactive Pill Tabs */
.what-we-do-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.wwd-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.wwd-tab-btn:hover {
  border-color: rgba(216, 107, 39, 0.5);
  color: #FFFFFF;
  background: rgba(216, 107, 39, 0.1);
  transform: translateY(-2px);
}

.wwd-tab-btn.active {
  background: linear-gradient(135deg, rgba(216, 107, 39, 0.25), rgba(212, 175, 55, 0.2));
  border-color: var(--terracotta-primary);
  color: var(--gold-soft);
  box-shadow: 0 8px 25px rgba(216, 107, 39, 0.25);
}

/* Slider Container */
.what-we-do-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  z-index: 2;
}

.what-we-do-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.wwd-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 0.25rem;
}

/* Slide Card Layout */
.wwd-card {
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.wwd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta-primary), var(--gold-primary), var(--emerald-primary));
}

.wwd-content-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wwd-num-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta-soft);
  background: rgba(216, 107, 39, 0.15);
  border: 1px solid rgba(216, 107, 39, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}

.wwd-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.wwd-slide-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
}

.wwd-slide-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.wwd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

.wwd-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

.wwd-feature-item .check-icon {
  color: var(--gold-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.wwd-visual-side {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: rgba(5, 8, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

/* Slider Bottom Bar Controls */
.wwd-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}

.wwd-dots-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wwd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wwd-dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--terracotta-primary);
  box-shadow: 0 0 12px var(--terracotta-primary);
}

.wwd-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.wwd-arrows {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wwd-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wwd-arrow-btn:hover {
  background: var(--terracotta-primary);
  border-color: var(--terracotta-primary);
  color: #050505;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(216, 107, 39, 0.35);
}

@media (max-width: 992px) {
  .wwd-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    gap: 2.5rem;
  }
  .wwd-visual-side {
    min-height: 260px;
  }
  .wwd-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .what-we-do-section {
    padding: 4.5rem 0 5.5rem 0;
  }
  .wwd-card {
    padding: 2rem 1.25rem;
  }
  .wwd-tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }
}


