/* ===========================
   ROOT COLORS (GRADIENT THEME)
   =========================== */
:root {
  /* الخلفية الأساسية: برتقالي دافي ناعم إلى غامق */
  --bg-gradient-start: #f6b17a;  /* برتقالي باستيل هادي من الشمال */
  --bg-gradient-mid:   #e07a4e;  /* برتقالي محروق أعمق في النص */
  --bg-gradient-end:   #020617;  /* أسود/كحلي غامق من اليمين */

  --bg-main: transparent;
  --bg-alt: rgba(15, 23, 42, 0.35);

  --bg-card: #ffffff;
  --bg-card-dark: #121b30;

  --accent: #fe7f2b;
  --accent-soft: rgba(254, 127, 43, 0.18);

  --text-main: #f9fafb;
  --text-muted: #d1d5db;

  --border-soft: rgba(148, 163, 184, 0.4);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.7);
  --transition-fast: 0.2s ease-out;
}


/* ===========================
   GLOBAL
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: linear-gradient(
    120deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-mid) 30%,
    var(--bg-gradient-end) 80%
  );
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lang-ar-active {
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* إظهار/إخفاء اللغات */
.lang-ar {
  display: none;
}

body.lang-ar-active .lang-en {
  display: none;
}

body.lang-ar-active .lang-ar {
  display: inline;
}

/* حاوية عامة */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ===========================
   HEADER / NAVBAR
   =========================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
  border-bottom: 1px solid var(--border-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0.5rem;
}

/* اللوجو */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.95);
  padding: 6px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-en,
.brand-ar {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


/* الروابط */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  position: relative;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #e5e7eb;
  transition: background var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe7f2b, #ffd08c);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: var(--accent-soft);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* زر اللغة */
.lang-toggle {
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.4);
  background: radial-gradient(circle at 30% 0, #ffe8d4, #fe7f2b);
  color: #111827;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(254, 127, 43, 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


/* ===========================
   HERO SECTION (HOME)
   =========================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;

  background-image: url("../img/hero/main-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* طبقة غامقة فوق الصورة */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.7),
    rgba(2, 6, 23, 0.35)
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 4rem 2rem 3.5rem;

  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  max-width: 40rem;
  color: #f9fafb;
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}


/* الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.primary-btn {
  background: radial-gradient(circle at 20% 0, #ffe8d4, #fe7f2b);
  color: #111827;
  box-shadow: 0 16px 40px rgba(254, 127, 43, 0.7);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(254, 127, 43, 0.8);
}

.ghost-btn {
  background: transparent;
  color: #f9fafb;
  border-color: rgba(249, 250, 251, 0.7);
}

.ghost-btn:hover {
  background: rgba(15, 23, 42, 0.6);
}


/* الإحصائيات تحت الأزرار */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--bg-card-dark);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  font-size: 0.82rem;
}

.highlight-number {
  font-weight: 600;
  color: #ffc977;
}

.highlight-label {
  color: #e5e7eb;
}


/* الكارد الأبيض على يمين الهيرو */
.hero-side-card {
  align-self: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  color: #111827;
}

.side-card-title {
  font-size: 1.02rem;
  margin: 0 0 0.9rem;
}

.side-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-card-list li {
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.side-card-list li:last-child {
  border-bottom: none;
}


/* ===========================
   PAGE HERO (OTHER PAGES)
   =========================== */

.page-hero {
  padding: 3rem 0 2rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.page-title {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
  color: #f9fafb;
}

.page-intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 0.98rem;
}


/* ===========================
   SECTIONS & LAYOUTS
   =========================== */

.section {
  padding: 2.7rem 0 3rem;
  background: transparent;
}

.section-alt {
  background: rgba(15, 23, 42, 0.45);
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: #f9fafb;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.05rem;
  color: #f9fafb;
}

/* عنوان الكارد الأبيض في About */
.about-highlight-box .section-subtitle {
  color: #111827;
  opacity: 1;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}


/* ===========================
   CARDS (ABOUT / SERVICES / CONTACT / PROJECTS)
   =========================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-highlight-box,
.contact-form,
.projects-table-wrapper,
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
  color: #111827;
}

/* عنوان فورم تواصل معنا يكون غامق وواضح */
.contact-form .section-title {
  color: #111827;
}

.contact-form .section-title span {
  color: #111827;
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
}


/* قائمة منقطة */
.check-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: #4b5563;
}

