@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,500&family=Onest:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cyber-Organic MAFAD Brand Palette */
  --bg-dark: #071008;
  --bg-panel: rgba(247, 242, 229, 0.035);
  --bg-panel-hover: rgba(247, 242, 229, 0.07);
  
  --color-forest: #466642;
  --color-forest-dark: #263b28;
  --color-sage: #93a388;
  --color-gold: #c6a15b;
  --color-gold-glow: rgba(198, 161, 91, 0.18);
  --color-forest-glow: rgba(70, 102, 66, 0.28);
  --color-sand: #ead9b7;
  --color-blush: #f4eee5;
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(166, 146, 86, 0.25);

  --text-main: #f4f1e8;
  --text-muted: #a6b0a1;
  --text-dim: #6e796a;
  
  --font-sans: 'Onest', sans-serif;
  --font-ar: 'Alexandria', sans-serif;
  --font-ar-title: 'Alexandria', sans-serif;
  --font-serif: 'Newsreader', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  --bg-dark-rgb: 7, 16, 8;
}

/* Light Theme Variables */
:root.light-theme {
  --bg-dark: #f8f6f5;
  --bg-panel: rgba(68, 89, 62, 0.03);
  --bg-panel-hover: rgba(68, 89, 62, 0.06);
  
  --border-light: rgba(68, 89, 62, 0.1);
  --border-hover: rgba(68, 89, 62, 0.2);
  --border-gold: rgba(166, 146, 86, 0.4);

  --text-main: #1d251a;
  --text-muted: #576553;
  --text-dim: #8b9987;
  
  --color-gold-glow: rgba(166, 146, 86, 0.1);
  --color-forest-glow: rgba(68, 89, 62, 0.08);
  
  --bg-dark-rgb: 248, 246, 245;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s var(--ease-expo), color 0.6s var(--ease-expo);
}

[dir="rtl"] {
  font-family: var(--font-ar);
}
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6, 
[dir="rtl"] .hud-section-title, 
[dir="rtl"] .title-tech, 
[dir="rtl"] .page-title, 
[dir="rtl"] .cover-brand-tagline, 
[dir="rtl"] .back-tagline {
  font-family: var(--font-ar-title) !important;
}

img {
  max-width: 100%;
  display: block;
}

a, button {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  transition: all 0.4s var(--ease-expo);
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(166, 146, 86, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

body.cursor-hover .custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--color-forest);
}
.light-theme body.cursor-hover .custom-cursor {
  background: var(--color-gold);
}

body.cursor-hover .custom-cursor-follower {
  width: 50px;
  height: 50px;
  border-color: var(--color-forest);
  background: rgba(68, 89, 62, 0.05);
}
.light-theme body.cursor-hover .custom-cursor-follower {
  border-color: var(--color-gold);
  background: rgba(166, 146, 86, 0.05);
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* ===== CANVAS + APP SHELL ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 2;
}

/* ===== BACKGROUND GRADIENTS (AMBIENT LIGHTS) ===== */
.bg-glow-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.15;
}
.light-theme .glow-sphere {
  opacity: 0.08;
}

.glow-1 {
  top: -10%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-forest) 0%, transparent 70%);
}

.glow-2 {
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  opacity: 0.08;
}

/* ===== PREMIUM LOADER ===== */
.loader-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.loader-logo {
  width: 120px;
  height: auto;
  animation: pulse-logo 2s var(--ease-smooth) infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--color-gold);
  animation: fill-loader 1.2s var(--ease-expo) forwards;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(166, 146, 86, 0.1)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(166, 146, 86, 0.4)); }
}

@keyframes fill-loader {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ===== UTILITIES ===== */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.mb-m { margin-bottom: 2rem; }
.mb-l { margin-bottom: 4rem; }
.mb-xl { margin-bottom: 6rem; }
.mt-xl { margin-top: 5rem; }

/* ===== NAVIGATION BAR ===== */
.nav-tech {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease-expo), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav-tech.scrolled {
  padding: 1rem 0;
  background-color: rgba(var(--bg-dark-rgb), 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand img {
  height: 38px;
  width: auto;
}

.logo-light { display: none; }
.logo-dark { display: block; }
.light-theme .logo-light { display: block; }
.light-theme .logo-dark { display: none; }

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link-tech {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  letter-spacing: 0.5px;
}

.nav-link-tech::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-expo);
}

.nav-link-tech:hover,
.nav-link-tech.active {
  color: var(--text-main);
}

.nav-link-tech:hover::after,
.nav-link-tech.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Lang Toggle */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--color-gold);
  color: var(--text-main);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-panel);
}
.theme-toggle:hover {
  color: var(--text-main);
  background: var(--bg-panel-hover);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .moon-icon { display: none; }
.light-theme .theme-toggle .sun-icon { display: none; }
.light-theme .theme-toggle .moon-icon { display: block; }

/* Mobile nav hidden for simplicity */
@media (max-width: 1024px) {
  .nav-links-wrapper {
    display: none;
  }
}

/* ===== HUD CORE BOX SYSTEM ===== */
.hud-box {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.4s var(--ease-expo), border-color 0.4s var(--ease-expo), transform 0.4s var(--ease-expo);
}

.hud-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(166, 146, 86, 0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s;
}

.hud-box:hover {
  background-color: var(--bg-panel-hover);
  border-color: var(--border-hover);
}

.hud-box-inner {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.4s var(--ease-expo);
}

.hud-box:hover .hud-box-inner {
  border-color: var(--border-gold);
}

/* HUD Typography */
.hud-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hud-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold);
}

.hud-section-title {
  font-family: var(--font-ar);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}
body:not([dir="rtl"]) .hud-section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
}

/* ===== HERO SECTION ===== */
.hero-tech {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(166, 146, 86, 0.08);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  margin-bottom: 2rem;
}

.hero-badge-tag span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.hero-badge-tag div {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.title-tech {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 2rem;
}

body:not([dir="rtl"]) .title-tech {
  font-family: var(--font-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-sand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desc-tech {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Premium Buttons */
.btn-tech {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-cyan {
  background-color: var(--color-forest);
  color: white;
  box-shadow: 0 10px 20px rgba(68, 89, 62, 0.15);
}
.btn-cyan:hover {
  background-color: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(68, 89, 62, 0.3);
}

.btn-outline-tech {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}
.btn-outline-tech:hover {
  background-color: var(--bg-panel);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  border-color: var(--border-gold);
  color: var(--color-gold);
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--bg-dark);
  box-shadow: 0 10px 20px rgba(166, 146, 86, 0.15);
}

/* Hero Visual Frame */
.main-display-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  height: 550px;
}
.light-theme .main-display-frame {
  box-shadow: 0 30px 60px rgba(68, 89, 62, 0.1);
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.main-display-frame:hover .hero-main-img {
  transform: scale(1.05);
}

.hero-floating-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem; /* Left because RTL/LTR handled globally or relative */
  background: rgba(var(--bg-dark-rgb), 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.hero-floating-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-floating-text h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-gold);
  letter-spacing: 1px;
}
.hero-floating-text p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.15rem;
}

@keyframes fill-loader {
  0% { width: 0%; }
  100% { width: 100%; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 992px) {
  .hero-tech-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .main-display-frame {
    height: 400px;
  }
}

/* ===== STATS DASHBOARD BAR ===== */
.stats-dashboard {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background-color: rgba(var(--bg-dark-rgb), 0.5);
  backdrop-filter: blur(10px);
  padding: 2.5rem 0;
}

.stats-grid-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-metric-card {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stat-metric-card {
    min-width: 40%;
  }
}

/* ===== WHO WE ARE (ABOUT) ===== */
.section-tech {
  padding: 8rem 0;
  position: relative;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 500px;
}

.about-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.about-visual-frame:hover .about-display-img {
  transform: scale(1.05);
}

.dashboard-info-details p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-visual-frame {
    height: 350px;
  }
}

/* ===== SECTORS INTERACTIVE MONITOR ===== */
.partner-control-deck {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: stretch;
}

.control-board-nodes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.control-board-node-card {
  padding: 1.75rem 2rem;
  cursor: pointer;
}

.node-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.node-icon {
  font-size: 1.5rem;
}

.control-board-node-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.3s;
}

.control-board-node-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.control-board-node-card.active {
  background-color: var(--bg-panel-hover);
  border-color: var(--color-gold);
}
.control-board-node-card.active h4 {
  color: var(--color-gold);
}

/* Monitor Screen styles */
.monitor-screen-hud {
  height: 100%;
  min-height: 520px;
  position: relative;
  display: flex;
  flex-direction: column;
}

#monitor-target-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.9;
  filter: brightness(0.65);
  transition: opacity 0.5s ease-in-out;
}
.light-theme #monitor-target-img {
  filter: brightness(0.8);
}

