/**
 * الصفحة الرئيسية — تصميم 3 "انبهر"
 * هيرو درامي، نص متدرج متحرك، زجاج، ميل 3D، أشكال عائمة
 */
.home-v3 {
  --v3-p: #1e299c;
  --v3-p-light: #3b4bd4;
  --v3-violet: #6366f1;
  --v3-dark: #0a0e3a;
  --v3-bg: #f8f9fe;
  --v3-surface: #ffffff;
  --v3-text: #0f1222;
  --v3-muted: #5a5f7a;
  --v3-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== شريط التقدم (scroll progress) ===== */
.home-v3 .scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 9999;
  transform-origin: 0 0;
}

.home-v3 .scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--v3-violet), var(--v3-p-light));
  transform-origin: 100% 0; /* RTL: يمتلئ من اليمين */
  transition: transform 0.1s linear;
}

/* ===== القائمة: دائماً ظاهرة مع خلفية ثابتة ===== */
.home-v3 .nav-v3 {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(10, 14, 58, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.4s var(--v3-ease);
}

.home-v3 .nav-v3.is-solid {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.home-v3 .nav-v3 .navbar-brand {
  color: #fff !important;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.home-v3 .nav-v3 .navbar-brand span { opacity: 0.9; }

.home-v3 .nav-v3 .navbar-brand {
  letter-spacing: 0.02em;
}

.home-v3 .nav-v3 .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.home-v3 .nav-v3 .nav-link:hover,
.home-v3 .nav-v3 .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.home-v3 .nav-v3 .btn-cta-nav {
  background: #fff;
  color: var(--v3-p) !important;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-v3 .nav-v3 .btn-cta-nav:hover {
  color: var(--v3-p) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.home-v3 .nav-v3 .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* ===== الهيرو — انطباع أول قوي ===== */
.home-v3 .hero-v3 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.home-v3 .hero-v3__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0a0e3a 0%, #1e299c 35%, #2d3ab8 60%, #6366f1 100%);
  z-index: 0;
}

.home-v3 .hero-v3__bg-move {
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(30, 41, 156, 0.5) 0%, transparent 50%);
  animation: v3BgMove 15s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes v3BgMove {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-5%, -5%) scale(1.1); opacity: 1; }
}

.home-v3 .hero-v3__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
  animation: v3GridPulse 8s ease-in-out infinite;
}

@keyframes v3GridPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

/* أشكال عائمة */
.home-v3 .hero-v3__shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.home-v3 .hero-v3__shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: v3Float 20s ease-in-out infinite;
}

.home-v3 .hero-v3__shape--1 { width: 300px; height: 300px; top: 15%; left: 10%; animation-delay: 0s; opacity: 0.5; }
.home-v3 .hero-v3__shape--2 { width: 180px; height: 180px; bottom: 25%; right: 15%; animation-delay: -5s; opacity: 0.45; }
.home-v3 .hero-v3__shape--3 { width: 120px; height: 120px; top: 50%; right: 25%; animation-delay: -10s; opacity: 0.4; }
.home-v3 .hero-v3__shape--4 { width: 220px; height: 220px; bottom: 15%; left: 20%; animation-delay: -7s; opacity: 0.45; }

@keyframes v3Float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(20px, -25px) rotate(5deg) scale(1.02); }
  50% { transform: translate(-15px, 15px) rotate(-3deg) scale(0.98); }
  75% { transform: translate(25px, 20px) rotate(2deg) scale(1.01); }
}

.home-v3 .hero-v3 .container {
  position: relative;
  z-index: 2;
}

.home-v3 .hero-v3__inner {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.home-v3 .hero-v3__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.9);
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: v3FadeUp 0.8s var(--v3-ease) both;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}

.home-v3 .hero-v3__badge:hover {
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.2);
  border-color: rgba(255,255,255,0.5);
}

.home-v3 .hero-v3__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: v3FadeUp 0.8s var(--v3-ease) 0.15s both;
}

