/* ============ CORE / TOKENS ============ */
:root {
  --bg: #0d1117;
  --bg2: #1e293b;
  --silver: #d1d5db;
  --steel: #a3a3a3;
  --accent: #2563eb;
  --accent2: #3b82f6;
  --white: #ffffff;
  --card: rgba(30, 41, 59, 0.55);
  --line: rgba(209, 213, 219, 0.12);
  --text: #f3f4f6;
  --muted: #a3a3a3;
  --radius: 18px;
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
  --font-ar: "Tajawal", sans-serif;
  --font-en: "Manrope", "Tajawal", sans-serif;
  --header-h: 78px;
}
body.light {
  --bg: #f4f6f9;
  --bg2: #e6eaf1;
  --card: rgba(255, 255, 255, 0.8);
  --line: rgba(13, 17, 23, 0.1);
  --text: #0d1117;
  --muted: #475569;
  --shadow: 0 25px 50px -20px rgba(13, 17, 23, 0.18);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  transition:
    background 0.5s,
    color 0.5s;
}
html[dir="ltr"] body {
  font-family: var(--font-en);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
::selection {
  background: var(--accent);
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), #1e3a8a);
  border-radius: 8px;
}

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}
section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 800;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}
.grad-text {
  background: linear-gradient(92deg, var(--text) 20%, var(--accent2) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s;
}
.btn:hover svg {
  transform: translateX(-5px);
}
html[dir="ltr"] .btn:hover svg {
  transform: translateX(5px);
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: 0 15px 35px -12px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -12px rgba(37, 99, 235, 0.7);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent2);
  transform: translateY(-3px);
}

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition:
    opacity 0.7s,
    visibility 0.7s;
}
#loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.24em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.loader-logo .mark {
  width: 52px;
  height: 52px;
  animation: spinPulse 1.6s ease-in-out infinite;
}
@keyframes spinPulse {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.12) rotate(6deg);
  }
}
.loader-bar {
  width: 230px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.3s;
}
.loader-tag {
  color: #a3a3a3;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* ============ SCROLL PROGRESS ============ */
#scrollProgress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  z-index: 1500;
}

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  transition: 0.4s;
  padding: 18px 0;
}
header.scrolled {
  padding: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
header.hidden-nav {
  transform: translateY(-110%);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}
.logo .mark {
  width: 62px;
  height: 62px;
  flex: none;
  object-fit: contain;
  border-radius: 10px;
}
.logo small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  color: var(--muted);
  font-weight: 600;
}
nav ul.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav ul.main-nav > li {
  position: relative;
}
nav ul.main-nav > li > a {
  display: block;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 11.5px;
  border-radius: 10px;
  color: var(--muted);
  transition: 0.3s;
  position: relative;
}
nav ul.main-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  inset-inline-start: 15px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.35s;
  border-radius: 2px;
}
nav ul.main-nav > li > a:hover,
nav ul.main-nav > li > a.active {
  color: var(--text);
}
nav ul.main-nav > li > a:hover::after,
nav ul.main-nav > li > a.active::after {
  width: calc(100% - 30px);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.03);
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
  transform: translateY(-2px);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.lang-btn {
  width: auto;
  padding: 0 14px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
#menuToggle {
  display: none;
}

/* MEGA MENU */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  transform: translateX(50%) translateY(14px);
  width: min(720px, 90vw);
  background: color-mix(in srgb, var(--bg) 92%, #1e293b);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 18px;
}
html[dir="ltr"] .mega {
  transform: translateX(-50%) translateY(14px);
  inset-inline-start: 50%;
}
li.has-mega:hover .mega,
li.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}
html[dir="ltr"] li.has-mega:hover .mega,
html[dir="ltr"] li.has-mega:focus-within .mega {
  transform: translateX(-50%) translateY(0);
}
.mega a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.25s;
}
.mega a:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
  padding-inline-start: 16px;
}
.mega a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
  transform: rotate(45deg);
}
.mega-head {
  grid-column: 1/-1;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent2);
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

