/* Al-Aistidama — Neon Tech Light / Dark */
:root,
[data-theme="light"] {
  --neon-cyan: #00d4ff;
  --neon-blue: #3d7bff;
  --neon-green: #00ff88;
  --neon-purple: #7c3aed;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #00d4ff;
  --accent: #00c853;
  --accent-light: #00ff88;
  --dark: #0a1628;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #eef6ff;
  --surface: #ffffff;
  --surface-alt: rgba(255, 255, 255, 0.75);
  --white: #ffffff;
  --border: rgba(0, 212, 255, 0.22);
  --shadow: 0 4px 30px rgba(0, 212, 255, 0.12);
  --shadow-lg: 0 12px 48px rgba(61, 123, 255, 0.2);
  --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.35), 0 0 40px rgba(0, 212, 255, 0.15);
  --glow-text: 0 0 12px rgba(0, 212, 255, 0.4);
  --header-bg: rgba(238, 246, 255, 0.88);
  --hero-overlay: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(29, 78, 216, 0.75) 45%, rgba(0, 200, 83, 0.2) 100%);
  --page-hero-bg: linear-gradient(135deg, #0d47a1 0%, #1565c0 38%, #1b5e20 72%, #2e7d32 100%);
  --grid-line: rgba(0, 212, 255, 0.07);
  --nodes-opacity: 0.55;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --neon-cyan: #00f0ff;
  --neon-blue: #3d7bff;
  --neon-green: #39ff14;
  --neon-purple: #b026ff;
  --primary: #3d7bff;
  --primary-dark: #1e40af;
  --primary-light: #00f0ff;
  --accent: #39ff14;
  --accent-light: #7fff00;
  --dark: #e8f4ff;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --bg: #030810;
  --surface: #0a1425;
  --surface-alt: #060d18;
  --white: #0f1a2e;
  --border: rgba(0, 240, 255, 0.18);
  --shadow: 0 4px 30px rgba(0, 240, 255, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 240, 255, 0.15);
  --shadow-neon: 0 0 24px rgba(0, 240, 255, 0.45), 0 0 48px rgba(57, 255, 20, 0.12);
  --glow-text: 0 0 16px rgba(0, 240, 255, 0.55);
  --header-bg: rgba(3, 8, 16, 0.9);
  --hero-overlay: linear-gradient(135deg, rgba(3, 8, 16, 0.92) 0%, rgba(30, 64, 175, 0.7) 50%, rgba(57, 255, 20, 0.12) 100%);
  --page-hero-bg: linear-gradient(135deg, #0a1628 0%, #1e40af 28%, #1565c0 48%, #166534 78%, #22c55e 100%);
  --grid-line: rgba(0, 240, 255, 0.06);
  --nodes-opacity: 0.85;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ——— Loader ——— */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: 120px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader__bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ——— Header ——— */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background 0.4s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  text-shadow: var(--glow-text);
  box-shadow: inset 0 0 0 1px var(--border);
}

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

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-toggle__btn {
  padding: 0.4rem 0.65rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.lang-toggle__btn.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #fff;
  box-shadow: var(--shadow-neon);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.55), 0 0 48px rgba(57, 255, 20, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.btn--outline:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn--accent {
  background: linear-gradient(135deg, var(--neon-green), #00a844);
  color: #030810;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  font-weight: 700;
}

.btn--white {
  background: var(--surface);
  color: var(--neon-cyan);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-neon);
}

[data-theme="light"] .btn--white {
  color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
}

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Page hero (inner pages — logo blue → green) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--page-hero-bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 85% 50%, rgba(57, 255, 20, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0, 212, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--surface-alt);
  backdrop-filter: blur(8px);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .section__title {
  color: #f1f5f9;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Scroll reveal + electronic node scan */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-node::before,
.reveal-node::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--neon-cyan);
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: 0 0 10px var(--neon-cyan);
  pointer-events: none;
  z-index: 2;
}

.reveal-node::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.reveal-node::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.reveal-node.visible::before,
.reveal-node.visible::after {
  opacity: 1;
  animation: nodeCornerPulse 2s ease-in-out infinite;
}

.reveal-node.visible {
  animation: nodeRevealGlow 0.9s ease forwards;
}

@keyframes nodeCornerPulse {
  0%, 100% { box-shadow: 0 0 8px var(--neon-cyan); }
  50% { box-shadow: 0 0 18px var(--neon-green), 0 0 28px var(--neon-cyan); }
}

@keyframes nodeRevealGlow {
  0% { box-shadow: inset 0 0 0 rgba(0, 240, 255, 0); }
  50% { box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.06); }
  100% { box-shadow: inset 0 0 0 rgba(0, 240, 255, 0); }
}