/* نص متدرج متحرك */
.home-v3 .hero-v3__title-gradient {
  background: linear-gradient(120deg, #fff 0%, #c7d2fe 35%, #a5b4fc 60%, #818cf8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v3GradientShift 6s ease-in-out infinite;
}

@keyframes v3GradientShift {
  0%, 100% { background-position: 0% center; filter: brightness(1); }
  50% { background-position: 100% center; filter: brightness(1.08); }
}

.home-v3 .hero-v3__title-gradient {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

@keyframes v3FadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-v3 .hero-v3__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: v3FadeUp 0.8s var(--v3-ease) 0.3s both;
}

.home-v3 .hero-v3__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: v3FadeUp 0.8s var(--v3-ease) 0.45s both;
}

.home-v3 .hero-v3__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s var(--v3-ease), box-shadow 0.25s;
}

.home-v3 .hero-v3__btn--primary {
  background: #fff;
  color: var(--v3-p);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: v3BtnGlow 2.5s ease-in-out infinite;
}

.home-v3 .hero-v3__btn--primary:hover {
  color: var(--v3-p);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255, 255, 255, 0.25);
  animation: none;
}

@keyframes v3BtnGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 20px 2px rgba(255, 255, 255, 0.15); }
}

.home-v3 .hero-v3__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.home-v3 .hero-v3__btn--outline:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-v3 .hero-v3__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: v3Bounce 2s ease-in-out infinite;
}

@keyframes v3Bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.home-v3 .hero-v3__scroll-icon {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.home-v3 .hero-v3__scroll-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  animation: v3ScrollDot 2s ease-in-out infinite;
}

@keyframes v3ScrollDot {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 10px; }
}

/* ===== مقطع مائل (انتقال درامي) ===== */
.home-v3 .hero-v3__cut {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--v3-bg);
  clip-path: polygon(0 100%, 0 30%, 50% 70%, 100% 20%, 100% 100%);
  z-index: 2;
}

/* ===== أقسام عامة ===== */
.home-v3 .sec-v3 {
  padding: 4.5rem 0;
  position: relative;
}

.home-v3 .sec-v3--dark {
  background: linear-gradient(180deg, #0a0e3a 0%, #1a1f4a 100%);
  color: #fff;
}

.home-v3 .sec-v3__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-v3 .sec-v3__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v3-p);
  margin-bottom: 0.5rem;
}

.home-v3 .sec-v3--dark .sec-v3__label { color: #a5b4fc; }

.home-v3 .sec-v3__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--v3-text);
  margin-bottom: 0.5rem;
}

.home-v3 .sec-v3--dark .sec-v3__title { color: #fff; }

.home-v3 .sec-v3__desc {
  font-size: 1rem;
  color: var(--v3-muted);
  max-width: 32rem;
  margin-inline: auto;
  line-height: 1.6;
}

.home-v3 .sec-v3--dark .sec-v3__desc { color: rgba(255,255,255,0.8); }

/* ===== بطاقات الخدمات — زجاج + ميل 3D ===== */
.home-v3 .services-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
}

.home-v3 .card-v3 {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--v3-ease), box-shadow 0.4s var(--v3-ease);
  transform-style: preserve-3d;
  box-shadow: 0 8px 32px rgba(30, 41, 156, 0.08);
}

.home-v3 .card-v3:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 24px 48px rgba(30, 41, 156, 0.15);
}

.home-v3 .card-v3__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(30, 41, 156, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  color: var(--v3-p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.4s var(--v3-ease), color 0.3s ease;
}

.home-v3 .card-v3__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.home-v3 .card-v3:hover .card-v3__icon {
  transform: scale(1.1) translateZ(10px);
}

.home-v3 .card-v3__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--v3-text);
  margin-bottom: 0.4rem;
}

.home-v3 .card-v3__text {
  font-size: 0.9rem;
  color: var(--v3-muted);
  line-height: 1.55;
}

/* ===== إحصائيات — شريط داكن ===== */
.home-v3 .stats-v3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (min-width: 576px) {
  .home-v3 .stats-v3 { grid-template-columns: repeat(4, 1fr); }
}

.home-v3 .stats-v3__item {
  text-align: center;
}

.home-v3 .stats-v3__num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.home-v3 .stats-v3__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== المشاريع — كروت كبيرة مع overlay ===== */
.home-v3 .proj-v3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-v3 .proj-v3 { grid-template-columns: repeat(2, 1fr); }
}

.home-v3 .proj-v3__card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  text-decoration: none;
  color: inherit;
  display: block;
}

.home-v3 .proj-v3__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--v3-ease);
}