body.lang-ar-active .check-list li {
  padding-inline-start: 0;
  padding-inline-end: 1.4rem;
}

.check-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--accent);
}


/* ===========================
   SERVICES CARDS (HOVER CIRCLE)
   =========================== */

.cards-grid .card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s.ease-out,
    background 0.25s ease-out;
}

/* الدويرة اللي في الكورنر للكروت بتاعة الخدمات */
.services-grid .card::before {
  content: "";
  position: absolute;
  inset-inline-end: 1.3rem;
  inset-block-start: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: radial-gradient(circle at 30% 20%, rgba(254, 127, 43, 0.5), transparent);
  box-shadow: 0 6px 14px rgba(254, 127, 43, 0.4);
  transition:
    transform 0.35s ease-out,
    box-shadow 0.35s ease-out,
    background 0.35s ease-out,
    opacity 0.35s ease-out;
}


/* ===========================
   PROJECTS TABLE
   =========================== */

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.projects-table th,
.projects-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: start;
}

.projects-table thead {
  background: #f3f4f6;
}

.projects-table th {
  font-weight: 600;
  color: #111827;
}

.projects-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.projects-table tbody tr:hover {
  background: #e5f2ff;
}

.projects-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}


/* ===========================
   CONTACT
   =========================== */

.contact-layout {
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.95rem;
}

.contact-list li {
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.contact-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #f9fafb;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #111827;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 0.92rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(254, 127, 43, 0.25);
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #6b7280;
}


/* ===========================
   FOOTER
   =========================== */

.main-footer {
  margin-top: auto;
  padding: 1.4rem 0 1.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.6);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.75)
  );
}

.footer-content {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-contact {
  margin-top: 0.35rem;
}


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
  }

  .nav-link {
    padding: .35rem .7rem;
    font-size: .82rem;
  }

  .nav-container {
    flex-wrap: wrap;
    row-gap: .6rem;
  }
}

@media (max-width: 720px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-text {
    display: none;
  }

  .projects-table th,
  .projects-table td {
    font-size: 0.8rem;
  }
}


/* ===========================
   ANIMATIONS - SUBTLE & ELEGANT
   =========================== */

/* حركة بسيطة لفوق */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* نبضة نعمة للأزرار */
@keyframes softPulse {
  0% {
    box-shadow: 0 16px 40px rgba(254, 127, 43, 0.6);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 22px 55px rgba(254, 127, 43, 0.85);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 16px 40px rgba(254, 127, 43, 0.6);
    transform: translateY(0);
  }
}

/* --- Hero intro animation --- */
.hero-title {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.05s forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.2s forwards;
}

.hero-actions {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.35s forwards;
}

.hero-highlights {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.5s forwards;
}

.hero-side-card {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.45s forwards;
}

/* --- Hover على الكروت والأرقام --- */
.card,
.highlight-item,
.hero-side-card {
  transition: transform 0.22s.ease-out, box-shadow 0.22s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.75);
}

.highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* --- زر المشروع الرئيسي نبضة خفيفة --- */
.primary-btn {
  animation: softPulse 2.8s ease-in-out 1.2s infinite;
}

/* نخلي كل السكاشن والكروت ظاهرة فورًا بدون تأخير */
.section {
  opacity: 1;
  transform: translateY(0);
}

/* الأنيميشن للكروت / البوكسات فقط */
.card,
.about-highlight-box,
.projects-table-wrapper {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.in-view,
.about-highlight-box.in-view,
.projects-table-wrapper.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ===========================
   Elegant hover animation for service cards
   =========================== */

.cards-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
  border-color: rgba(254, 127, 43, 0.35);
  background: #ffffff;
}

