:root {
  --primary: #2c2f80;
  --secondary: #a432a5;
  --accent: #ffc72c;
  --dark: #111827;
  --dark-2: #1f2937;
  --text: #263244;
  --muted: #6b7280;
  --line: #e6e8ee;
  --white: #fff;
  --soft: #f6f7fb;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(17, 24, 39, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", "Cairo", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1170px, calc(100% - 30px)); margin: 0 auto; }

.hero {
  min-height: 100vh;
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg { object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.hero-shade {
  background:
    radial-gradient(circle at 25% 45%, rgba(164, 50, 165, .48), transparent 26%),
    linear-gradient(90deg, rgba(17, 24, 39, .94), rgba(44, 47, 128, .74), rgba(17, 24, 39, .86));
}
.topbar,
.main-nav,
.hero-content { position: relative; z-index: 2; }
.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}
.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.socials,
.top-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.socials a:hover,
.top-contact a:hover { color: var(--accent); }

.main-nav {
  padding: 18px 0;
  background: rgba(17, 24, 39, .18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
}
.brand img { width: 86px; height: 86px; object-fit: contain; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 800;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 13px 17px;
  border-radius: 4px;
  color: var(--white);
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
  background: rgba(255, 255, 255, .13);
  color: var(--accent);
}
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 520px;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 12px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.has-menu:hover .mega-menu { display: grid; }
.mega-menu a {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mega-menu a:hover {
  color: var(--primary);
  background: var(--soft);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero-content {
  min-height: calc(100vh - 156px);
  display: flex;
  align-items: center;
  padding: 70px 0 120px;
}
.hero-text {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.25;
  font-weight: 900;
}
.hero p {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .86);
  font-size: 21px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--accent); color: #1f2937; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); }
.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .08); }
.btn.full { width: 100%; }

.section { padding: 86px 0; }
.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--secondary);
  font-weight: 900;
}
.section-title {
  max-width: 780px;
  margin: 0 auto 42px;
}
.section-title.center { text-align: center; }
.section-title h2,
.section-copy h2,
.follow h2 {
  margin: 0;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: clamp(28px, 4.4vw, 45px);
  line-height: 1.35;
  color: var(--dark);
  font-weight: 900;
}
.section-title p,
.section-copy p,
.follow p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 54px;
  align-items: center;
}
.about-media { position: relative; min-height: 460px; }
.about-logo {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 190px;
  border-radius: 50%;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--white);
}
.about-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 86%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.services { background: var(--soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  min-height: 258px;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}
.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 900;
}
.service-card h3,
.portfolio-card h3,
.process-grid h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.35;
}
.service-card p,
.portfolio-card p,
.process-grid p { margin: 0; color: var(--muted); }

.disciplines { background: var(--white); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(17, 24, 39, .08);
}
.portfolio-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.portfolio-card div { padding: 24px; }

.stats {
  padding: 62px 0;
  background:
    linear-gradient(135deg, rgba(44, 47, 128, .95), rgba(164, 50, 165, .9)),
    var(--dark);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stats-grid div {
  text-align: center;
  padding: 26px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}
.stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
  font-family: "Cairo", sans-serif;
}
.stats-grid span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .86); }

.process { background: var(--soft); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-grid div {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.process-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--secondary);
  font-weight: 900;
}

.testimonials { background: var(--white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
blockquote {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
}
blockquote p { margin: 0 0 18px; color: var(--text); }
blockquote cite { color: var(--primary); font-weight: 900; font-style: normal; }

.follow {
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .9), rgba(17, 24, 39, .72)),
    url("../img/motion.jpg") center/cover;
  color: var(--white);
}
.follow-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
}
.follow img {
  width: 260px;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, .9);
  background: var(--white);
}
.follow h2 { color: var(--white); }
.follow p { color: rgba(255, 255, 255, .82); }

.contact { background: var(--soft); }
.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: start;
}
.contact-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  margin-bottom: 10px;
  padding: 11px 16px;
  border-right: 4px solid var(--accent);
  background: var(--white);
  border-radius: 4px;
}
.quote-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
}
.quote-form textarea { resize: vertical; min-height: 132px; }

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .78);
  padding: 62px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}
.footer-logo {
  width: 132px;
  border-radius: 50%;
  background: var(--white);
  margin-bottom: 20px;
}
.footer h3 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 20px;
}
.footer p { margin: 0; max-width: 350px; }
.footer a {
  display: block;
  margin-bottom: 10px;
}
.footer a:hover { color: var(--accent); }
.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 1020px) {
  .services-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-grid,
  .contact-grid,
  .follow-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .follow img { width: 210px; }
}

@media (max-width: 820px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .menu-toggle { display: inline-block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 15px;
    left: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(17, 24, 39, .96);
    border-radius: var(--radius);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px; }
  .mega-menu {
    position: static;
    width: 100%;
    display: grid;
    margin-top: 6px;
  }
  .hero-content { min-height: auto; padding: 88px 0 110px; }
  .brand img { width: 72px; height: 72px; }
  .about-media { min-height: auto; }
  .about-logo,
  .about-frame {
    position: static;
    width: 100%;
  }
  .about-logo { width: 180px; margin: 0 auto 18px; }
}

@media (max-width: 620px) {
  .services-grid,
  .process-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero p { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .quote-form { padding: 22px; }
}