/* Executive Tech color system
   Primary: #0A1F44
   Primary Hover: #16366F
   Secondary / Premium: #D4AF37
   Accent / Innovation: #00C2FF
   Background: #F5F7FA
   Surface: #FFFFFF
   Text Primary: #2B2B2B
   Text Secondary: #5F6573
   Border: rgba(10, 31, 68, 0.12)
   Hover / Focus: rgba(0, 194, 255, 0.28)
*/

/* ===== ANIMATED GRADIENT KEYFRAMES ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.08); }
  50% { box-shadow: 0 0 40px rgba(0, 194, 255, 0.2), 0 0 80px rgba(212, 175, 55, 0.08); }
}

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

@keyframes borderGlow {
  0%, 100% { border-color: rgba(0, 194, 255, 0.18); }
  50% { border-color: rgba(212, 175, 55, 0.34); }
}

@keyframes particleDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.9; }
  50% { transform: translate(-10px, -60px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(30px, -40px) scale(1.1); opacity: 0.7; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
}

@keyframes typewriter-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scrollProgress {
  to { transform: scaleX(1); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: rgba(10, 31, 68, 0.06);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  transition: width 60ms ease-out;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.4);
}

/* ===== MOBILE HAMBURGER ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(10, 31, 68, 0.08);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 12px;
  cursor: pointer;
  z-index: 60;
  position: relative;
  transition: background 200ms ease, border-color 200ms ease;
}

.menu-toggle:hover {
  background: rgba(10, 31, 68, 0.14);
  border-color: rgba(0, 194, 255, 0.3);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: transform 300ms ease, opacity 200ms ease, background 200ms ease;
}

.menu-toggle.is-open {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 10000;
}

.menu-toggle.is-open span {
  background: #fff;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== PARTICLE CANVAS ===== */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

:root {
  --primary: #0a1f44;
  --primary-hover: #16366f;
  --primary-strong: #081734;
  --secondary: #d4af37;
  --secondary-soft: #ecd792;
  --accent: #00c2ff;
  --background: #f5f7fa;
  --background-alt: #edf2f8;
  --surface: #ffffff;
  --surface-muted: #fafbfd;
  --text-primary: #2b2b2b;
  --text-secondary: #5f6573;
  --text-inverse: #f5f7fa;
  --border: rgba(10, 31, 68, 0.12);
  --border-strong: rgba(10, 31, 68, 0.18);
  --focus-ring: 0 0 0 4px rgba(0, 194, 255, 0.18);
  --shadow-sm: 0 16px 34px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 28px 64px rgba(10, 31, 68, 0.14);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 12px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 194, 255, 0.16), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.14), transparent 24%),
    linear-gradient(180deg, #f9fbfd 0%, #f4f7fb 44%, #eef3f8 100%);
  color: var(--text-primary);
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 31, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 68, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  right: -12vw;
  bottom: -18vw;
  width: 42vw;
  height: 42vw;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(10, 31, 68, 0.12) 0%, rgba(0, 194, 255, 0.08) 26%, rgba(212, 175, 55, 0.06) 46%, transparent 72%);
  filter: blur(22px);
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p,
li,
span {
  line-height: 1.7;
}

p,
li {
  color: var(--text-secondary);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 252, 0.72));
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow: 0 18px 38px rgba(10, 31, 68, 0.06);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.brand small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.08);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 31, 68, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: rgba(0, 194, 255, 0.34);
  background: rgba(0, 194, 255, 0.08);
  color: var(--primary-hover);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 56px;
  border-radius: 40px;
  border: 1px solid rgba(10, 31, 68, 0.14);
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 194, 255, 0.22), transparent 20%),
    radial-gradient(circle at 86% 84%, rgba(212, 175, 55, 0.18), transparent 18%),
    linear-gradient(135deg, #07142e 0%, #0a1f44 40%, #12366f 100%);
  box-shadow: 0 40px 90px rgba(10, 31, 68, 0.24);
  align-items: center;
}

.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.05) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 95%);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  color: var(--primary);
  line-height: 1.06;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  color: var(--text-inverse);
  letter-spacing: -0.04em;
}

.hero-lead,
.section-heading p,
.contact-card p {
  max-width: 68ch;
  font-size: 1rem;
}

