/* ===== الإضافات: طريقة الشغل، الآراء، فورم المشروع، الأزرار العائمة، صفحة المشروع ===== */

/* ===== طريقة الشغل ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.process__step::after {
  content: "";
  position: absolute;
  top: 40px;
  inset-inline-end: -19px;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.5), transparent);
}

html[dir="rtl"] .process__step::after {
  background: linear-gradient(270deg, rgba(34, 211, 238, 0.5), transparent);
}

.process__step:last-child::after {
  display: none;
}

.process__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
}

.process__step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.process__step p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== آراء العملاء ===== */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.quote blockquote {
  position: relative;
  margin: 0;
  padding-top: 26px;
  line-height: 1.8;
}

.quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -14px;
  inset-inline-start: 0;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.quote figcaption {
  display: grid;
  gap: 2px;
}

.quote figcaption span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== التواصل + فورم ابدأ مشروعك ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-other {
  margin-top: 36px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.contact-other + .contact-actions {
  margin-top: 14px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 20px;
  background: rgba(8, 14, 24, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lead-form__title {
  font-size: 1.35rem;
  font-weight: 800;
}

.lead-form__text,
.lead-form__note {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.lead-form__note {
  font-size: 0.8rem;
  text-align: center;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-field {
  display: grid;
  gap: 7px;
}

.lead-field > span {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.lead-field select {
  appearance: none;
  padding-inline-end: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

html[dir="rtl"] .lead-field select {
  background-position: 20px 52%, 15px 52%;
}

.lead-field select option {
  background: #0b1220;
  color: var(--text);
}

.lead-field textarea {
  min-height: 110px;
  resize: vertical;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.lead-form__error {
  color: #ff7a86;
  font-size: 0.88rem;
}

.lead-form__send {
  width: 100%;
}

/* ===== الأزرار العائمة ===== */
.fab {
  position: fixed;
  inset-inline-end: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

html.is-intro .fab,
html.is-focus .fab {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fab__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.45rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fab__btn:hover {
  transform: scale(1.08);
}

.fab__btn--wa {
  background: var(--accent);
  color: #04161c;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5), 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: fab-pulse 2.8s ease-out infinite;
}

.fab__btn--call {
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: rgba(6, 12, 20, 0.92);
  color: var(--accent);
}

@keyframes fab-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(34, 211, 238, 0), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

/* زرار "تفاصيل المشروع" في الكارت */

/* زرار "تفاصيل المشروع" في لوحة الكوكب */
.project-panel__case {
  justify-self: start;
  margin-top: 8px;
}

/* ===== صفحة المشروع (Case Study) ===== */
.case {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 80px;
}

.case-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
}

.case-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.case-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.case__back:hover {
  color: var(--text);
}

html[dir="rtl"] .case__back .icon {
  transform: scaleX(-1);
}

.case__cat {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[lang="ar"] .case__cat {
  letter-spacing: 0;
}

.case__title {
  margin: 12px 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.case__tagline {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.case__cover {
  position: relative;
  margin-top: 40px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 70% 30%, color-mix(in srgb, var(--c, #22d3ee) 22%, transparent), transparent 70%),
    var(--bg-2);
}

.case__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* لما في صورة حقيقية: الصورة تبان كاملة بمقاسها من غير قص */
.case__cover:has(img) {
  aspect-ratio: auto;
}

.case__cover:has(img) img {
  display: block;
  height: auto;
}

.case__cover-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--c, #22d3ee) 70%, white);
  font-family: var(--font-en);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  opacity: 0.35;
}

.case__section {
  margin-top: 64px;
}

.case__h {
  margin-bottom: 22px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}

.metric {
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.metric b {
  display: block;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.metric span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story__block {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.story__block h3 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang="ar"] .story__block h3 {
  letter-spacing: 0;
}

.story__block p {
  line-height: 1.8;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-bottom: 26px;
}

.steps li::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 0;
  inset-inline-start: 21px;
  width: 2px;
  background: linear-gradient(rgba(34, 211, 238, 0.5), rgba(34, 211, 238, 0.05));
}

.steps li:last-child::before {
  display: none;
}

.steps__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-en);
  font-weight: 700;
}

.steps p {
  padding-top: 10px;
  line-height: 1.8;
}

/* صور المشروع بتبان كاملة (سكرين واتساب الطويلة وصور الـ workflow العريضة) */

.case-cta {
  margin-top: 80px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 24px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%), var(--bg-2);
  text-align: center;
}

.case-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
}

.case-cta p {
  max-width: 520px;
  margin: 12px auto 26px;
  color: var(--text-dim);
}

.case-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.case-next {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.case-empty {
  padding: 120px 0;
  color: var(--text-dim);
  text-align: center;
}

/* ===== الموبايل ===== */
@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }

  .process__step::after {
    display: none;
  }

  .contact-grid,
  .story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .process,
  .lead-row {
    grid-template-columns: 1fr;
  }

  .fab {
    inset-inline-end: 14px;
  }

  .fab__btn {
    width: 50px;
    height: 50px;
  }

  /* الموبايل: زرار واتساب بس (زرارين فوق بعض كانوا بيغطوا على الكروت). الاتصال موجود في قسم التواصل وفي الفوتر */
  .fab__btn--call {
    display: none;
  }

  .case-nav .nav__name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab__btn--wa {
    animation: none;
  }
}

/* ===== الضغط على الموبايل: من غير المربع الرمادي الشفاف ===== */
a,
button,
label,
summary,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* بدل المربع: الزرار نفسه بيتضغط لجوه شوية (إحساس زرار حقيقي) */
.btn:active,
.fab__btn:active,
.case__back:active,
.nav__links a:active,
.dots a:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

/* للكيبورد بس: إطار أخضر واضح */
.btn:focus-visible,
.fab__btn:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.7);
  outline-offset: 3px;
}

/* ===== أنيميشن فتح واتساب / الاتصال ===== */
.launch {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.launch.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease), visibility 0s;
}

.launch__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
}

.launch__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--accent);
  color: #04161c;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.55);
  transform: scale(0.4);
}

.launch[data-kind="tel"] .launch__icon {
  border: 2px solid var(--accent);
  background: #07120c;
  color: var(--accent);
}

.launch__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launch__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(34, 211, 238, 0.6);
  border-radius: 50%;
  opacity: 0;
}

.launch__text {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
}

.launch.is-on .launch__icon {
  animation: launch-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.launch.is-on .launch__ring {
  animation: launch-ring 1.4s ease-out 0.2s infinite;
}

.launch.is-on .launch__ring--2 {
  animation-delay: 0.65s;
}

.launch.is-on .launch__text {
  animation: launch-text 0.4s var(--ease) 0.2s forwards;
}

.launch.is-on[data-kind="tel"] .launch__icon svg {
  animation: launch-shake 0.9s ease-in-out 0.45s 2;
}

@keyframes launch-pop {
  to {
    transform: scale(1);
  }
}

@keyframes launch-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes launch-text {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes launch-shake {
  0%, 100% { transform: rotate(0); }
  15%, 45% { transform: rotate(-14deg); }
  30%, 60% { transform: rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .launch.is-on .launch__icon,
  .launch.is-on .launch__text {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .launch.is-on .launch__ring,
  .launch.is-on[data-kind="tel"] .launch__icon svg {
    animation: none;
  }
}

/* ===================================================== */
/* ===== كروت المشاريع (الشكل الجديد) ===== */
/* ===================================================== */
.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--c, #22d3ee) 45%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px color-mix(in srgb, var(--c, #22d3ee) 12%, transparent);
}

.project-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--c, #22d3ee) 22%, transparent), transparent 70%),
    var(--bg-2);
}

.project-card__media img {
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.035);
}

.project-card__placeholder {
  display: grid;
  gap: 8px;
  align-content: center;
  border: 0;
  padding: 20px;
  text-align: center;
}

.project-card__placeholder b {
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px color-mix(in srgb, var(--c, #22d3ee) 60%, transparent);
}

.project-card__placeholder small {
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* شارة "شغال فعليًا" فوق الصورة */
.project-card__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.project-card__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  50% {
    opacity: 0.35;
  }
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.project-card__name a {
  color: inherit;
}

.project-card__name a:hover {
  color: var(--accent);
}

.project-card__tagline {
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card__actions {
  margin-top: auto;
  padding-top: 6px;
}

.project-card__actions .btn {
  gap: 8px;
}

.project-card__actions .icon {
  width: 16px;
  height: 16px;
}

html[dir='rtl'] .project-card__actions .icon--arrow {
  transform: scaleX(-1);
}

/* ===== المشاريع على الموبايل: بتتسحب يمين وشمال، وكل كارت بياخد الشاشة تقريبًا ===== */
@media (max-width: 760px) {
  /* من غير السطر ده الكروت بتوسّع القسم كله أعرض من الشاشة */
  .section__inner,
  .section__inner > * {
    min-width: 0;
  }

  .projects-grid {
    display: flex;
    /* سطر واحد بيتسحب بالعرض (مش كروت تحت بعض) */
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    gap: 14px;
    margin-inline: calc(var(--pad-x) * -1);
    padding: 4px var(--pad-x) 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    scrollbar-width: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .project-card__body {
    padding: 18px;
  }

  .project-card__name {
    font-size: 1.25rem;
  }

  .project-card__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .projects-swipe {
    display: flex;
  }
}

/* إشارة "اسحب" تحت الكروت على الموبايل */
.projects-swipe {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.projects-swipe span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.projects-swipe span.is-on {
  width: 22px;
  background: var(--accent);
}

/* ===================================================== */
/* ===== نافذة فيديو الديمو ===== */
/* ===================================================== */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 4, 8, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.vmodal.is-open {
  opacity: 1;
}

.vmodal[hidden] {
  display: none;
}

.vmodal__inner {
  position: relative;
  display: grid;
  place-items: center;
  max-width: min(1100px, 100%);
  max-height: 100%;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.vmodal.is-open .vmodal__inner {
  transform: none;
}

.vmodal__video {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 90px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 211, 238, 0.12);
}

.vmodal__close {
  position: absolute;
  top: -48px;
  inset-inline-end: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.vmodal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

html.vmodal-open,
html.vmodal-open body {
  overflow: hidden;
}

@media (max-width: 760px) {
  .vmodal {
    padding: 64px 12px 16px;
  }

  .vmodal__close {
    top: -52px;
  }
}

/* ===== قسم الديمو في صفحة المشروع ===== */
.case-demo__text {
  margin-top: -8px;
  margin-bottom: 18px;
  color: var(--text-dim);
}

.case-demo__frame {
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--c, #22d3ee) 16%, transparent), transparent 70%),
    var(--bg-2);
}

.case-demo__video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 760px);
  border-radius: 12px;
  background: #000;
}

.case__meta .btn .icon {
  width: 16px;
  height: 16px;
}

/* ===================================================== */
/* ===== صور المشاريع: إطار جهاز + ميلان + تكبير ===== */
/* ===================================================== */
.shots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px) clamp(14px, 2.2vw, 26px);
  align-items: start;
  perspective: 1400px;
}

.shot {
  grid-column: span 6;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
}

.shot--phone {
  grid-column: span 2;
}

.shot__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
}

.shot__device {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: block;
  margin-inline: auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(34, 211, 238, 0.22),
    0 0 40px -8px color-mix(in srgb, var(--c, #22d3ee) 35%, transparent);
}

.shot__open:hover .shot__device,
.shot__open:focus-visible .shot__device {
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(34, 211, 238, 0.5),
    0 0 60px -6px color-mix(in srgb, var(--c, #22d3ee) 55%, transparent);
}

.shot__device img {
  display: block;
  width: 100%;
  height: auto;
}

/* موبايل */
.shot__device--phone {
  width: min(100%, 290px);
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1b2230, #0b0f16);
}

.shot__device--phone img {
  border-radius: 30px;
}

.shot__notch {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 18px;
  border-radius: 99px;
  background: #05070b;
  transform: translateX(-50%);
}

/* متصفح */
.shot__device--browser {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #0d121b;
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #161d29, #111722);
  direction: ltr;
}

.shot__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.shot__bar i:nth-child(2) {
  background: #febc2e;
}

.shot__bar i:nth-child(3) {
  background: #28c840;
}

.shot__url {
  flex: 1;
  max-width: 340px;
  margin-inline: auto;
  padding: 4px 12px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot__screen {
  display: block;
  max-height: 78vh;
  overflow: hidden;
}

.shot__cap {
  max-width: 34ch;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

.shot--browser .shot__cap {
  max-width: 70ch;
}

.case__concept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 22px;
  padding: 6px 14px;
  border: 1px dashed rgba(34, 211, 238, 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
}

/* ظهور تدريجي */
.case .case__section,
.case .case-cta,
.shots .shot {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease) calc(var(--i, 0) * 90ms),
    transform 0.7s var(--ease) calc(var(--i, 0) * 90ms);
}

.case .case__section.is-in,
.case .case-cta.is-in,
.shots .shot.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .shot--phone {
    grid-column: span 3;
  }

  .shot__device--phone {
    padding: 6px;
    border-radius: 26px;
  }

  .shot__device--phone img {
    border-radius: 21px;
  }

  .shot__notch {
    top: 11px;
    height: 12px;
  }

  .shot__bar {
    height: 26px;
    padding: 0 10px;
    gap: 5px;
  }

  .shot__bar i {
    width: 8px;
    height: 8px;
  }

  .shot__url {
    font-size: 0.62rem;
    padding: 2px 8px;
  }

  .shot__cap {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case .case__section,
  .case .case-cta,
  .shots .shot {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shot__device {
    transition: none;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 56px 16px 40px;
  background: rgba(2, 4, 8, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  touch-action: pan-y;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__fig {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.lightbox__img {
  max-width: min(1300px, 100%);
  max-height: calc(100dvh - 150px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 211, 238, 0.12);
  object-fit: contain;
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: none;
}

.lightbox.is-phone .lightbox__img {
  border-radius: 26px;
}

.lightbox__cap {
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 0.92rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.lightbox__nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[dir='rtl'] .lightbox__nav svg {
  transform: scaleX(-1);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox__count {
  position: absolute;
  top: 22px;
  inset-inline-start: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .lightbox {
    grid-template-columns: 1fr;
    padding: 64px 12px 90px;
  }

  .lightbox__nav {
    position: absolute;
    bottom: 24px;
  }

  .lightbox__nav--prev {
    inset-inline-start: calc(50% - 60px);
  }

  .lightbox__nav--next {
    inset-inline-end: calc(50% - 60px);
  }

  .lightbox__img {
    max-height: calc(100dvh - 190px);
  }
}

/* شارة "تصميم توضيحي" على كارت المشروع */
.project-card__badge--concept {
  border-color: rgba(154, 166, 184, 0.45);
  color: var(--text);
}

.project-card__badge--concept::before {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}

/* ===== نبض أسماء الكواكب: حلقة بتتسع حوالين النقطة (بتقف مع الـ Hover) ===== */
.planet-label__dot {
  position: relative;
}

.planet-label__dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--c);
  border-radius: 50%;
  opacity: 0;
  animation: planet-ripple 2.4s ease-out infinite;
}

.planet-label:nth-child(2) .planet-label__dot::after {
  animation-delay: 0.6s;
}

.planet-label:nth-child(3) .planet-label__dot::after {
  animation-delay: 1.2s;
}

.planet-label:nth-child(4) .planet-label__dot::after {
  animation-delay: 1.8s;
}

.planet-label.is-hover .planet-label__dot::after {
  animation: none;
}

@keyframes planet-ripple {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .planet-label__dot::after {
    animation: none;
  }
}

/* وصف الكوكب المخفي ما ياخدش عرض (كان بيعمل مستطيل غامق طويل جنب الاسم) */
.planet-label .planet-label__meta {
  max-width: 0;
  transition: max-width 0.35s var(--ease), max-height 0.35s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
}

.planet-label.is-hover .planet-label__meta {
  max-width: 320px;
}

/* ===== المدة في فورم "ابدأ مشروعك": اختيارات بتتداس + خانة "مدة تانية" ===== */
.lead-time {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.lead-time legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.lead-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-chip {
  position: relative;
  cursor: pointer;
}

.lead-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.lead-chip:hover span {
  border-color: rgba(34, 211, 238, 0.4);
}

.lead-chip input:checked + span {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent);
  font-weight: 600;
}

.lead-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lead-time input[name="timeCustom"] {
  margin-top: 10px;
}
