/* ====================================
   1. الهيكل العام والخلفية (Global Setup)
   ==================================== */
.fade-out {
    animation: fadeOut 0.6s forwards;
}

.fade-in {
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


body {
  margin: 0;
  font-family: "Poppins", "Tajawal", sans-serif;
  background: linear-gradient(135deg, #00364A 0%, #022A38 35%, #04141C 70%, #03090D 100%);
  color: #fff;
  min-height: 100vh;
  display: block;
}

/* الكور الخلفية (Orbs) */
.orbit-orbs {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.orbit-orbs div {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
}

.orbit-orbs .orb1 {
  width: 260px;
  height: 260px;
  background: rgba(106, 185, 206, 0.22);
  top: 10%;
  left: 15%;
}

.orbit-orbs .orb2 {
  width: 340px;
  height: 340px;
  background: rgba(66, 116, 132, 0.20);
  bottom: 12%;
  right: 18%;
}

.orbit-orbs .orb3 {
  width: 200px;
  height: 200px;
  background: rgba(106, 185, 206, 0.18);
  top: 50%;
  left: 60%;
}


 .header {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0) !important;
}

.header-content {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.orbit-logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  transition: 0.25s ease;
  white-space: nowrap;
}

.nav a:hover {
  opacity: 1;
  color: #6AB9CE;
}

.lang-btn {
  background: rgba(106, 185, 206, 0.15) !important;
  border: 1px solid #6AB9CE !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
}

.lang-btn:hover {
  background: rgba(106, 185, 206, 0.35) !important;
  box-shadow: 0 0 12px rgba(106, 185, 206, 0.3) !important;
}

/* ====================================
   3. قسم الهيرو (Hero Section)
   ==================================== */
.hero {
  width: 90%;
  max-width: 1200px;
  margin: 80px auto;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-left, .hero-right {
  flex: 1;
}

.hero-left {
  max-width: 500px;
}

.hero-kicker {
  color: #6AB9CE;
  letter-spacing: 0.18em;
  font-size: 14px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-right {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0px 0px 35px rgba(106, 185, 206, 0.35));
  transform: translateY(-10px);
  transition: 0.35s ease;
}

/* ====================================
   4. قسم الحاوية والمشاريع (Portfolio & Showcase)
   ==================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-header h1 span {
  color: #6AB9CE;
}

.page-header p {
  color: #DCE7E4;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 15px;
}

.header-line {
  width: 80px;
  height: 3px;
  background: #6AB9CE;
  margin: 0 auto;
  border-radius: 2px;
}

/* شريط الإحصائيات */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(106, 185, 206, 0.15);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(6px);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: #6AB9CE;
  margin-bottom: 5px;
}

.stat-label {
  color: #DCE7E4;
  font-size: 14px;
  opacity: 0.85;
}

/* الفلاتر */
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(106, 185, 206, 0.15);
  border: 1px solid #6AB9CE;
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #6AB9CE;
  color: #03090D;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(106, 185, 206, 0.4);
}

/* قسم الأعمال الفردي (Portfolio Section) */
.portfolio {
  width: 90%;
  max-width: 1200px;
  margin: 100px auto 140px auto;
  padding: 80px 0;
  text-align: center;
}

.portfolio-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-title {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(106, 185, 206, 0.4);
}

.portfolio-sub {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.title-arrow {
  display: block;
  font-size: 55px;
  margin-top: 18px;
  color: #6AB9CE;
  font-weight: bold;
  animation: arrowBounce 1.3s infinite ease-in-out;
}

@keyframes arrowBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio-grid img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: drop-shadow(0px 0px 20px rgba(106, 185, 206, 0.25));
  transition: 0.3s;
  cursor: pointer;
}

.portfolio-grid img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0px 0px 30px rgba(106, 185, 206, 0.35));
}

.portfolio-item {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.portfolio-item img {
  border: 1px solid #222;
}

.work-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #6AB9CE;
}