/* ============ HERO ============ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  overflow: hidden;
  position: relative;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(13, 17, 23, 0.82) 0%,
      rgba(13, 17, 23, 0.6) 45%,
      var(--bg) 100%
    ),
    radial-gradient(
      60% 80% at 75% 30%,
      rgba(37, 99, 235, 0.28),
      transparent 70%
    );
}
body.light .hero-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(13, 17, 23, 0.78) 0%,
      rgba(13, 17, 23, 0.55) 45%,
      var(--bg) 100%
    ),
    radial-gradient(60% 80% at 75% 30%, rgba(37, 99, 235, 0.3), transparent 70%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(209, 213, 219, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 213, 219, 0.25) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero-inner {
  max-width: 900px;
  position: relative;
}
#hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(209, 213, 219, 0.25);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 26px;
}
#hero .badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 1.8s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.hero-title .steel-word {
  background: linear-gradient(100deg, #93c5fd, #2563eb 45%, #d1d5db 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub-en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.3em;
  color: #a3a3a3;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-desc {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 38px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
}
.hstat {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.14);
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(12px);
  transition: 0.35s;
}
.hstat:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.6);
}
.hstat b {
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.hstat b em {
  font-style: normal;
  color: var(--accent2);
  font-size: 1.2rem;
}
.hstat span {
  font-size: 0.85rem;
  color: #a3a3a3;
}
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #a3a3a3;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
}
.scroll-hint i {
  width: 1px;
  height: 44px;
  background: linear-gradient(#2563eb, transparent);
  display: block;
  animation: drop 1.8s infinite;
}
@keyframes drop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============ MARQUEE STRIP ============ */
.strip {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg2);
}
.strip-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.strip-track span {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--steel);
  font-size: 0.95rem;
  text-transform: uppercase;
}
.strip-track span::after {
  content: "◆";
  color: var(--accent);
  font-size: 0.7rem;
}
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}
html[dir="ltr"] .strip-track {
  animation-name: marqueeLtr;
}
@keyframes marqueeLtr {
  to {
    transform: translateX(-50%);
  }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.about-media img {
  height: 520px;
  width: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.about-media:hover img {
  transform: scale(1.06);
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 50%, rgba(13, 17, 23, 0.75));
}
.about-float {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 2;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(209, 213, 219, 0.18);
  color: #fff;
}
.about-float b {
  font-family: var(--font-en);
  font-size: 1.7rem;
  color: var(--accent2);
}
.about-float span {
  display: block;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.vmg {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}
.vmg-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: 0.35s;
  backdrop-filter: blur(8px);
}
.vmg-card:hover {
  transform: translateX(-8px);
  border-color: var(--accent);
}
html[dir="ltr"] .vmg-card:hover {
  transform: translateX(8px);
}
.vmg-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    140deg,
    rgba(37, 99, 235, 0.25),
    rgba(37, 99, 235, 0.05)
  );
  color: var(--accent2);
}
.vmg-icon svg {
  width: 24px;
  height: 24px;
}
.vmg-card h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.vmg-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* TIMELINE (journey) */
.journey {
  margin-top: 90px;
}
.jt-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  padding-top: 36px;
}
.jt-track::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.jt-item {
  position: relative;
  text-align: center;
  padding: 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: 0.4s;
}
.jt-item::before {
  content: "";
  position: absolute;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transition: 0.3s;
}
.jt-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}
.jt-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2);
}
.jt-item b {
  display: block;
  font-family: var(--font-en);
  color: var(--accent2);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.jt-item h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.jt-item p {
  font-size: 0.82rem;
  color: var(--muted);
}
/* Vision / Mission / Core Values highlights */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.q-highlights {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.q-highlights h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 6px;
}

.q-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.q-highlights li {
  margin-bottom: 6px;
}

.q-highlights li strong {
  display: block;
  font-size: 13px;
}

.q-highlights li span {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

/* Core values as small cards */
.q-highlights--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.q-value {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.q-value h5 {
  margin: 0 0 2px;
  font-size: 13px;
}

.q-value p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .q-highlights--grid {
    grid-template-columns: 1fr;
  }
}
/* ===== WHY CHOOSE US ===== */
#why-choose {
  padding: 80px 0;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: flex-start;
}

.why-choose-left h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.why-choose-left p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.wc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wc-card {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.wc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
  border-color: rgba(59, 130, 246, 0.7);
}

.wc-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 0 0,
    #38bdf8 0,
    #1d4ed8 60%,
    #0f172a 100%
  );
  color: #e5e7eb;
}

