/* ========== المتغيرات ========== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1c2033;
  --muted: #5d6480;
  --border: #e1e4f0;
  --primary: #8B5CF6;
  --header-h: 72px;

  --font-ar: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* ========== أساسيات ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

.logo,
.hero-sub-price,
.hero-sub-domain,
.hero-sub-features strong,
[dir="ltr"] {
  font-family: var(--font-en);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ========== الشريط العلوي ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(201, 255, 254, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  background-size: 100vw 100vh;
  background-position: 0 0;
  border-bottom: none;
}

.nav {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

.nav .logo { order: 1; }

.logo {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-a { color: #06B6D4; }
.logo-b { color: #8B5CF6; font-weight: 500; }

.nav-links {
  order: 2;
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 4px);
  direction: rtl;
}

.nav-actions { display: none; }

.nav-links a, .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  padding: clamp(6px, 1.5vw, 9px) clamp(8px, 2vw, 16px);
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.92rem);
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a { transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 700; }

.nav-icon {
  width: clamp(14px, 2vw, 18px);
  height: clamp(14px, 2vw, 18px);
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-en);
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--primary); background: transparent; }

.menu-btn {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: transparent; color: var(--text);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-icon {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s, opacity .2s, background .2s;
}
.menu-btn[aria-expanded="true"] .menu-icon { background: var(--primary); }
.menu-btn[aria-expanded="true"] .menu-icon:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

[dir="ltr"] .nav { direction: ltr; }
[dir="ltr"] .nav-links { direction: ltr; }
[dir="ltr"] .hero-container { text-align: left; }
[dir="ltr"] .hero-actions { justify-content: flex-start; }
[dir="ltr"] .about-content { text-align: left; }
[dir="ltr"] .about-socials { justify-content: flex-start; }
[dir="ltr"] .contact-grid { direction: ltr; }
[dir="ltr"] .contact-info { text-align: left; }
[dir="ltr"] .contact-info-row { justify-content: flex-start; }
[dir="ltr"] .contact-socials { text-align: left; }
[dir="ltr"] .contact-socials-list { justify-content: flex-start; }
[dir="ltr"] .form-field input, [dir="ltr"] .form-field textarea { text-align: left; }
[dir="ltr"] .custom-select-trigger { flex-direction: row-reverse; }

/* ========== قسم الهيرو ========== */
.hero-section {
  position: relative;
  padding-block: 90px 200px;
  overflow: hidden;
  background: #ffffff;
  color: var(--text);
}

.hero-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(201, 255, 254, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
  background-attachment: fixed; background-size: 100vw 100vh; background-position: 0 0;
}

.hero-container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: center; gap: 60px;
}

.hero-content { display: flex; flex-direction: column; }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.25;
  margin-bottom: 20px; color: var(--text);
}

.highlight-cyan { color: #0891b2; }
.highlight-purple { color: #7c3aed; }

.hero-description {
  font-size: 1.15rem; color: var(--muted);
  max-width: 540px; margin-bottom: 36px; line-height: 1.85;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--primary); color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.5);
}

.hero-section .btn-secondary {
  background: transparent; color: var(--text); border: 1px solid #ffffff;
}
.hero-section .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px);
}

/* ========== العنصر البصري ========== */
.hero-visual {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; padding: 30px 0; overflow: visible;
}

.hero-visual::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background:
    radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.15), transparent 65%),
    radial-gradient(circle at 70% 40%, rgba(139, 92, 246, 0.15), transparent 65%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.12), transparent 65%);
  filter: blur(55px); opacity: 0.7;
  z-index: 0; pointer-events: none;
}

.glow-effect { display: none; }

.hero-socials {
  position: absolute; left: -50px; top: 50%;
  transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; gap: 20px;
}

