:root {
  --bg: #f8faff;
  --primary: #0b2a55;
  --secondary: #7c3aed;
  --accent: #2563eb;
  --text: #10213f;
  --soft: #66758f;
  --white: #ffffff;
  --line: rgba(11, 42, 85, 0.11);
  --shadow: 0 24px 70px rgba(16, 33, 63, 0.11);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.12), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(37, 99, 235, 0.13), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 45%, #ffffff 100%);
  font-family: Tajawal, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: Inter, Tajawal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.17), transparent 28%),
    rgba(248, 250, 255, 0.97);
  animation: intro-out 1.35s ease forwards;
  pointer-events: none;
}

.intro-logo {
  width: min(260px, 52vw);
  filter: drop-shadow(0 22px 40px rgba(11, 42, 85, 0.18));
  animation: intro-logo 1.15s ease forwards;
}

.intro-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.55);
  animation: float-particle 1.2s ease-in-out infinite alternate;
}

.intro-particles span:nth-child(1) { top: 32%; left: 35%; }
.intro-particles span:nth-child(2) { top: 62%; left: 41%; animation-delay: 0.15s; }
.intro-particles span:nth-child(3) { top: 38%; left: 66%; animation-delay: 0.25s; }
.intro-particles span:nth-child(4) { top: 56%; left: 61%; animation-delay: 0.35s; }
.intro-particles span:nth-child(5) { top: 46%; left: 50%; animation-delay: 0.45s; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 0 0;
}

.navbar {
  width: min(92vw, 1440px);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 12px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  transition: 0.25s ease;
}

.site-header.is-scrolled .navbar {
  padding: 10px 18px;
  border: 1px solid rgba(11, 42, 85, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 50px rgba(16, 33, 63, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 190px;
  height: auto;
}

.nav-panel {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 54px);
  color: var(--primary);
  font-size: 1.03rem;
  font-weight: 800;
}

.nav-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-panel a:hover {
  color: var(--secondary);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-weight: 800;
}

.lang-btn {
  border: 0;
  padding: 6px 3px;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #0e3b78);
  box-shadow: 0 16px 34px rgba(11, 42, 85, 0.22);
}

.btn-secondary {
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary), #4f46e5);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.22);
}

.btn-small {
  min-height: 46px;
  padding: 0 22px;
}

.section-pad {
  width: min(92vw, 1440px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 108px) 0;
}

.compact {
  padding-top: 30px;
}

.hero {
  padding-top: clamp(42px, 6vw, 76px);
}

.hero-heading,
.section-title {
  max-width: 850px;
  margin: 0 auto 48px;
  text-align: center;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-heading p:not(.eyebrow),
.section-title p:not(.eyebrow) {
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
}

.hero-mark {
  width: 84px;
  height: 6px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--secondary), var(--primary), transparent);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.choice-card {
  position: relative;
  min-height: clamp(520px, 48vw, 650px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.2fr);
  align-items: stretch;
  border: 1px solid rgba(11, 42, 85, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.82;
  pointer-events: none;
}

.choice-card.purple::before {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0 32%, rgba(124, 58, 237, 0.09) 54%, rgba(124, 58, 237, 0.19));
}

.choice-card.blue::before {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0 32%, rgba(37, 99, 235, 0.08) 54%, rgba(37, 99, 235, 0.18));
}

.choice-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 4vw, 54px);
}

[dir="rtl"] .choice-copy {
  align-items: flex-start;
}

.choice-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 58, 237, 0.17);
  border-radius: 20px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(16, 33, 63, 0.08);
  font-size: 2rem;
}

.blue .choice-icon {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.17);
}

.choice-copy h2 {
  max-width: 340px;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.choice-copy p {
  max-width: 320px;
  margin-bottom: 34px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.9;
  font-weight: 500;
}

.choice-art {
  position: relative;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
}

.choice-art img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: soft-rise 5.5s ease-in-out infinite alternate;
}

.all-services {
  width: fit-content;
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
}

.all-services span:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(16, 33, 63, 0.08);
}

.mini-grid,
.service-grid,
.package-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
}

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

.mini-card,
.soft-card,
.package-card,
.step,
.contact-form,
.cta-box {
  border: 1px solid rgba(11, 42, 85, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 55px rgba(16, 33, 63, 0.07);
  backdrop-filter: blur(18px);
}

.mini-card {
  min-height: 180px;
  padding: 28px;
  border-radius: 24px;
}

.mini-card span,
.soft-card span {
  color: var(--secondary);
  font-weight: 900;
}

.mini-card h3,
.soft-card h3,
.package-card h3,
.step h3 {
  color: var(--primary);
}

.mini-card p {
  color: var(--soft);
  line-height: 1.8;
}

.section-title h2 {
  margin-bottom: 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.25;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.soft-card {
  min-height: 150px;
  padding: 30px;
  border-radius: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.soft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.24);
}

.package-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.package-card {
  padding: 34px;
  border-radius: 26px;
}

.package-card.featured {
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0b2a55, #173f81 52%, #7c3aed);
  transform: translateY(-16px);
}

.package-card p {
  color: var(--soft);
  font-weight: 800;
}

.package-card.featured p,
.package-card.featured h3,
.package-card.featured li {
  color: var(--white);
}

.package-card h3 {
  font-size: 1.65rem;
}

.package-card ul {
  margin: 24px 0 0;
  padding: 0 18px;
  color: var(--soft);
  line-height: 2.1;
}

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

.step {
  min-height: 170px;
  padding: 28px;
  border-radius: 24px;
}

.step span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-weight: 900;
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  min-height: 260px;
  border: 1px solid rgba(11, 42, 85, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(37, 99, 235, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.48));
  box-shadow: 0 18px 55px rgba(16, 33, 63, 0.07);
}

