/* ===== Future Pulse (نبض المستقبل) — Brand Stylesheet ===== */

:root {
  --navy-950: #060a1f;
  --navy-900: #0a0f2b;
  --navy-800: #101940;
  --navy-700: #16224e;
  --blue: #2fb4f0;
  --blue-light: #6fd0ff;
  --purple: #8b6ef0;
  --purple-light: #b79bff;
  --ink: #10142b;
  --muted: #5a6180;
  --paper: #f4f6fb;
  --paper-card: #ffffff;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(16, 20, 43, 0.08);
  --shadow: 0 20px 50px rgba(10, 15, 43, 0.12);
  --radius: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 0 0 16px;
}

.section-head .rule {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  margin: 0 auto;
  border-radius: 4px;
}

.section-head p {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: radial-gradient(circle at 80% 10%, #1a2350 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #eef1fb;
}

.section-dark .section-head p {
  color: #b7bede;
}

.section-dark .eyebrow {
  color: var(--blue-light);
}

/* ===== Nav ===== */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(6, 10, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: #cdd3ea;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(47, 180, 240, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 110, 240, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 180, 240, 0.16), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(139, 110, 240, 0.22), transparent 45%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 65%, #05060f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--blue-light);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 18px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--blue-light), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: 19px;
  color: #c4cae6;
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 12px 30px rgba(47, 180, 240, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(139, 110, 240, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual .ring.r1 {
  width: 420px;
  height: 420px;
  animation: spin 40s linear infinite;
}

.hero-visual .ring.r2 {
  width: 520px;
  height: 520px;
  border-style: dashed;
  animation: spin 60s linear infinite reverse;
}

.hero-visual img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: drop-shadow(0 30px 60px rgba(47, 180, 240, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #9aa2c7;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}

.stat-card .num {
  font-family: "Rajdhani", sans-serif;
  font-size: 44px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--blue-light), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card .label {
  color: #c4cae6;
  font-size: 15px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-grid p {
  font-size: 17px;
  line-height: 2;
  color: #333c5c;
  margin: 0 0 20px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

/* ===== Cards generic ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 180, 240, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue-light);
}

.card.purple .icon svg {
  stroke: var(--purple-light);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 14px;
}

.card p {
  color: #b7bede;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  margin: 0;
}

/* light-surface card variant */
.card-light {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.card-light h3 {
  color: var(--ink);
}

.card-light p {
  color: var(--muted);
}

.card-light .icon {
  background: rgba(47, 180, 240, 0.08);
  border-color: rgba(47, 180, 240, 0.2);
}

.card-light .icon svg {
  stroke: var(--blue);
}

.card-light.purple .icon {
  background: rgba(139, 110, 240, 0.08);
  border-color: rgba(139, 110, 240, 0.2);
}

.card-light.purple .icon svg {
  stroke: var(--purple);
}

/* numbered variant (why / methodology) */
.card-numbered {
  position: relative;
  text-align: right;
}

.card-numbered .badge {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.card-numbered.blue-badge .badge {
  background: linear-gradient(135deg, var(--blue), #1a8fd1);
}

.card-numbered.purple-badge .badge {
  background: linear-gradient(135deg, var(--purple), #6a4fd6);
}

.card-numbered h3 {
  text-align: right;
  margin-top: 6px;
}

.card-numbered p {
  text-align: right;
}

/* competencies card */
.comp-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comp-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #eef1fb;
}

.comp-card .tag {
  display: block;
  color: var(--blue-light);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.comp-card .icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  margin: 0;
}

.comp-card p {
  text-align: right;
  margin: 0;
  color: #b7bede;
  font-size: 14.5px;
  line-height: 1.9;
}

/* services grid 4 col */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  text-align: center;
}

.service-card .icon {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

/* methodology numbered flow */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.method-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 26px;
  position: relative;
}

.method-card .step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 18px;
}

.method-card:nth-child(odd) .step-num {
  background: linear-gradient(135deg, var(--blue), #1a8fd1);
}

.method-card:nth-child(even) .step-num {
  background: linear-gradient(135deg, var(--purple), #6a4fd6);
}

.method-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: #eef1fb;
}

.method-card p {
  margin: 0;
  color: #b7bede;
  font-size: 14.5px;
  line-height: 1.9;
}

/* commitment cards (light) */
.commit-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  text-align: right;
}

.commit-card .text h3 {
  text-align: right;
  margin: 0 0 10px;
}

.commit-card .text p {
  text-align: right;
}

.commit-card .icon {
  margin: 0;
  flex-shrink: 0;
}

/* ===== CTA / Contact ===== */
.contact {
  background: radial-gradient(circle at 50% 0%, #1a2350 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  text-align: center;
}

.contact .logo-badge {
  width: 150px;
  margin: 0 auto 30px;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(47, 180, 240, 0.2);
}

.contact h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  margin: 0 0 14px;
}

.contact > .container > p {
  color: #b7bede;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
}

.contact-item .icon {
  margin: 0 auto 16px;
}

.contact-item .label {
  color: #9aa2c7;
  font-size: 13px;
  margin-bottom: 8px;
}

.contact-item .value {
  font-weight: 700;
  font-size: 16px;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-item a.value:hover {
  color: var(--blue-light);
}

/* ===== Footer ===== */
footer {
  background: var(--navy-950);
  color: #7d84a8;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

footer a:hover {
  color: var(--blue-light);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 130px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: 220px;
    height: 220px;
  }

  .hero-visual .ring.r1 {
    width: 300px;
    height: 300px;
  }

  .hero-visual .ring.r2 {
    width: 380px;
    height: 380px;
  }

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

  .grid-3, .grid-4, .services-grid, .method-grid, .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  section {
    padding: 70px 0;
  }

  .grid-3, .grid-4, .grid-2, .services-grid, .method-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .commit-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .commit-card .text h3,
  .commit-card .text p {
    text-align: center;
  }

  .card-numbered .badge {
    left: 50%;
    transform: translateX(50%);
  }
}

/* mobile nav drawer */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 76px;
  right: 0;
  left: 0;
  background: var(--navy-900);
  flex-direction: column;
  padding: 20px 24px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
