:root {
  --nw-teal: #2aa6b8;
  --nw-blue: #1f6f9e;
  --nw-navy: #2b2a75;
  --nw-deep: #101a3a;
  --nw-ink: #0b1228;
  --nw-soft: #f4f8fb;
  --nw-grad: linear-gradient(135deg, #2aa6b8 0%, #1f6f9e 45%, #2b2a75 100%);
  --nw-grad-soft: linear-gradient(135deg, rgba(42,166,184,.12), rgba(43,42,117,.12));
  --nw-shadow: 0 18px 45px -18px rgba(16, 26, 58, .45);
}

* { scroll-behavior: smooth; }

body {
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  background: #fff;
  color: var(--nw-ink);
  overflow-x: hidden;
}

h1, h2, h3, h4, .fw-black { font-weight: 800; }

.text-grad {
  background: var(--nw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-nw {
  background: var(--nw-grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.5rem;
  font-weight: 700;
  box-shadow: var(--nw-shadow);
  transition: transform .25s ease, filter .25s ease;
}
.btn-nw:hover { color: #fff; transform: translateY(-3px) scale(1.02); filter: brightness(1.08); }

.btn-outline-nw {
  border: 2px solid var(--nw-blue);
  color: var(--nw-blue);
  border-radius: 999px;
  padding: .6rem 1.4rem;
  font-weight: 700;
  background: transparent;
  transition: all .25s ease;
}
.btn-outline-nw:hover { background: var(--nw-blue); color: #fff; }

/* NAVBAR */
.navbar-nw {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -18px rgba(16,26,58,.6);
  transition: padding .3s ease, background .3s ease;
}
.navbar-nw.scrolled { padding-top: .1rem; padding-bottom: .1rem; background: rgba(255,255,255,.95); }
.navbar-nw .nav-link {
  font-weight: 700;
  color: var(--nw-deep);
  margin-inline: .15rem;
  position: relative;
}
.navbar-nw .nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--nw-grad);
  transform: translateX(50%);
  transition: width .3s ease;
}
.navbar-nw .nav-link:hover::after,
.navbar-nw .nav-link.active::after { width: 60%; }
.navbar-brand img { height: 48px; }

/* HERO */
.hero {
  position: relative;
  padding: 130px 0 90px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(42,166,184,.22), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(43,42,117,.18), transparent 60%),
              #f7fbfd;
  overflow: hidden;
}
.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .5;
  animation: float 9s ease-in-out infinite;
}
.hero .blob.b1 { width: 260px; height: 260px; background: #2aa6b8; top: 10%; inset-inline-start: -60px; }
.hero .blob.b2 { width: 320px; height: 320px; background: #2b2a75; bottom: -80px; inset-inline-end: -80px; animation-delay: 1.5s; }

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

.hero-logo {
  width: 100%;
  max-width: 340px;
  animation: pulseLogo 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 40px rgba(31,111,158,.35));
}
@keyframes pulseLogo {
  0%, 100% { transform: translateY(0) rotate(0deg) }
  50% { transform: translateY(-16px) rotate(3deg) }
}

.hero-badge {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(31,111,158,.2);
  color: var(--nw-blue);
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .85rem;
}

.typed-cursor::after {
  content: "|";
  animation: blink 1s steps(1) infinite;
  color: var(--nw-teal);
}
@keyframes blink { 50% { opacity: 0 } }

/* SECTIONS */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-sub { color: #5c6a86; max-width: 620px; margin-inline: auto; }
.divider-nw {
  width: 84px; height: 5px; border-radius: 999px;
  background: var(--nw-grad); margin: .8rem auto 1.2rem;
}
.bg-soft { background: var(--nw-soft); }

/* CARDS */
.card-nw {
  border: 1px solid rgba(31,111,158,.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px -22px rgba(16,26,58,.5);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  overflow: hidden;
}
.card-nw:hover { transform: translateY(-8px); box-shadow: var(--nw-shadow); }

.svc-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--nw-grad-soft);
  color: var(--nw-blue);
  font-size: 1.5rem;
  margin-bottom: .9rem;
}

.prog-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--nw-soft);
}
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .93rem; color: #44526d; margin-bottom: .35rem;
}
.spec-list li i { color: var(--nw-teal); margin-top: .25rem; }

.client-logo {
  height: 84px; width: 100%;
  object-fit: contain;
  padding: .5rem;
}
.badge-nw {
  background: var(--nw-grad-soft);
  color: var(--nw-blue);
  font-weight: 700;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .78rem;
}

.stat-num { font-size: 2rem; font-weight: 800; color: var(--nw-blue); }

.agent-card { border-inline-start: 5px solid var(--nw-teal); }

.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: .5rem 0; }
.post-content iframe { max-width: 100%; border-radius: 12px; }

.form-control, .form-select {
  border-radius: 14px;
  padding: .7rem .95rem;
  border: 1px solid rgba(31,111,158,.22);
}
.form-control:focus, .form-select:focus {
  border-color: var(--nw-teal);
  box-shadow: 0 0 0 .2rem rgba(42,166,184,.18);
}

footer {
  background: var(--nw-deep);
  color: #cfd8ea;
  padding: 46px 0 20px;
}
footer a { color: #cfd8ea; text-decoration: none; }
footer a:hover { color: #fff; }

.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 1050;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 26px -8px rgba(37,211,102,.7);
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55) }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0) }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0) }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 767.98px) {
  .hero { padding: 105px 0 60px; text-align: center; }
  .hero-logo { max-width: 220px; }
  section { padding: 52px 0; }
  .navbar-brand img { height: 40px; }
}
