/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-deep:   #3a1abf;
  --purple-main:   #4c22d4;
  --purple-mid:    #6236e0;
  --purple-light:  #9b7ef0;
  --purple-pale:   #e8e1ff;
  --purple-bg:     #f5f2ff;
  --white:         #ffffff;
  --gray-100:      #f8f9fa;
  --gray-200:      #e9ecef;
  --gray-500:      #6c757d;
  --gray-700:      #495057;
  --gray-900:      #1a1a2e;
  --font-ar:       'Cairo', sans-serif;
  --radius:        14px;
  --radius-lg:     24px;
  --shadow-sm:     0 2px 12px rgba(76,34,212,.08);
  --shadow-md:     0 8px 32px rgba(76,34,212,.15);
  --shadow-lg:     0 20px 60px rgba(76,34,212,.22);
  --transition:    .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ar);
  background: var(--white);
  color: var(--gray-900);
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
}

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

.section { padding-block: 100px; }

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal--delay-3 { transition-delay: .36s; }
.reveal--delay-4 { transition-delay: .48s; }
.reveal.revealed  { opacity: 1; transform: none; }

/* ===== TYPOGRAPHY HELPERS ===== */
.section-label {
  display: inline-block;
  background: var(--purple-pale);
  color: var(--purple-main);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .3em 1em;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.section-label--light {
  background: rgba(255,255,255,.18);
  color: var(--white);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.section-title--light { color: var(--white); }
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc { margin-inline: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8em 2em;
  border-radius: 99px;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--white);
  color: var(--purple-main);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn--primary:hover { background: var(--purple-pale); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--full { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: rgba(26,10,100,.92);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo-img { height: 44px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.nav__links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .4em .85em;
  border-radius: 99px;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.12); }
.nav__cta {
  background: var(--white) !important;
  color: var(--purple-main) !important;
  font-weight: 700 !important;
}
.nav__cta:hover { background: var(--purple-pale) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 50%, var(--purple-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  animation: float 8s ease-in-out infinite;
}
.shape--1 {
  width: 600px; height: 600px;
  background: var(--purple-light);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.shape--2 {
  width: 400px; height: 400px;
  background: white;
  bottom: -100px; right: -80px;
  animation-delay: -3s;
}
.shape--3 {
  width: 300px; height: 300px;
  background: var(--purple-pale);
  top: 40%; left: 60%;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
.hero__content { position: relative; z-index: 1; padding-block: 60px; }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  padding: .5em 1.5em;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 2rem;
}
.hero__title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title-hinp {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  letter-spacing: .04em;
  background: linear-gradient(90deg, #fff 0%, #c4b0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 99px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 99px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 1; top: 6px; }
  50%       { opacity: .3; top: 18px; }
}

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text h2 { margin-bottom: 1rem; }
.about__text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--purple-main);
  line-height: 1;
}
.stat__label { font-size: .85rem; color: var(--gray-500); margin-top: .3rem; display: block; }
.about__visual {
  position: relative;
  height: 380px;
}
.about__purple-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px dashed var(--purple-light);
  opacity: .35;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 600;
  font-size: .9rem;
  border-right: 4px solid var(--purple-main);
  animation: float 6s ease-in-out infinite;
}
.about__card-icon { font-size: 1.5rem; }
.about__card--1 { top: 10%; right: 5%; animation-delay: 0s; }
.about__card--2 { top: 45%; left: 0;   animation-delay: -2s; }
.about__card--3 { bottom: 8%; right: 15%; animation-delay: -4s; }

/* ===== VISION / MISSION / VALUES ===== */
.vision { background: var(--purple-bg); }
.vmv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vmv__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.vmv__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vmv__card--vision  { border-top: 4px solid var(--purple-main); }
.vmv__card--mission { border-top: 4px solid var(--purple-mid); }
.vmv__card--values  { border-top: 4px solid var(--purple-light); }
.vmv__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.vmv__card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--purple-main);
}
.vmv__card p { color: var(--gray-700); font-size: .96rem; }
.values__list { display: grid; gap: .7rem; margin-top: .5rem; }
.value-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .96rem;
  font-weight: 600;
  color: var(--gray-700);
}
.value-num {
  background: var(--purple-main);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services--tech { background: var(--gray-100); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-light);
}
.service-card--tech { background: var(--white); }
.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--purple-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-main);
  flex-shrink: 0;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gray-900);
}
.service-card p {
  font-size: .9rem;
  color: var(--gray-700);
  flex-grow: 1;
  line-height: 1.7;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
}
.service-card__tags span {
  background: var(--purple-pale);
  color: var(--purple-main);
  font-size: .75rem;
  font-weight: 700;
  padding: .25em .75em;
  border-radius: 99px;
}

/* ===== WHY US ===== */
.why-us {
  background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple-main) 100%);
}
.why-us .section-title { color: var(--white); }
.why-us .section-label { background: rgba(255,255,255,.18); color: var(--white); }
.why-us .section-desc  { color: rgba(255,255,255,.7); }
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-4px);
}
.why-card__num {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255,255,255,.25);
  line-height: 1;
  flex-shrink: 0;
}
.why-card__body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .5rem;
}
.why-card__body p { font-size: .88rem; color: rgba(255,255,255,.75); line-height: 1.7; }

/* ===== METHODOLOGY ===== */
.methodology { background: var(--white); }
.methodology__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}
.step__num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--purple-main);
  line-height: 1;
  flex-shrink: 0;
  width: 70px;
  text-align: center;
}
.step__line {
  position: absolute;
  right: 34px;
  top: 64px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(to bottom, var(--purple-main), var(--purple-pale));
  z-index: 0;
}
.step__content {
  background: var(--purple-bg);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  flex-grow: 1;
  margin-bottom: 20px;
  border-right: 4px solid var(--purple-main);
  transition: var(--transition);
}
.step__content:hover { box-shadow: var(--shadow-md); transform: translateX(-4px); }
.step__content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple-main);
  margin-bottom: .35rem;
}
.step__content p { font-size: .94rem; color: var(--gray-700); }

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-main));
  position: relative;
  overflow: hidden;
}
.contact__bg-shape {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact__text .section-title { color: var(--white); margin-bottom: 1rem; }
.contact__text p { color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.contact__info { display: flex; flex-direction: column; gap: 1rem; }
.contact__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}
.contact__item:hover { color: var(--white); }
.contact__item-icon { font-size: 1.3rem; }
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85em 1.1em;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-ar);
  font-size: .96rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-main);
  box-shadow: 0 0 0 3px var(--purple-pale);
}
.form-group textarea { resize: vertical; }
.contact__form .btn--primary {
  background: var(--purple-main);
  color: var(--white);
  margin-top: .5rem;
  font-size: 1rem;
}
.contact__form .btn--primary:hover { background: var(--purple-deep); }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  padding-top: 60px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo { height: 40px; margin-bottom: 1rem; }
.footer__brand p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.8; }
.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer__links h4, .footer__contact h4 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: .5rem;
  font-size: 1rem;
}
.footer__links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .9rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--purple-light); }
.footer__contact p { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer__bottom {
  padding-block: 24px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .vmv__grid { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why-us__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 70px; }

  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,10,100,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    z-index: 999;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.2rem; }
  .nav__burger { display: flex; z-index: 1001; }

  .about__grid { grid-template-columns: 1fr; }
  .about__visual { display: none; }

  .vmv__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner { grid-template-columns: 1fr; gap: 30px; }

  .about__stats { flex-wrap: wrap; gap: 1.2rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .step__num { font-size: 2.5rem; width: 50px; }
  .step__line { right: 24px; }
}
