﻿/* ============================================================
   [STYLE.CSS - كل تنسيقات الموقع]
   
   التعديلات المضافة:
   1. إضافة --font-display في :root
   2. إصلاح text-gradient (إعادة الـ gradient الحقيقي)
   3. إصلاح .featured-badge (إضافة position: absolute)
   4. إصلاح حركة الـ Marquee (اتجاه صحيح + seamless)
   5. إضافة CSS لـ .scroll-indicator show/hide
   6. إضافة n8n Chat Widget overrides بتنسيق الموقع
   7. حذف @import للخطوط الغير مستخدمة (Inter, Space Grotesk)
   ============================================================ */

/* ===== إعادة تعيين القيم الافتراضية للمتصفح ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== المتغيرات العامة ===== */
:root {
  --bg: #0b0f1a;
  --bg-2: #0e1420;
  --bg-3: #111827;
  --primary: #ff2d2d;
  --primary-dark: #cc1b1b;
  --primary-glow: rgba(255, 45, 45, 0.3);
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.85);
  --white-muted: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);

  --font-family: "Plus Jakarta Sans", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== إزالة الخطوط تحت الروابط ===== */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
}

ul,
ol,
li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== تنسيق عام للصور ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-logo-img,
.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.navbar a,
.nav-links a,
.nav-link {
  text-decoration: none !important;
}

.nav-link::after {
  display: none !important;
}

/* ===== إعدادات الجسم الرئيسي ===== */
body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-family);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ===== المؤشر المخصص مع تأثير الفقاعات ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 45, 45, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s;
  box-shadow: 0 0 15px var(--primary);
}

/* تأثير الفقاعات التي تظهر خلف المؤشر عند الحركة */
.cursor-bubble {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.6;
  transform: translate(-50%, -50%);
  animation: bubbleFloat 0.6s ease-out forwards;
}

@keyframes bubbleFloat {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* إخفاء المؤشر المخصص على الأجهزة المحمولة */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-glow,
  .cursor-dot {
    display: none;
  }
}

/* ===== الحاوية الرئيسية ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== المسافات بين الأقسام ===== */
.section-pad {
  padding: 50px 0;
}

/* ===== رأس القسم ===== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* لابل القسم */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 18px;
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: 100px;
  margin-bottom: 0px;
  background: rgba(255, 45, 45, 0.05);
}

/* عنوان القسم الرئيسي */
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* وصف القسم */
.section-desc {
  color: var(--white-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ✅ إصلاح: تم إعادة الـ gradient الحقيقي بدل اللون الثابت */
.text-gradient {
  background: linear-gradient(135deg, #ff2d2d 0%, #ff6b6b 50%, #ff2d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* النص بمخطط خارجي */
.text-outline {
  -webkit-text-stroke: 2px var(--primary);
  color: transparent;
}

/* ===== البطاقات الزجاجية - Glassmorphism ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: all var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 45, 45, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
}

/* ===== الأزرار العامة ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 30px rgba(255, 45, 45, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255, 45, 45, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ===== شريط التنقل Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--transition);
  background: rgba(11, 15, 26, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-logo-img {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--primary-dark);
}

.logo-bracket,
.logo-accent {
  color: var(--primary);
}

.logo-name {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-muted);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 50px;
}

/* ===== قائمة الهامبرغر للهواتف ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 45, 45, 0.3);
  transform: scale(1.05);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  display: block;
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== تجاوب شريط التنقل للهواتف ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 26, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 3.5px;
    font-size: 1rem;
    font-weight: 700;
  }

  .nav-logo-img {
    min-width: 30px;
    min-height: 30px;
    border: 1px solid var(--primary-dark);
  }
}

/* ===== قسم الهيرو المُحدث (Trendy & Glassmorphism) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  /* للتعويض عن الـ Navbar */
  background-color: var(--bg);
}

/* فقاعات ضوئية متحركة في الخلفية */
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-blobs::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(60px);
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatBlob 10s ease-in-out infinite alternate;
}

.blob-1 {
  width: 40vw;
  height: 40vw;
  background: rgba(255, 45, 45, 0.15);
  /* لون أساسي */
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 30vw;
  height: 30vw;
  background: rgba(144, 19, 254, 0.15);
  /* لون مكمل لإعطاء لمسة تريندي */
  bottom: -10%;
  right: -5%;
  animation-delay: -5s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  z-index: 0;
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-20px) rotate(720deg);
    opacity: 0;
  }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge.glass-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.text-gradient {
  background: linear-gradient(135deg, #ff2d2d, #ff7b7b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--white-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-sub strong {
  color: var(--white);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.glass-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 45, 45, 0.05);
  border: 1px solid rgba(255, 45, 45, 0.15);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-tag i {
  color: var(--primary);
  font-size: 1rem;
}

.glass-tag:hover {
  background: rgba(255, 45, 45, 0.15);
  border-color: rgba(255, 45, 45, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 45, 45, 0.1);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.4);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(255, 45, 45, 0.6);
  transform: translateY(-2px);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: -20px;
}

.glass-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--white-muted);
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-4px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(255, 45, 45, 0.3);
}