.hero-lead {
  color: rgba(245, 247, 250, 0.86);
  font-size: 1.02rem;
}

.hero-copy .eyebrow {
  color: var(--secondary-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.hero-badges span,
.tag-cloud span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.05);
}

.hero-badges span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-inverse);
  box-shadow: 0 14px 28px rgba(10, 31, 68, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--primary-hover), #21478e);
}

.button-secondary {
  border-color: rgba(10, 31, 68, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--primary-hover);
  background: rgba(212, 175, 55, 0.08);
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-inverse);
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.34);
  color: var(--text-inverse);
}

.hero-arabic {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    conic-gradient(from 210deg at 54% 46%, rgba(255, 255, 255, 0.03), rgba(0, 194, 255, 0.16), rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: screen;
}

.visual-card {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.signal-card {
  top: 28px;
  right: 24px;
  width: min(340px, calc(100% - 48px));
  padding: 24px;
  animation: float 6s ease-in-out infinite;
}

.signal-card p,
.metric-card p,
.stat-card span {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-soft);
  font-weight: 700;
}

.signal-card h2,
.section-heading h2,
.panel h3,
.contact-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.45rem);
}

.signal-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.signal-card li {
  color: rgba(255, 255, 255, 0.88);
}

.stat-card {
  left: 24px;
  bottom: 34px;
  width: min(270px, calc(100% - 48px));
  padding: 20px;
  animation: float-delayed 7s ease-in-out infinite;
}

.stat-card strong {
  display: block;
  color: var(--text-inverse);
  font-size: 1.08rem;
  line-height: 1.55;
}

.metric-card {
  right: 24px;
  bottom: 34px;
  width: min(320px, calc(100% - 48px));
  padding: 20px;
  animation: float 8s ease-in-out infinite 1s;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid span {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 194, 255, 0.05));
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-grid strong {
  display: block;
  color: var(--text-inverse);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -24px 0 18px;
  position: relative;
  z-index: 2;
}

.proof-strip div,
.panel,
.service-card,
.project-card,
.media-card,
.award-card,
.timeline-item,
.contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.proof-strip div {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.proof-strip div::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), rgba(0, 194, 255, 0.7), transparent 84%);
}

.proof-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
}

.proof-strip span {
  color: var(--text-secondary);
}

.content-section {
  padding: 72px 0 0;
}

.section-grid {
  display: grid;
  gap: 24px;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading::after {
  content: "";
  width: 126px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.section-heading h2,
.contact-card h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
}

.about-layout,
.recognition-layout {
  display: grid;
  gap: 18px;
}

.about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 24px;
}

.panel,
.service-card,
.project-card,
.page-link-card,
.info-card,
.step-card,
.reference-card,
.contact-info-card,
.spotlight-card,
.certificate-card,
.org-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.panel:hover,
.service-card:hover,
.project-card:hover,
.page-link-card:hover,
.info-card:hover,
.step-card:hover,
.reference-card:hover,
.contact-info-card:hover,
.spotlight-card:hover,
.certificate-card:hover,
.org-card:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow:
    0 26px 54px rgba(10, 31, 68, 0.12),
    0 0 0 1px rgba(0, 194, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 194, 255, 0.24);
}

/* Animated shimmer on hover */
.panel::after,
.service-card::after,
.project-card::after,
.info-card::after,
.step-card::after,
.org-card::after,
.contact-info-card::after,
.mosaic-card::after,
.project-ledger-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: none;
  pointer-events: none;
}

.panel:hover::after,
.service-card:hover::after,
.project-card:hover::after,
.info-card:hover::after,
.step-card:hover::after,
.org-card:hover::after,
.contact-info-card:hover::after,
.mosaic-card:hover::after,
.project-ledger-card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

.panel h3,
.story-panel h3,
.founder-copy h3 {
  margin: 0;
  color: var(--primary);
}

.story-panel blockquote {
  margin: 24px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--secondary);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), rgba(0, 194, 255, 0.03));
  color: var(--primary);
  font-size: 1.04rem;
  line-height: 1.8;
}

.founder-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.founder-visual {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.03), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--border);
}