.monitor-screen-overlay {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 3rem;
  background: linear-gradient(to top, rgba(31, 55, 35, 0.96) 38%, rgba(49, 76, 52, 0.58) 72%, rgba(49, 76, 52, 0) 100%);
  border-top: 0;
  color: white;
}
.light-theme .monitor-screen-overlay {
  color: var(--text-main);
}

.monitor-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(166, 146, 86, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

#monitor-target-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#monitor-target-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .partner-control-deck {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* ===== FEATURED PROJECTS GRID ===== */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.tech-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tech-hud-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.tech-card-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.tech-card-sector {
  color: var(--color-gold);
  font-weight: 600;
}

.tech-hud-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.tech-hud-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 2rem;
}

.tech-card-specs {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.tech-card-specs strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--color-gold);
  line-height: 1.2;
}

.tech-card-specs span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.tech-card-client {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ===== WHY US SECTIONS ===== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: stretch;
}

.features-list-hud {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-hud-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.feature-hud-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== MARQUEE COMPONENT ===== */
.partners-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.75rem 0;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: scroll-left 35s linear infinite;
}

[dir="rtl"] .marquee-content {
  animation-name: scroll-right;
}

.marquee-content span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 2.5rem;
}

.marquee-content .bullet {
  color: var(--color-gold);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--color-gold-glow);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes scroll-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ===== FOOTER ===== */
.footer-tech {
  background-color: rgba(var(--bg-dark-rgb), 0.5);
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 3rem;
  position: relative;
  z-index: 5;
}

.footer-grid-tech {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}
.light-theme .footer-logo {
  filter: brightness(0.2);
}

.footer-brand-tech p {
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer-links-tech h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-tech ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-tech a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links-tech a:hover {
  color: var(--color-gold);
}

.footer-bottom-tech {
  border-top: 1px solid var(--border-light);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .footer-grid-tech {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 3rem;
  }
}
@media (max-width: 768px) {
  .footer-grid-tech {
    grid-template-columns: 1fr;
  }
  .footer-bottom-tech {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ===== REVEAL INTERACTION PLUGS ===== */
.reveal-up, .reveal-fade, .reveal-scale {
  opacity: 0;
}

/* ===== PREMIUM CARD IMAGE & WATERMARK SYSTEM ===== */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-dark);
}

.card-img-wrapper:has(> img.card-main-img[src*="product-crops-v2"]) {
  height: auto;
  aspect-ratio: 1 / 1;
}

.card-img-wrapper img.card-main-img[src*="product-crops-v2"] {
  object-position: 50% 50%;
}

.card-img-wrapper img.card-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.hud-box:hover .card-img-wrapper img.card-main-img {
  transform: scale(1.05);
}

/* Official Logo Watermark Stamp Overlay */
.mafad-stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(var(--bg-dark-rgb), 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ease-expo), border-color 0.4s;
}

.hud-box:hover .mafad-stamp {
  transform: scale(1.1);
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(166, 146, 86, 0.4);
}

.mafad-stamp img.stamp-logo-img {
  width: 20px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.light-theme .mafad-stamp img.stamp-logo-img {
  filter: brightness(0.2);
}

.hud-box:hover .mafad-stamp img.stamp-logo-img {
  opacity: 1;
}

/* Adjustments for project and crop cards to support image wrappers */
.tech-hud-card.hud-box {
  padding: 0 !important;
  border-radius: 8px;
}

.tech-hud-card .card-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech-hud-card h3 {
  margin-top: 1rem;
}


/* ===== MAFAD 2026 ? EDITORIAL AGRITECH EXPERIENCE ===== */
::selection {
  background: var(--color-gold);
  color: #0a130a;
}

html {
  scroll-behavior: auto;
  scrollbar-color: var(--color-gold) var(--bg-dark);
}

body {
  min-height: 100%;
  background:
    radial-gradient(circle at 88% 8%, rgba(70, 102, 66, 0.17), transparent 32rem),
    radial-gradient(circle at 8% 82%, rgba(198, 161, 91, 0.09), transparent 36rem),
    var(--bg-dark);
  letter-spacing: -0.012em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.app-shell {
  overflow: clip;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 1.5rem;
  top: -100px;
  z-index: 100002;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: var(--color-gold);
  color: #071008;
  font-weight: 800;
  transition: top 0.25s var(--ease-expo);
}

.skip-link:focus {
  top: 1rem;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
  background: transparent;
}

.page-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-forest), var(--color-gold), var(--color-sand));
  box-shadow: 0 0 18px rgba(198, 161, 91, 0.45);
}

[dir="rtl"] .page-progress > span {
  transform-origin: right center;
}

/* Refined navigation shell */
.nav-tech {
  padding: 1rem 0;
}

.nav-tech .nav-inner {
  width: min(94%, 1480px);
  max-width: 1480px;
  min-height: 70px;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  border: 1px solid rgba(234, 217, 183, 0.09);
  border-radius: 18px;
  background: rgba(7, 16, 8, 0.56);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.2);
}

[dir="rtl"] .nav-tech .nav-inner {
  padding: 0.65rem 1rem 0.65rem 0.75rem;
}

.nav-tech.scrolled {
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
}