.home-v3 .proj-v3__card:hover img {
  transform: scale(1.1);
}

.home-v3 .proj-v3__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 58, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.4s;
}

.home-v3 .proj-v3__card:hover .proj-v3__overlay {
  background: linear-gradient(to top, rgba(30, 41, 156, 0.95) 0%, rgba(30, 41, 156, 0.4) 100%);
}

.home-v3 .proj-v3__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 0.35rem;
}

.home-v3 .proj-v3__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.home-v3 .proj-v3__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ===== أبرز أعمالنا — عرض احترافي: شريط تمرير أفقي / شبكة ===== */
.home-v3 .home-projects {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(165deg, #0a0e2a 0%, #12163a 40%, #1a1f4a 100%);
  overflow: hidden;
}

.home-v3 .home-projects__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(59, 75, 212, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.home-v3 .home-projects__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.home-v3 .home-projects__glow--1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.2);
  top: -100px;
  left: -100px;
}

.home-v3 .home-projects__glow--2 {
  width: 300px;
  height: 300px;
  background: rgba(59, 75, 212, 0.15);
  bottom: -50px;
  right: -50px;
}

.home-v3 .home-projects__container {
  position: relative;
  z-index: 1;
}

.home-v3 .home-projects__head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-inline: auto;
}

.home-v3 .home-projects__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(167, 139, 250, 0.95);
  margin-bottom: 0.75rem;
}

.home-v3 .home-projects__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-v3 .home-projects__tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin: 0;
}

/* شبكة المشاريع — عرض احترافي بدون سليدر */
.home-v3 .home-projects__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .home-v3 .home-projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 992px) {
  .home-v3 .home-projects__grid {
    gap: 2rem;
  }
}

.home-v3 .home-projects__card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--v3-ease), box-shadow 0.35s ease;
}

.home-v3 .home-projects__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-v3 .home-projects__card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.6), var(--v3-p), rgba(99, 102, 241, 0.6));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
  pointer-events: none;
}

.home-v3 .home-projects__card:hover .home-projects__card-border {
  opacity: 1;
  animation: homeProjectsBorderShift 2.5s ease infinite;
}

@keyframes homeProjectsBorderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.home-v3 .home-projects__card-img {
  position: absolute;
  inset: 0;
}

.home-v3 .home-projects__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--v3-ease);
}

.home-v3 .home-projects__card:hover .home-projects__card-img img {
  transform: scale(1.08);
}

.home-v3 .home-projects__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 42, 0.96) 0%, rgba(10, 14, 42, 0.5) 40%, transparent 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.4s ease;
}

.home-v3 .home-projects__card:hover .home-projects__card-overlay {
  background: linear-gradient(to top, rgba(30, 41, 156, 0.97) 0%, rgba(59, 75, 212, 0.6) 45%, rgba(99, 102, 241, 0.25) 100%);
}

.home-v3 .home-projects__card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(8px);
}

.home-v3 .home-projects__card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

.home-v3 .home-projects__card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-v3 .home-projects__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0e7ff;
  transition: gap 0.3s, color 0.3s;
}

.home-v3 .home-projects__card:hover .home-projects__card-cta {
  color: #fff;
  gap: 0.6rem;
}

.home-v3 .home-projects__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.8rem;
  transition: transform 0.3s, background 0.3s;
}

.home-v3 .home-projects__card:hover .home-projects__card-arrow {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.35);
}

[dir="rtl"] .home-v3 .home-projects__card:hover .home-projects__card-arrow {
  transform: translateX(3px);
}

.home-v3 .home-projects__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.home-v3 .home-projects__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, color 0.3s, background 0.3s, border-color 0.3s;
}

.home-v3 .home-projects__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-p) 0%, var(--v3-violet) 100%);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.home-v3 .home-projects__btn--primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.5);
}