/* ===== الجزء الأيمن المرئي (Hero Visual) ===== */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
  position: relative;
}

.visual-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.1;
  animation: pulseHeartbeat 5s ease-in-out infinite;
}

.geo-ring-1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.geo-ring-2 {
  width: 125%;
  height: 125%;
  animation-delay: 0.2s;
}

.geo-ring-3 {
  width: 150%;
  height: 150%;
  animation-delay: 0.4s;
}

.geo-diamond {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--primary);
  opacity: 0.15;
  top: -20px;
  left: 20%;
  animation: spinRing 25s linear infinite;
}

.visual-dots-grid {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.15) 2px,
    transparent 2px
  );
  background-size: 15px 15px;
  bottom: -30px;
  right: -30px;
  z-index: 0;
  border-radius: 10px;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseHeartbeat {
  0% {
    transform: scale(0.95);
    opacity: 0.1;
    box-shadow: 0 0 0 rgba(255, 45, 45, 0);
  }

  25% {
    transform: scale(1.05);
    opacity: 0.5;
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.4);
  }

  50% {
    transform: scale(0.95);
    opacity: 0.1;
    box-shadow: 0 0 0 rgba(255, 45, 45, 0);
  }

  75% {
    transform: scale(1.02);
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(255, 45, 45, 0.2);
  }

  100% {
    transform: scale(0.95);
    opacity: 0.1;
    box-shadow: 0 0 0 rgba(255, 45, 45, 0);
  }
}

.profile-img-container {
  width: 280px;
  height: 280px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.profile-img-container:hover {
  transform: rotate(0deg) scale(1.02);
}

.profile-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--primary),
    transparent 30%
  );
  animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
  to {
    transform: rotate(360deg);
  }
}

.profile-image {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  border-radius: 28px;
  position: relative;
  z-index: 1;
  background: var(--bg-2);
}