.nav-tech.scrolled .nav-inner {
  min-height: 62px;
  background: rgba(var(--bg-dark-rgb), 0.9);
  border-color: rgba(198, 161, 91, 0.2);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.nav-brand {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 0.2rem 0.4rem;
}

.nav-brand img {
  height: 42px;
  object-fit: contain;
}

.nav-links-wrapper {
  gap: clamp(1rem, 1.8vw, 2.2rem);
}

.nav-link-tech {
  padding: 0.7rem 0;
  font-size: clamp(0.76rem, 0.8vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0;
}

.nav-link-tech::after {
  bottom: 0.35rem;
  height: 5px;
  width: 5px;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  box-shadow: 0 0 10px var(--color-gold);
}

.nav-link-tech:hover::after,
.nav-link-tech.active::after {
  transform: translateX(-50%) scale(1);
}

.nav-actions {
  gap: 0.65rem;
}

.lang-toggle,
.theme-toggle {
  min-height: 40px;
  border-color: rgba(234, 217, 183, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.lang-toggle {
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(234, 217, 183, 0.1);
  border-radius: 10px;
}

.nav-actions .btn-tech {
  padding: 0.75rem 1rem;
  min-height: 42px;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-main);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-expo), opacity 0.25s, top 0.35s var(--ease-expo);
}

.menu-toggle::before { top: 15px; }
.menu-toggle span { top: 22px; }
.menu-toggle::after { top: 29px; }

body.menu-open .menu-toggle::before {
  top: 22px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span {
  opacity: 0;
}

body.menu-open .menu-toggle::after {
  top: 22px;
  transform: rotate(-45deg);
}

body.menu-open .menu-toggle::before,
body.menu-open .menu-toggle::after {
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(198, 161, 91, 0.32);
}

/* Hero as an editorial cover */
.hero-tech {
  min-height: 100svh;
  padding: 9.5rem 0 5rem;
  isolation: isolate;
}

.hero-tech::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("assets/images/mafad-field-contours.svg") center / cover no-repeat;
  opacity: 0.75;
}

.hero-tech::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  inset-inline-end: -8rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(198, 161, 91, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(198, 161, 91, 0.02), 0 0 0 10rem rgba(70, 102, 66, 0.025);
}

.hero-tech-grid {
  position: relative;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 7vw, 8rem);
}

[dir="rtl"] .hero-tech-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.hero-content-tech {
  position: relative;
  z-index: 3;
}

.hero-badge-tag {
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: rgba(198, 161, 91, 0.07);
  backdrop-filter: blur(10px);
}

.hero-badge-tag div {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.title-tech {
  max-width: 820px;
  margin-bottom: 1.7rem;
  font-size: clamp(3.2rem, 6.3vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

[dir="rtl"] .title-tech {
  font-size: clamp(3rem, 6vw, 6.15rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.gradient-text {
  background: linear-gradient(115deg, var(--color-sand) 4%, var(--color-gold) 48%, #8ea781 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desc-tech {
  max-width: 690px;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.95;
}

.cta-group {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-tech {
  min-height: 52px;
  justify-content: center;
  border-radius: 12px;
  padding: 0.9rem 1.45rem;
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo), color 0.3s, background 0.3s, border-color 0.3s;
}

.btn-tech::after {
  content: "";
  position: absolute;
  inset: auto -20% -140% 20%;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.55s var(--ease-expo);
}

.btn-tech:hover::after {
  transform: translateY(-70%);
}

.btn-cyan {
  background: linear-gradient(135deg, #567852, #314c34);
  box-shadow: 0 15px 38px rgba(35, 67, 38, 0.32);
}

.btn-cyan:hover,
.btn-outline-tech:hover,
.btn-outline-gold:hover {
  transform: translateY(-4px);
}

.main-display-frame {
  min-height: 470px;
  height: min(68vh, 690px);
  overflow: visible;
  border: 0;
  border-radius: 64px 10px 64px 10px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.3);
}

.main-display-frame::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -1.1rem 1.1rem 1.1rem -1.1rem;
  border: 1px solid rgba(198, 161, 91, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

[dir="rtl"] .main-display-frame::before {
  inset: -1.1rem -1.1rem 1.1rem 1.1rem;
}

.main-display-frame::after {
  content: "MAFAD ? SUDAN ? 2002";
  position: absolute;
  z-index: 5;
  inset-inline-end: -2rem;
  top: 2.5rem;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  opacity: 0.75;
}

.main-display-frame > img,
.main-display-frame .hero-main-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06);
  transition: transform 1.2s var(--ease-expo), filter 0.8s;
}

.main-display-frame:hover > img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

.hero-floating-badge {
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: calc(100% - 3rem);
  border-radius: 14px;
  background: rgba(7, 16, 8, 0.8);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

/* Metrics become a floating evidence rail */
.stats-dashboard {
  border: 0;
  padding: 0 0 2rem;
  background: transparent;
  backdrop-filter: none;
}

.stats-grid-hud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-metric-card {
  min-width: 0;
  padding: 1.6rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  text-align: start;
  transition: transform 0.4s var(--ease-expo), border-color 0.4s, background 0.4s;
}

.stat-metric-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: rgba(198, 161, 91, 0.055);
}

.metric-number {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  letter-spacing: -0.06em;
}

.metric-label {
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

/* Layout rhythm, cards, and visual depth */
.section-tech {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
}

.section-tech:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 15% 20%, rgba(70, 102, 66, 0.06), transparent 26rem);
}

.hud-eyebrow {
  margin-bottom: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.hud-section-title {
  max-width: 800px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 4.8vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.dashboard-grid {
  gap: clamp(3rem, 7vw, 7rem);
}

.about-visual-frame {
  height: clamp(380px, 52vw, 610px);
  border: 0;
  border-radius: 10px 58px 10px 58px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.22);
}

.about-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(234, 217, 183, 0.1);
  pointer-events: none;
}

.hud-box {
  border-color: rgba(234, 217, 183, 0.09);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.hud-box:hover {
  border-color: rgba(198, 161, 91, 0.38);
  transform: translateY(-7px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

.hud-box-inner,
.hud-box:hover .hud-box-inner {
  border-radius: inherit;
}

.tech-hud-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 1.25rem;
}

.tech-hud-card.hud-box {
  border-radius: 22px;
}

.tech-hud-card .card-content {
  padding: 2rem;
}

.card-img-wrapper {
  height: 270px;
}

.card-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(49, 76, 52, 0.38), rgba(49, 76, 52, 0) 50%);
  pointer-events: none;
}

.tech-hud-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.partner-control-deck {
  gap: clamp(2rem, 5vw, 5rem);
}

.control-board-node-card {
  border-radius: 16px;
  padding: 1.45rem 1.6rem;
}

.control-board-node-card.active {
  background: linear-gradient(120deg, rgba(70, 102, 66, 0.18), rgba(198, 161, 91, 0.06));
  box-shadow: inset 3px 0 0 var(--color-gold);
}

[dir="rtl"] .control-board-node-card.active {
  box-shadow: inset -3px 0 0 var(--color-gold);
}

.monitor-screen-hud {
  min-height: 590px;
  border-radius: 36px 10px 36px 10px;
}

.monitor-screen-overlay {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.partners-marquee {
  border-radius: 18px;
  padding: 2rem 0;
  background: linear-gradient(90deg, rgba(70, 102, 66, 0.08), rgba(198, 161, 91, 0.04), rgba(70, 102, 66, 0.08));
}

/* Board of directors ? sourced from the company profile */
.leadership-suite {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--border-light);
  background:
    radial-gradient(circle at 10% 18%, rgba(197, 161, 91, 0.07), transparent 26rem),
    radial-gradient(circle at 92% 78%, rgba(70, 102, 66, 0.1), transparent 30rem),
    rgba(255, 255, 255, 0.012);
}

.leadership-suite > .container {
  position: relative;
  z-index: 2;
}

.board-section-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.board-section-note {
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid var(--border-gold);
  color: var(--text-muted);
  line-height: 1.9;
}

.board-chair-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1.28fr;
  min-height: 430px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.22);
  border-radius: 34px 10px 34px 10px;
  background: linear-gradient(120deg, rgba(70, 102, 66, 0.2), rgba(255, 255, 255, 0.02));
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.2);
}

.board-photo {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--color-forest-dark);
}

.board-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(49, 76, 52, 0.38), rgba(49, 76, 52, 0) 45%);
  pointer-events: none;
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 0.8s var(--ease-expo), filter 0.5s;
}