.founder-copy p {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-grid a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 31, 68, 0.03);
  border: 1px solid var(--border);
  color: var(--primary);
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  border-color: rgba(0, 194, 255, 0.32);
  background: rgba(0, 194, 255, 0.06);
}

.panel-head {
  margin-bottom: 16px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.03), rgba(255, 255, 255, 0.95));
  color: var(--text-primary);
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-grid,
.projects-grid,
.media-grid,
.awards-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.95));
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

/* Unique accent glow per service */
.service-card:nth-child(1):hover { box-shadow: 0 20px 50px rgba(0, 194, 255, 0.18), 0 0 0 1px rgba(0, 194, 255, 0.15); }
.service-card:nth-child(2):hover { box-shadow: 0 20px 50px rgba(212, 175, 55, 0.18), 0 0 0 1px rgba(212, 175, 55, 0.15); }
.service-card:nth-child(3):hover { box-shadow: 0 20px 50px rgba(46, 204, 113, 0.18), 0 0 0 1px rgba(46, 204, 113, 0.15); }
.service-card:nth-child(4):hover { box-shadow: 0 20px 50px rgba(155, 89, 182, 0.18), 0 0 0 1px rgba(155, 89, 182, 0.15); }
.service-card:nth-child(5):hover { box-shadow: 0 20px 50px rgba(231, 76, 60, 0.18), 0 0 0 1px rgba(231, 76, 60, 0.15); }
.service-card:nth-child(6):hover { box-shadow: 0 20px 50px rgba(52, 152, 219, 0.18), 0 0 0 1px rgba(52, 152, 219, 0.15); }
.service-card:nth-child(7):hover { box-shadow: 0 20px 50px rgba(26, 188, 156, 0.18), 0 0 0 1px rgba(26, 188, 156, 0.15); }
.service-card:nth-child(8):hover { box-shadow: 0 20px 50px rgba(241, 196, 15, 0.18), 0 0 0 1px rgba(241, 196, 15, 0.15); }

/* Unique top border color per service */
.service-card:nth-child(1)::before { background: linear-gradient(90deg, #00c2ff, #0a1f44); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, #d4af37, #e7ca69); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.service-card:nth-child(6)::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.service-card:nth-child(7)::before { background: linear-gradient(90deg, #1abc9c, #16a085); }
.service-card:nth-child(8)::before { background: linear-gradient(90deg, #f1c40f, #f39c12); }

.service-index {
  transition: transform 300ms ease, background 300ms ease;
}

.service-card:hover .service-index {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(0, 194, 255, 0.14);
  border-color: rgba(0, 194, 255, 0.28);
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(10, 31, 68, 0.06);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.service-card h3,
.project-card h3,
.award-card h3,
.media-copy h3,
.timeline-copy h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1.12rem;
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.96));
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(10, 31, 68, 0.84), rgba(0, 194, 255, 0.72), rgba(212, 175, 55, 0.78));
}

.project-card.rtl {
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.project-card.featured {
  background:
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.98));
}

.project-card.featured h3 {
  font-size: 1.28rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.project-tag,
.project-metric,
.award-year,
.media-kind {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-tag,
.award-year {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(236, 215, 146, 0.32));
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.project-metric,
.media-kind {
  color: var(--primary);
  background: rgba(10, 31, 68, 0.04);
  border: 1px solid rgba(10, 31, 68, 0.09);
}

.project-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.project-card.rtl ul {
  padding-left: 0;
  padding-right: 18px;
}

.recognition-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.award-visual-panel {
  display: grid;
  gap: 22px;
  align-items: center;
}

.awards-grid {
  grid-template-columns: 1fr;
}

.award-card {
  padding: 22px;
}

.award-card p:last-child {
  margin-bottom: 0;
}

.award-link,
.media-copy a {
  color: var(--primary);
  font-weight: 600;
}

.award-link:hover,
.award-link:focus-visible,
.media-copy a:hover,
.media-copy a:focus-visible {
  color: var(--primary-hover);
}

.media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card {
  overflow: hidden;
}

.media-card img,
.media-art {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.26), transparent 26%),
    linear-gradient(135deg, rgba(10, 31, 68, 0.96), rgba(22, 54, 111, 0.92));
}