.home-v3 .home-projects__btn--outline {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.home-v3 .home-projects__btn--outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.home-v3 .home-projects__btn-icon {
  width: 1.2rem;
  height: 1.2rem;
}

[dir="rtl"] .home-v3 .home-projects__btn-icon {
  transform: rotate(180deg);
}

/* دخول سلس لقسم أبرز الأعمال */
.home-v3 .home-projects--animated .home-projects__head,
.home-v3 .home-projects--animated .home-projects__grid .home-projects__card,
.home-v3 .home-projects--animated .home-projects__footer {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--v3-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform 0.6s var(--v3-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  transition-delay: var(--home-projects-delay, 0ms);
}

.home-v3 .home-projects__head.is-visible,
.home-v3 .home-projects__grid.is-visible .home-projects__card,
.home-v3 .home-projects__footer.is-visible {
  opacity: 1;
  transform: none;
}

.home-v3 .home-projects__grid.is-visible .home-projects__card:nth-child(1) { transition-delay: 0ms; }
.home-v3 .home-projects__grid.is-visible .home-projects__card:nth-child(2) { transition-delay: 80ms; }
.home-v3 .home-projects__grid.is-visible .home-projects__card:nth-child(3) { transition-delay: 160ms; }
.home-v3 .home-projects__grid.is-visible .home-projects__card:nth-child(4) { transition-delay: 240ms; }

/* حركة خفيفة لتوهجات الخلفية */
.home-v3 .home-projects__glow--1,
.home-v3 .home-projects__glow--2 {
  animation: homeProjectsGlow 18s ease-in-out infinite;
}

@keyframes homeProjectsGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -8px, 0) scale(1.03);
  }
}

/* ===== كيف نعمل — تصميم جديد: خط ربط + بطاقات وصف ===== */
.home-v3 .process-section__desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.home-v3 .process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 64rem;
  margin-inline: auto;
}

.home-v3 .process-flow__step {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-v3 .process-flow__step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.home-v3 .process-flow__num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--v3-p-light), var(--v3-violet));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.home-v3 .process-flow__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.home-v3 .process-flow__text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  margin: 0;
}

.home-v3 .process-flow__connector {
  width: 24px;
  flex-shrink: 0;
  align-self: center;
  border: none;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  margin: 0 -2px;
}

@media (max-width: 991px) {
  .home-v3 .process-flow {
    gap: 1rem;
  }

  .home-v3 .process-flow__step {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: none;
  }

  .home-v3 .process-flow__connector {
    display: none;
  }
}

@media (max-width: 575px) {
  .home-v3 .process-flow__step {
    flex: 1 1 100%;
  }
}

/* ===== آراء العملاء — تصميم جديد: بطاقة رئيسية + تبويبات ===== */
.home-v3 .testimonials-v3 {
  background: linear-gradient(180deg, var(--v3-bg) 0%, rgba(30, 41, 156, 0.04) 100%);
}

.home-v3 .testimonials-v3 .sec-v3__desc {
  max-width: 28rem;
  margin-inline: auto;
  margin-top: 0.5rem;
  color: var(--v3-muted);
  font-size: 1rem;
}

.home-v3 .testimonials-v3__wrap {
  max-width: 72rem;
  margin-inline: auto;
  margin-top: 2.5rem;
}

.home-v3 .testimonials-v3__slider {
  overflow: hidden;
  border-radius: 1.25rem;
  margin-inline: -0.5rem;
}

.home-v3 .testimonials-v3__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-v3 .testimonials-v3__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-inline: 0.5rem;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .home-v3 .testimonials-v3__slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .home-v3 .testimonials-v3__slide {
    flex: 0 0 33.333%;
  }
}

.home-v3 .testimonials-v3__card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(30, 41, 156, 0.1);
  box-shadow: 0 20px 50px rgba(30, 41, 156, 0.08);
  border-inline-start: 4px solid var(--v3-p);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-v3 .testimonials-v3__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(30, 41, 156, 0.12);
}

@media (min-width: 768px) {
  .home-v3 .testimonials-v3__card {
    padding: 2rem 1.75rem;
  }
}

.home-v3 .testimonials-v3__card .testimonials-v3__quote-icon {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(30, 41, 156, 0.12);
  font-family: Georgia, serif;
}

.home-v3 .testimonials-v3__quote {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--v3-text);
  line-height: 1.8;
  margin: 0 0 1.25rem 0;
  font-weight: 500;
  padding-inline-end: 2rem;
  flex: 1;
}

@media (min-width: 768px) {
  .home-v3 .testimonials-v3__quote {
    margin-bottom: 1.5rem;
  }
}

.home-v3 .testimonials-v3__author-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-v3 .testimonials-v3__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v3-p) 0%, #6366f1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-v3 .testimonials-v3__author {
  font-weight: 700;
  color: var(--v3-text);
  margin: 0 0 0.15rem 0;
  font-size: 1.05rem;
}