.board-chair-card:hover .board-photo img,
.board-person-card:hover .board-photo img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02);
}

.board-person-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 4rem);
}

.board-index {
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-gold);
  letter-spacing: 0.16em;
}

.board-person-copy h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.2;
  text-wrap: balance;
}

.board-role {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.board-bio {
  color: var(--text-muted);
  line-height: 1.9;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.board-person-card {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  min-height: 285px;
  overflow: hidden;
  border-radius: 20px;
}

.board-person-card .board-person-copy {
  padding: 1.5rem;
}

.board-person-card h3 {
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
}

.board-person-card .board-index {
  margin-bottom: 0.8rem;
}

.board-person-card .board-role {
  margin-bottom: 0.8rem;
  font-size: 0.62rem;
}

.board-person-card .board-bio {
  font-size: 0.88rem;
  line-height: 1.75;
}

/* Footer and utility interactions */
.footer-tech {
  padding: 5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(49, 76, 52, 0.56), rgba(24, 48, 30, 0.98)),
    url("assets/images/mafad-field-contours.svg") bottom center / cover no-repeat;
}

.footer-grid-tech {
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-links-tech a {
  display: inline-block;
}

.footer-links-tech a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

[dir="rtl"] .footer-links-tech a:hover {
  transform: translateX(-4px);
}

.scroll-top {
  position: fixed;
  z-index: 900;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  background: rgba(var(--bg-dark-rgb), 0.84);
  color: var(--color-gold);
  cursor: pointer;
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s var(--ease-expo), background 0.3s;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  background: var(--color-gold);
  color: #071008;
}

/* Never make core content disappear while waiting for JS */
.reveal-up,
.reveal-fade,
.reveal-scale {
  opacity: 1 !important;
}

.light-theme body {
  background:
    radial-gradient(circle at 88% 8%, rgba(70, 102, 66, 0.11), transparent 32rem),
    radial-gradient(circle at 8% 82%, rgba(198, 161, 91, 0.1), transparent 36rem),
    var(--bg-dark);
}

.light-theme .nav-tech .nav-inner {
  background: rgba(248, 246, 245, 0.78);
  box-shadow: 0 20px 55px rgba(56, 70, 51, 0.1);
}

.light-theme .board-chair-card {
  background: linear-gradient(120deg, rgba(70, 102, 66, 0.11), rgba(255, 255, 255, 0.72));
}

.light-theme .hero-floating-badge {
  background: rgba(248, 246, 245, 0.88);
}

@media (max-width: 1180px) {
  .menu-toggle {
    display: block;
  }

  .nav-tech .nav-inner {
    backdrop-filter: none;
  }

  body.menu-open .nav-tech .nav-inner {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  body.menu-open .nav-brand {
    z-index: 1001;
  }

  .nav-tech .nav-links-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    padding: 7rem max(7vw, 1.5rem) 2rem;
    background:
      url("assets/images/mafad-field-contours.svg") center / cover no-repeat,
      rgba(var(--bg-dark-rgb), 0.975);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.35s, visibility 0.35s, transform 0.45s var(--ease-expo);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .nav-tech .nav-links-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-tech .nav-link-tech {
    width: 100%;
    padding: 0.55rem 0;
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--text-main);
    text-align: center;
  }

  .nav-tech .nav-link-tech::after {
    display: none;
  }

  .nav-tech .nav-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .nav-actions .btn-tech {
    width: 100%;
    max-width: 320px;
  }

  .stats-grid-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hero-tech {
    min-height: auto;
    padding-top: 8.5rem;
  }

  .hero-tech-grid,
  [dir="rtl"] .hero-tech-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .title-tech,
  [dir="rtl"] .title-tech {
    font-size: clamp(3rem, 11vw, 5.4rem);
  }

  .main-display-frame {
    height: min(72vh, 590px);
  }

  .dashboard-grid,
  .why-us-grid,
  .board-section-head {
    grid-template-columns: 1fr;
  }

  .board-section-head {
    gap: 1.2rem;
  }

  .board-chair-card {
    grid-template-columns: minmax(220px, 0.75fr) 1.25fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(90%, 640px);
  }

  .nav-tech .nav-inner {
    min-height: 62px;
    border-radius: 14px;
  }

  .nav-brand img {
    height: 35px;
  }

  .hero-tech {
    padding-block: 7.5rem 3.5rem;
  }

  .hero-tech::after {
    display: none;
  }

  .title-tech,
  [dir="rtl"] .title-tech {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .desc-tech {
    font-size: 0.95rem;
  }

  .cta-group .btn-tech {
    width: 100%;
  }

  .main-display-frame {
    min-height: 390px;
    height: 62vh;
    max-height: 520px;
    border-radius: 36px 8px 36px 8px;
  }

  .main-display-frame::before {
    inset: -0.65rem 0.65rem 0.65rem -0.65rem;
  }

  [dir="rtl"] .main-display-frame::before {
    inset: -0.65rem -0.65rem 0.65rem 0.65rem;
  }

  .main-display-frame::after {
    display: none;
  }

  .hero-floating-badge {
    inset-inline: 1rem;
    left: auto;
    bottom: 1rem;
  }

  .stats-grid-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-metric-card {
    padding: 1.25rem 0.85rem;
  }

  .section-tech {
    padding-block: 5.5rem;
  }

  .hud-section-title {
    font-size: clamp(2.2rem, 10vw, 3.45rem);
  }

  .tech-hud-grid {
    grid-template-columns: 1fr;
  }

  .card-img-wrapper {
    height: 230px;
  }

  .board-chair-card,
  .board-person-card {
    grid-template-columns: 1fr;
  }

  .board-chair-card .board-photo {
    min-height: 420px;
  }

  .board-person-card .board-photo {
    min-height: 360px;
  }

  .board-person-copy,
  .board-person-card .board-person-copy {
    padding: 1.5rem;
  }

  .board-person-card h3 {
    font-size: 1.35rem;
  }

  .footer-grid-tech {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .custom-cursor,
  .custom-cursor-follower,
  #bg-canvas {
    display: none !important;
  }
}

/* ===== LIGHT THEME ? SOFT DAYLIGHT DEPTH ===== */
.light-theme body::before {
  opacity: 0.018;
}

.light-theme .main-display-frame {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 24px 64px rgba(54, 73, 50, 0.105);
}

.light-theme .about-visual-frame {
  box-shadow: 0 22px 58px rgba(54, 73, 50, 0.095);
}

.light-theme .hud-box {
  border-color: rgba(68, 89, 62, 0.11);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(239, 236, 225, 0.42));
  box-shadow: 0 10px 30px rgba(54, 73, 50, 0.06);
}

.light-theme .hud-box:hover {
  border-color: rgba(166, 146, 86, 0.34);
  box-shadow: 0 18px 46px rgba(54, 73, 50, 0.105);
}

.light-theme .stat-metric-card {
  border-color: rgba(68, 89, 62, 0.09);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(239, 236, 225, 0.36));
  box-shadow: 0 8px 24px rgba(54, 73, 50, 0.045);
}

.light-theme .stat-metric-card:hover {
  box-shadow: 0 14px 36px rgba(54, 73, 50, 0.08);
}

.light-theme .board-chair-card {
  border-color: rgba(68, 89, 62, 0.13);
  background: linear-gradient(120deg, rgba(231, 235, 224, 0.78), rgba(255, 255, 255, 0.88));
  box-shadow: 0 22px 58px rgba(54, 73, 50, 0.085);
}

.light-theme .hero-floating-badge {
  border-color: rgba(68, 89, 62, 0.14);
  background: rgba(250, 248, 242, 0.92);
  box-shadow: 0 12px 30px rgba(54, 73, 50, 0.1);
}

.light-theme .mafad-stamp {
  background: rgba(250, 248, 242, 0.9);
  box-shadow: 0 8px 22px rgba(54, 73, 50, 0.09);
}

.light-theme .card-img-wrapper::after,
.light-theme .board-photo::after {
  background: linear-gradient(to top, rgba(54, 73, 50, 0.055), transparent 58%);
}

.light-theme #monitor-target-img {
  filter: brightness(0.96) saturate(0.92) contrast(0.97);
}