.media-art {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--text-inverse);
  font-weight: 700;
  line-height: 1.4;
}

.media-copy {
  padding: 18px;
}

.media-copy p {
  margin: 0 0 12px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.timeline-period {
  color: var(--secondary);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.timeline-copy p {
  margin: 0;
}

.contact-section {
  padding-bottom: 36px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(0, 194, 255, 0.18), transparent 22%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.18), transparent 20%),
    linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: rgba(10, 31, 68, 0.22);
}

.contact-card h2,
.contact-card p,
.contact-card .eyebrow {
  color: var(--text-inverse);
}

.contact-card .button-primary {
  background: linear-gradient(135deg, var(--secondary), #e7ca69);
  color: var(--primary);
  box-shadow: none;
}

.contact-card .button-primary:hover,
.contact-card .button-primary:focus-visible {
  background: linear-gradient(135deg, #e0be4b, #f0d77f);
}

.contact-card .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-inverse);
}

.contact-card .button-secondary:hover,
.contact-card .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(212, 175, 55, 0.36);
}

.site-footer {
  display: grid;
  gap: 14px;
  margin-top: 54px;
  padding: 28px 28px 18px;
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 90%, rgba(0, 194, 255, 0.08), transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(10, 31, 68, 0.96), rgba(22, 54, 111, 0.94));
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

.site-footer div {
  display: flex;
  gap: 12px 18px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--text-inverse);
}

.site-footer a {
  color: rgba(245, 247, 250, 0.78);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 200ms ease, background 200ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer span,
.site-footer p {
  color: rgba(245, 247, 250, 0.6);
  margin: 0;
}

.rtl-page {
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Space Grotesk", sans-serif;
}

.rtl-page .site-header,
.rtl-page .header-tools,
.rtl-page .brand,
.rtl-page .hero-actions,
.rtl-page .hero-badges,
.rtl-page .contact-actions,
.rtl-page .project-meta,
.rtl-page .site-footer div {
  flex-direction: row-reverse;
}

.rtl-page .site-nav {
  justify-content: flex-start;
}

.rtl-page .menu-toggle.is-open {
  right: auto;
  left: 22px;
}

.rtl-page .hero-copy,
.rtl-page .section-heading,
.rtl-page .panel,
.rtl-page .contact-card,
.rtl-page .media-copy,
.rtl-page .timeline-copy,
.rtl-page .proof-strip div {
  text-align: right;
}

.rtl-page .hero-arabic {
  border-left: 0;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.rtl-page .story-panel blockquote {
  border-left: 0;
  border-right: 4px solid var(--secondary);
}

.rtl-page .founder-panel {
  grid-template-columns: minmax(0, 1fr) 210px;
}

.rtl-page .timeline-item {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.rtl-page .timeline-period {
  text-align: left;
}

.rtl-page .project-card ul {
  padding-left: 0;
  padding-right: 18px;
}

.rtl-page .signal-card ul {
  padding-left: 0;
  padding-right: 20px;
}

.site-nav a.active {
  color: var(--primary);
  border-color: rgba(212, 175, 55, 0.34);
  background: rgba(212, 175, 55, 0.12);
  font-weight: 700;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 24px;
  align-items: stretch;
  padding: 40px 0 8px;
}

.page-hero .panel,
.page-hero-panel {
  height: 100%;
}

.page-hero-copy {
  display: grid;
  gap: 16px;
}

.page-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 194, 255, 0.18), transparent 22%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.14), transparent 18%),
    linear-gradient(135deg, #081734 0%, #0a1f44 46%, #12366f 100%);
  border: 1px solid rgba(10, 31, 68, 0.16);
  box-shadow: 0 30px 76px rgba(10, 31, 68, 0.18);
}

.page-hero-panel::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.04) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 92%);
  pointer-events: none;
}

.page-hero-copy h1 {
  margin: 0;
  color: var(--text-inverse);
  line-height: 1.08;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: -0.04em;
}

.page-hero-copy p {
  margin: 0;
  max-width: 66ch;
  color: rgba(245, 247, 250, 0.84);
}

.page-hero-copy .eyebrow {
  color: var(--secondary-soft);
}

.page-hero-aside {
  display: grid;
  gap: 16px;
}