.social-btn {
  width: 40px; height: 40px; border: none;
  background: transparent; border-radius: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.social-btn:hover { color: var(--primary); transform: scale(1.15); }
.social-btn svg { width: 22px; height: 22px; fill: currentColor; transition: fill 0.3s; }

.hero-img-container {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  margin-inline: auto; overflow: visible;
}

.img-border-gradient {
  position: relative; border-radius: 50%; padding: 6px;
  background: linear-gradient(135deg, #06B6D4, #8B5CF6, #EC4899);
  overflow: visible; transition: transform 0.4s ease;
}

.img-border-gradient:hover { transform: translateY(-6px); }

.hero-personal-img {
  position: relative; z-index: 2;
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; display: block;
  background: #ffffff; transform: scale(1.07);
  box-shadow: 0 25px 60px -12px rgba(139, 92, 246, 0.35);
}

/* ============================================ */
/* ========== بطاقات الاشتراك (عائمة) ========== */
/* ============================================ */
.hero-subscriptions-wrap {
  position: relative; z-index: 10;
  margin-top: -140px; margin-bottom: -140px;
}

.hero-subscriptions { margin-inline: auto; width: min(1080px, 94%); }

.hero-sub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

/* Tablet: 2 columns (يُضاف جديداً بعد القاعدة السابقة) */
@media (max-width: 1100px) {
  .hero-subscriptions { width: min(760px, 94%); }
  .hero-sub-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.hero-sub-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px; padding: 26px 22px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 22px 45px rgba(139, 92, 246, 0.18), 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hero-sub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.24), 0 12px 28px rgba(0, 0, 0, 0.1);
}

.hero-sub-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 25px 55px rgba(139, 92, 246, 0.24), 0 12px 28px rgba(0, 0, 0, 0.08);
}

.hero-sub-domain {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: #0891b2; background: rgba(6, 182, 212, 0.14);
  padding: 3px 14px; border-radius: 20px; margin-bottom: 12px;
}

.hero-sub-card.featured .hero-sub-domain { color: #ffffff; background: var(--primary); }

.hero-sub-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  line-height: 1.4; margin: 0 0 10px; text-align: center;
}

.hero-sub-price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  padding: 12px 0; border-top: 1px dashed rgba(28, 32, 51, 0.14);
  border-bottom: 1px dashed rgba(28, 32, 51, 0.14);
  margin-bottom: 16px; width: 100%;
}

.hero-sub-price { font-size: 1.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.hero-sub-period { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.hero-sub-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 8px; width: 100%; text-align: right;
}

.hero-sub-features li {
  font-size: 0.8rem; color: var(--text);
  display: flex; align-items: flex-start; gap: 8px;
  font-weight: 500; line-height: 1.5; text-align: right;
}

.hero-sub-features li::before {
  content: "✓"; color: var(--primary); font-weight: 900; flex-shrink: 0; line-height: 1.5;
}

/* ============================================ */
/* ========== رأس القسم الموحّد ========== */
/* ============================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 32px auto; }

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 900; margin-top: 6px; margin-bottom: 10px;
  color: var(--text); line-height: 1.2;
}

.section-subtitle { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

.badge-line {
  display: inline-block; position: relative;
  padding: 0 0 9px; color: var(--primary);
  font-size: 0.82rem; font-weight: 700; margin-bottom: 0;
}

.badge-line::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 52px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #06B6D4, #8B5CF6);
}

/* ============================================ */
/* ========== قسم الخدمات ========== */
/* ============================================ */
.services-section {
  position: relative; padding: 240px 0 70px;
  background: var(--bg); overflow: hidden;
}

.services-section::before {
  content: ""; position: absolute; top: 50%;
  inset-inline-start: -120px; transform: translateY(-50%);
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none; z-index: 0;
}

.services-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 250px 1fr;
  gap: 50px; align-items: start;
}

.services-header {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: right; gap: 12px; padding-top: 8px;
}

.services-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 900; color: var(--text); line-height: 1.2; margin: 0;
}

.services-header .badge-line {
  margin-bottom: 0; padding: 0 0 9px; font-size: 0.85rem; color: var(--primary);
}

.services-header .badge-line::after {
  left: auto; right: 0; transform: none; width: 42px; height: 1.5px;
}