/* ——— Cards ——— */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--5 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--neon-cyan), transparent, var(--neon-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-neon);
  border-color: var(--neon-cyan);
}

.card:hover::before {
  opacity: 1;
}

.card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  padding: 1.5rem;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .card__title {
  color: #f1f5f9;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card__list {
  margin-top: 0.75rem;
}

.card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-green);
}

/* Feature / Why us */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
  border-color: var(--neon-cyan);
}

.feature__num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split__img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.split__content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.split__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, #030810, var(--primary-dark), #0a1628);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .cta-band {
  background: linear-gradient(135deg, #0a1628, var(--primary-dark), #1e3a8a);
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatOrb 8s ease-in-out infinite;
  box-shadow: 0 0 80px var(--neon-cyan);
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-band__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band__text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Service blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block:nth-child(even) .service-block__media {
  order: 2;
}

.service-block:nth-child(even) .service-block__content {
  order: 1;
}

.service-block__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-block__media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.service-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-block__desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-block__points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-block__points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Sector icon cards */
.sector-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.sector-card .card__icon {
  margin: 0 auto 1rem;
}

/* Cert cards */
.cert-card {
  text-align: center;
}

.cert-card__img {
  padding: 1.5rem;
  background: var(--bg);
}

.cert-card__img img {
  max-height: 280px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Project filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #fff;
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon);
}

.project-card.hidden {
  display: none;
}

.project-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(21, 101, 192, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.contact-info__item:hover {
  box-shadow: var(--shadow);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  color: var(--white);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-weight: 600;
  color: var(--dark);
}

.contact-info__value a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-neon);
}

.contact-form__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 16px rgba(0, 240, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #030810 0%, #0a1425 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, #0a1628 0%, #1e293b 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo img {
  height: 52px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow-text);
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__link {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__link:hover {
  color: var(--neon-cyan);
}

/* Abstract placeholder */
.abstract-bg {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.abstract-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Values pills */
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.values-list span {
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* ——— Tech nodes canvas ——— */
.tech-nodes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--nodes-opacity);
  transition: opacity 0.5s ease;
}

/* ——— Theme toggle (neon switch) ——— */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  border-color: var(--neon-cyan);
}

.theme-toggle__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: relative;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(57, 255, 20, 0.1));
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  box-shadow: 0 0 12px var(--neon-cyan), 0 0 20px rgba(0, 240, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(24px);
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  box-shadow: 0 0 14px var(--neon-green), 0 0 24px var(--neon-cyan);
}

.theme-toggle__icon {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

.theme-toggle__icon--sun {
  left: 7px;
}

.theme-toggle__icon--moon {
  right: 7px;
}

[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 1;
  color: var(--neon-cyan);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  color: var(--neon-green);
}

.project-card__tag {
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.contact-info__icon {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.service-block__points li::before {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

.page-hero__title {
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.25), 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav,
  .header__actions .btn--primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .card-grid--2,
  .card-grid--3,
  .split,
  .service-block,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-block:nth-child(even) .service-block__media,
  .service-block:nth-child(even) .service-block__content {
    order: unset;
  }

  .split__img img {
    height: 260px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

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

  .card-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ——— RTL (Arabic) ——— */
html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Arabic Typesetting", Arial, sans-serif;
}

html[dir="rtl"] .card__list li {
  padding-left: 0;
  padding-right: 1.25rem;
}

html[dir="rtl"] .card__list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .service-block__points li {
  padding-left: 0;
  padding-right: 1.5rem;
}

html[dir="rtl"] .service-block__points li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .service-block:nth-child(even) .service-block__media {
  order: 1;
}

html[dir="rtl"] .service-block:nth-child(even) .service-block__content {
  order: 2;
}

html[dir="rtl"] .service-block:nth-child(odd) .service-block__media {
  order: 2;
}

html[dir="rtl"] .service-block:nth-child(odd) .service-block__content {
  order: 1;
}

html[dir="rtl"] .mobile-nav {
  transform: translateX(-100%);
}

html[dir="rtl"] .mobile-nav.open {
  transform: translateX(0);
}

html[dir="rtl"] .hero__cta,
html[dir="rtl"] .cta-band__actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header__inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header__actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-info__item {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .split__content,
html[dir="rtl"] .section__header,
html[dir="rtl"] .cta-band__inner {
  text-align: right;
}

html[dir="rtl"] .sector-card {
  text-align: center;
}

html[dir="rtl"] .cert-card,
html[dir="rtl"] .filter-bar {
  direction: rtl;
}