/* البطاقات العائمة الحديثة (Modern Floating Badges) */
.floating-badge {
  position: absolute;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 4;
  background: rgba(20, 25, 40, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--white);
  animation: floatBadgeModern 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.badge-node {
  top: 25px;
  left: -10px;
  border-left: 3px solid #9013fe;
}

.badge-ads {
  bottom: 25px;
  right: -10px;
  border-right: 3px solid #22c55e;
  animation-delay: -4s;
}

@keyframes floatBadgeModern {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1deg);
  }

  100% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* ===== التجاوب (Responsive) ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 80px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-tags,
  .hero-buttons,
  .hero-socials {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .stat-card-1 {
    right: -10px;
  }

  .stat-card-2 {
    left: -10px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
  }

  .visual-wrapper {
    width: 280px;
    height: 280px;
  }

  .profile-img-container {
    width: 200px;
    height: 200px;
  }

  .stat-card {
    padding: 8px 12px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .stat-info strong {
    font-size: 1rem;
  }

  .glass-card {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* كارت الأوتوميشن */
  .badge-node {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 1.1rem;
  }

  /* كارت الإعلانات */
  .badge-ads {
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    margin-top: 0;
    margin: 2.2rem;
  }

  .hero-buttons {
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons .btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.8rem;
    justify-content: center;
    white-space: nowrap;
  }
}

/* ===== قسم من أنا About ===== */
.about-grid,
.services-grid,
.benefits-grid {
  display: grid;
  gap: 24px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefits-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.benefit-card {
  padding: 36px 28px;
  text-align: center;
}

.service-card {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-card-icon,
.service-icon,
.benefit-icon {
  width: 70px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 45, 45, 0.1);
  border: 1px solid rgba(255, 45, 45, 0.2);
  font-size: 1.8rem;
  color: var(--primary);
}

.about-card h3,
.service-title,
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card p,
.service-desc,
.benefit-card p {
  color: var(--white-muted);
  font-size: 0.92rem;
}

/* ✅ إصلاح: إضافة position: absolute كانت ناقصة */
.featured-card {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 45, 0.08),
    rgba(255, 45, 45, 0.02)
  );
  border-color: rgba(255, 45, 45, 0.3);
  position: relative;
}

.featured-badge {
  position: absolute;
  /* ✅ كانت ناقصة - سبب ظهور البطاقة في مكان غلط */
  top: -1px;
  right: 28px;
  padding: 6px 16px;
  background: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  color: var(--white);
}

.service-features {
  list-style: none;
  margin: 20px 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--white-muted);
}

.service-features li i {
  color: var(--primary);
}

.service-cta {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  margin-top: auto;
  transform: translateY(10px);
}

/* ===== قسم المشاريع ===== */
.projects {
  background: var(--bg-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-preview {
  height: 200px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-info {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.7rem;
  padding: 4px 12px;
  background: rgba(255, 45, 45, 0.1);
  border-radius: 50px;
  color: var(--primary);
}

.btn-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}

/* ===== قسم النتائج والإحصائيات ===== */
/* ✅ إصلاح: حركة Marquee صحيحة واتجاه من اليمين لليسار */
.stats-row-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  padding: 0;
  background-color: var(--primary);
}

/* ✅ الـ track هو اللي يتحرك (بدل كل صف بشكل منفصل) */
.stats-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.stats-track:hover {
  animation-play-state: paused;
}

/* ✅ إصلاح keyframes: من اليمين لليسار (الاتجاه الصحيح) */
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.stats-row {
  display: flex;
  gap: 27px;
  flex-shrink: 0;
  /* ✅ إزالة animation من الصف الفردي - يتحرك الـ track كله */
}

.stat-item {
  flex: 0 0 auto;
  min-width: 200px;
  text-align: center;
  padding: 5px 0;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--bg);
  font-family: var(--font-display);
}

.stat-label {
  color: var(--white);
  font-size: 0.9rem;
}

/* ===== قسم التواصل ===== */
.contact {
  background: var(--bg-2);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info .glass-card {
  color: var(--white);
}

/* ===== تجاوب قسم التواصل للهواتف ===== */
@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-info {
    gap: 16px;
  }
}