.services-header-desc {
  font-size: 0.9rem; color: var(--muted); line-height: 1.75;
  margin: 0; max-width: 230px; text-align: right;
}

.services-tools { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }

.services-tools .tool-icon {
  height: 28px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; filter: grayscale(1); transition: filter 0.3s ease;
}

.services-tools .tool-icon:hover { filter: grayscale(0); }
.services-tools .tool-icon svg { height: 100%; width: auto; display: block; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; width: 100%; }

.service-card {
  position: relative; background: var(--surface);
  border: 2px solid transparent; border-radius: 16px;
  padding: 26px 22px; text-align: right;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(139, 92, 246, 0.14);
  border-color: var(--primary);
}

.service-icon-box {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(139, 92, 246, 0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: background 0.3s, color 0.3s, transform 0.3s;
}

.service-card:hover .service-icon-box {
  background: var(--primary); color: #fff; transform: scale(1.05);
}

.service-svg {
  width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.service-title {
  font-size: 1.08rem; font-weight: 800;
  margin-bottom: 8px; color: var(--text); text-align: right;
}

.service-desc {
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 15px; line-height: 1.65; text-align: right;
}

.service-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 7px; border-top: 1px solid var(--border); padding-top: 14px;
}

.service-features li {
  font-size: 0.78rem; color: var(--text); font-weight: 600;
  display: flex; align-items: center; gap: 6px; text-align: right;
}

.service-features li::before {
  content: "✓"; color: var(--primary); font-weight: 900; flex-shrink: 0;
}

/* ============================================ */
/* ========== سلايدر المشاريع ========== */
/* ============================================ */
.projects-slider {
  position: relative; overflow: hidden; padding: 70px 0;
  border-top: 1px solid var(--border); isolation: isolate; background: #ffffff;
}

.projects-slider::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 255, 254, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
  filter: blur(50px); z-index: 0; pointer-events: none;
}

.slider-bg, .slider-tint, .slider-overlay, .slider-overlay.visible { display: none !important; }
.projects-slider > .container { position: relative; z-index: 2; }

.slider-track {
  position: relative; z-index: 2; display: flex; direction: ltr;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding-inline: 0;
}

.slider-slide {
  flex: 0 0 60%;
  min-width: 60%;
  direction: rtl;
  display: flex; align-items: center; justify-content: center;
  padding: 15px 18px; opacity: 0.35; transform: scale(0.9);
  filter: blur(2px) grayscale(0.5);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  cursor: pointer;
}
.slider-track.is-snapping {
  transition: none !important;
}

.slider-slide.active { opacity: 1; transform: scale(1); filter: blur(0) grayscale(0); cursor: default; }

.project-card {
  position: relative; width: 100%; max-width: 540px; min-height: 320px;
  background: var(--surface); border: 2px solid transparent;
  border-radius: 16px; padding: 0; overflow: hidden; text-align: right;
  display: flex; flex-direction: row-reverse; align-items: stretch;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.slider-slide.active .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(139, 92, 246, 0.14);
  border-color: var(--primary);
}

.project-card-images {
  position: relative; flex: 0 0 52%; min-height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.08), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08), transparent 55%),
    linear-gradient(135deg, #f7f7fc 0%, #ebebf5 100%);
  overflow: hidden; perspective: 1000px; perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.img-pos {
  position: absolute; width: 82%; aspect-ratio: 16 / 10;
  transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform; transform-style: preserve-3d;
}

.img-pos img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
  border: 3px solid #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s ease; will-change: transform; display: block;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  animation: floatY1 6s ease-in-out infinite;
}

.img-pos-1 {
  top: 6%; left: -4%; z-index: 1;
  transform: translate3d(0, 0, 0) rotate(-12deg) rotateY(14deg) rotateX(3deg) scale(0.92);
}

.img-pos-2 {
  top: 36%; left: 18%; z-index: 2;
  transform: translate3d(0, 0, 0) rotate(8deg) rotateY(-10deg) rotateX(-2deg) scale(1);
}