.light-theme .monitor-screen-overlay {
  color: var(--text-main);
  background: linear-gradient(
    to top,
    rgba(248, 246, 245, 0.99) 34%,
    rgba(248, 246, 245, 0.9) 62%,
    rgba(248, 246, 245, 0) 100%
  );
}

.light-theme .footer-tech {
  border-top-color: rgba(68, 89, 62, 0.1);
  background:
    linear-gradient(180deg, rgba(242, 239, 229, 0.48), rgba(231, 229, 217, 0.94)),
    url("assets/images/mafad-field-contours.svg") bottom center / cover no-repeat;
}

.light-theme .scroll-top {
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 10px 28px rgba(54, 73, 50, 0.09);
}

.light-theme .partners-marquee {
  background: linear-gradient(90deg, rgba(226, 232, 220, 0.66), rgba(244, 238, 224, 0.64), rgba(226, 232, 220, 0.66));
}

.light-theme .control-board-node-card.active {
  background: linear-gradient(120deg, rgba(213, 223, 207, 0.72), rgba(241, 232, 210, 0.52));
}

.light-theme .btn-cyan {
  box-shadow: 0 12px 28px rgba(54, 83, 52, 0.18);
}

.light-theme .btn-cyan:hover {
  box-shadow: 0 16px 36px rgba(54, 83, 52, 0.24);
}

/* ===== RESPONSIVE TYPOGRAPHY SAFETY =====
   Arabic glyphs in Alexandria need a taller line box than Latin display type.
   Section headings inside split layouts also scale against their column rather
   than the full viewport, preventing stacked lines from colliding. */
.hero-tech-grid > *,
.dashboard-grid > *,
.why-us-grid > *,
.partner-control-deck > *,
.tech-hud-grid > *,
.stats-grid-hud > *,
.footer-grid-tech > * {
  min-width: 0;
}

.title-tech,
.hud-section-title,
.tech-hud-card h3,
.feature-hud-item h4,
.control-board-node-card h4,
.metric-label {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.title-tech {
  font-size: clamp(3rem, 5.6vw, 6rem);
  line-height: 1.03;
}

.hud-section-title {
  font-size: clamp(2.25rem, 4vw, 4.15rem);
  line-height: 1.14;
}

/* Headings in half-width columns must not inherit a full-viewport display size. */
.dashboard-grid .hud-section-title,
.why-us-grid .hud-section-title,
.partner-control-deck .hud-section-title,
.board-section-head .hud-section-title {
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
}

[dir="rtl"] .title-tech {
  font-size: clamp(2.8rem, 5.1vw, 5.25rem);
  line-height: 1.26;
  letter-spacing: -0.022em;
}

[dir="rtl"] .hud-section-title {
  line-height: 1.34;
  letter-spacing: -0.018em;
}

[dir="rtl"] .tech-hud-card h3,
[dir="rtl"] .feature-hud-item h4,
[dir="rtl"] .control-board-node-card h4,
[dir="rtl"] .metric-label,
[dir="rtl"] .hero-badge-tag div {
  line-height: 1.55;
  letter-spacing: 0;
}

@media (max-width: 992px) {
  .title-tech,
  [dir="rtl"] .title-tech {
    font-size: clamp(2.85rem, 9vw, 4.8rem);
  }

  .dashboard-grid .hud-section-title,
  .why-us-grid .hud-section-title,
  .partner-control-deck .hud-section-title,
  .board-section-head .hud-section-title {
    font-size: clamp(2.25rem, 6.8vw, 4rem);
  }
}

@media (max-width: 680px) {
  .title-tech,
  [dir="rtl"] .title-tech {
    font-size: clamp(2.35rem, 11.2vw, 3.8rem);
  }

  .hud-section-title,
  .dashboard-grid .hud-section-title,
  .why-us-grid .hud-section-title,
  .partner-control-deck .hud-section-title,
  .board-section-head .hud-section-title {
    font-size: clamp(2rem, 8.5vw, 3.1rem);
  }

  [dir="rtl"] .title-tech {
    line-height: 1.3;
  }

  [dir="rtl"] .hud-section-title {
    line-height: 1.38;
  }

  /* Inline two-column content used across forms and detail lists. */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ABOUT — GUIDING PRINCIPLES ===== */
.principles-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 10vw, 10rem);
  border-block: 1px solid rgba(197, 161, 91, 0.16);
  background:
    radial-gradient(circle at 14% 18%, rgba(197, 161, 91, 0.1), transparent 27rem),
    radial-gradient(circle at 88% 76%, rgba(76, 112, 71, 0.16), transparent 32rem),
    #0b160e;
}

.principles-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.34;
  background: url("assets/images/mafad-field-contours.svg") center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.principles-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: clamp(18rem, 34vw, 34rem);
  aspect-ratio: 1;
  inset-inline-end: -10rem;
  top: -12rem;
  border: 1px solid rgba(197, 161, 91, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(197, 161, 91, 0.025),
    0 0 0 8rem rgba(197, 161, 91, 0.018);
}

.principles-field-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(197, 161, 91, 0.09) 50%, transparent 50.06%);
}

.principles-shell {
  position: relative;
}

.principles-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.principles-heading-copy {
  max-width: 760px;
}

.principles-heading .hud-section-title {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6.6vw, 6.8rem);
  line-height: 0.96;
}

[dir="rtl"] .principles-heading .hud-section-title {
  max-width: 11ch;
  font-size: clamp(3rem, 5.8vw, 5.9rem);
  line-height: 1.2;
}

.principles-heading-seal {
  position: relative;
  flex: 0 0 clamp(7rem, 12vw, 10rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--color-gold);
}

.principles-heading-seal::before {
  content: '';
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(197, 161, 91, 0.24);
  border-radius: 50%;
}

.principles-heading-seal span {
  position: absolute;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: italic;
  color: var(--text-main);
}

.principles-heading-seal svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  opacity: 0.46;
  animation: principles-seal-turn 28s linear infinite;
}

@keyframes principles-seal-turn {
  to { transform: rotate(360deg); }
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: principles;
}

.principle-card {
  position: relative;
  min-height: 285px;
  grid-column: span 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: end;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  overflow: hidden;
  border: 1px solid rgba(247, 242, 229, 0.11);
  border-radius: 30px 8px 30px 8px;
  background:
    linear-gradient(145deg, rgba(247, 242, 229, 0.07), rgba(247, 242, 229, 0.025));
  box-shadow: 0 18px 50px rgba(1, 8, 3, 0.18);
  transition:
    transform 0.55s var(--ease-expo),
    border-color 0.4s ease,
    background-color 0.4s ease;
}

.principle-card:nth-child(1),
.principle-card:nth-child(4),
.principle-card:nth-child(5) {
  grid-column: span 7;
}

.principle-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), rgba(197, 161, 91, 0));
  transition: width 0.65s var(--ease-expo);
}

