:root {
  --purple: #812a96;
  --purple-dark: #591369;
  --purple-deep: #4d0d5b;
  --purple-soft: #9f52b3;
  --cream: #fffde0;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(52, 5, 62, 0.22);
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-arabic: "Tajawal", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  background: var(--purple-dark);
  font-family: var(--font-display);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 82px);
  padding: clamp(30px, 5vw, 72px) clamp(20px, 6vw, 100px) clamp(65px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.08), transparent 22%),
    linear-gradient(145deg, #842b98 0%, #7e2991 48%, #76238b 100%);
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(15px);
  opacity: .18;
  pointer-events: none;
}

.ambient--one {
  top: -210px;
  left: -120px;
  background: #d880e8;
}

.ambient--two {
  right: -180px;
  bottom: -230px;
  background: #48104f;
}

.brand {
  display: grid;
  place-items: center;
  gap: 12px;
  animation: reveal-down .8s cubic-bezier(.22,1,.36,1) both;
}

.brand__emblem {
  position: relative;
  width: clamp(112px, 9vw, 150px);
  aspect-ratio: 1;
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
  box-shadow:
    inset 0 0 0 8px var(--purple),
    inset 0 0 0 10px rgba(255,255,255,.95);
}

.brand__emblem::before,
.brand__emblem::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dotted rgba(255,255,255,.88);
  border-radius: 50%;
}

.brand__emblem::after {
  inset: 16px;
  border-style: solid;
  opacity: .7;
}

.brand__bracket,
.brand__monogram {
  position: relative;
  z-index: 1;
}

.brand__monogram {
  font-size: 1.24em;
  transform: translateY(-1px);
}

.brand__wordmark {
  display: grid;
  place-items: center;
  line-height: .95;
}

.brand__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(30px, 3.4vw, 47px);
  font-weight: 700;
}

.brand__english {
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 700;
  letter-spacing: .02em;
}

.intro {
  width: min(100%, 1100px);
  margin-top: clamp(56px, 8vh, 110px);
  text-align: center;
  animation: reveal-up .9s .1s cubic-bezier(.22,1,.36,1) both;
}

.intro__eyebrow {
  margin: 0 0 8px;
  color: rgba(255,255,255,.72);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: .26em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .015em;
  text-wrap: balance;
}

.intro__subtitle {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.4vw, 35px);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

.services {
  width: min(100%, 1250px);
  margin-top: clamp(58px, 8vh, 100px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
  perspective: 1100px;
}

.service-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  min-height: clamp(250px, 22vw, 320px);
  padding: clamp(36px, 4vw, 58px) 24px 28px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--purple);
  background:
    linear-gradient(145deg, rgba(255,255,255,.55), transparent 52%),
    var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform .18s ease-out,
    box-shadow .35s ease,
    border-color .35s ease;
  animation: card-enter .75s cubic-bezier(.22,1,.36,1) both;
  overflow: visible;
  will-change: transform;
}

.service-card:nth-child(2) {
  animation-delay: .1s;
}

.service-card:nth-child(3) {
  animation-delay: .2s;
}

.service-card:hover {
  --lift: -10px;
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 32px 80px rgba(45, 0, 55, .32);
}

.service-card__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255,255,255,.7),
    rgba(255,255,255,0) 42%
  );
  transition: opacity .3s ease;
  pointer-events: none;
}

.service-card:hover .service-card__shine {
  opacity: .5;
}

.service-card__content {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: translateZ(28px);
}

.service-card h2,
.service-card p {
  margin: 0;
  line-height: 1.02;
}

.service-card h2 {
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 500;
}

.service-card p {
  margin-top: 4px;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 400;
}

.service-card__button {
  position: relative;
  z-index: 2;
  min-width: 164px;
  min-height: 52px;
  margin-bottom: -54px;
  padding: 12px 18px 12px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-dark), #6d167e);
  box-shadow: 0 10px 24px rgba(70, 0, 80, .25);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1;
  text-decoration: none;
  transform: translateZ(42px);
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    box-shadow .25s ease,
    background .25s ease;
}

.service-card__button svg {
  width: 0;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-8px);
  transition: width .25s ease, opacity .25s ease, transform .25s ease;
}

.service-card__button:hover,
.service-card__button:focus-visible {
  background: linear-gradient(135deg, #6c177c, #8f2da5);
  box-shadow: 0 14px 30px rgba(70, 0, 80, .38);
  transform: translateZ(42px) translateY(-3px);
}

.service-card__button:hover svg,
.service-card__button:focus-visible svg {
  width: 20px;
  opacity: 1;
  transform: translateX(0);
}

.service-card__button:active {
  transform: translateZ(42px) translateY(0) scale(.98);
}

.service-card__button:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 4px;
}

.footer {
  min-height: 82px;
  padding: 18px 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #5a1368, var(--purple-deep));
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: .04em;
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(42px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-bottom: 85px;
  }

  .services {
    max-width: 650px;
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .service-card {
    min-height: 260px;
  }

  .service-card h2 {
    font-size: 42px;
  }

  .service-card p {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-inline: 16px;
  }

  .intro {
    margin-top: 48px;
  }

  .intro__eyebrow {
    letter-spacing: .16em;
  }

  .services {
    margin-top: 46px;
  }

  .service-card {
    min-height: 230px;
    border-radius: 17px;
  }

  .service-card__button {
    min-width: 150px;
    min-height: 48px;
    margin-bottom: -50px;
  }
}

@media (hover: none), (pointer: coarse) {
  .service-card {
    transform: none !important;
  }

  .service-card:hover {
    --lift: 0px;
  }
}

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

  .service-card {
    transform: none !important;
  }
}


.brand__logo{
  width:clamp(120px,10vw,170px);
  height:auto;
  display:block;
  filter:drop-shadow(0 10px 25px rgba(0,0,0,.15));
}