.img-pos-2 img { animation-duration: 7s; animation-name: floatY2; }

@keyframes floatY1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
@keyframes floatY2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -8px, 0); }
}

.slider-slide.active .project-card:hover .img-pos-1 {
  transform: translate3d(-12px, -8px, 0) rotate(-18deg) rotateY(20deg) rotateX(4deg) scale(0.96);
}
.slider-slide.active .project-card:hover .img-pos-1 img {
  box-shadow: 0 26px 55px rgba(139, 92, 246, 0.25), 0 8px 22px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.slider-slide.active .project-card:hover .img-pos-2 {
  transform: translate3d(12px, 8px, 0) rotate(12deg) rotateY(-14deg) rotateX(-3deg) scale(1.04);
}
.slider-slide.active .project-card:hover .img-pos-2 img {
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3), 0 10px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .img-pos img { animation: none !important; }
  .img-pos { transition: none !important; }
}

.project-card-body {
  flex: 1; padding: 24px 26px; text-align: right;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}

.project-card-tag {
  display: inline-block; align-self: flex-start;
  font-size: 0.75rem; font-weight: 800; color: var(--primary);
  background: transparent; padding: 0 0 3px;
  border-bottom: 1.5px solid var(--primary); border-radius: 0; letter-spacing: 0.3px;
}

.project-card-title {
  font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.4; margin: 0;
}

.project-card-btn {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 8px 16px; margin-top: 4px; background: var(--primary);
  color: #ffffff; font-size: 0.75rem; font-weight: 700; border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px -4px rgba(139, 92, 246, 0.4);
}

.project-card-btn:hover {
  background: #7c3aed; transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(139, 92, 246, 0.5);
}

.project-card-btn svg {
  width: 12px; height: 12px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(28, 32, 51, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, border-color .3s, transform .3s;
}
.slider-dot:hover { border-color: rgba(28, 32, 51, 0.75); }
.slider-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.15);
}

/* ============================================ */
/* ========== قسم تعرف علي ========== */
/* ============================================ */
.about-section {
  position: relative;
  padding: 70px 0;
  background: var(--bg);
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 900px; margin-inline: auto;
}

.about-content { text-align: right; }

.about-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.about-education-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}

.edu-icon { display: inline-flex; color: var(--primary); }
.edu-icon svg { width: 18px; height: 18px; }

.edu-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-skills-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-socials { display: flex; gap: 15px; }
.about-socials .social-btn { transition: color 0.3s ease; }
.about-socials .social-btn:hover { color: var(--primary); transform: none; }

.about-image-wrap {
  position: relative; display: flex; justify-content: center; align-items: center;
}

.about-image-wrap::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 400px; height: 400px;
  background:
    radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.15), transparent 65%),
    radial-gradient(circle at 70% 40%, rgba(139, 92, 246, 0.15), transparent 65%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.12), transparent 65%);
  filter: blur(55px); opacity: 0.7; z-index: 0; pointer-events: none;
}

.about-personal-img {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: #ffffff; border-radius: 0;
  box-shadow: 0 25px 60px -12px rgba(139, 92, 246, 0.35);
  transition: filter 0.5s ease, transform 0.4s ease;
}

.about-grayscale { filter: grayscale(100%); }
.about-grayscale:hover { filter: grayscale(0%); transform: translateY(-6px); }

/* ============================================ */
/* ========== قسم تواصل معي ========== */
/* ============================================ */
.contact-section {
  position: relative;
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.contact-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(201, 255, 254, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
  filter: blur(50px); z-index: 0; pointer-events: none;
}

.contact-section > .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}

.contact-info { display: flex; flex-direction: column; gap: 3px; }

.contact-info-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  background: transparent; border: none; text-decoration: none;
  color: var(--text); cursor: pointer; transition: color 0.2s;
}

.contact-info-row:hover { color: var(--primary); }

.contact-info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; background: transparent;
  color: var(--primary); flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.contact-info-value {
  font-size: 0.88rem; font-weight: 700; color: inherit;
  text-align: right; unicode-bidi: plaintext; word-break: break-all;
}