.principle-card::after {
  content: '';
  position: absolute;
  width: 13rem;
  aspect-ratio: 1;
  inset-inline-end: -8rem;
  top: -8rem;
  border: 1px solid rgba(197, 161, 91, 0.11);
  border-radius: 50%;
  transition: transform 0.7s var(--ease-expo), border-color 0.4s ease;
}

.principle-card:hover {
  transform: translateY(-7px);
  border-color: rgba(197, 161, 91, 0.38);
  background-color: rgba(247, 242, 229, 0.035);
}

.principle-card:hover::before {
  width: 74%;
}

.principle-card:hover::after {
  transform: translate(-1.5rem, 1.5rem) scale(1.08);
  border-color: rgba(197, 161, 91, 0.24);
}

[dir="rtl"] .principle-card:hover::after {
  transform: translate(1.5rem, 1.5rem) scale(1.08);
}

.principle-number {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.35rem;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-style: italic;
  line-height: 1;
  color: rgba(247, 242, 229, 0.055);
  pointer-events: none;
}

.principle-icon {
  position: relative;
  z-index: 1;
  width: clamp(3.6rem, 5vw, 4.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: start;
  color: var(--color-gold);
  border: 1px solid rgba(197, 161, 91, 0.28);
  border-radius: 50% 50% 50% 12px;
  background: rgba(197, 161, 91, 0.07);
  transition: transform 0.55s var(--ease-expo), background-color 0.4s ease;
}

.principle-card:hover .principle-icon {
  transform: rotate(-7deg) scale(1.06);
  background: rgba(197, 161, 91, 0.13);
}

[dir="rtl"] .principle-card:hover .principle-icon {
  transform: rotate(7deg) scale(1.06);
}

.principle-icon svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.principle-copy h3 {
  max-width: 19ch;
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

[dir="rtl"] .principle-copy h3 {
  max-width: 22ch;
  font-family: var(--font-ar);
  line-height: 1.5;
  letter-spacing: 0;
}

.principle-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

[dir="rtl"] .principle-copy p {
  line-height: 1.95;
}

.light-theme .principles-section {
  border-block-color: rgba(68, 89, 62, 0.1);
  background:
    radial-gradient(circle at 14% 18%, rgba(197, 161, 91, 0.13), transparent 27rem),
    radial-gradient(circle at 88% 76%, rgba(76, 112, 71, 0.11), transparent 32rem),
    #f3f1e9;
}

.light-theme .principles-section::before {
  opacity: 0.2;
}

.light-theme .principles-field-lines {
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(68, 89, 62, 0.075) 50%, transparent 50.06%);
}

.light-theme .principle-card {
  border-color: rgba(68, 89, 62, 0.11);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 20px 55px rgba(49, 69, 46, 0.065);
}

.light-theme .principle-card:hover {
  border-color: rgba(148, 112, 45, 0.32);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 65px rgba(49, 69, 46, 0.09);
}

.light-theme .principle-number {
  color: rgba(55, 77, 52, 0.065);
}

.light-theme .principle-icon {
  background: rgba(197, 161, 91, 0.08);
}

@media (max-width: 900px) {
  .principles-heading {
    align-items: center;
  }

  .principles-heading .hud-section-title,
  [dir="rtl"] .principles-heading .hud-section-title {
    font-size: clamp(3rem, 9vw, 5.3rem);
  }

  .principle-card,
  .principle-card:nth-child(1),
  .principle-card:nth-child(4),
  .principle-card:nth-child(5) {
    grid-column: span 6;
    min-height: 320px;
    grid-template-columns: 1fr;
  }

  .principle-icon {
    align-self: end;
  }
}

@media (max-width: 620px) {
  .principles-section {
    padding-block: 5.5rem;
  }

  .principles-field-lines,
  .principles-heading-seal {
    display: none;
  }

  .principles-heading {
    margin-bottom: 3rem;
  }

  .principles-heading .hud-section-title,
  [dir="rtl"] .principles-heading .hud-section-title {
    max-width: 100%;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .principle-card,
  .principle-card:nth-child(1),
  .principle-card:nth-child(4),
  .principle-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 24px 7px 24px 7px;
  }

  .principle-number {
    font-size: 3.7rem;
  }

  .principle-icon {
    align-self: start;
  }
}

/* ===== PROJECTS — EXECUTIVE PORTFOLIO CARDS ===== */
.projects-page .projects-showcase {
  padding-top: 1rem;
  overflow: clip;
}

.projects-page .projects-filter-bar {
  width: fit-content;
  max-width: 100%;
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 0.4rem !important;
  margin-inline: auto;
  padding: 0.5rem !important;
  border: 1px solid rgba(197, 161, 91, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(247, 242, 229, 0.055) !important;
  box-shadow: 0 16px 42px rgba(17, 42, 24, 0.1);
  backdrop-filter: blur(14px);
}

.projects-page .projects-filter-bar .filter-btn {
  min-height: 42px;
  padding: 0.68rem 1.25rem !important;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.35s var(--ease-expo);
}

.projects-page .projects-filter-bar .filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 161, 91, 0.28);
}

.projects-page .projects-filter-bar .filter-btn.active {
  background: var(--color-forest) !important;
  border-color: rgba(197, 161, 91, 0.46) !important;
  box-shadow: 0 10px 24px rgba(49, 76, 52, 0.22);
}

.projects-page #project-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.projects-page .project-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 229, 0.11);
  border-radius: 30px 8px 30px 8px !important;
  background: rgba(247, 242, 229, 0.045);
  box-shadow: 0 22px 62px rgba(9, 32, 16, 0.14);
  transition:
    transform 0.55s var(--ease-expo),
    border-color 0.4s ease,
    box-shadow 0.55s var(--ease-expo);
}

.projects-page .project-card::before {
  content: '';
  position: absolute;
  z-index: 12;
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), rgba(197, 161, 91, 0));
  transition: width 0.65s var(--ease-expo);
}

.projects-page .project-card:hover {
  transform: translateY(-9px);
  border-color: rgba(197, 161, 91, 0.35);
  box-shadow: 0 32px 78px rgba(9, 32, 16, 0.2);
}

.projects-page .project-card:hover::before {
  width: 72%;
}

.projects-page .project-card .hud-box-inner {
  display: none;
}

.projects-page .project-card .card-img-wrapper {
  height: clamp(230px, 25vw, 300px);
  border-bottom: 0;
  background: #29442e;
}

.projects-page .project-card .card-img-wrapper::after {
  background: linear-gradient(
    to top,
    rgba(49, 76, 52, 0.44),
    rgba(49, 76, 52, 0) 56%
  );
}

.projects-page .project-card .card-main-img {
  filter: saturate(0.9) contrast(1.02);
}

.projects-page .project-card:hover .card-main-img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03);
}

.projects-page .project-card .mafad-stamp {
  top: auto;
  right: auto;
  bottom: 1.1rem;
  inset-inline-end: 1.1rem;
  width: 44px;
  height: 44px;
  background: rgba(244, 238, 224, 0.9);
  border-color: rgba(197, 161, 91, 0.58);
  box-shadow: 0 10px 28px rgba(29, 58, 35, 0.16);
}

.projects-page .project-card .mafad-stamp img.stamp-logo-img {
  width: 23px;
  filter: brightness(0.28) saturate(0.8);
}

.projects-page .project-card .card-content {
  position: static;
  padding: clamp(1.55rem, 2.6vw, 2.35rem);
}