.page-links-grid,
.content-grid-2,
.content-grid-3,
.steps-grid,
.stats-grid,
.contact-grid-cards,
.reference-grid,
.embed-grid {
  display: grid;
  gap: 18px;
}

.portfolio-ribbon {
  padding-top: 8px;
}

.portfolio-ribbon-track {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(10, 31, 68, 0.92), rgba(18, 44, 87, 0.9));
  box-shadow: var(--shadow-sm);
}

.portfolio-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f9fc;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-word-stack {
  position: absolute;
  inset: 26px auto auto 26px;
  z-index: 0;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.hero-word-stack span {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
}

.hero-word-stack.ar {
  inset: 26px 26px auto auto;
}

.hero-word-stack.ar span {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 18px;
}

.mosaic-card,
.project-ledger-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
  box-shadow: var(--shadow-sm);
}

.mosaic-card::before,
.project-ledger-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.mosaic-card.featured {
  grid-row: span 2;
  background:
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.09), transparent 28%),
    radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 252, 0.97));
}

.mosaic-card.ink {
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 194, 255, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(10, 31, 68, 0.98), rgba(19, 47, 95, 0.94));
  border-color: rgba(10, 31, 68, 0.3);
}

.mosaic-card.ink h3,
.mosaic-card.ink p,
.mosaic-card.ink li {
  color: var(--text-inverse);
}

.mosaic-card h3,
.project-ledger-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.14rem;
}

.mosaic-card p,
.project-ledger-card p {
  margin: 0;
}

.mosaic-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.mosaic-list li {
  color: var(--text-primary);
}

.project-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-ledger-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(8, 23, 52, 0.98), rgba(10, 31, 68, 0.98) 40%, rgba(20, 52, 106, 0.96));
  border-color: rgba(10, 31, 68, 0.24);
}

.project-ledger-card.featured h3,
.project-ledger-card.featured p,
.project-ledger-card.featured .text-link {
  color: var(--text-inverse);
}

.project-ledger-card.featured .project-tag {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-ledger-card .text-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
}

.cluster-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.cluster-head p {
  margin: 0;
  max-width: 64ch;
}

.projects-grid-rich {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid-rich .project-card.featured {
  grid-column: span 2;
}

.page-links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid-3,
.steps-grid,
.stats-grid,
.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.embed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-link-card,
.info-card,
.step-card,
.stat-card-lite,
.reference-card,
.embed-card,
.contact-info-card,
.spotlight-card,
.certificate-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-link-card,
.info-card,
.step-card,
.stat-card-lite,
.reference-card,
.contact-info-card,
.spotlight-card,
.certificate-card {
  padding: 22px;
}

.info-card,
.step-card,
.page-link-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.95));
}

.page-link-card h3,
.info-card h3,
.step-card h3,
.reference-card h3,
.contact-info-card h3,
.spotlight-card h3,
.certificate-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.1rem;
}

.page-link-card p,
.info-card p,
.step-card p,
.reference-card p,
.contact-info-card p,
.spotlight-card p,
.certificate-card p {
  margin: 0;
}

.page-link-card .text-link,
.reference-card .text-link,
.spotlight-card .text-link,
.certificate-card .text-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
}

.inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.05);
  color: var(--primary);
  border: 1px solid rgba(10, 31, 68, 0.08);
  font-size: 0.84rem;
}

.detail-list,
.clean-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.clean-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

.clean-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 31, 68, 0.03);
  border: 1px solid rgba(10, 31, 68, 0.08);
  color: var(--text-primary);
}

.embed-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.95));
}

.video-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 31, 68, 0.08), rgba(10, 31, 68, 0.3)),
    #dfe7f2;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 31, 68, 0.08), rgba(10, 31, 68, 0.52) 72%, rgba(10, 31, 68, 0.68));
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.video-poster:hover img,
.video-poster:focus-visible img {
  transform: scale(1.03);
}

.video-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.video-labels {
  display: grid;
  gap: 10px;
}

.video-badge,
.video-channel {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-badge {
  background: rgba(0, 194, 255, 0.16);
  border: 1px solid rgba(0, 194, 255, 0.34);
  color: #f4fbff;
}

.video-channel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.play-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(10, 31, 68, 0.16);
}