.home-v3 .testimonials-v3__role {
  font-size: 0.9rem;
  color: var(--v3-muted);
  margin: 0;
}

.home-v3 .testimonials-v3__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.home-v3 .testimonials-v3__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(30, 41, 156, 0.25);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.home-v3 .testimonials-v3__dot:hover {
  background: rgba(30, 41, 156, 0.5);
}

.home-v3 .testimonials-v3__dot.active {
  background: var(--v3-p);
  transform: scale(1.35);
}

.home-v3 .testimonials-v3__dot.hidden {
  display: none;
}

/* ===== CTA نهائي ===== */
.home-v3 .cta-v3 {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0a0e3a 0%, #1e299c 40%, #6366f1 100%);
  position: relative;
  overflow: hidden;
}

.home-v3 .cta-v3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.home-v3 .cta-v3 .container { position: relative; z-index: 1; }

.home-v3 .cta-v3__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.home-v3 .cta-v3__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.home-v3 .cta-v3__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.05rem;
  background: #fff;
  color: var(--v3-p);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-v3 .cta-v3__btn:hover {
  color: var(--v3-p);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ===== مبدل التصاميم ===== */
.home-v3 .design-switcher-v3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-v3 .design-switcher-v3 a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.home-v3 .design-switcher-v3 a:hover { color: #fff; }

.home-v3 .design-switcher-v3 .active { color: #fff; }

/* ===== شريط التقنيات ===== */
.home-v3 .tech-strip {
  padding: 2rem 0;
  background: var(--v3-surface);
  border-top: 1px solid rgba(30, 41, 156, 0.08);
  border-bottom: 1px solid rgba(30, 41, 156, 0.08);
}

.home-v3 .tech-strip__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v3-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.home-v3 .tech-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-v3 .tech-strip__item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v3-muted);
  padding: 0.4rem 0.9rem;
  background: var(--v3-bg);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.home-v3 .tech-strip__item:hover {
  color: var(--v3-p);
  background: rgba(30, 41, 156, 0.08);
}

/* ===== شريط ثقة عملاء / يعمل معنا ===== */
.home-v3 .clients-strip {
  padding: 2rem 0;
  background: var(--v3-bg);
  border-bottom: 1px solid rgba(30, 41, 156, 0.08);
}

.home-v3 .clients-strip__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v3-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.home-v3 .clients-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-v3 .clients-strip__item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--v3-text);
  padding: 0.5rem 1rem;
  background: var(--v3-surface);
  border-radius: 0.5rem;
  border: 1px solid rgba(30, 41, 156, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-v3 .clients-strip__item:hover {
  border-color: var(--v3-violet);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

/* ===== لماذا نحن — نقاط سريعة (داخل القسم الداكن) ===== */
.home-v3 .why-strip {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
}

@media (min-width: 576px) {
  .home-v3 .why-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .home-v3 .why-strip { grid-template-columns: repeat(4, 1fr); }
}

.home-v3 .why-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  transition: background 0.3s, transform 0.3s;
}

.home-v3 .why-strip__item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.home-v3 .why-strip__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--v3-p-light), var(--v3-violet));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.home-v3 .why-strip__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.home-v3 .why-strip__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* تبويبات آراء العملاء — موبايل */
@media (max-width: 480px) {
  .home-v3 .testimonials-v3__card {
    padding: 1.5rem 1.25rem;
  }
  .home-v3 .testimonials-v3__card .testimonials-v3__quote-icon {
    font-size: 2.5rem;
    inset-inline-end: 1rem;
  }
  .home-v3 .testimonials-v3__quote {
    padding-inline-end: 1rem;
  }
}

/* ===== زر العودة للأعلى ===== */
.home-v3 .back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--v3-p);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(30, 41, 156, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.home-v3 .back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.home-v3 .back-to-top:hover {
  background: var(--v3-p-light);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(30, 41, 156, 0.45);
}

.home-v3 .back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(-90deg);
}

/* ===== زر واتساب عائم ===== */
.home-v3 .whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 899;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}

[dir="rtl"] .home-v3 .whatsapp-float {
  right: auto;
  left: 2rem;
}