.services-grid .card:hover::before {
    
  transform: translateY(-6px) translateX(-4px) scale(1.1);
  box-shadow: 0 12px 26px rgba(254, 127, 43, 0.7);
  background: radial-gradient(
    circle at 25% 15%,
    rgba(255, 192, 120, 0.95),
    rgba(254, 127, 43, 0.7)
  );
}
.services-grid .card {
  position: relative;
  overflow: hidden;
}

.services-grid .card::before {
  z-index: 0;
  pointer-events: none;
}

/* خلي محتوى الكارت كله فوق الزخرفة */
.services-grid .card > * {
  position: relative;
  z-index: 1;
}

.cards-grid .card:hover h2,
.cards-grid .card:hover h3 {
  color: #111827;
}

.cards-grid .card:hover p {
  color: #4b5563;
}


/* ===========================
   PROJECTS - CLIENT LIST
   =========================== */

.clients-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-top: 1.7rem;
}

/* الكرت نفسه */
.client-card {
  padding: 1.6rem 1.9rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.45);
  color: #111827;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out,
    background 0.25s ease-out;
  position: relative;
}

/* لمسة بسيطة على الحافة */
.client-card::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fe7f2b, #facc76);
  opacity: 0.9;
}

/* اللينك جوّه الكرت */
.client-link {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  text-decoration: none;
  color: inherit;
}

/* أنيميشن بداية للكروت */
.client-card {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease-out forwards;
}

/* Stagger لطيف */
.clients-list .client-card:nth-child(1) { animation-delay: 0.10s; }
.clients-list .client-card:nth-child(2) { animation-delay: 0.18s; }
.clients-list .client-card:nth-child(3) { animation-delay: 0.26s; }
.clients-list .client-card:nth-child(4) { animation-delay: 0.34s; }
.clients-list .client-card:nth-child(5) { animation-delay: 0.42s; }
.clients-list .client-card:nth-child(6) { animation-delay: 0.50s; }
.clients-list .client-card:nth-child(7) { animation-delay: 0.58s; }
.clients-list .client-card:nth-child(8) { animation-delay: 0.66s; }
.clients-list .client-card:nth-child(9) { animation-delay: 0.74s; }
.clients-list .client-card:nth-child(10) { animation-delay: 0.82s; }

/* ✅ تعديل وضوح لوجوهات Projects (بدون تكسير أي حاجة تانية) */
.client-logo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 34px;

  /* بدل الخلفية الغامقة اللي كانت بتخنق اللوجو */
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background 0.25s ease-out;
}

.client-logo{
  width: 120px;
  height: 120px;
  object-fit: contain;

  /* وضوح أعلى */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25))
          brightness(1.08)
          contrast(1.18);
}

/* النصوص جنب اللوجو */
.client-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.client-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.client-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.client-value {
  margin: 0.4rem 0 0.45rem;
  font-size: 0.95rem;
}

.client-value .amount {
  font-weight: 800;
  color: var(--accent);
}

/* زر عرض المشاريع */
.client-btn {
  margin-top: 0.25rem;
  align-self: flex-start;
  font-size: 0.85rem;
  padding-inline: 1.4rem;
}

/* هوفر جمالي */
.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.85);
  border-color: rgba(254, 127, 43, 0.6);
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
}

.client-card:hover .client-logo-wrap {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.32);
  transform: translateY(-2px) scale(1.02);
}

.client-card:hover .client-logo{
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.28))
          brightness(1.07)
          contrast(1.14);
}

/* زر عرض المشاريع داخل كرت العميل */
.client-card .client-btn {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.55);
}

.client-card:hover .client-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #111827;
}

/* موبايل */
@media (max-width: 720px) {
  .client-card {
    padding: 1.2rem 1.3rem 1.3rem 1.4rem;
  }

  .client-link {
    align-items: flex-start;
    gap: 1.2rem;
  }

  /* كان 120×120 */
.client-logo-wrap{
  width: 150px;
  height: 150px;
  border-radius: 38px;
}


  .client-logo {
    max-width: 74px;
    max-height: 74px;
  }

  .client-name {
    font-size: 1.05rem;
  }

  .client-desc,
  .client-value {
    font-size: 0.9rem;
  }
}


