#about-us {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ---------- Intro: Text + Image ---------- */
.about-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-content {
  flex: 1 1 400px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--muted-text);
}

.about-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--accent-glow);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
}

/* ---------- Mission & Principles ---------- */
.mission-principles {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.mission-principles > div {
  flex: 1 1 300px;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mission-principles > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--accent-glow);
}

.mission-principles h3 {
  font-size: 1.5rem;
  color: var(--accent-alt);
  margin-bottom: 0.8rem;
}

.mission-principles p {
  line-height: 1.5;
  color: var(--muted-text);
}

/* ================= How We Work Section ================= */
/* ================= How We Work Section ================= */
.how-we-work-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center; /* لجعل العنوان بالوسط */
}

.how-we-work-container h3 {
  font-size: 1.75rem;
  color: var(--accent-alt);
  position: relative;
  display: inline-block;
  margin: 0 auto 1rem auto;
}

/* خط تحته */
.about-content h2::after,
.mission-principles h3::after,
.founder-content h3::after,
.how-we-work-container h3::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--pruble),
    var(--accent-alt)
  );
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

/* ---------- Cards + Arrows ---------- */
.how-we-work {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.how-we-work .step {
  flex: 0 0 180px;
  height: 160px;
  padding: 1rem 1.5rem;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--accent-glow);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-top: 3px solid var(--accent-alt); /* إضافة لون من المتغيرات */
}

.how-we-work .step:nth-child(1) {
  animation-delay: 0.2s;
}
.how-we-work .step:nth-child(3) {
  animation-delay: 0.4s;
}
.how-we-work .step:nth-child(5) {
  animation-delay: 0.6s;
}
.how-we-work .step:nth-child(7) {
  animation-delay: 0.8s;
}

.how-we-work .step h4 {
  font-size: 1.2rem;
  color: var(--pruble);
  margin-bottom: 0.5rem;
}

.how-we-work .step p {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* Arrows between steps */
.how-we-work .arrow {
  flex: 0 0 40px;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.how-we-work .arrow:nth-child(2) {
  animation-delay: 0.3s;
}
.how-we-work .arrow:nth-child(4) {
  animation-delay: 0.5s;
}
.how-we-work .arrow:nth-child(6) {
  animation-delay: 0.7s;
}

/* ================= Animations ================= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================= Responsive ================= */
/* ========= iPad / Tablets ========= */
@media (min-width: 768px) and (max-width: 1024px) {
  .about-intro {
    flex-direction: row; /* أو column إذا تريد تحت */
    gap: 1rem; /* تقليل المسافة بين النص والصورة */
  }

  .about-content {
    flex: 1 1 50%; /* النص يأخذ نصف المساحة */
  }

  .about-image {
    flex: 1 1 50%; /* الصورة تأخذ نصف المساحة */
    justify-content: center; /* توسيط الصورة */
  }

  .about-image img {
    max-width: 100%; /* السماح للصورة بالتوسع حسب العمود */
    width: auto;
    height: auto; /* يحافظ على نسبة الطول للعرض */
  }
  .how-we-work {
    display: flex;
    flex-wrap: wrap; /* السماح بالانتقال للأسفل */
    gap: 1rem;
    justify-content: center; /* أو center حسب رغبتك */
  }

  .how-we-work .step {
    flex: 1 1 180px; /* الحد الأدنى 180px لكن يمكن التوسع */
    max-width: 150px; /* يمنع أن تصبح كبيرة جدًا */
  }
  .how-we-work .step h4 {
    font-size: 1rem; /* تصغير عنوان المربع */
  }

  .how-we-work .step p {
    font-size: 0.85rem; /* تصغير النص */
    line-height: 1.3;
  }

  .how-we-work .arrow {
    flex: 0 0 30px; /* تقليل حجم الأسهم */
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  #about-us {
    padding: 1rem;
  }
  .about-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-content {
    flex: 1 1 10px;
  }
  .about-image {
    justify-content: flex-start;
  }
  .about-image img {
    width: 100%;
    max-width: 100%;
  }
  .about-content h2 {
    font-size: 2rem;
  }
  .mission-principles {
    flex-direction: column;
  }
  .how-we-work {
    flex-direction: column;
    align-items: center;
  }
  .how-we-work .arrow {
    transform: none; /* إزالة أي دوران سابق */
  }
  .how-we-work .arrow::after {
    content: "↓"; /* السهم العمودي للهاتف */
    display: block;
    font-size: 2rem;
    color: var(--accent);
  }
  .how-we-work .arrow {
    font-size: 0; /* إخفاء السهم الأصلي في HTML */
  }
}

/* ========== About Founder Section ========== */
/* ========== About Founder – Soft Neumorphism Premium Style 2026 ========== */
/* ========== About Founder Card ========== */
.founder-wrapper {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem;
}

.founder-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--bg-color);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2);
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(79, 70, 229, 0.35);
}

/* ========== Image Side ========== */
.founder-image-container {
  flex: 1 1 350px;
  position: relative;
  perspective: 1000px;
}

.founder-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.founder-image img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.founder-image:hover img {
  transform: scale(1.05) rotateY(5deg);
  filter: brightness(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.25),
    rgba(59, 130, 246, 0.15)
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.founder-image:hover .image-overlay {
  opacity: 0.5;
}

/* ========== Text Side ========== */
.founder-content {
  flex: 1 1 500px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideInRight 1s ease forwards;
  opacity: 0;
}

.founder-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--pruble),
    var(--accent-alt)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.founder-content .lead {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.founder-content p {
  color: var(--muted-text);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

/* ========== Animations ========== */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-content {
    padding: 1.5rem 1rem;
  }
  .founder-image-container {
    flex: 1 1 80%;
    margin-bottom: 1.5rem;
  }
  .founder-content h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .founder-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
  }
  .founder-content h3 {
    font-size: 1.6rem;
  }
  .founder-content p,
  .founder-content .lead {
    font-size: 0.95rem;
  }
}