.play-chip::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--primary);
}

.embed-copy {
  padding: 18px;
}

.embed-copy h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.05rem;
}

.embed-copy p {
  margin: 0;
}

.embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.embed-actions .text-link {
  display: inline-flex;
  font-weight: 700;
  color: var(--primary);
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.org-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.org-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.08rem;
}

.org-card p {
  margin: 0;
}

.org-card .text-link {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 700;
  color: var(--primary);
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.image-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(10, 31, 68, 0.04);
  border: 1px solid rgba(10, 31, 68, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, rgba(0, 194, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(10, 31, 68, 0.96), rgba(22, 54, 111, 0.94));
  border: 1px solid rgba(10, 31, 68, 0.2);
  box-shadow: var(--shadow-md);
}

.cta-band h2,
.cta-band p {
  margin: 0;
  color: var(--text-inverse);
}

.cta-band p {
  margin-top: 8px;
  max-width: 70ch;
}

.compact-title {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1.5rem;
}

.subtle-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 31, 68, 0.15), transparent);
  margin: 10px 0 0;
}

.rtl-page .page-hero,
.rtl-page .spotlight-layout,
.rtl-page .cta-band {
  direction: rtl;
}

.rtl-page .page-link-card,
.rtl-page .info-card,
.rtl-page .step-card,
.rtl-page .reference-card,
.rtl-page .contact-info-card,
.rtl-page .spotlight-card,
.rtl-page .certificate-card,
.rtl-page .embed-copy,
.rtl-page .page-hero-copy,
.rtl-page .page-hero-aside {
  text-align: right;
}

.rtl-page .detail-list {
  padding-left: 0;
  padding-right: 18px;
}

.rtl-page .mosaic-list {
  padding-left: 0;
  padding-right: 18px;
}

.rtl-page .video-overlay,
.rtl-page .embed-actions {
  direction: rtl;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered child animations */
.reveal.is-visible .service-card,
.reveal.is-visible .project-card,
.reveal.is-visible .org-card,
.reveal.is-visible .mosaic-card,
.reveal.is-visible .project-ledger-card,
.reveal.is-visible .info-card,
.reveal.is-visible .step-card,
.reveal.is-visible .embed-card,
.reveal.is-visible .contact-info-card,
.reveal.is-visible .reference-card {
  animation: fadeInScale 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.is-visible :nth-child(1) { animation-delay: 0ms; }
.reveal.is-visible :nth-child(2) { animation-delay: 80ms; }
.reveal.is-visible :nth-child(3) { animation-delay: 160ms; }
.reveal.is-visible :nth-child(4) { animation-delay: 240ms; }
.reveal.is-visible :nth-child(5) { animation-delay: 320ms; }
.reveal.is-visible :nth-child(6) { animation-delay: 400ms; }
.reveal.is-visible :nth-child(7) { animation-delay: 480ms; }
.reveal.is-visible :nth-child(8) { animation-delay: 560ms; }

/* Animated stat counters */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Hero typing cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--secondary);
  margin-left: 4px;
  animation: typewriter-cursor 0.8s step-end infinite;
  vertical-align: text-bottom;
}

/* Portfolio ribbon scroll animation */
.portfolio-ribbon-track {
  position: relative;
  overflow: hidden;
}

.portfolio-pill {
  transition: transform 200ms ease, background 200ms ease;
}

.portfolio-pill:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 175, 55, 0.34);
}