/* ===========================
   PROJECTS HERO (NARESCO STYLE)
   =========================== */

.projects-hero {
  position: relative;
  padding: 3.5rem 0 3.2rem;
  overflow: hidden;
}

.projects-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.75),
      rgba(224, 122, 78, 0.35)
    );
  pointer-events: none;
}

.projects-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2.3rem;
}

.projects-hero-text .page-title {
  margin-bottom: 0.8rem;
}

.projects-hero-text .page-intro {
  margin-bottom: 1.3rem;
}

.projects-breadcrumb {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(229, 231, 235, 0.9);
  opacity: 0.9;
}

/* Stats box on the right */
.projects-hero-stats {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
}

.projects-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.projects-stat + .projects-stat {
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  padding-top: 0.6rem;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(209, 213, 219, 0.95);
}

.stat-number {
  font-weight: 700;
  font-size: 1rem;
  color: #facc76;
}

/* RESPONSIVE FOR PROJECTS HERO */
@media (max-width: 900px) {
  .projects-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-hero-stats {
    margin-top: 1.4rem;
  }
}


/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
  padding: 2.7rem 0 3.1rem;
  background: transparent;
}

.cta-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 2.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  color: #111827;

  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease-out 0.15s forwards;
}

.cta-text {
  max-width: 650px;
}

.cta-title {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  color: #111827;
}

.cta-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4b5563;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
  min-width: 210px;
}

.cta-card .btn {
  min-width: 170px;
  justify-content: center;
}

/* موبايل */
@media (max-width: 900px) {
  .cta-card {
    padding: 1.6rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

/* زر تصفح مشاريعنا داخل كرت الـ CTA */
.cta-card .ghost-btn {
  background: transparent;
  color: #111827;
  border-color: #d1d5db;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

/* هوفر جميل للزر */
.cta-card .ghost-btn:hover {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}


/* ===========================
   CONTACT PAGE – BACKGROUND & PREMIUM FEEL
   =========================== */

/* خلفية بالصورة لسكشن الكونتاكت */
body.contact-page .section-alt {
  position: relative;
  background: transparent;
  overflow: hidden;
}

/* صورة الخلفية */
body.contact-page .section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/contact/contact-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* أوفرلاي بألوان البرتقالي + الأزرق الغامق */
body.contact-page .section-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 0,
      rgba(254, 127, 43, 0.32),
      transparent 55%
    ),
    linear-gradient(
      to right,
      rgba(2, 6, 23, 0.90),
      rgba(10, 16, 32, 0.88),
      rgba(2, 6, 23, 0.70)
    );
  z-index: -1;
}

/* أرقام / إيميلات تبقى من الشمال لليمين حتى في العربي */
.ltr-value {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
}
body.lang-ar-active .ltr-value {
  text-align: left;
}

/* 1) توهّج خفيف في خلفية الهيرو */
body.contact-page .page-hero {
  position: relative;
  overflow: hidden;
}

body.contact-page .page-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(254, 127, 43, 0.32), transparent 65%);
  opacity: 0.8;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: contactHeroGlow 16s ease-in-out infinite alternate;
}

@keyframes contactHeroGlow {
  0% {
    transform: translate3d(-20px, -10px, 0) scale(1);
  }
  50% {
    transform: translate3d(8px, 4px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(18px, 12px, 0) scale(1.04);
  }
}

/* 2) دخول ناعم للعنوان والوصف في الهيرو */
body.contact-page .page-hero .page-title,
body.contact-page .page-hero .page-intro {
  opacity: 0;
  transform: translateY(26px);
  animation: contactFadeUp 0.9s ease-out forwards;
}

body.contact-page .page-hero .page-intro {
  animation-delay: 0.18s;
}

/* 3) دخول ناعم لسكشن الفورم + بيانات المكتب */
body.contact-page .contact-layout {
  opacity: 0;
  transform: translateY(28px);
  animation: contactFadeUp 0.95s ease-out 0.25s forwards;
}

@keyframes contactFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4) ستاجر بسيط لعناصر بيانات المكتب */
body.contact-page .contact-list li {
  opacity: 0;
  transform: translateY(18px);
  animation: contactFadeUp 0.75s ease-out forwards;
}