.wc-card h5 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.wc-card p {
  margin: 0;
  font-size: 13px;
  color: #d1d5db;
}

@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ WHY ============ */
#why {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg2) 50%,
    var(--bg) 100%
  );
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.why-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(var(--accent), #60a5fa);
  transition: 0.45s;
}
.why-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.4);
}
.why-card:hover::before {
  height: 100%;
}
.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(
    140deg,
    rgba(37, 99, 235, 0.28),
    rgba(37, 99, 235, 0.04)
  );
  color: var(--accent2);
  transition: 0.4s;
}
.why-card:hover .why-icon {
  transform: rotate(-8deg) scale(1.08);
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #1d4ed8);
}
.why-icon svg {
  width: 27px;
  height: 27px;
}
.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.why-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.why-num {
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
  opacity: 0;
  transition: 0.5s;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow);
}
.svc:hover::after {
  opacity: 1;
}
.svc-icon {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent2);
  transition: 0.4s;
}
.svc:hover .svc-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.svc-icon svg {
  width: 24px;
  height: 24px;
}
.svc h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.svc p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============ FACTORY ============ */
#factory {
  background: var(--bg2);
  overflow: hidden;
}
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.factory-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
}
.factory-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1.2s;
}
.factory-media:hover img {
  transform: scale(1.05);
}
.factory-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(13, 17, 23, 0.7), transparent 60%);
}
.f-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.f-stat {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}
.f-stat:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.f-stat b {
  font-family: var(--font-en);
  font-size: 2.3rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text);
}
.f-stat b em {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--accent2);
}
.f-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}
.f-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(163, 163, 163, 0.18);
  margin-top: 16px;
  overflow: hidden;
}
.f-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transition: width 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.machine-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.machine-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.machine-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}

/* ============ PROCESS ============ */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process::before {
  content: "";
  position: absolute;
  top: 44px;
  inset-inline: 6%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 10px,
    transparent 10px 20px
  );
  opacity: 0.5;
}
.p-step {
  text-align: center;
  padding: 0 8px;
  position: relative;
}
.p-dot {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  transition: 0.45s;
  backdrop-filter: blur(8px);
}
.p-dot svg {
  width: 36px;
  height: 36px;
  color: var(--accent2);
  transition: 0.4s;
}
.p-step:hover .p-dot {
  transform: translateY(-8px) rotate(-4deg);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.5);
}
.p-step:hover .p-dot svg {
  color: var(--text);
  transform: scale(1.12);
}
.p-dot::after {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}
.p-step h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.p-step p {
  font-size: 0.85rem;
  color: var(--muted);
}
/* ===== PROJECTS GRID BASE ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== PROJECT CARD ===== */
.project-card {
  background: var(--surface, #0f172a);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.project-card.reveal.in {
  transform: translateY(0);
  opacity: 1;
}

/* Hover على الكارت بالكامل */
.project-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  border-color: rgba(59, 130, 246, 0.7);
  transform: translateY(-6px);
}

/* ===== THUMBNAIL (توحيد حجم الصور) ===== */
.project-thumb {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

/* بادچ عدد الصور */
.project-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ===== BODY ===== */
.project-body {
  padding: 16px 18px 18px;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.project-location {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 4px;
}

.project-scope {
  font-size: 12px;
  color: #cbd5f5;
  margin: 0 0 10px;
  opacity: 0.9;
}

.project-desc {
  font-size: 14px;
  color: #cbd5f5;
  margin: 0 0 12px;
}

/* Facts row */
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-fact {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* ===== BUTTON ===== */
.project-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  background: transparent;
  color: #bfdbfe;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.project-view-btn:hover {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: #0b1120;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

/* موبايل */
@media (max-width: 640px) {
  .project-thumb {
    height: 200px;
  }
}
/* ============ STATS BAND ============ */
#stats {
  background: linear-gradient(120deg, #0d1117, #1e293b), url("");
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 90% at 50% 0%,
    rgba(37, 99, 235, 0.22),
    transparent
  );
}
body.light #stats {
  background: linear-gradient(120deg, #0d1117, #1e293b);
}
#stats * {
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.stat {
  text-align: center;
  padding: 34px 12px;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  transition: 0.4s;
}
.stat:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.6);
}
.stat b {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 3px;
}
.stat b em {
  font-style: normal;
  color: #60a5fa;
  font-size: 1.4rem;
}
.stat span {
  color: #a3a3a3 !important;
  font-size: 0.9rem;
}