/* ===== تجاوب عام للشاشات الصغيرة ===== */
@media (max-width: 768px) {
  .about-grid,
  .services-grid,
  .benefits-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* تجاوب الشاشات المتوسطة (تابلت) */
@media (max-width: 1024px) and (min-width: 769px) {
  .about-grid,
  .services-grid,
  .benefits-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== نموذج التواصل ===== */
.contact-form {
  padding: 38px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group select option {
  background: var(--bg-3);
  color: var(--white);
  padding: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: rgba(255, 45, 45, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-muted);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 8px;
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
  text-align: center;
}

.form-success.show {
  display: block;
}

/* ===== التذييل Footer ===== */
.footer {
  padding: 72px 0 0;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  border-top: 1px solid rgba(255, 45, 45, 0.1);
  color: var(--white-muted);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

/* ===== تجاوب التذييل للهواتف ===== */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo .logo-bracket {
  color: var(--primary);
}

.footer-logo .logo-name {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
  margin-top: 0;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.footer-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition);
  position: relative;
  padding-left: 8px;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 14px;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  flex: 1;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.contact-btn i {
  color: var(--primary);
  font-size: 1rem;
}

.contact-btn:hover {
  color: var(--white);
  padding-left: 8px;
}

.contact-btn:hover i {
  transform: scale(1.2);
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 45, 45, 0.1);
  border: 1px solid rgba(255, 45, 45, 0.2);
  color: var(--primary);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-icon:hover {
  background: rgba(255, 45, 45, 0.2);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 45, 45, 0.3);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 45, 45, 0.3),
    transparent
  );
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-credits {
  font-size: 0.8rem;
  color: var(--white-muted);
  width: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
}

.footer-credits p {
  margin: 4px 0;
}

.heart {
  display: inline-block;
  animation: heartbeat 0.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1);
  }
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-info a {
  color: var(--white-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-info a:hover {
  color: var(--primary);
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== شاشة التابلت (عرض أقل من 1024px) ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-visual {
    order: 1;
  }

  .hero-content {
    order: 2;
    width: 100%;
  }

  .hero-tags,
  .hero-buttons,
  .hero-socials {
    justify-content: center;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== تأثير الظهور عند التمرير Scroll Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="100"] {
  transition-delay: 0.1s;
}

[data-delay="150"] {
  transition-delay: 0.15s;
}

[data-delay="200"] {
  transition-delay: 0.2s;
}

[data-delay="300"] {
  transition-delay: 0.3s;
}

/* ============================================================
   [n8n CHAT WIDGET OVERRIDES - تنسيق الشات بوت بألوان الموقع]
   ============================================================ */

/* زر فتح الشات - مطابق لتصميم الموقع */
.n8n-chat .chat-toggle,
[class*="n8n-chat"] button[class*="toggle"],
.n8n-chat-toggle {
  background: var(--primary) !important;
  box-shadow: 0 0 30px rgba(255, 45, 45, 0.5) !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.n8n-chat .chat-toggle:hover,
[class*="n8n-chat"] button[class*="toggle"]:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 50px rgba(255, 45, 45, 0.7) !important;
}

/* نافذة الشات الرئيسية */
.n8n-chat .chat-window,
[class*="n8n-chat"] [class*="window"] {
  background: var(--bg-2) !important;
  border: 1px solid rgba(255, 45, 45, 0.3) !important;
  border-radius: 20px !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 45, 45, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  font-family: var(--font-family) !important;
}

/* رأس نافذة الشات */
.n8n-chat [class*="header"],
[class*="n8n-chat"] [class*="header"] {
  background: var(--bg-3) !important;
  border-bottom: 1px solid rgba(255, 45, 45, 0.5) !important;
  border-radius: 20px 20px 0 0 !important;
}

/* رسائل البوت */
.n8n-chat [class*="bot-message"],
[class*="n8n-chat"] [class*="bot"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  color: var(--white) !important;
}

/* رسائل المستخدم */
.n8n-chat [class*="user-message"],
[class*="n8n-chat"] [class*="user"] {
  background: var(--primary) !important;
  border-radius: 18px !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(255, 45, 45, 0.3) !important;
}

/* حقل الإدخال */

/* ============================= */
/* 🧼 تنظيف الخلفيات (حل المشكلة) */
/* ============================= */

.n8n-chat [class*="input"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  padding: 5px;
  align-items: center;
}

/* إزالة أي طبقات داخلية زيادة */
.n8n-chat [class*="input"] * {
  background: transparent !important;
}

/* ============================= */
/* ✨ شكل حقل الإدخال الأساسي */
/* ============================= */

.n8n-chat input,
.n8n-chat textarea {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 50px !important;
  color: var(--white) !important;
  font-family: var(--font-family) !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease !important;
}

/* Placeholder */
.n8n-chat input::placeholder,
.n8n-chat textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================= */
/* 🎯 حالة التركيز (Focus) */
/* ============================= */

.n8n-chat input:focus,
.n8n-chat textarea:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  background: rgba(255, 45, 45, 0.05) !important;
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.2) !important;
}

/* ============================= */
/* 🚀 زر الإرسال */
/* ============================= */

.n8n-chat [class*="send"] {
  background: var(--primary) !important;
  border: none !important;
  border-radius: 50% !important;
  color: var(--white) !important;
  transition: all 0.3s ease !important;
}

/* Hover */
.n8n-chat [class*="send"]:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.4) !important;
}

