/* Future Craft — self-hosted styles (no CDN required) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
body { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; background: #fff; color: #0f172a; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%; }
body.menu-open { overflow: hidden; }
main { overflow-x: clip; max-width: 100%; }
.font-arabic, [dir="rtl"] body { font-family: "Noto Sans Arabic", "Inter", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* Layout */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline { display: inline; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }

.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-inline-start: .5rem; }

.w-full { width: 100%; }
.w-8 { width: 2rem; } .w-10 { width: 2.5rem; } .w-12 { width: 3rem; }
.w-14 { width: 3.5rem; } .w-16 { width: 4rem; } .w-20 { width: 5rem; } .w-64 { width: 16rem; }
.h-10 { height: 2.5rem; } .h-12 { height: 3rem; } .h-14 { height: 3.5rem; }
.h-1 { height: .25rem; }
.h-0\.5 { height: .125rem; }
.h-16 { height: 4rem; } .h-48 { height: 12rem; }
.max-h-96 { max-height: 24rem; }
.min-h-screen { min-height: 100vh; }
.min-h-60vh { min-height: 60vh; }
.max-w-xs { max-width: 20rem; } .max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; } .max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; } .max-w-6xl { max-width: 72rem; } .max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mt-20 { margin-top: 5rem; }

.p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; } .text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; } .text-8xl { font-size: 6rem; line-height: 1; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; }
.font-normal { font-weight: 400; }
.text-center { text-align: center; } .text-start { text-align: start; } .text-left { text-align: left; }
.leading-tight { line-height: 1.25; } .leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; } .capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: .05em; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.text-white { color: #fff; }
.text-indigo-100 { color: #e0e7ff; } .text-indigo-400 { color: #818cf8; } .text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; } .text-indigo-800 { color: #3730a3; } .text-indigo-900 { color: #312e81; }
.text-purple-600 { color: #9333ea; } .text-purple-900 { color: #581c87; }
.text-slate-300 { color: #cbd5e1; } .text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; } .text-slate-600 { color: #475569; } .text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-green-600 { color: #16a34a; } .text-green-800 { color: #166534; }
.text-red-400 { color: #f87171; } .text-red-500 { color: #ef4444; } .text-red-600 { color: #dc2626; } .text-red-700 { color: #b91c1c; }
.text-orange-500 { color: #f97316; } .text-cyan-600 { color: #0891b2; }

.bg-white { background: #fff; } .bg-slate-50 { background: #f8fafc; } .bg-slate-100 { background: #f1f5f9; }
.bg-slate-900 { background: #0f172a; } .bg-indigo-50 { background: #eef2ff; } .bg-indigo-100 { background: #e0e7ff; }
.bg-indigo-600 { background: #4f46e5; } .bg-purple-50 { background: #faf5ff; }
.bg-green-500 { background: #22c55e; } .bg-green-100 { background: #dcfce7; }
.bg-red-400\/10 { background: rgba(248,113,113,.1); }

.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; } .border-b { border-bottom: 1px solid #e2e8f0; }
.border-slate-100 { border-color: #f1f5f9; } .border-slate-200 { border-color: #e2e8f0; }
.border-slate-800 { border-color: #1e293b; }
.border-indigo-100 { border-color: #e0e7ff; } .border-indigo-200 { border-color: #c7d2fe; }
.border-purple-100 { border-color: #f3e8ff; }
.border-white\/10 { border-color: rgba(255,255,255,.1); }
.border-white\/20 { border-color: rgba(255,255,255,.2); }
.border-2 { border-width: 2px; } .border-l-4 { border-left: 4px solid; }

.rounded-lg { border-radius: .5rem; } .rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; } .rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }

.fixed { position: fixed; } .relative { position: relative; } .absolute { position: absolute; }
.inset-0 { inset: 0; } .inset-x-0 { left: 0; right: 0; } .top-0 { top: 0; }
.bottom-6 { bottom: 1.5rem; } .bottom-24 { bottom: 6rem; }
.right-6 { right: 1.5rem; } .left-6 { left: 1.5rem; }
.z-10 { z-index: 10; } .z-50 { z-index: 50; }
.pointer-events-none { pointer-events: none; }
.shrink-0 { flex-shrink: 0; }
.object-cover { object-fit: cover; } .antialiased { -webkit-font-smoothing: antialiased; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-from, #4f46e5), var(--tw-to, #9333ea)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-from, #4f46e5), var(--tw-via, #9333ea), var(--tw-to, #06b6d4)); }
.from-indigo-500 { --tw-from: #6366f1; } .from-indigo-600 { --tw-from: #4f46e5; }
.from-indigo-100 { --tw-from: #e0e7ff; } .from-slate-900 { --tw-from: #0f172a; }
.via-purple-500 { --tw-via: #8b5cf6; } .via-purple-600 { --tw-via: #9333ea; }
.via-indigo-950 { --tw-via: #1e1b4b; }
.to-purple-100 { --tw-to: #f3e8ff; } .to-purple-600 { --tw-to: #9333ea; }
.to-cyan-500 { --tw-to: #06b6d4; } .to-slate-900 { --tw-to: #0f172a; }

.text-gradient {
  background: linear-gradient(to right, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.bg-white\/90 { background: rgba(255,255,255,.9); }
.bg-white\/5 { background: rgba(255,255,255,.05); }
.bg-white\/10 { background: rgba(255,255,255,.1); }
.backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.transition-all { transition: all .2s; }
.transition-colors { transition: color .2s, background .2s; }
.transition-transform { transition: transform .2s; }
.transition-opacity { transition: opacity .2s; }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:opacity-90:hover { opacity: .9; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:text-indigo-800:hover { color: #3730a3; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-red-700:hover { color: #b91c1c; }
.hover\:bg-slate-50:hover { background: #f8fafc; }
.hover\:bg-slate-800:hover { background: #1e293b; }
.hover\:bg-indigo-50:hover { background: #eef2ff; }
.hover\:bg-indigo-100:hover { background: #e0e7ff; }
.hover\:bg-indigo-700:hover { background: #4338ca; }
.hover\:bg-green-600:hover { background: #16a34a; }
.hover\:-translate-y-1:hover { transform: translateY(-.25rem); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }

.focus\:outline-none:focus { outline: none; }
.focus\:border-indigo-400:focus { border-color: #818cf8; }

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:gap-6 { gap: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; } .md\:hidden { display: none; } .md\:table-cell { display: table-cell; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-social:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.contact-social--facebook {
  background: #1877f2;
}

.contact-social--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
}

.site-footer-social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer-social-link:hover {
  color: #fff;
}

.site-footer-social-link--text {
  padding-top: 0.15rem;
}

.site-footer-social-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.site-footer-social-icon {
  flex-shrink: 0;
}

.contact-follow {
  text-align: center;
}

.contact-follow-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.contact-phone-box {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid;
}

.contact-phone-box--indigo {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.contact-phone-box--indigo .contact-phone-box-title {
  color: #312e81;
}

.contact-phone-box--purple {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.contact-phone-box--purple .contact-phone-box-title {
  color: #6b21a8;
}

.contact-phone-box-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.contact-wa-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #334155;
  vertical-align: middle;
}

.contact-wa-row:hover {
  opacity: 0.85;
}

.contact-wa-row .wa-icon {
  flex-shrink: 0;
  display: inline-block;
}

.contact-wa-row--footer {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
}

.contact-wa-row--footer:hover {
  color: #fff;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.contact-link-card--email {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: #a7f3d0;
}

.contact-link-card--website {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  border-color: #bfdbfe;
}

.contact-link-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  flex-shrink: 0;
  color: #fff;
}

.contact-link-card--email .contact-link-card-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.contact-link-card--website .contact-link-card-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.contact-link-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-link-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.contact-link-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.contact-link-card-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.contact-link-card-hint {
  font-size: 0.75rem;
  color: #3b82f6;
}

/* Services */
.services-section {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, 0.25);
}

.service-card-accent {
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #9333ea);
}

.service-card--v2 .service-card-accent { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.service-card--v3 .service-card-accent { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.service-card--v4 .service-card-accent { background: linear-gradient(90deg, #059669, #10b981); }
.service-card--v5 .service-card-accent { background: linear-gradient(90deg, #ea580c, #f97316); }
.service-card--v6 .service-card-accent { background: linear-gradient(90deg, #db2777, #ec4899); }

.service-card-body {
  padding: 1.125rem 1rem 1.25rem;
}

.service-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  color: #4f46e5;
  background: #eef2ff;
}

.service-card-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.service-card--v2 .service-card-icon { color: #7c3aed; background: #f5f3ff; }
.service-card--v3 .service-card-icon { color: #0891b2; background: #ecfeff; }
.service-card--v4 .service-card-icon { color: #059669; background: #ecfdf5; }
.service-card--v5 .service-card-icon { color: #ea580c; background: #fff7ed; }
.service-card--v6 .service-card-icon { color: #db2777; background: #fdf2f8; }

.service-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.service-card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Work Process — step cards */
.work-process {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.work-process-scroll {
  position: relative;
}

.work-process-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.work-process-cards::before {
  content: '';
  display: none;
}

.work-process-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1rem 1.125rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.work-process-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px -12px rgba(79, 70, 229, 0.22);
}

.work-process-card-head {
  position: relative;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.875rem;
}

.work-process-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.55);
}

.work-process-card-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.work-process-badge {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.35rem;
  z-index: 1;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #fff;
  color: #4f46e5;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.25rem;
  border: 2px solid #e0e7ff;
}

.work-process-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.work-process-card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.work-process-card--v2 .work-process-card-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.work-process-card--v3 .work-process-card-icon { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.work-process-card--v4 .work-process-card-icon { background: linear-gradient(135deg, #059669, #10b981); }
.work-process-card--v5 .work-process-card-icon { background: linear-gradient(135deg, #ea580c, #f97316); }

@media (min-width: 640px) {
  .work-process-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .work-process-cards {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .work-process-cards::before {
    display: block;
    position: absolute;
    top: 2rem;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #10b981, #f97316);
    border-radius: 9999px;
    z-index: 0;
    opacity: 0.45;
  }

  .work-process-card {
    z-index: 1;
  }
}

@media (max-width: 1023px) {
  .work-process {
    overflow-x: clip;
  }

  .work-process-scroll {
    overflow-x: visible;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .work-process-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-width: 0;
  }

  .work-process-card {
    flex: none;
    width: auto;
    scroll-snap-align: none;
  }
}

[dir="rtl"] .work-process-cards::before {
  background: linear-gradient(270deg, #6366f1, #8b5cf6, #06b6d4, #10b981, #f97316);
}

/* Hero */
.hero-section {
  min-height: min(100vh, 920px);
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(at 12% 18%, rgba(99,102,241,.24) 0, transparent 42%),
    radial-gradient(at 88% 12%, rgba(139,92,246,.22) 0, transparent 40%),
    radial-gradient(at 72% 88%, rgba(6,182,212,.18) 0, transparent 45%),
    radial-gradient(at 20% 82%, rgba(168,85,247,.14) 0, transparent 42%),
    linear-gradient(180deg, #fff 0%, #f8fafc 55%, #fff 100%);
}

.hero-inner {
  min-height: calc(min(100vh, 920px) - 9.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
  border: 1px solid #e0e7ff;
  color: #4338ca;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: heroPulse 2s ease-in-out infinite;
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
  color: #0f172a;
}

.hero-title-accent {
  display: block;
  margin-top: 0.15em;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 1.75rem;
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.hero-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(79, 70, 229, 0.6);
}

.hero-btn--secondary {
  color: #4338ca;
  background: #fff;
  border: 2px solid #c7d2fe;
}

.hero-btn--secondary:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

.hero-btn--blog {
  color: #4338ca;
  background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
  border: 2px solid #c7d2fe;
  gap: 0.5rem;
  box-shadow: 0 8px 20px -12px rgba(79, 70, 229, 0.35);
}

.hero-btn--blog:hover {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  border-color: transparent;
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
  transform: translateY(-2px);
}

.hero-btn-blog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
}

.hero-btn-blog-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hero-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  background: #eef2ff;
  color: #4f46e5;
}

.hero-pill-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.3;
}

.hero-visual {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.hero-devices {
  position: relative;
  min-height: 22rem;
  padding: 1.25rem 0.5rem 2.5rem;
}

.hero-device {
  position: absolute;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.hero-device--desktop {
  inset-inline-start: 0;
  top: 0.5rem;
  width: 68%;
  z-index: 1;
}

.hero-device--web {
  inset-inline-end: 0;
  top: 2.25rem;
  width: 72%;
  z-index: 2;
}

.hero-device--mobile {
  inset-inline-start: 8%;
  bottom: 0.5rem;
  width: 32%;
  max-width: 7.5rem;
  z-index: 3;
}

.hero-device:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 18px 28px rgba(79, 70, 229, 0.22));
  z-index: 4;
}

.hero-device-bezel {
  border-radius: 0.85rem 0.85rem 0.35rem 0.35rem;
  padding: 0.45rem 0.45rem 0.35rem;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.55);
}

.hero-device-screen--desktop {
  border-radius: 0.35rem;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2ff, #f8fafc 55%, #ede9fe);
  min-height: 8.5rem;
  padding: 0.4rem;
}

.hero-desktop-menubar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.hero-desktop-menubar span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: #94a3b8;
}

.hero-desktop-menubar span:nth-child(1) { background: #f87171; }
.hero-desktop-menubar span:nth-child(2) { background: #fbbf24; }
.hero-desktop-menubar span:nth-child(3) { background: #4ade80; }

.hero-desktop-window {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 0.35rem;
  min-height: 6.5rem;
}

.hero-desktop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e2e8f0;
}

.hero-desktop-sidebar span {
  height: 0.35rem;
  border-radius: 9999px;
  background: #c7d2fe;
}

.hero-desktop-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
}

.hero-desktop-chart {
  height: 2.75rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(168, 85, 247, 0.18)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(99, 102, 241, 0.08) 10px,
      rgba(99, 102, 241, 0.08) 11px
    );
}

.hero-desktop-rows {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-desktop-rows span {
  height: 0.35rem;
  border-radius: 9999px;
  background: #e2e8f0;
}

.hero-desktop-rows span:nth-child(1) { width: 90%; }
.hero-desktop-rows span:nth-child(2) { width: 70%; }
.hero-desktop-rows span:nth-child(3) { width: 55%; }

.hero-device-stand {
  width: 18%;
  height: 0.7rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #64748b, #475569);
}

.hero-device-base {
  width: 42%;
  height: 0.35rem;
  margin: 0 auto;
  border-radius: 9999px;
  background: #334155;
}

.hero-device--web .hero-browser {
  transform: none;
}

.hero-browser {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow:
    0 24px 48px -20px rgba(79, 70, 229, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.hero-showcase-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.hero-phone {
  border-radius: 1.35rem;
  padding: 0.45rem;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-phone-notch {
  width: 42%;
  height: 0.35rem;
  margin: 0.15rem auto 0.4rem;
  border-radius: 9999px;
  background: #334155;
}

.hero-phone-screen {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(165deg, #eef2ff, #f8fafc 50%, #fae8ff);
  min-height: 11rem;
  padding: 0.55rem;
}

.hero-phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.hero-phone-status span {
  width: 1.1rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: #cbd5e1;
}

.hero-phone-hero {
  height: 3.5rem;
  border-radius: 0.65rem;
  margin-bottom: 0.45rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.35));
}

.hero-phone-cards {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.hero-phone-cards span {
  height: 1.15rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
}

.hero-phone-dock {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: auto;
}

.hero-phone-dock span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #818cf8, #c084fc);
}

.hero-device-tag {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #4338ca;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #c7d2fe;
  box-shadow: 0 10px 24px -14px rgba(79, 70, 229, 0.55);
  animation: heroTagFloat 3.6s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-device-tag:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 28px -12px rgba(79, 70, 229, 0.6);
}

.hero-device-tag--web {
  top: 0.35rem;
  inset-inline-end: 8%;
  animation-delay: 0s;
}

.hero-device-tag--mobile {
  bottom: 1.6rem;
  inset-inline-start: 0;
  color: #7c3aed;
  border-color: #ddd6fe;
  animation-delay: 0.4s;
}

.hero-device-tag--desktop {
  top: 42%;
  inset-inline-start: -0.35rem;
  color: #0369a1;
  border-color: #bae6fd;
  animation-delay: 0.8s;
}

@keyframes heroTagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-showcase {
  position: relative;
  padding: 1rem 0 2rem;
}

.hero-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.hero-browser-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.hero-browser-dot--red { background: #f87171; }
.hero-browser-dot--yellow { background: #fbbf24; }
.hero-browser-dot--green { background: #4ade80; }

.hero-browser-url {
  flex: 1;
  margin-inline-start: 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.625rem;
  color: #94a3b8;
  text-align: center;
}

.hero-browser-body {
  padding: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hero-browser-nav {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.hero-browser-nav span {
  height: 0.375rem;
  border-radius: 9999px;
  background: #e2e8f0;
}

.hero-browser-nav span:nth-child(1) { width: 2.5rem; background: #c7d2fe; }
.hero-browser-nav span:nth-child(2),
.hero-browser-nav span:nth-child(3),
.hero-browser-nav span:nth-child(4) { width: 1.25rem; }

.hero-browser-hero-block {
  padding: 1rem;
  margin-bottom: 0.875rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.1));
  border: 1px solid #e0e7ff;
}

.hero-browser-line {
  height: 0.5rem;
  border-radius: 9999px;
  background: #e2e8f0;
  margin-bottom: 0.5rem;
}

.hero-browser-line--lg {
  width: 75%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  opacity: 0.55;
}

.hero-browser-line--md { width: 55%; }

.hero-browser-btns {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.hero-browser-btns span {
  height: 0.625rem;
  border-radius: 9999px;
}

.hero-browser-btns span:first-child {
  width: 2rem;
  background: #6366f1;
}

.hero-browser-btns span:last-child {
  width: 1.5rem;
  background: #cbd5e1;
}

.hero-browser-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
}

.hero-browser-cards span {
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.2);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #334155;
  max-width: 11rem;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-float-card--1 {
  top: 8%;
  inset-inline-start: -4%;
  animation-delay: 0s;
}

.hero-float-card--2 {
  bottom: 12%;
  inset-inline-end: -6%;
  animation-delay: 1.5s;
}

.hero-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #eef2ff;
  color: #4f46e5;
  flex-shrink: 0;
}

.hero-float-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.hero-float-text {
  line-height: 1.25;
}

.hero-visual-badge {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  padding: 0.35rem 0.625rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px -8px rgba(79, 70, 229, 0.6);
}

.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-blob--1 {
  width: 18rem;
  height: 18rem;
  top: 8%;
  inset-inline-start: -5%;
  background: rgba(99, 102, 241, 0.35);
  animation: heroBlob 12s ease-in-out infinite;
}

.hero-blob--2 {
  width: 14rem;
  height: 14rem;
  top: 55%;
  inset-inline-end: -3%;
  background: rgba(139, 92, 246, 0.3);
  animation: heroBlob 10s ease-in-out infinite reverse;
}

.hero-blob--3 {
  width: 10rem;
  height: 10rem;
  bottom: 10%;
  inset-inline-start: 35%;
  background: rgba(6, 182, 212, 0.25);
  animation: heroBlob 14s ease-in-out infinite;
  animation-delay: 2s;
}

.hero-ring {
  position: absolute;
  border-radius: 9999px;
  border: 1px dashed rgba(99, 102, 241, 0.2);
  pointer-events: none;
}

.hero-ring--1 {
  width: 22rem;
  height: 22rem;
  top: 12%;
  inset-inline-end: 8%;
}

.hero-ring--2 {
  width: 12rem;
  height: 12rem;
  bottom: 18%;
  inset-inline-start: 10%;
  border-color: rgba(6, 182, 212, 0.25);
}

.hero-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 2rem auto 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s;
}

.hero-scroll-hint:hover {
  color: #6366f1;
}

.hero-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  animation: heroBounce 2s ease-in-out infinite;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 95%);
}

#rotating-word { transition: opacity .2s ease; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.06); }
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 6.5rem 0 4.5rem;
  }

  .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: start;
  }

  .hero-badge-row,
  .hero-actions,
  .hero-pills {
    justify-content: flex-start;
  }

  .hero-subtitle {
    margin-inline: 0;
  }

  .hero-stats {
    margin-inline: 0;
  }

  .hero-visual {
    max-width: none;
    margin: 0;
  }

  .hero-devices {
    min-height: 24rem;
  }

  .hero-scroll-hint {
    margin-inline: 0;
  }
}

[dir="rtl"] .hero-device--web .hero-browser,
[dir="rtl"] .hero-browser {
  transform: none;
}

@media (max-width: 640px) {
  .hero-devices {
    min-height: 18.5rem;
  }

  .hero-device--desktop {
    width: 62%;
  }

  .hero-device--web {
    width: 70%;
  }

  .hero-device--mobile {
    width: 30%;
  }

  .hero-device-tag {
    font-size: 0.625rem;
    padding: 0.28rem 0.55rem;
  }
}

@media (max-width: 639px) {
  .hero-section {
    min-height: auto;
    padding: 4.5rem 0 3rem;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-float-card--1 {
    inset-inline-start: 0;
    top: 2%;
  }

  .hero-float-card--2 {
    inset-inline-end: 0;
    bottom: 6%;
  }

  .hero-stat-value {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .hero-float-card,
  .hero-device-tag,
  .hero-scroll-arrow,
  .hero-badge-dot {
    animation: none;
  }
}

/* Why Choose — compact list */
.why-choose {
  background: #f8fafc;
}

.why-choose-list {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr;
}

.why-choose-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.why-choose-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.why-choose-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #eef2ff;
  color: #4f46e5;
}

.why-choose-icon svg {
  width: 1rem;
  height: 1rem;
}

.why-choose-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .why-choose-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .why-choose-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Prose (blog) */
.prose { max-width: 65ch; }
.prose-slate { color: #334155; }
.prose p + p { margin-top: 1rem; }

/* Buttons & inputs */
.btn-primary {
  display: inline-block; padding: 1rem 2rem;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  color: #fff; border-radius: .75rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.btn-primary:hover { transform: scale(1.05); opacity: .95; }
.btn-outline {
  display: inline-block; padding: 1rem 2rem;
  border: 2px solid #c7d2fe; color: #4338ca; border-radius: .75rem; font-weight: 600;
  transition: background .2s;
}
.btn-outline:hover { background: #eef2ff; }

input, textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: .75rem;
  padding: .75rem 1rem; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus { border-color: #818cf8; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; text-align: start; }

.border-indigo-500 { border-color: #6366f1; }
.border-purple-500 { border-color: #a855f7; }
.border-cyan-500 { border-color: #06b6d4; }

/* RTL fixes */
[dir="rtl"] .right-6 { right: auto; left: 1.5rem; }
[dir="rtl"] .left-6 { left: auto; right: 1.5rem; }

/* Component helpers */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* Mobile navigation */
.mobile-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  color: #334155;
  cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transform: scale(1);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.mobile-menu-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.mobile-menu-btn:active {
  transform: scale(0.9);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.1);
  transition-duration: 0.08s;
}

.mobile-menu-btn:active .mobile-menu-bar {
  transform: scaleX(0.88);
  transition-duration: 0.1s;
}

.mobile-menu-btn.is-open:active .mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg) scaleX(0.88);
}

.mobile-menu-btn.is-open:active .mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) scaleX(0.88);
}

.mobile-menu-btn.is-open {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4f46e5;
  box-shadow: 0 4px 14px -6px rgba(79, 70, 229, 0.35);
}

.mobile-menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, width 0.25s ease;
}

.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: 4rem;
  z-index: 40;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.mobile-menu-overlay.is-open {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.75rem) scale(0.985);
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.45s,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.mobile-menu.is-open {
  max-height: calc(100vh - 4rem);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  border-bottom-color: #e2e8f0;
  box-shadow:
    0 16px 32px -16px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(99, 102, 241, 0.06) inset;
  transition:
    max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.mobile-menu.is-open::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  opacity: 0.85;
}

.mobile-menu-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-link,
.mobile-menu-lang,
.consultation-picker--menu {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s,
    color 0.2s;
}

.mobile-menu.is-open .mobile-menu-link,
.mobile-menu.is-open .mobile-menu-lang,
.mobile-menu.is-open .consultation-picker--menu {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu-inner > :nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(6) { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(7) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu-inner > :nth-child(8) { transition-delay: 0.38s; }

.mobile-menu:not(.is-open) .mobile-menu-link,
.mobile-menu:not(.is-open) .mobile-menu-lang,
.mobile-menu:not(.is-open) .consultation-picker--menu {
  transition-delay: 0s;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  background: #eef2ff;
  color: #4f46e5;
  transform: translateX(4px);
}

[dir="rtl"] .mobile-menu-link:hover,
[dir="rtl"] .mobile-menu-link:focus-visible {
  transform: translateX(-4px);
}

/* Consultation picker — About Us + mobile menu */
.consultation-picker-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: none;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: scale(1);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.22s ease,
    background-position 0.35s ease;
}

.consultation-picker-toggle:active {
  transform: scale(0.97);
}

.consultation-picker-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: start;
}

.consultation-picker-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.consultation-picker-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.consultation-picker-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.consultation-picker.is-open .consultation-picker-chevron {
  transform: rotate(-135deg) translateY(1px);
}

.consultation-picker-options {
  display: grid;
  gap: 0.5rem;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    margin-top 0.25s ease;
}

.consultation-picker.is-open .consultation-picker-options {
  margin-top: 0.75rem;
  max-height: 12rem;
  opacity: 1;
}

.consultation-picker-hint {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.consultation-wa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.625rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.consultation-wa:active {
  transform: scale(0.98);
}

.consultation-wa--iraq {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.consultation-wa--syria {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

.consultation-wa-label {
  font-size: 0.8125rem;
  font-weight: 700;
}

.consultation-wa-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.consultation-wa-phone .wa-icon {
  flex-shrink: 0;
}

.consultation-picker--menu {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.consultation-picker--menu .consultation-picker-toggle {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.65);
}

.consultation-picker--menu .consultation-picker-toggle:active {
  box-shadow: 0 4px 14px -8px rgba(79, 70, 229, 0.5);
}

.consultation-picker--menu .consultation-picker-hint {
  text-align: start;
}

.mobile-menu-lang {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-menu-lang-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mobile-lang-btn:hover {
  background: #f8fafc;
}

.mobile-lang-btn.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-btn,
  .mobile-menu-btn .mobile-menu-bar {
    transition: none !important;
  }

  .mobile-menu-btn:active,
  .mobile-menu-btn:active .mobile-menu-bar,
  .mobile-menu-btn.is-open:active .mobile-menu-bar:nth-child(1),
  .mobile-menu-btn.is-open:active .mobile-menu-bar:nth-child(3) {
    transform: none;
  }
}

@media (min-width: 768px) {
  .mobile-header-actions,
  .mobile-menu-btn,
  .mobile-menu,
  .mobile-menu.is-open,
  .mobile-menu-overlay,
  .mobile-menu-overlay.is-open {
    display: none;
  }
}

.hero-rotating-word {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.about-stats {
  text-align: center;
}

.about-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.about-layout {
  display: block;
}

.about-layout--with-photo {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-content--centered {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.about-text {
  margin: 0;
}

.about-consultation-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.consultation-picker--about {
  width: min(100%, 22rem);
  margin-inline: auto;
  text-align: center;
}

.consultation-picker--about .consultation-picker-toggle {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow:
    0 12px 28px -10px rgba(79, 70, 229, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.consultation-picker--about .consultation-picker-toggle:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px -10px rgba(79, 70, 229, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.consultation-picker--about .consultation-picker-toggle:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 8px 18px -10px rgba(79, 70, 229, 0.55),
    inset 0 2px 6px rgba(15, 23, 42, 0.18);
}

.consultation-picker--about .consultation-picker-toggle-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.consultation-picker--about .consultation-picker-options {
  width: 100%;
}

.about-owner-photo {
  position: relative;
  margin: 0 auto;
  width: min(100%, 16rem);
}

.about-owner-photo-frame {
  position: relative;
  z-index: 1;
  padding: 0.35rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.45);
}

.about-owner-photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.25rem;
  background: #f1f5f9;
}

.about-owner-accent {
  position: absolute;
  z-index: 0;
  inset-inline-end: -0.75rem;
  bottom: -0.75rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.2));
  border: 1px dashed rgba(99, 102, 241, 0.35);
}

.about-layout--with-photo .about-content {
  text-align: start;
}

.about-layout--with-photo .about-stats {
  text-align: center;
}

@media (min-width: 768px) {
  .about-layout--with-photo {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: 2.5rem;
  }

  .about-owner-photo {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 639px) {
  .about-stats {
    gap: 0.75rem;
  }

  .about-stats .text-3xl {
    font-size: 1.5rem;
  }

  .about-stats .text-sm {
    font-size: 0.75rem;
  }
}

.card {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 1rem;
  padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); transform: translateY(-.25rem); }
.section-title {
  font-size: 2.25rem; font-weight: 700; text-align: center; margin-bottom: 3rem;
}
.section-divider {
  width: 5rem; height: .25rem; margin: 0 auto 3rem;
  background: linear-gradient(to right, #4f46e5, #9333ea); border-radius: 9999px;
}
.admin-sidebar a.active { background: #4f46e5; }
.admin-input-dark {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: .75rem; padding: .75rem 1rem; width: 100%;
}
.admin-input-dark:focus { border-color: #818cf8; outline: none; }
.floating-contact {
  position: fixed;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.floating-contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: #fff;
  color: #16a34a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

.whatsapp-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  transition: background .2s, transform .2s;
}
.whatsapp-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}
.whatsapp-btn:hover { background: #16a34a; transform: scale(1.05); }
.back-top-btn {
  position: fixed;
  bottom: 1.75rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #4f46e5;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  transition: background .2s;
}
.back-top-btn:hover { background: #4338ca; }

@media (max-width: 767px) {
  .site-footer-grid {
    text-align: center;
  }

  .site-footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer-brand,
  .site-footer-social {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .site-footer-grid {
    text-align: start;
  }

  .site-footer-col {
    align-items: flex-start;
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.animate-fade-in-up { animation: fadeInUp .6s ease-out forwards; }
.animate-pulse-soft { animation: pulseSoft 2s ease-in-out infinite; }

/* Status messages */
.alert-success { background: #dcfce7; color: #166534; padding: 1rem; border-radius: .75rem; }
.alert-error { background: rgba(248,113,113,.1); color: #dc2626; padding: 1rem; border-radius: .75rem; }

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #818cf8; outline-offset: 2px;
}

/* Portfolio listing */
.portfolio-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.portfolio-section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.portfolio-section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.portfolio-section-divider {
  width: 3rem;
  height: 0.125rem;
  margin: 1rem auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #9333ea);
}

.portfolio-section-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.portfolio-empty {
  text-align: center;
  color: #64748b;
}

.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  transition-delay: var(--portfolio-delay, 0s);
}

.portfolio-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease;
  }
}

.portfolio-card:hover {
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.28);
}

.portfolio-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}

.portfolio-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-card-image {
  transform: scale(1.04);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  font-weight: 800;
  color: #818cf8;
}

body.portfolio-modal-open {
  overflow: hidden;
}

.portfolio-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.portfolio-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
}

.portfolio-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.portfolio-card-title a {
  color: #0f172a;
  transition: color 0.2s ease;
}

.portfolio-card-title a:hover {
  color: #4f46e5;
}

.portfolio-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.portfolio-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.6);
}

.portfolio-card-more-icon {
  font-size: 1rem;
  line-height: 1;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.portfolio-modal[hidden] {
  display: none;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.portfolio-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 25px 60px -20px rgba(15, 23, 42, 0.45);
  padding: 1.5rem;
}

.portfolio-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

[dir="rtl"] .portfolio-modal-close {
  right: auto;
  left: 0.75rem;
}

.portfolio-modal-header {
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.portfolio-modal-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.375rem;
}

.portfolio-modal-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.portfolio-showcase {
  margin-bottom: 1.5rem;
}

.portfolio-showcase-main {
  border-radius: 1rem;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 0.75rem;
}

.portfolio-showcase-main-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.portfolio-showcase-main-img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.portfolio-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
}

.portfolio-showcase-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-showcase-thumb:hover,
.portfolio-showcase-thumb.is-active {
  opacity: 1;
  border-color: #6366f1;
  transform: translateY(-2px);
}

.portfolio-showcase-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.portfolio-detail-section {
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.portfolio-detail-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.625rem;
}

.portfolio-detail-text {
  color: #334155;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.portfolio-detail-section--results {
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
  border: none;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.portfolio-lightbox[hidden] {
  display: none;
}

.portfolio-lightbox-stage {
  max-width: min(92vw, 1200px);
  max-height: 85vh;
}

.portfolio-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.portfolio-lightbox-close,
.portfolio-lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.portfolio-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}

.portfolio-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.25rem;
}

.portfolio-lightbox-prev { left: 1rem; }
.portfolio-lightbox-next { right: 1rem; }

.portfolio-lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.portfolio-card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  transition: color 0.2s ease;
}

.portfolio-card-link:hover {
  color: #4f46e5;
}

/* Portfolio project page */
.portfolio-project-back,
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
}

.portfolio-project-back:hover,
.blog-post-back:hover {
  color: #4f46e5;
}

.portfolio-project-category {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.portfolio-project-title,
.blog-post-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0.75rem 0 1.5rem;
  line-height: 1.2;
}

.portfolio-project-hero,
.blog-post-hero {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.35);
}

.portfolio-project-gallery {
  margin-bottom: 2rem;
}

.portfolio-gallery-main {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.35);
  background: #f1f5f9;
}

.portfolio-gallery-main-img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.portfolio-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.portfolio-gallery-thumb {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 4rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.625rem;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-gallery-thumb:hover {
  transform: translateY(-2px);
}

.portfolio-gallery-thumb.is-active {
  border-color: #6366f1;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.45);
}

.portfolio-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-project-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.portfolio-project-block--results {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-color: #c7d2fe;
}

.portfolio-project-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #312e81;
  margin-bottom: 0.75rem;
}

.portfolio-project-text {
  color: #334155;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.portfolio-detail-section--technologies {
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: none;
}

.portfolio-detail-section--technologies .portfolio-tech-tag {
  background: #fff;
}

.portfolio-tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.portfolio-tech-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.875rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  font-family: "Inter", "Noto Sans Arabic", sans-serif;
  unicode-bidi: plaintext;
}

.portfolio-project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-project-cta-icon {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
}

.portfolio-project-cta-icon svg {
  width: 100%;
  height: 100%;
}

.portfolio-project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(79, 70, 229, 0.6);
}

.portfolio-card-desc {
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Blog post Q&A */
.blog-faq-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.blog-faq-list--card {
  margin: 1rem 0 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.28);
}

.blog-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.04);
}

.blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  font-weight: 800;
  color: #818cf8;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.blog-card-title a {
  color: #0f172a;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #4f46e5;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.blog-card-link:hover {
  color: #4338ca;
}

.blog-faq-list--card .blog-faq-item {
  padding: 1.25rem;
}

.blog-faq-list--card .blog-faq-question {
  font-size: 1.125rem;
}

.blog-faq-item {
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 1.125rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.25);
}

.blog-faq-question {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: #312e81;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.blog-faq-image {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  border-radius: 0.875rem;
  margin-bottom: 1rem;
}

.blog-faq-answer {
  color: #334155;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1rem;
}

.blog-post-content {
  color: #334155;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #rotating-word { transition: none; }
}