.home-v3 .whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* ===== الفوتر — تصميم جديد ===== */
.home-v3 .footer-new {
  position: relative;
  background: #060818;
  color: #fff;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.home-v3 .footer-new::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 41, 156, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.home-v3 .footer-new__line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--v3-p) 20%, var(--v3-violet) 50%, var(--v3-p) 80%, transparent);
  opacity: 0.9;
}

.home-v3 .footer-new .container {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 0;
}

.home-v3 .footer-new__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .home-v3 .footer-new__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.home-v3 .footer-new__brand {
  padding-inline-end: 1.5rem;
}

[dir="rtl"] .home-v3 .footer-new__brand {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.home-v3 .footer-new__logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 1rem;
  transition: opacity 0.25s, color 0.25s;
}

.home-v3 .footer-new__logo:hover {
  opacity: 0.9;
  color: #fff !important;
}

.home-v3 .footer-new__tagline {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 22rem;
  margin-bottom: 1rem;
}

.home-v3 .footer-new__versions {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-v3 .footer-new__versions a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.home-v3 .footer-new__versions a:hover {
  color: #fff;
}

.home-v3 .footer-new__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.home-v3 .footer-new__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-v3 .footer-new__links li {
  margin-bottom: 0.6rem;
}

.home-v3 .footer-new__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.home-v3 .footer-new__links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--v3-violet);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.home-v3 .footer-new__links a:hover {
  color: #fff;
  transform: translateX(-4px);
}

.home-v3 .footer-new__links a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

[dir="rtl"] .home-v3 .footer-new__links a:hover {
  transform: translateX(4px);
}

/* تواصل معنا — أيقونات سوشيال */
.home-v3 .footer-new__connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-v3 .footer-new__connect-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.home-v3 .footer-new__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.home-v3 .footer-new__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.home-v3 .footer-new__social-link:hover {
  background: var(--v3-p);
  color: #fff;
  transform: translateY(-3px);
}

.home-v3 .footer-new__social-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.home-v3 .footer-new__bottom {
  padding: 1.25rem 0;
  border-top: none;
}

.home-v3 .footer-new__newsletter {
  padding-bottom: 2rem;
  max-width: 28rem;
}

.home-v3 .footer-new__newsletter-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

.home-v3 .footer-new__newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-v3 .footer-new__newsletter-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
}

.home-v3 .footer-new__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.home-v3 .footer-new__newsletter-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--v3-p);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.home-v3 .footer-new__newsletter-btn:hover {
  background: var(--v3-p-light);
  color: #fff;
  transform: translateY(-2px);
}

.home-v3 .footer-new__bottom-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-right: 0.5rem;
}

.home-v3 .footer-new__bottom-link:hover {
  color: #fff;
}

.home-v3 .footer-new__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-align: center;
}

/* دعم الفوتر القديم إن وُجد في صفحة */
.home-v3 .footer-dark {
  position: relative;
  background: linear-gradient(165deg, #0a0e3a 0%, #0f1444 25%, #1a237e 60%, #1e299c 100%);
  padding-top: 4rem;
  padding-bottom: 0;
  overflow: hidden;
}

.home-v3 .footer-dark .container { position: relative; z-index: 1; }
.home-v3 .footer-dark .navbar-brand { color: #fff !important; }
.home-v3 .footer-dark .list-unstyled a { color: rgba(255,255,255,0.7) !important; text-decoration: none !important; }
.home-v3 .footer-dark .list-unstyled a:hover { color: #fff !important; }
.home-v3 .footer-dark hr { border-color: rgba(255,255,255,0.1); }
.home-v3 .footer-dark .footer-v3__bottom .small { color: rgba(255,255,255,0.5); margin: 0; }

/* زر العودة للأعلى — مظهر أحدث */
.home-v3 .back-to-top {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--v3-p) 0%, var(--v3-violet) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(30, 41, 156, 0.5);
}

.home-v3 .back-to-top:hover {
  background: linear-gradient(145deg, var(--v3-p-light) 0%, #818cf8 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

@media (max-width: 991.98px) {
  .home-v3 .nav-v3 .navbar-collapse {
    background: rgba(10, 14, 58, 0.98);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 0.75rem;
  }
}

.home-v3 .skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: var(--v3-p);
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: top 0.3s;
}

.home-v3 .skip-link:focus {
  top: 1rem;
}