/* منطقة الرسائل */
.n8n-chat [class*="messages"],
[class*="n8n-chat"] [class*="messages"] {
  background: var(--bg) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 45, 45, 0.3) transparent;
}

.n8n-chat [class*="messages"]::-webkit-scrollbar {
  width: 4px;
}

.n8n-chat [class*="messages"]::-webkit-scrollbar-track {
  background: transparent;
}

.n8n-chat [class*="messages"]::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 45, 0.3);
  border-radius: 2px;
}

/* Footer الشات بوت */
.n8n-chat [class*="footer"],
[class*="n8n-chat"] [class*="footer"] {
  background: var(--bg-3) !important;
  border-top: 1px solid rgba(255, 45, 45, 0.15) !important;
  border-radius: 0 0 20px 20px !important;
}

/* تخصيص Scrollbar عام للموقع */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 45, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.chat-layout .chat-body {
  background-color: var(--bg-2);
  padding: 0px;
}

/* ============================================================
   [?? ??????? ???????? ????? ??? - ????? ????? ?????? ????????]
   ============================================================ */
@media (max-width: 768px) {
  /* ??? ????? ?? ??? ??? ??? ?????? (Full-screen) ?????? ???????? */
  .chat-window-wrapper {
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100dvh - 100px) !important;
    bottom: 80px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    position: fixed !important;
  }

  .chat-window-wrapper .chat-window {
    width: 350px !important;
    height: 550px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 45, 45, 0.3) !important;
    margin: 0 !important;
    position: relative !important;
  }

  /* ????? ????? ??????? ????? ???? ???????? */
  .chat-layout {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .chat-layout .chat-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
  }

  /* ????? ??? ??? ??????? ??? ???????? ???? ????? ?? ??????? */
  .n8n-chat [class*="input"],
  .n8n-chat textarea {
    font-size: 16px !important;
  }

  /* ===== تصغير الخطوط على شاشات الهاتف بناءً على طلب العميل ===== */
  body {
    font-size: 15px;
  }

  .hero-container {
    width: 100%;
    padding: 0 5%;
    gap: 30px;
  }

  .hero-headline {
    font-size: 2.4rem !important;
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  .hero-sub {
    font-size: 1.05rem;
    max-width: 100%;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  /* إخفاء الفواصل الإجبارية للسماح للنص بأخذ كامل العرض */
  .hero-headline br,
  .hero-sub br {
    display: none;
  }

  /* تصغير كروت الهيرو حول الصورة */
  .floating-badge {
    font-size: 0.65rem !important;
    padding: 6px 12px !important;
  }

  .badge-node {
    left: -20px !important;
    top: 20px !important;
  }

  .badge-ads {
    right: -10px !important;
    bottom: -10px !important;
  }

  /* تصغير مسافات نموذج التواصل */
  .contact-form {
    padding: 20px !important;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px !important;
  }
}