.projects-page .project-card .tech-card-id {
  position: absolute;
  z-index: 10;
  top: 1rem;
  inset-inline-start: 1rem;
  inset-inline-end: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.projects-page .project-card .tech-card-id > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(197, 161, 91, 0.32);
  border-radius: 999px;
  background: rgba(244, 238, 224, 0.9);
  color: #243c29;
  box-shadow: 0 8px 24px rgba(29, 58, 35, 0.12);
  backdrop-filter: blur(12px);
}

.projects-page .project-card .tech-card-id > span:first-child {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.projects-page .project-card .tech-card-id .tech-card-sector {
  background: rgba(49, 76, 52, 0.92);
  color: #f7f2e5;
  border-color: rgba(197, 161, 91, 0.48);
}

.projects-page .project-card h3 {
  max-width: 24ch;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text-main);
  text-wrap: balance;
}

[dir="rtl"] .projects-page .project-card h3 {
  max-width: 28ch;
  font-family: var(--font-ar);
  line-height: 1.48;
  letter-spacing: 0;
}

.projects-page .project-card .card-content > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

[dir="rtl"] .projects-page .project-card .card-content > p {
  line-height: 1.95;
}

.projects-page .project-card .tech-card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: auto 0 1.15rem !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(197, 161, 91, 0.18) !important;
  border-radius: 19px 6px 19px 6px;
  background: rgba(70, 102, 66, 0.1);
}

.projects-page .project-card .tech-card-specs > div {
  position: relative;
  min-width: 0;
  padding: 1.15rem 1.25rem 1rem;
}

.projects-page .project-card .tech-card-specs > div + div {
  border-inline-start: 1px solid rgba(197, 161, 91, 0.18);
}

.projects-page .project-card .tech-card-specs strong {
  display: block;
  min-width: 0;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--text-main);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

[dir="rtl"] .projects-page .project-card .tech-card-specs strong {
  font-family: var(--font-ar);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.projects-page .project-card .tech-card-specs span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: var(--color-gold);
  text-transform: uppercase;
}

[dir="rtl"] .projects-page .project-card .tech-card-specs span {
  font-family: var(--font-ar);
  letter-spacing: 0;
  line-height: 1.55;
}

.projects-page .project-card .tech-card-client {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 34px;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.55;
}

.projects-page .project-card .tech-card-client::before {
  content: '';
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 5px rgba(197, 161, 91, 0.1);
}

.projects-page .project-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 520px;
}

.projects-page .project-card:first-child .card-img-wrapper {
  height: 100%;
  min-height: 520px;
  border-inline-end: 1px solid rgba(197, 161, 91, 0.16);
}

.projects-page .project-card:first-child .card-content {
  padding: clamp(2rem, 4vw, 3.25rem);
  justify-content: center;
}