/* ============ QUALITY ============ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cert {
  text-align: center;
  padding: 36px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: 0.45s;
  position: relative;
  overflow: hidden;
}
.cert::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transform: scaleX(0);
  transition: 0.45s;
}
.cert:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.cert:hover::before {
  transform: scaleX(1);
}
.cert-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.25), transparent);
  border: 1px dashed rgba(37, 99, 235, 0.5);
  color: var(--accent2);
}
.cert-badge svg {
  width: 32px;
  height: 32px;
}
.cert b {
  font-family: var(--font-en);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.cert span {
  font-size: 0.83rem;
  color: var(--muted);
}
.hsse {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hsse div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.hsse svg {
  width: 26px;
  height: 26px;
  color: #22c55e;
  flex: none;
}
.hsse p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============ PARTNERS ============ */
.partners-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.partners-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
html[dir="ltr"] .partners-track {
  animation-name: marqueeLtr;
}
.partners-track:hover {
  animation-play-state: paused;
}
.p-logo {
  min-width: 190px;
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--steel);
  font-size: 1.02rem;
  transition: 0.35s;
  filter: grayscale(1);
  text-transform: uppercase;
}
.p-logo small {
  display: block;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--accent2);
  font-weight: 600;
}
.p-logo:hover {
  filter: none;
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-5px);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 40s linear infinite;
}

.p-logo {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.p-logo img {
  max-height: 180px;
  width: auto;
  display: block;
  filter: grayscale(10%);
  opacity: 0.9;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.p-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

.p-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

/* لو عندك أنيميشن marquee أصلاً اتركه، لو مش عندك احذف هذه */
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
/* ============ TESTIMONIALS ============ */
#testimonials {
  background: var(--bg2);
}
.t-slider {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
}
.t-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.t-card {
  flex: 0 0 100%;
  padding: 52px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
}
.t-card .quote-mark {
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  font-family: serif;
  opacity: 0.7;
}
.t-card p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 8px auto 28px;
  color: var(--text);
}
.t-card b {
  display: block;
  font-size: 1.05rem;
}
.t-card span {
  color: var(--muted);
  font-size: 0.88rem;
}
.t-stars {
  color: #f59e0b;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.t-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--steel);
  opacity: 0.4;
  transition: 0.3s;
}
.t-dot.active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.3);
}

/* ============ CAREERS ============ */
.careers-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
.job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: 0.35s;
}
.job:hover {
  border-color: var(--accent);
  transform: translateX(-6px);
}
html[dir="ltr"] .job:hover {
  transform: translateX(6px);
}
.job h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.job p {
  font-size: 0.83rem;
  color: var(--muted);
}
.job .tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent2);
  font-size: 0.72rem;
  font-weight: 700;
  margin-inline-start: 8px;
}
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 40px;
}
.benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.benefits li svg {
  width: 19px;
  height: 19px;
  color: #22c55e;
  flex: none;
}
.form-card {
  padding: 34px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
}
.form-card h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.3s;
}
body.light input,
body.light select,
body.light textarea {
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.form-msg {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.9rem;
}
.form-msg.show {
  display: block;
  animation: fadeUp 0.5s;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ============ CONTACT ============ */
#contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.c-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 14px;
  transition: 0.3s;
}
.c-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.c-item .vmg-icon {
  width: 46px;
  height: 46px;
}
.c-item b {
  display: block;
  font-size: 0.95rem;
}
.c-item a,
.c-item span {
  color: var(--muted);
  font-size: 0.9rem;
  direction: ltr;
  display: inline-block;
}
.c-item a:hover {
  color: var(--accent2);
}
.quick-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.wa-btn {
  background: #16a34a;
  color: #fff;
}
.wa-btn:hover {
  background: #15803d;
  transform: translateY(-3px);
}
.call-btn {
  background: var(--accent);
  color: #fff;
}
.call-btn:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
}
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 22px;
  filter: grayscale(0.6) contrast(1.05);
}
.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}
/* ===== NATIONAL FOOTPRINT (Leaflet + Static Map) ===== */
#footprint {
  padding: 80px 0;
}