/* CTA band pulse */
.cta-band {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Animated gradient on hero badges */
.hero-badges span {
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.hero-badges span:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Animated border on page hero panel */
.page-hero-panel {
  animation: borderGlow 6s ease infinite;
}

/* Gradient text effect for hero h1 on hover (not applied, just available) */
.hero h1 {
  transition: text-shadow 400ms ease;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-inverse);
  border: 1px solid rgba(0, 194, 255, 0.2);
  box-shadow: 0 10px 30px rgba(10, 31, 68, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease, box-shadow 200ms ease;
  font-size: 1.2rem;
  font-weight: 700;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 14px 40px rgba(0, 194, 255, 0.25);
  transform: translateY(-3px);
}

/* Tilt effect for hero visual cards */
.visual-card {
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.hero-visual:hover .signal-card {
  animation-play-state: paused;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-visual:hover .stat-card {
  animation-play-state: paused;
  transform: translateY(-4px);
}

.hero-visual:hover .metric-card {
  animation-play-state: paused;
  transform: translateY(-4px);
}

/* ===== SVG ICON STYLES ===== */
.card-icon {
  display: block;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.card-icon-sm {
  display: block;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.proof-icon {
  display: block;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.service-icon {
  display: block;
  margin-bottom: 14px;
}

/* ===== DASHBOARD PANEL ===== */
.dashboard-panel {
  margin-top: 48px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 5% 10%, rgba(0, 194, 255, 0.14), transparent 22%),
    radial-gradient(circle at 95% 90%, rgba(212, 175, 55, 0.1), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(10, 31, 68, 1), rgba(8, 20, 48, 1));
  border: 1px solid rgba(0, 194, 255, 0.12);
  box-shadow:
    0 40px 100px rgba(10, 31, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.dashboard-header .eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
}

.dashboard-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.dash-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.dash-card-head h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.dash-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dash-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-chart,
.bar-chart,
.radar-chart {
  display: block;
  margin: 0 auto 14px;
  max-width: 100%;
  height: auto;
}

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.viz-legend li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

.viz-legend li span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* Dashboard ticker */
.dashboard-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dashboard-ticker span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  white-space: nowrap;
}

.dashboard-ticker strong {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 4px;
}

.ticker-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
}

/* Animated donut segments */
@keyframes donutDraw {
  from { stroke-dasharray: 0 440; }
}

.donut-seg {
  animation: donutDraw 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.donut-seg-1 { animation-delay: 0ms; }
.donut-seg-2 { animation-delay: 200ms; }
.donut-seg-3 { animation-delay: 400ms; }
.donut-seg-4 { animation-delay: 600ms; }
.donut-seg-5 { animation-delay: 800ms; }

/* Animated bars */
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.bar {
  animation: barGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bar-1 { animation-delay: 0ms; }
.bar-2 { animation-delay: 120ms; }
.bar-3 { animation-delay: 240ms; }
.bar-4 { animation-delay: 360ms; }
.bar-5 { animation-delay: 480ms; }

/* Animated radar fill */
@keyframes radarDraw {
  from { opacity: 0; transform: scale(0.3); transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-origin: center; }
}

.radar-fill {
  animation: radarDraw 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 300ms;
}

/* ===== RESPONSIVE: LARGE TABLETS ===== */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .mosaic-grid,
  .project-ledger,
  .projects-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .recognition-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .dash-card:last-child {
    grid-column: span 2;
  }

  .org-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel {
    padding: 24px;
    border-radius: 24px;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-bottom: 32px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    top: 10px;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    flex: none;
  }

  .brand span {
    min-width: 0;
    gap: 2px;
  }

  .brand strong {
    font-size: 0.94rem;
    line-height: 1.25;
  }

  /* IMPORTANT: Remove stacking context from header so fixed overlay can escape */
  .site-header.menu-is-open {
    position: static;
    backdrop-filter: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .header-tools {
    display: none;
  }

  .header-tools.is-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 88px 18px 28px;
    overflow-y: auto;
    background: #081230;
    opacity: 1;
  }

  .header-tools.is-open::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(0, 194, 255, 0.18), transparent 30%),
      radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.14), transparent 30%);
    pointer-events: none;
  }

  .header-tools.is-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
  }

  .header-tools .site-nav {
    flex-direction: column;
    align-items: center;
    width: min(100%, 360px);
    gap: 6px;
    position: relative;
    z-index: 1;
  }

  .header-tools .site-nav a {
    color: rgba(245, 247, 250, 0.8);
    width: 100%;
    font-size: 1.16rem;
    padding: 14px 18px;
    text-align: center;
    border-radius: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 200ms ease, background 200ms ease, transform 200ms ease;
  }

  .header-tools .site-nav a:hover,
  .header-tools .site-nav a:focus-visible {
    color: #fff;
    background: rgba(0, 194, 255, 0.12);
    transform: scale(1.04);
  }

  .header-tools .site-nav a.active {
    color: #fff;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.25);
  }

  .header-tools .lang-switch {
    margin-top: 16px;
    width: min(100%, 220px);
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    padding: 12px 24px;
    position: relative;
    z-index: 1;
  }

  .site-nav {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 20px;
    gap: 18px;
    border-radius: 22px;
    margin-top: 12px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.8rem, 7vw, 3.2rem);
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-word-stack {
    display: none;
  }

  .hero-art {
    display: none;
  }

  .signal-card,
  .metric-card,
  .stat-card {
    position: static;
    width: auto;
    margin: 0;
    border-radius: 16px;
  }

  .hero-badges {
    gap: 8px;
    margin: 16px 0;
  }

  .hero-badges span {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-arabic {
    font-size: 0.9rem;
    margin-top: 18px;
  }

  .portfolio-ribbon-track {
    padding: 14px;
    gap: 8px;
    border-radius: 18px;
  }

  .portfolio-pill {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    margin: -14px 0 14px;
    gap: 10px;
  }

  .proof-strip div {
    padding: 16px;
    border-radius: 18px;
  }

  .content-section {
    padding: 40px 0 0;
  }

  .section-heading h2,
  .contact-card h2 {
    max-width: none;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .services-grid,
  .projects-grid,
  .media-grid,
  .project-ledger {
    grid-template-columns: 1fr;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-card.featured {
    grid-row: auto;
  }

  .mosaic-card,
  .project-ledger-card {
    padding: 20px;
    border-radius: 18px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding: 20px 0 6px;
    gap: 12px;
  }

  .page-hero-panel {
    border-radius: 24px;
    padding: 20px;
  }

  .page-hero-copy h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.8rem);
  }

  .page-hero-aside {
    gap: 12px;
  }

  .spotlight-layout {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px;
    border-radius: 20px;
  }

  .cta-band .button {
    width: 100%;
    justify-content: center;
  }

  .dashboard-panel {
    padding: 16px;
    border-radius: 20px;
    margin-top: 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .dash-card:last-child {
    grid-column: auto;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-ticker {
    gap: 12px;
  }

  .dashboard-ticker strong {
    font-size: 1rem;
  }

  .page-links-grid,
  .content-grid-2,
  .content-grid-3,
  .steps-grid,
  .stats-grid,
  .contact-grid-cards,
  .reference-grid,
  .embed-grid,
  .org-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .founder-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-visual {
    max-width: 180px;
    margin: 0 auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .rtl-page .founder-panel,
  .rtl-page .timeline-item {
    grid-template-columns: 1fr;
  }

  .rtl-page .timeline-period {
    text-align: right;
  }

  .cluster-head {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .projects-grid-rich {
    grid-template-columns: 1fr;
  }

  .projects-grid-rich .project-card.featured,
  .project-ledger-card.featured {
    grid-column: auto;
  }

  .contact-card {
    padding: 20px;
    border-radius: 20px;
  }

  .site-footer {
    padding: 20px 16px 12px;
    border-radius: 20px;
    margin-top: 28px;
  }

  .site-footer div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .menu-toggle.is-open {
    top: 16px;
    right: 16px;
  }

  .rtl-page .menu-toggle.is-open {
    left: 16px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 18px;
    right: 18px;
    font-size: 1rem;
  }

  .particle-canvas {
    display: none;
  }

  .embed-card {
    border-radius: 18px;
  }

  .video-poster {
    border-radius: 14px 14px 0 0;
  }

  .inline-pills {
    gap: 8px;
  }

  .inline-pills span {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .service-card {
    padding: 18px;
    border-radius: 18px;
  }

  .project-card {
    padding: 20px;
    border-radius: 18px;
  }

  .info-card,
  .step-card,
  .reference-card,
  .contact-info-card,
  .spotlight-card,
  .certificate-card,
  .org-card {
    padding: 18px;
    border-radius: 18px;
  }
}

/* ===== RESPONSIVE: VERY SMALL PHONES ===== */
@media (max-width: 400px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--max-width));
  }

  .site-header {
    padding: 10px;
  }

  .hero {
    padding: 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .page-hero-copy h1 {
    font-size: 1.4rem;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 0.88rem;
  }
}