.cta-box {
  padding: clamp(34px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 12%, rgba(124, 58, 237, 0.19), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.19), transparent 28%),
    rgba(255, 255, 255, 0.78);
}

.cta-box h2,
.contact-copy h2 {
  margin-bottom: 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(22px, 4vw, 70px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 140px;
}

.phone {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 28px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 42, 85, 0.13);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.hidden {
  display: none;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 28px;
  margin: 0;
  color: var(--soft);
  font-weight: 800;
}

.form-status.success {
  color: #047857;
}

.form-status.error {
  color: #b91c1c;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-height: 58px;
  padding: 0 22px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #19c37d, #0b8f5a);
  box-shadow: 0 18px 44px rgba(15, 143, 90, 0.28);
  font-weight: 900;
  backdrop-filter: blur(16px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 24px;
  padding: 0 14px 0 22px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(15, 143, 90, 0.34);
}

.wa-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b8f5a;
  background: rgba(255, 255, 255, 0.92);
}

.wa-icon svg,
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer {
  width: min(92vw, 1440px);
  margin: 0 auto 28px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(11, 42, 85, 0.09);
  border-radius: 28px;
  color: var(--soft);
  font-weight: 700;
  background:
    radial-gradient(circle at 8% 10%, rgba(124, 58, 237, 0.09), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(37, 99, 235, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 55px rgba(16, 33, 63, 0.07);
  backdrop-filter: blur(18px);
}

.footer img {
  width: 170px;
  margin-bottom: 8px;
}

.footer p {
  margin-bottom: 6px;
}

.footer-brand p {
  color: var(--primary);
  font-weight: 800;
}

.footer-info {
  display: grid;
  gap: 4px;
}

.footer-info span {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 900;
}

.footer-info p {
  color: var(--primary);
  font-size: 1.04rem;
  font-weight: 900;
}

.social {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--primary);
}

.social a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(11, 42, 85, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.social-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b8f5a;
  background: rgba(15, 143, 90, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes intro-out {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes intro-logo {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  38%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(1.02); }
}

@keyframes float-particle {
  from { transform: translateY(0) scale(0.8); opacity: 0.45; }
  to { transform: translateY(-18px) scale(1); opacity: 0.95; }
}

@keyframes soft-rise {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.055) translateY(-10px); }
}

@media (max-width: 1120px) {
  .navbar {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-panel,
  .nav-actions {
    position: fixed;
    left: 4vw;
    right: 4vw;
    display: none;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav-panel {
    top: 104px;
    padding: 18px;
    flex-direction: column;
    gap: 8px;
    border-radius: 26px 26px 0 0;
  }

  .nav-panel a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(248, 250, 255, 0.74);
    font-size: 1.13rem;
    font-weight: 900;
  }

  .nav-panel a:hover {
    background: rgba(124, 58, 237, 0.08);
  }

  .nav-actions {
    top: 430px;
    padding: 0 24px 24px;
    justify-content: space-between;
    border-top: 0;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 34px 60px rgba(16, 33, 63, 0.11);
  }

  body.menu-open .nav-panel,
  body.menu-open .nav-actions {
    display: flex;
  }

  .choice-grid,
  .mini-grid,
  .service-grid,
  .package-grid,
  .timeline,
  .portfolio-grid,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .choice-card {
    grid-template-columns: 1fr;
  }

  .choice-copy {
    min-height: 340px;
  }

  .choice-art img {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .brand img {
    width: 145px;
  }

  .section-pad {
    width: min(90vw, 640px);
    padding: 54px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-heading {
    margin-bottom: 34px;
  }

  .choice-grid,
  .mini-grid,
  .service-grid,
  .package-grid,
  .timeline,
  .portfolio-grid,
  .contact-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
    border-radius: 24px;
  }

  .choice-copy {
    min-height: auto;
    padding: 28px;
  }

  .choice-copy h2 {
    font-size: 2.1rem;
  }

  .choice-art img {
    min-height: 320px;
  }

  .package-card.featured {
    transform: none;
  }

  .cta-box,
  .footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .social {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    min-height: 54px;
    padding: 0 18px 0 12px;
  }

  [dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 16px;
    padding: 0 12px 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