body.contact-page .contact-list li:nth-child(1) { animation-delay: 0.35s; }
body.contact-page .contact-list li:nth-child(2) { animation-delay: 0.42s; }
body.contact-page .contact-list li:nth-child(3) { animation-delay: 0.49s; }
body.contact-page .contact-list li:nth-child(4) { animation-delay: 0.56s; }
body.contact-page .contact-list li:nth-child(5) { animation-delay: 0.63s; }

/* 5) كارت الفورم – هوفر محترم */
body.contact-page .contact-form {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

body.contact-page .contact-form::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(254, 127, 43, 0);
  pointer-events: none;
  transition: border-color 0.35s.ease-out, box-shadow 0.35s ease-out;
}

body.contact-page .contact-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.85);
}

body.contact-page .contact-form:hover::before {
  border-color: rgba(254, 127, 43, 0.5);
}

/* 6) إنيميشن زر إرسال الرسالة */
body.contact-page .contact-form .primary-btn {
  animation: contactButtonPulse 3.4s ease-in-out infinite;
}

@keyframes contactButtonPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 16px 40px rgba(254, 127, 43, 0.6);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 22px 55px rgba(254, 127, 43, 0.9);
  }
}


/* ===========================
   ABOUT PAGE HERO BACKGROUND
   =========================== */

.about-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: #ffffff;

  background-image: url("../img/hero/about-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  padding: 3.5rem 0 3rem;
}

/* أوفرلاي غامق */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2, 6, 23, 0.82),
    rgba(2, 6, 23, 0.55),
    rgba(2, 6, 23, 0.20)
  );
  pointer-events: none;
}

/* النص فوق الأوفرلاي */
.about-hero .container {
  position: relative;
  z-index: 1;
}


/* ===========================
   SERVICES PAGE HERO BACKGROUND
   =========================== */

.services-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #ffffff;

  background-image: url("../img/hero/services-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  padding: 3.5rem 0 3rem;
}

/* أوفرلاي أغمق شوية للنص */
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.78),
    rgba(2, 6, 23, 0.45)
  );
  pointer-events: none;
}

/* الكونتينر فوق الأوفرلاي */
.services-hero .container {
  position: relative;
  z-index: 1;
}