.work-img-large {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  margin-bottom: 15px;
  padding: 0;
}

.work-desc {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* شبكة كروت المشاريع (Projects Grid) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(106, 185, 206, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #6AB9CE;
  box-shadow: 0 10px 25px rgba(106, 185, 206, 0.15);
}

.project-card.hidden {
  display: none;
}

.card-image {
  height: 150px;
  background: rgba(0, 54, 74, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(3, 9, 13, 0.85);
  border: 1px solid #6AB9CE;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #6AB9CE;
}

html[dir="ltr"] .card-badge {
  right: auto;
  left: 12px;
}

.card-icon {
  font-size: 40px;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #6AB9CE;
}

.card-desc {
  font-size: 14.5px;
  opacity: 0.85;
  margin-bottom: 18px;
  flex-grow: 1;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tag {
  background: rgba(106, 185, 206, 0.15);
  border: 1px solid rgba(106, 185, 206, 0.3);
  color: #6AB9CE;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-arrow {
  font-size: 18px;
  color: #6AB9CE;
}

/* ====================================
   5. أزرار الأكشن، CTA والفوتر
   ==================================== */
.details-btn {
  margin-top: 12px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #00e0ff, #0077ff);
  border: none;
  border-radius: 999px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.details-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
}

.faq-btn {
  text-decoration: none !important;
  background: #fff;
  color: #03090D;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-block;
}

.faq-btn:hover {
  background: #6AB9CE;
  color: #03090D;
  box-shadow: 0 0 12px rgba(106, 185, 206, 0.4);
}

.back-btn-wrapper {
  width: 100%;
  text-align: center;
  margin: 40px 0;
}

.back-btn {
  display: inline-block;
  background: rgba(106, 185, 206, 0.15);
  border: 1px solid #6AB9CE;
  color: #6AB9CE;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.back-btn:hover {
  background: rgba(106, 185, 206, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(106, 185, 206, 0.2);
}

.cta-section {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  border: 1px solid rgba(106, 185, 206, 0.15);
  backdrop-filter: blur(6px);
}

.cta-section h2 { font-size: 28px; margin-bottom: 10px; }
.cta-section p { margin-bottom: 20px; opacity: 0.85; }

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #00e0ff, #0077ff);
  color: #000;
  padding: 10px 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
}

.footer {
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(106, 185, 206, 0.18);
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.6;
}

/* ====================================
   6. دعم اللغات (RTL / LTR)
   ==================================== */
body.arabic { direction: rtl; }
body.arabic .nav { direction: rtl; }
body.arabic .hero-content { flex-direction: row-reverse !important; }
body.arabic .hero-kicker { font-size: 18px; letter-spacing: 0; }
body.arabic .portfolio-title { font-size: 34px; }
body.arabic .portfolio-sub { font-size: 18px; }

body.english { direction: ltr; }
body.english .nav { direction: ltr; }
body.english .hero-content { flex-direction: row !important; }

/* ====================================
   7. صفحة الأسئلة الشائعة (FAQ)
   ==================================== */
.faq-page {
  background: #03090D;
  color: #DCE7E4;
}

.faq-page .header {
  background: rgba(3, 9, 13, 0.85);
  border-bottom: 1px solid rgba(106, 185, 206, 0.25);
}

.faq-page .nav a {
  color: #DCE7E4;
}

.faq-page .nav a:hover {
  color: #6AB9CE;
}

.faq-page .lang-btn {
  background: rgba(106, 185, 206, 0.15);
  border: 1px solid #6AB9CE;
  color: #6AB9CE;
}

.faq-section {
  width: 90%;
  margin: 60px auto;
}

.faq-title {
  font-size: 32px;
  text-align: center;
  color: #DCE7E4;
}

.faq-subtitle {
  text-align: center;
  color: #427484;
}

.faq-item {
  background: #00364A;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(106, 185, 206, 0.25);
  transition: 0.3s;
}

.faq-item:hover {
  border-color: #6AB9CE;
  transform: translateY(-3px);
}

.faq-question {
  font-size: 20px;
  color: #6AB9CE;
}

.faq-answer {
  font-size: 16px;
  line-height: 1.8;
  color: #DCE7E4;
}

.faq-page .footer {
  background: rgba(3, 9, 13, 0.85);
  border-top: 1px solid rgba(106, 185, 206, 0.25);
}

.faq-page .footer-copy {
  color: #DCE7E4;
}

/* ====================================
   8. صفحة الخدمات (Services Page)
   ==================================== */
.services-hero {
  text-align: center;
  padding: 70px 20px 30px;
  max-width: 850px;
  margin: 0 auto;
}

.services-title {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(180deg, #FFFFFF 30%, #6AB9CE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.services-subtitle {
  font-size: 17px;
  line-height: 1.9;
  color: #DCE7E4;
  opacity: 0.85;
}

.services-section {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.service-card {
  background: linear-gradient(160deg, rgba(2, 42, 56, 0.75) 0%, rgba(3, 9, 13, 0.95) 100%);
  border-radius: 24px;
  padding: 35px 30px;
  position: relative;
  border: 1px solid rgba(106, 185, 206, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  left: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6AB9CE, transparent);
  opacity: 0.3;
  transition: 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(106, 185, 206, 0.6);
  box-shadow: 0 20px 40px rgba(106, 185, 206, 0.18);
}

.service-card:hover::before {
  opacity: 1;
  right: 5%;
  left: 5%;
}

.service-icon-box {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  background: rgba(106, 185, 206, 0.1);
  border: 1px solid rgba(106, 185, 206, 0.25);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.service-svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  stroke: #6AB9CE;
  stroke-width: 2px;
  transition: all 0.3s ease;
  display: block;
}

.service-card:hover .service-icon-box {
  background: #6AB9CE;
  border-color: #6AB9CE;
  box-shadow: 0 0 12px rgba(106, 185, 206, 0.4);
  transform: translateY(-2px);
}

.service-card:hover .service-svg {
  stroke: #03090D;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  transition: 0.3s;
}

.service-card:hover .service-title {
  color: #6AB9CE;
}

.service-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: #DCE7E4;
  opacity: 0.8;
  margin: 0;
}

/* ====================================
   9. الجدول الزمني للتنفيذ (Timeline)
   ==================================== */
.services-time {
  width: 90%;
  max-width: 950px;
  margin: 50px auto;
  background: linear-gradient(135deg, rgba(0, 54, 74, 0.6) 0%, rgba(2, 42, 56, 0.8) 100%);
  border-right: 4px solid #6AB9CE;
  border-left: 1px solid rgba(106, 185, 206, 0.15);
  border-top: 1px solid rgba(106, 185, 206, 0.15);
  border-bottom: 1px solid rgba(106, 185, 206, 0.15);
  border-radius: 12px 24px 24px 12px;
  padding: 35px 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.english .services-time {
  border-right: 1px solid rgba(106, 185, 206, 0.15);
  border-left: 4px solid #6AB9CE;
  border-radius: 24px 12px 12px 24px;
}

.time-title {
  font-size: 24px;
  color: #6AB9CE;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-desc {
  font-size: 16px;
  line-height: 2;
  color: #DCE7E4;
  margin: 0;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(3, 9, 13, 0.4);
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(106, 185, 206, 0.1);
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: #03090D;
  background: #6AB9CE;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: monospace;
}

.step-info {
  flex: 1;
}

.step-name {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: #DCE7E4;
  opacity: 0.8;
  margin: 0;
  line-height: 1.6;
}

/* ====================================
   10. قسم بدء العمل وطلب الخدمة (Contact)
   ==================================== */
.services-contact {
  width: 90%;
  max-width: 950px;
  margin: 50px auto;
  background: linear-gradient(160deg, rgba(2, 42, 56, 0.85) 0%, rgba(3, 9, 13, 0.95) 100%);
  border: 1px solid rgba(106, 185, 206, 0.25);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-title {
  font-size: 24px;
  color: #6AB9CE;
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #DCE7E4;
  margin-bottom: 24px;
  opacity: 0.9;
}

.contact-desc strong {
  color: #6AB9CE;
  font-weight: bold;
}

.contact-methods {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(106, 185, 206, 0.08);
  border: 1px solid rgba(106, 185, 206, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-badge:hover {
  background: rgba(106, 185, 206, 0.2);
  border-color: #6AB9CE;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 185, 206, 0.2);
}

.contact-badge strong {
  color: #6AB9CE;
}

/* ====================================
   11. قسم لماذا تختار ORBIT
   ==================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(3, 9, 13, 0.4);
  border: 1px solid rgba(106, 185, 206, 0.12);
  padding: 18px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.why-card:hover {
  background: rgba(106, 185, 206, 0.05);
  border-color: rgba(106, 185, 206, 0.4);
  transform: translateY(-2px);
}

.why-badge {
  font-size: 12px;
  font-weight: 700;
  color: #6AB9CE;
  background: rgba(106, 185, 206, 0.12);
  border: 1px solid rgba(106, 185, 206, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  line-height: 1;
}

.why-info {
  flex: 1;
}

.why-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.why-card-desc {
  font-size: 13.5px;
  color: #DCE7E4;
  opacity: 0.8;
  margin: 0;
  line-height: 1.6;
}

/* ====================================
   12. التصميم المتجاوب (Media Queries)
   ==================================== */
@media (max-width: 820px) {
  .header-content {
    gap: 12px;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0;
    max-width: 60%;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 13.5px;
  }

  .orbit-logo img {
    height: 26px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 40px 15px 20px;
  }
  
  .services-title {
    font-size: 30px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .services-time,
  .services-contact {
    padding: 25px 20px;
    border-right-width: 3px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .contact-methods {
    flex-direction: column;
  }
  
  .contact-badge {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 92%;
    padding: 20px 10px;
  }

  .page-header h1 { font-size: 26px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 15px; }
  .stat-num { font-size: 24px; }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }

  .filters::-webkit-scrollbar { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
}
/* منع التمرير الأفقي على مستوى الصفحة وإجبار الحاويات على الالتزام بالعرض */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ضبط شريط الفلاتر لمنع خروجه عن الشاشة في الموبايل أو الشاشات الصغيرة */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

/* ضمان عدم بروز شبكة المشاريع */
.projects-grid {
  width: 100%;
  max-width: 100%;
}
.filters {
  display: flex;
  flex-wrap: nowrap;          /* إبقاء الأزرار بجانب بعضها في سطر واحد */
  overflow-x: auto;            /* التمرير الأفقي للأزرار فقط عند الشاشات الصغيرة */
  white-space: nowrap;
  max-width: 100%;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; /* تمرير ناعم على أجهزة الهواتف */
}

.filter-btn {
  flex: 0 0 auto;             /* منع انكماش الأزرار */
  white-space: nowrap;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
        z-index: 100}
        /* تنسيق الزر والقائمة المنسدلة */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 20px;
  background: #121212;
  border: 1px solid #2a2a2a;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  margin-top: 5px;
  border-radius: 6px;
  z-index: 999998;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  min-width: 180px;
}

/* ضبط الاتجاه حسب لغة الموقع */
html[dir="rtl"] .dropdown-menu {
  left: 20px;
  right: auto;
}

html[dir="ltr"] .dropdown-menu {
  right: 20px;
  left: auto;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  text-align: right;
  padding: 10px 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

html[dir="ltr"] .dropdown-menu a {
  text-align: left;
}

.dropdown-menu a:hover {
  background: #222222;
}

/* إظهار القائمة فقط عند التبديل لشاشات الجوال */
@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
}
        