.footprint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
  gap: 32px;
  align-items: flex-start;
}

/* LEFT LIST */
.fp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.fp-item b {
  display: block;
  font-size: 14px;
}

.fp-item p {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.fp-region {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #93c5fd;
  text-transform: uppercase;
}

.fp-tag {
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.fp-item:hover {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
  transform: translateY(-3px);
}

.fp-item.active {
  border-color: rgba(59, 130, 246, 0.9);
  background: linear-gradient(120deg, #0b1120, #111827);
}

/* Bottom facts */
.fp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fp-facts > div {
  background: #020617;
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.fp-facts b {
  display: block;
  font-size: 16px;
}

.fp-facts span {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}

/* Switch between maps */
.fp-switch {
  display: inline-flex;
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 2px;
}

.fp-switch-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.fp-switch-btn.active {
  background: #2563eb;
  color: #f9fafb;
}

/* RIGHT MAP WRAPPER */
.fp-map-wrap {
  border-radius: 20px;
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.85);
  position: relative;
}

.fp-map-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.fp-map {
  width: 100%;
  height: 360px;
}

.fp-map--static {
  position: absolute;
  inset: 36px 10px 10px 10px; /* داخل الكارد، تحت الهيدر */
  display: none;
}

.fp-map--leaflet {
  position: relative;
  z-index: 1;
}

/* Show/hide states */
.fp-map-wrap.show-static .fp-map--static {
  display: block;
  z-index: 2;
}

.fp-map-wrap.show-static .fp-map--leaflet {
  opacity: 0;
  pointer-events: none;
}

/* Leaflet container styling */
.leaflet-container {
  background: #020617;
  filter: saturate(1.05);
  border-radius: 0 0 20px 20px;
}

/* Leaflet marker div (CSS pulse) */
.fp-leaflet-marker {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #e5e7eb;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: fp-pulse 2s infinite;
}

.fp-leaflet-marker.active {
  background: #facc15;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.8);
}

@keyframes fp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Static image map markers */
.fp-static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 20px 20px;
}

#ksaStaticMap {
  position: relative;
}

.fp-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #3b82f6;
  border: 2px solid #e5e7eb;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: fp-pulse 2.3s infinite;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.fp-dot span {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.fp-dot:hover span,
.fp-dot.active span {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.fp-dot.active {
  background: #facc15;
}

/* تقريب مواقع النقاط (نسبية للصورة، اضبطها حسب خريطتك) */
.fp-dot--riyadh {
  top: 52%;
  left: 60%;
}

.fp-dot--qassim {
  top: 40%;
  left: 55%;
}

.fp-dot--dammam {
  top: 43%;
  left: 75%;
}

.fp-dot--jeddah {
  top: 68%;
  left: 48%;
}

.fp-dot--tabuk {
  top: 23%;
  left: 45%;
}

.fp-dot--neom {
  top: 20%;
  left: 40%;
}

@media (max-width: 900px) {
  .footprint-grid {
    grid-template-columns: 1fr;
  }
  .fp-map,
  .fp-map--static {
    height: 320px;
  }
}
/* ============ FOOTER ============ */
footer {
  background: #0a0e14;
  color: #cbd5e1;
  padding: 80px 0 0;
  border-top: 1px solid rgba(209, 213, 219, 0.08);
}
body.light footer {
  background: #0d1117;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 54px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-grid h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.footer-grid ul li {
  margin-bottom: 10px;
}
.footer-grid ul a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-grid ul a::before {
  content: "‹";
  color: var(--accent2);
  transition: 0.3s;
}
html[dir="ltr"] .footer-grid ul a::before {
  content: "›";
}
.footer-grid ul a:hover {
  color: #fff;
  padding-inline-start: 6px;
}
.footer-about p {
  color: #94a3b8;
  font-size: 0.92rem;
  margin: 18px 0 22px;
  max-width: 320px;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(209, 213, 219, 0.15);
  color: #94a3b8;
  transition: 0.3s;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-4px);
}
.socials svg {
  width: 17px;
  height: 17px;
}
.copyright {
  border-top: 1px solid rgba(209, 213, 219, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #64748b;
}
.copyright b {
  color: #93c5fd;
}

/* ============ FLOATING / UTIL ============ */
#backTop {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.4s;
  box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.6);
}
#backTop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#backTop:hover {
  transform: translateY(-5px);
}
#waFloat {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 15px 30px -8px rgba(22, 163, 74, 0.55);
  transition: 0.35s;
  animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
  }
}
#waFloat:hover {
  transform: scale(1.1);
}
#waFloat svg {
  width: 26px;
  height: 26px;
}