/* توضيح العنوان في هيرو الخدمات */
.services-hero .page-title {
  color: #f9fafb;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

/* توضيح الفقرة في هيرو الخدمات */
.services-hero .page-intro {
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.9;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
}
/* ===========================
   ABOUT & SERVICES HERO ANIMATIONS
   =========================== */

.about-hero .page-title,
.about-hero .page-intro,
.services-hero .page-title,
.services-hero .page-intro {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out forwards;
}

/* العنوان يدخل الأول */
.about-hero .page-title,
.services-hero .page-title {
  animation-delay: 0.05s;
}

/* وبعدين الوصف */
.about-hero .page-intro,
.services-hero .page-intro {
  animation-delay: 0.18s;
}
/* ===========================
   PAGE HERO ANIMATIONS
   (About / Services / Projects)
   =========================== */

/* عنوان الصفحات يدخل بفيد أب */
.about-hero .page-title,
.services-hero .page-title,
.projects-hero .page-title {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.05s forwards;
}

/* النص التعريفي تحت العنوان يدخل بعده بشوية */
.about-hero .page-intro,
.services-hero .page-intro,
.projects-hero .page-intro {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.18s forwards;
}

/* بوكس الإحصائيات في صفحة المشاريع يدخل متأخر شوية */
.projects-hero-stats {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease-out 0.3s forwards;
}
/* ===========================
   REVIEWS SECTION
   =========================== */

.reviews-section {
  margin-top: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.4rem;
  color: #111827;
}

.review-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.review-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.review-stars {
  font-size: 0.9rem;
  white-space: nowrap;
}

.review-stars .star {
  opacity: 0.22;
}

.review-stars .star.filled {
  opacity: 1;
  color: #fbbf24;
}

.review-date {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.review-message {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.no-reviews {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* فورم الريفيو */
.review-form-card {
  margin-top: 2rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.95);
  padding: 1.8rem 1.9rem;
}

.review-form-card .section-subtitle {
  margin-top: 0;
  text-align: center;
  color: #f9fafb;
}

.review-form .form-group label {
  color: #e5e7eb;
}

.review-form .form-group input,
.review-form .form-group textarea,
.review-form .form-group select {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(148, 163, 184, 0.9);
  color: #f9fafb;
}

.review-form .form-group input::placeholder,
.review-form .form-group textarea::placeholder {
  color: #9ca3af;
}

.review-success {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #22c55e;
  font-weight: 500;
}

.review-error {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #f97373;
  font-weight: 500;
}

@media (max-width: 720px) {
  .review-form-card {
    padding: 1.5rem 1.3rem;
  }
}
.form-alert {
  max-width: 1100px;
  margin: 1rem auto 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.form-alert .success-msg {
  background: #e6ffed;
  color: #137333;
}

.form-alert .error-msg {
  background: #ffe6e6;
  color: #b00020;
}

/* ======================================================
   ✅ FIXED: Government clients logos grid (HOME PAGE)
   (نسخة واحدة فقط - بدون تكرار)
   ====================================================== */

.clients-logo-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 230px));
  gap: 2.5rem 3rem;
  justify-content: center;
  align-items: stretch;
}

/* كارت كل لوجو */
.client-logo-box{
  position: relative;
  padding: 1.2rem 1.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Plate أبيض قوي خلف اللوجو */
.client-logo-box::before{
  content:"";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  z-index: 0;
}

/* اللوجو نفسه */
.client-logo-box img{
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 105px;
  object-fit: contain;
  display: block;

  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.30))
          brightness(1.08)
          contrast(1.15);
}

/* Hover */
.client-logo-box:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.client-logo-box:hover img{
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.35))
          brightness(1.10)
          contrast(1.18);
}

/* موبايل */
@media (max-width: 768px) {
  .clients-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .client-logo-box {
    padding: 1.1rem 1rem;
  }
  .client-logo-box img {
    max-height: 85px;
  }
}

/* ======================================================
   باقي كودك زي ما هو بعد قسم اللوجوهات
   ====================================================== */

/* صف الهيرو اللي فيه الكارت الأبيض والكروت التلاتة */
.hero-bottom-row {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

/* الكارت الأبيض اللي على الشمال (أهم الجهات الشريكة) */
.hero-partners-card {
  flex: 0 0 420px; /* زي ما تحب العرض */
}

/* الكروت التلاتة على اليمين */
.hero-highlights {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* تفضل لازقة في اليمين */
  gap: 1.5rem;
}

/* شكل كل كارت */
.highlight-item {
  background: rgba(2, 6, 23, 0.95);
  border-radius: 999px;
  padding: 1.25rem 2rem;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #f9fafb;
}

/* الرقم يكون كبير وواضح */
.highlight-number {
  font-size: 1.6rem;     /* كبّر أو صغّر براحتك */
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  white-space: nowrap;   /* عشان AED 400M ما يتقسمش سطرين */
}

/* النص تحت الرقم */
.highlight-label {
  font-size: 0.9rem;
  opacity: 0.9;
}
/* إصلاح النقط فوق النص في لمحة سريعة */
.about-highlight-box .check-list li::before {
  content: none;
}

.client-link{
  gap: 2.1rem; /* كان 1.7rem */
}
body.dark { background:#0f172a; color:#e5e7eb; }
body.dark a { color:#93c5fd; }
body.dark .card { background:#111827; border-color:#1f2937; }
body.dark .main-header { background:#0b1220; border-bottom:1px solid #1f2937; }
.theme-toggle{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}