.projects-page .project-card:first-child h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.projects-page .project-card:first-child .tech-card-specs strong {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.light-theme .projects-page .projects-filter-bar {
  border-color: rgba(68, 89, 62, 0.1) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 16px 42px rgba(49, 69, 46, 0.055);
}

.light-theme .projects-page .project-card {
  border-color: rgba(68, 89, 62, 0.1);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 62px rgba(49, 69, 46, 0.065);
}

.light-theme .projects-page .project-card:hover {
  border-color: rgba(148, 112, 45, 0.28);
  box-shadow: 0 28px 68px rgba(49, 69, 46, 0.095);
}

.light-theme .projects-page .project-card .tech-card-specs {
  border-color: rgba(68, 89, 62, 0.1) !important;
  background: rgba(226, 232, 220, 0.6);
}

.light-theme .projects-page .project-card .tech-card-specs > div + div {
  border-inline-start-color: rgba(68, 89, 62, 0.1);
}

@media (max-width: 900px) {
  .projects-page #project-container {
    grid-template-columns: 1fr;
  }

  .projects-page .project-card:first-child {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .projects-page .project-card:first-child .card-img-wrapper {
    height: clamp(250px, 52vw, 360px);
    min-height: 0;
    border-inline-end: 0;
  }

  .projects-page .project-card:first-child h3 {
    font-size: clamp(1.65rem, 5vw, 2.35rem);
  }
}

@media (max-width: 620px) {
  .projects-page .projects-filter-bar {
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 18px !important;
  }

  .projects-page .projects-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .projects-page .projects-filter-bar .filter-btn {
    flex: 0 0 auto;
  }

  .projects-page .project-card {
    border-radius: 24px 7px 24px 7px !important;
  }

  .projects-page .project-card .card-img-wrapper {
    height: 245px;
  }

  .projects-page .project-card .card-content,
  .projects-page .project-card:first-child .card-content {
    padding: 1.45rem;
  }

  .projects-page .project-card .tech-card-id {
    top: 0.8rem;
    inset-inline-start: 0.8rem;
    inset-inline-end: 0.8rem;
  }

  .projects-page .project-card .tech-card-id > span {
    min-height: 31px;
    padding: 0.36rem 0.62rem;
    font-size: 0.64rem;
  }

  .projects-page .project-card .tech-card-specs > div {
    padding: 1rem 0.95rem 0.9rem;
  }

  .projects-page .project-card .tech-card-specs strong,
  .projects-page .project-card:first-child .tech-card-specs strong {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
}

/* Administrative cards must remain above every decorative section layer. */
.leadership-suite .board-chair-card,
.leadership-suite .board-person-card {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.leadership-suite .board-person-card {
  border: 1px solid rgba(197, 161, 91, 0.14);
  background: rgba(31, 55, 35, 0.95);
}

.leadership-suite .board-photo,
.leadership-suite .board-person-copy {
  position: relative;
  z-index: 3;
}

.light-theme .leadership-suite {
  background:
    radial-gradient(circle at 10% 18%, rgba(197, 161, 91, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 78%, rgba(70, 102, 66, 0.065), transparent 30rem),
    #f5f3ec;
}

.light-theme .leadership-suite .board-person-card {
  border-color: rgba(68, 89, 62, 0.1);
  background: rgba(252, 250, 244, 0.97);
}

.light-theme .leadership-suite .board-chair-card {
  background: linear-gradient(
    120deg,
    rgba(231, 235, 224, 0.97),
    rgba(255, 255, 255, 0.98)
  );
}
/* ===== MOBILE SYSTEM HARDENING ===== */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

img,
video,
canvas {
  max-width: 100%;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

.nav-tech {
  pointer-events: none;
}

.nav-tech .nav-inner,
.nav-tech .nav-links-wrapper {
  pointer-events: auto;
}

.nav-tech .nav-inner {
  position: relative;
  z-index: 1003;
}

@media (max-width: 1180px) {
  .nav-tech {
    padding: 0.65rem 0;
  }

  .nav-tech .nav-inner,
  [dir="rtl"] .nav-tech .nav-inner {
    width: min(calc(100% - 1rem), 1480px);
    min-height: 60px;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(9, 22, 11, 0.86);
    border-color: rgba(197, 161, 91, 0.18);
    box-shadow: 0 14px 38px rgba(9, 32, 16, 0.22);
  }

  .light-theme .nav-tech .nav-inner,
  .light-theme body.menu-open .nav-tech .nav-inner {
    background: rgba(248, 246, 241, 0.94);
    border-color: rgba(68, 89, 62, 0.12);
    box-shadow: 0 14px 34px rgba(54, 73, 50, 0.1);
  }

  body.menu-open .nav-tech .nav-inner {
    background: rgba(9, 22, 11, 0.94);
    border-color: rgba(197, 161, 91, 0.24);
    box-shadow: 0 14px 38px rgba(9, 32, 16, 0.25);
  }

  body.menu-open .nav-brand,
  body.menu-open .menu-toggle {
    z-index: 1004;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    left: 10px;
    width: 20px;
  }

  .menu-toggle::before { top: 13px; }
  .menu-toggle span { top: 20px; }
  .menu-toggle::after { top: 27px; }

  body.menu-open .menu-toggle::before,
  body.menu-open .menu-toggle::after {
    top: 20px;
  }

  .nav-tech .nav-links-wrapper {
    inset: 0.5rem;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 1rem);
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 5.6rem 1rem max(1rem, env(safe-area-inset-bottom));
    border: 1px solid rgba(197, 161, 91, 0.18);
    border-radius: 8px;
    background: rgba(8, 20, 10, 0.985);
    box-shadow: 0 22px 60px rgba(9, 32, 16, 0.28);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .light-theme .nav-tech .nav-links-wrapper {
    background: rgba(248, 246, 241, 0.985);
    border-color: rgba(68, 89, 62, 0.12);
    box-shadow: 0 22px 50px rgba(54, 73, 50, 0.13);
  }

  .nav-tech .nav-link-tech {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.58rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1.18rem;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
  }

  [dir="rtl"] .nav-tech .nav-link-tech {
    line-height: 1.55;
  }

  .nav-tech .nav-link-tech:hover,
  .nav-tech .nav-link-tech.active {
    border-color: rgba(197, 161, 91, 0.2);
    background: rgba(197, 161, 91, 0.08);
  }

  .light-theme .nav-tech .nav-link-tech:hover,
  .light-theme .nav-tech .nav-link-tech.active {
    background: rgba(70, 102, 66, 0.075);
    border-color: rgba(68, 89, 62, 0.12);
  }

  .nav-tech .nav-actions {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem auto 0;
  }

  .nav-actions .btn-tech {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-height: 46px;
  }

  .lang-toggle,
  .theme-toggle {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
  }

  .theme-toggle {
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .container {
    width: min(calc(100% - 1.5rem), 640px);
  }

  .section-tech,
  .hero-tech,
  .footer-tech,
  .principles-section,
  .leadership-suite,
  .projects-page .projects-showcase {
    overflow-x: clip;
  }

  .nav-brand img {
    height: 31px;
  }

  .hero-tech,
  .hero-tech[style] {
    min-height: auto !important;
    padding-top: 6.9rem !important;
    padding-bottom: 3rem !important;
  }

  .hero-tech-grid,
  [dir="rtl"] .hero-tech-grid {
    gap: 2.25rem;
  }

  .title-tech,
  [dir="rtl"] .title-tech {
    max-width: 100%;
    font-size: 2.55rem;
    line-height: 1.18;
    letter-spacing: 0;
  }

  [dir="rtl"] .title-tech {
    font-size: 2.28rem;
    line-height: 1.36;
  }

  .hud-section-title,
  .dashboard-grid .hud-section-title,
  .why-us-grid .hud-section-title,
  .partner-control-deck .hud-section-title,
  .board-section-head .hud-section-title {
    font-size: 2.1rem;
    line-height: 1.22;
    letter-spacing: 0;
  }

  [dir="rtl"] .hud-section-title,
  [dir="rtl"] .dashboard-grid .hud-section-title,
  [dir="rtl"] .why-us-grid .hud-section-title,
  [dir="rtl"] .partner-control-deck .hud-section-title,
  [dir="rtl"] .board-section-head .hud-section-title {
    line-height: 1.45;
  }

  .desc-tech {
    max-width: 100%;
    margin-bottom: 1.65rem;
    font-size: 0.98rem;
    line-height: 1.78;
  }

  [dir="rtl"] .desc-tech {
    line-height: 1.95;
  }

  .hero-badge-tag {
    max-width: 100%;
  }

  .cta-group {
    gap: 0.65rem;
  }

  .cta-group .btn-tech,
  .btn-tech {
    min-height: 48px;
    border-radius: 8px;
  }

  .main-display-frame {
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
  }

  .hero-floating-badge {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 8px;
  }

  .stats-grid-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-metric-card,
  .hud-box,
  .tech-hud-card,
  .feature-hud-item,
  .control-board-node-card,
  .project-card,
  .principle-card {
    min-width: 0;
    border-radius: 8px !important;
  }

  .tech-hud-grid,
  .dashboard-grid,
  .why-us-grid,
  .partner-control-deck,
  .footer-grid-tech,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .card-img-wrapper {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .board-chair-card,
  .board-person-card {
    grid-template-columns: 1fr !important;
  }

  .board-chair-card .board-photo,
  .board-person-card .board-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .board-person-copy,
  .board-person-card .board-person-copy,
  .board-chair-copy {
    padding: 1.25rem;
  }

  .principles-heading {
    display: block;
    margin-bottom: 2.2rem;
  }

  .principles-heading .hud-section-title,
  [dir="rtl"] .principles-heading .hud-section-title {
    max-width: 100%;
    font-size: 2.35rem;
    line-height: 1.18;
  }

  [dir="rtl"] .principles-heading .hud-section-title {
    line-height: 1.42;
  }

  .principle-card,
  .principle-card:nth-child(1),
  .principle-card:nth-child(4),
  .principle-card:nth-child(5) {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .principle-icon {
    width: 3rem;
  }

  .principle-copy h3,
  [dir="rtl"] .principle-copy h3,
  .projects-page .project-card h3,
  [dir="rtl"] .projects-page .project-card h3 {
    max-width: 100%;
    letter-spacing: 0;
  }

  .projects-page .projects-filter-bar {
    padding: 0.45rem !important;
    border-radius: 8px !important;
  }

  .projects-page .project-card,
  .projects-page .project-card:first-child {
    display: flex;
    min-height: 0;
  }

  .projects-page .project-card .card-img-wrapper,
  .projects-page .project-card:first-child .card-img-wrapper {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .projects-page .project-card .tech-card-specs {
    grid-template-columns: 1fr;
  }

  .projects-page .project-card .tech-card-specs > div + div {
    border-inline-start: 0;
    border-top: 1px solid rgba(197, 161, 91, 0.18);
  }

  .inner-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 1.1rem), 640px);
  }

  .nav-tech .nav-inner,
  [dir="rtl"] .nav-tech .nav-inner {
    width: min(calc(100% - 0.75rem), 1480px);
    min-height: 56px;
    padding: 0.38rem 0.45rem;
  }

  .nav-brand img {
    height: 28px;
  }

  .menu-toggle {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .nav-tech .nav-links-wrapper {
    inset: 0.38rem;
    max-height: calc(100dvh - 0.76rem);
    padding-inline: 0.72rem;
  }

  .nav-tech .nav-link-tech {
    min-height: 42px;
    padding: 0.5rem 0.6rem;
    font-size: 1.05rem;
  }

  .nav-tech .nav-actions {
    width: 100%;
  }

  .title-tech,
  [dir="rtl"] .title-tech {
    font-size: 2.16rem;
  }

  [dir="rtl"] .title-tech {
    line-height: 1.42;
  }

  .hud-section-title,
  .dashboard-grid .hud-section-title,
  .why-us-grid .hud-section-title,
  .partner-control-deck .hud-section-title,
  .board-section-head .hud-section-title {
    font-size: 1.82rem;
  }

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

  .section-tech {
    padding-block: 4.25rem;
  }

  .projects-page .project-card .tech-card-id {
    flex-wrap: wrap;
  }
}