/* SEARCH OVERLAY */
#searchOverlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: start center;
  padding: 14vh 20px 40px;
  visibility: hidden;
  opacity: 0;
  transition: 0.35s;
}
#searchOverlay.open {
  visibility: visible;
  opacity: 1;
}
.search-box {
  width: min(640px, 100%);
}
.search-box input {
  font-size: 1.2rem;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.8);
  color: #fff;
  border: 1px solid rgba(209, 213, 219, 0.2);
}
.search-results {
  margin-top: 16px;
  max-height: 50vh;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.search-results a {
  display: block;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(209, 213, 219, 0.1);
  color: #e2e8f0;
  transition: 0.25s;
}
.search-results a:hover {
  border-color: var(--accent);
  transform: translateX(-5px);
}
html[dir="ltr"] .search-results a:hover {
  transform: translateX(5px);
}
.search-results a small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}
.search-close {
  position: absolute;
  top: 26px;
  inset-inline-end: 30px;
  color: #fff;
  font-size: 2rem;
  transition: 0.3s;
}
.search-close:hover {
  transform: rotate(90deg);
  color: var(--accent2);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.3, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.rv-left {
  transform: translateX(-54px);
}
.reveal.rv-right {
  transform: translateX(54px);
}
.reveal.rv-zoom {
  transform: scale(0.88);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* PAGE TRANSITION FLASH */
#pageFlash {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
#pageFlash.go {
  animation: flash 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}
@keyframes flash {
  0% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  45% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  55% {
    transform: scaleY(1);
    transform-origin: top;
  }
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
}

/* SKIP LINK */
.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 3000;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 12px 12px;
  transition: 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry {
    columns: 2;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .jt-track,
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
  .process::before,
  .jt-track::before {
    display: none;
  }
  .about-grid,
  .factory-grid,
  .careers-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  #menuToggle {
    display: grid;
  }
  nav#mainNav {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    height: 100dvh;
    width: min(340px, 86vw);
    background: var(--bg);
    border-inline-start: 1px solid var(--line);
    padding: 100px 28px 40px;
    transform: translateX(105%);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
    z-index: 1100;
    overflow: auto;
  }
  html[dir="rtl"] nav#mainNav {
    transform: translateX(-105%);
  }
  nav#mainNav.open {
    transform: none !important;
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  }
  nav ul.main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  nav ul.main-nav > li > a {
    padding: 14px 10px;
    font-size: 1.05rem;
  }
  .mega {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 14px 10px;
    grid-template-columns: 1fr;
    gap: 0;
    display: none;
  }
  li.has-mega.open-sub .mega {
    display: grid;
  }
  .mega-head {
    display: none;
  }
  #navBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
  }
}
@media (max-width: 640px) {
  section {
    padding: 80px 0;
  }
  .why-grid,
  .services-grid,
  .masonry {
    grid-template-columns: 1fr;
    columns: 1;
  }
  .stats-grid,
  .cert-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .jt-track,
  .process {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .f-stats,
  .form-grid,
  .benefits,
  .machine-list {
    grid-template-columns: 1fr;
  }
  .modal-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .t-card {
    padding: 36px 24px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-track {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Company Profile Page */

/* Hover animation on profile images */
#profilePages {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
#profilePages .proj-card {
  width: 23.5%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#profilePages .proj-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

#profilePages .proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

#profilePages .proj-card:hover img {
  transform: scale(1.05);
}

/* LIGHTBOX STYLES */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightboxImg {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: -56px;
}

.lightbox-next {
  right: -56px;
}

.lightbox-counter {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: -40px;
  }
  .lightbox-next {
    right: -40px;
  }
  .lightbox-close {
    top: -32px;
  }
}