.contact-socials { margin-top: 12px; padding: 0; background: transparent; text-align: right; }

.contact-socials-list { display: flex; gap: 7px; }

.contact-social-btn {
  width: 34px; height: 34px; background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s;
}

.contact-social-btn:hover { color: var(--primary); }
.contact-social-btn svg { width: 20px; height: 20px; fill: currentColor; }

.contact-form {
  background: var(--surface); border: 2px solid transparent;
  border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 14px 32px rgba(139, 92, 246, 0.08), 0 6px 18px rgba(0, 0, 0, 0.03);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; }

.form-field input, .form-field textarea {
  font-family: inherit; font-size: 0.88rem; color: var(--text);
  background: #fafbfd; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 10px 12px; transition: border-color 0.2s, background 0.2s; text-align: right;
}

.form-field input::placeholder, .form-field textarea::placeholder { color: #a4a9bd; }

.form-field input:focus, .form-field textarea:focus {
  outline: none; background: #ffffff; border-color: var(--primary);
}

.form-field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }

.custom-select-wrapper { position: relative; user-select: none; }

.custom-select-trigger {
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; font-size: 0.88rem; color: #a4a9bd;
  background: #fafbfd; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 10px 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}

.custom-select-trigger.has-value { color: var(--text); }

.custom-select-trigger:focus-visible, .custom-select-wrapper.open .custom-select-trigger {
  outline: none; background: #ffffff; border-color: var(--primary);
}

.arrow-icon { width: 15px; height: 15px; transition: transform 0.3s; }
.custom-select-wrapper.open .arrow-icon { transform: rotate(180deg); }

.custom-select-options {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  background: #ffffff; border: 1.5px solid var(--border); border-radius: 9px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06); list-style: none; padding: 5px;
  z-index: 10; opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s; max-height: 210px; overflow-y: auto;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.custom-select-options li {
  padding: 9px 13px; font-size: 0.88rem; color: var(--text); border-radius: 7px;
  cursor: pointer; transition: background 0.2s, color 0.2s; background-color: transparent;
}

.custom-select-options li:hover, .custom-select-options li.selected {
  background-color: var(--primary); color: #ffffff;
}

.contact-submit {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; margin-top: 3px; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-submit svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.contact-submit:hover {
  transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgba(139, 92, 246, 0.55); background: #7c3aed;
}

.contact-submit:focus, .contact-submit:active { transform: translateY(-1px); outline: none; }

.contact-submit:disabled {
  cursor: not-allowed; opacity: 0.8; transform: none; box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

.contact-logo-wrap {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.contact-logo-wrap .logo { font-size: 1.8rem; display: inline-block; }

.contact-copyright {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================ */
/* ========== قسم إضافة تعليق ========== */
/* ============================================ */
.add-comment-section {
  position: relative;
  padding: 55px 0 45px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 22px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.add-comment-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
}

.add-comment-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.add-comment-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.add-comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-comment-form input,
.add-comment-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #fafbfd;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  transition: border-color 0.2s, background 0.2s;
  text-align: right;
}

.add-comment-form input::placeholder,
.add-comment-form textarea::placeholder { color: #a4a9bd; }

.add-comment-form input:focus,
.add-comment-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
}

.add-comment-form textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.add-comment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  align-self: flex-start;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.4);
}

.add-comment-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(139, 92, 246, 0.5);
}

.add-comment-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== صورة الـ QR — مع ظل خفيف ✨ ===== */
.add-comment-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-comment-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 0px;
  background: #ffffff;
  box-shadow:
    0 14px 36px rgba(139, 92, 246, 0.20),
    0 4px 12px rgba(28, 32, 51, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ===== contact-logo-wrap داخل قسم التعليقات ===== */
.add-comment-section .contact-logo-wrap {
  background: #ffffff;
  text-align: center;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}
/* ملاحظة: `.add-comment-section .contact-logo-wrap .logo`
   و `.add-comment-section .contact-copyright`
   حُذفت — لأنها مطابقة تماماً للقواعد العامة. */

/* ============================================ */
/* ========== الاستجابة للشاشات ========== */
/* ============================================ */
@media (max-width: 900px) {
  .hero-section { padding-block: 80px 60px; }

  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { order: 1; align-items: center; }
  .hero-visual { order: 2; padding: 20px 0; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual::before { width: 380px; height: 380px; }
  .hero-img-container { max-width: 340px; }

  .hero-socials {
    position: static; transform: none; flex-direction: row;
    justify-content: center; gap: 24px; margin-top: 24px; order: 2;
  }

  .hero-img-container { order: 1; }

  .hero-subscriptions-wrap { margin-top: 40px; margin-bottom: 0; }
  .hero-subscriptions { width: min(560px, 94%); }
  .hero-sub-grid { grid-template-columns: 1fr; gap: 16px; }

  .services-section { padding: 60px 0; border-top: 1px solid var(--border); }
  .services-layout { grid-template-columns: 1fr; gap: 28px; }
  .services-header { align-items: center; text-align: center; }

  .services-header .badge-line::after {
    left: 50%; right: auto; transform: translateX(-50%); width: 55px;
  }

  .services-header-desc { max-width: 500px; text-align: center; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }

  .slider-slide { min-width: 58%; padding: 15px 12px; }
  .project-card { max-width: 460px; }
  .slider-dots { bottom: 18px; }
  .projects-slider { padding: 55px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-content { text-align: center; }
  .about-socials { justify-content: center; }
  .about-image-wrap { order: -1; }

  .contact-section { padding: 55px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { align-items: center; text-align: center; }
  .contact-info-row { justify-content: center; }
  .contact-info-value { text-align: center; }
  .contact-socials { text-align: center; }
  .contact-socials-list { justify-content: center; }
  .contact-form { padding: 20px; }
  .add-comment-section { padding: 30px 0 55px; }
  .add-comment-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 500px;
  }
  .add-comment-image-wrap { order: 2; }
  .add-comment-img { max-width: 160px; }
  .add-comment-btn { width: 100%; }
}
@media (max-width: 480px) {
  .add-comment-section { padding: 24px 0 44px; }
  .add-comment-grid { gap: 22px; max-width: 100%; }
  .add-comment-title { font-size: 1.1rem; }
  .add-comment-form { gap: 10px; }
  .add-comment-form input,
  .add-comment-form textarea { font-size: 0.85rem; padding: 10px 12px; }
  .add-comment-form textarea { min-height: 75px; }
  .add-comment-btn { padding: 10px 20px; font-size: 0.85rem; }
  .add-comment-img { max-width: 130px; }
}

@media (max-width: 720px) {
  .nav { display: flex; justify-content: space-between; direction: ltr; }

  .desktop-lang-item { display: none; }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
  }

  .mobile-lang-btn { display: inline-flex; }
  .menu-btn { display: flex; }

  .nav-links {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 0 4%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s, padding .3s, visibility .3s;
    direction: rtl; box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open { max-height: 500px; padding: 12px 4%; visibility: visible; }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
  }

  .hero-section { padding-block: 65px 45px; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 1rem; margin-bottom: 28px; }
  .btn { padding: 11px 24px; font-size: 0.9rem; }

  .hero-img-container { max-width: 300px; }
  .hero-visual::before { width: 340px; height: 340px; }
  .hero-personal-img { transform: scale(1.06); }

  .hero-socials { gap: 22px; margin-top: 20px; }
  .social-btn { width: 36px; height: 36px; }
  .social-btn svg { width: 20px; height: 20px; }

  .hero-subscriptions-wrap { margin-top: 30px; }
  .hero-subscriptions { width: 96%; }
  .hero-sub-card { padding: 20px 16px 18px; }
  .hero-sub-domain { font-size: 0.66rem; padding: 2px 12px; margin-bottom: 10px; }
  .hero-sub-title { font-size: 0.92rem; margin-bottom: 8px; }
  .hero-sub-price { font-size: 1.2rem; }
  .hero-sub-period { font-size: 0.66rem; }
  .hero-sub-features li { font-size: 0.72rem; }

  .services-section { padding: 50px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 22px 20px; }
  .service-icon-box { width: 46px; height: 46px; margin-bottom: 14px; }
  .service-svg { width: 22px; height: 22px; }
  .service-title { font-size: 1rem; }
  .service-desc { font-size: 0.8rem; }
  .service-features li { font-size: 0.75rem; }

  .services-tools { gap: 14px; margin-top: 12px; justify-content: center; }
  .services-tools .tool-icon { height: 24px; }

  .slider-slide { flex: 0 0 80%; min-width: 80%; padding: 12px 10px; }
  .project-card { min-height: 240px; max-width: 100%; }
  .project-card-images { flex: 0 0 48%; }
  .img-pos { width: 84%; }
  .img-pos img { border-width: 2px; border-radius: 8px; }
  .img-pos-1 { top: 4%; left: -6%; }
  .img-pos-2 { top: 40%; left: 16%; }

  .project-card-body { padding: 16px 18px; gap: 8px; }
  .project-card-tag { font-size: 0.62rem; }
  .project-card-title { font-size: 0.92rem; }
  .project-card-btn { font-size: 0.65rem; padding: 6px 12px; gap: 4px; }
  .project-card-btn svg { width: 10px; height: 10px; }

  .slider-dots { bottom: 16px; gap: 6px; }
  .slider-dot { width: 6px; height: 6px; }
  .projects-slider { padding: 45px 0; }

  .section-header { margin-bottom: 26px; }
  .section-title { font-size: 1.3rem; }
  .section-subtitle { font-size: 0.82rem; }
  .badge-line { font-size: 0.75rem; }

  .about-section { padding: 50px 0; }
  .about-name { font-size: 1.3rem; }

  .contact-section { padding: 45px 0; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }
  .contact-form { padding: 16px; gap: 10px; }
  .contact-submit { width: 100%; justify-content: center; }
  .contact-info-value { font-size: 0.82rem; }
  .contact-info-icon { width: 18px; height: 18px; }
  .contact-info-icon svg { width: 16px; height: 16px; }
  .contact-social-btn { width: 32px; height: 32px; }
  .contact-social-btn svg { width: 18px; height: 18px; }

  .contact-logo-wrap { margin-top: 20px; padding-top: 15px; }
  .contact-logo-wrap .logo { font-size: 1.5rem; }
}

/* ============================================ */
/* ========== تأثيرات الظهور السلسة ========== */
/* ============================================ */

:root {
  --reveal-duration: 0.9s;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-translate: 40px;
}

@keyframes revealUp {
  from { opacity: 0; transform: translate3d(0, var(--reveal-translate), 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes revealDown {
  from { opacity: 0; transform: translate3d(0, calc(var(--reveal-translate) * -1), 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translate3d(calc(var(--reveal-translate) * -1), 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translate3d(var(--reveal-translate), 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.js .hero-content > *,
.js .hero-visual,
.js .hero-sub-card,
.js .services-header,
.js .service-card,
.js .projects-slider .section-header,
.js .slider-track,
.js .contact-section .section-header,
.js .contact-form,
.js .contact-info,
.js .contact-logo-wrap {
  visibility: hidden;
}

.hero-content.is-revealed > * {
  visibility: visible;
  animation: revealUp var(--reveal-duration) var(--reveal-ease) backwards;
}
.hero-content.is-revealed > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content.is-revealed > *:nth-child(2) { animation-delay: 0.30s; }
.hero-content.is-revealed > *:nth-child(3) { animation-delay: 0.45s; }

.hero-visual.is-revealed {
  visibility: visible;
  animation: revealScale var(--reveal-duration) var(--reveal-ease) 0.20s backwards;
}

.hero-subscriptions-wrap.is-revealed .hero-sub-card {
  visibility: visible;
  animation: revealUp var(--reveal-duration) var(--reveal-ease) backwards;
}
.hero-subscriptions-wrap.is-revealed .hero-sub-card:nth-child(1) { animation-delay: 0.10s; }
.hero-subscriptions-wrap.is-revealed .hero-sub-card:nth-child(2) { animation-delay: 0.25s; }

.services-header.is-revealed {
  visibility: visible;
  animation: revealRight var(--reveal-duration) var(--reveal-ease) backwards;
}

.services-grid.is-revealed .service-card {
  visibility: visible;
  animation: revealUp var(--reveal-duration) var(--reveal-ease) backwards;
}
.services-grid.is-revealed .service-card:nth-child(1) { animation-delay: 0.15s; }
.services-grid.is-revealed .service-card:nth-child(2) { animation-delay: 0.30s; }

.projects-slider .section-header.is-revealed {
  visibility: visible;
  animation: revealUp var(--reveal-duration) var(--reveal-ease) backwards;
}

.slider-track.is-revealed {
  visibility: visible;
  animation: revealFade 1.1s var(--reveal-ease) 0.20s backwards;
}

.contact-section .section-header.is-revealed {
  visibility: visible;
  animation: revealUp var(--reveal-duration) var(--reveal-ease) backwards;
}

.contact-form.is-revealed {
  visibility: visible;
  animation: revealLeft var(--reveal-duration) var(--reveal-ease) 0.15s backwards;
}

.contact-info.is-revealed {
  visibility: visible;
  animation: revealRight var(--reveal-duration) var(--reveal-ease) 0.25s backwards;
}

.contact-logo-wrap.is-revealed {
  visibility: visible;
  animation: revealUp var(--reveal-duration) var(--reveal-ease) 0.10s backwards;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-content > *,
  .js .hero-visual,
  .js .hero-sub-card,
  .js .services-header,
  .js .service-card,
  .js .projects-slider .section-header,
  .js .slider-track,
  .js .contact-section .section-header,
  .js .contact-form,
  .js .contact-info,
  .js .contact-logo-wrap {
    visibility: visible !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================ */
/* ========== قسم آراء العملاء ========== */
/* ============================================ */
.testimonials-section {
  position: relative;
  padding: 70px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(6, 182, 212, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.07) 0%, transparent 55%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.testimonials-section > .container,
.testimonials-marquee {
  position: relative;
  z-index: 1;
}

.testimonials-marquee {
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.testimonials-track {
  display: flex;
  direction: ltr;
  width: max-content;
  animation: testimonialsMarquee 45s linear infinite;
  will-change: transform;
}

.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonial-slide {
  flex: 0 0 320px;
  padding: 0 10px;
  direction: rtl;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 0;
  border: none;
  padding: 24px 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 180px;
  box-shadow: 0 1px 2px rgba(28, 32, 51, 0.02);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
  box-shadow:
    0 22px 45px -15px rgba(139, 92, 246, 0.25),
    0 8px 20px -8px rgba(28, 32, 51, 0.12);
  transform: translateY(-3px);
}

.testimonial-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.testimonial-line {
  flex: 1;
  height: 1px;
  max-width: 55px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.35), transparent);
}

.testimonial-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.testimonial-text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

@keyframes testimonialsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}

/* ============================================ */
/* ========== تأثيرات دخول آراء العملاء والتعليقات ========== */
/* ============================================ */

.testimonials-section .section-header,
.testimonials-marquee {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials-section .section-header.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.testimonials-marquee.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.add-comment-form-wrap,
.add-comment-image-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-comment-form-wrap.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.add-comment-image-wrap.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-section .section-header,
  .testimonials-marquee,
  .add-comment-form-wrap,
  .add-comment-image-wrap {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .testimonials-section { padding: 55px 0; }
  .testimonial-slide { flex: 0 0 270px; padding: 0 8px; }
  .testimonial-card { padding: 20px 16px 18px; min-height: 160px; }
  .testimonial-name { font-size: 0.85rem; }
  .testimonial-text { font-size: 0.8rem; line-height: 1.7; }
}