/* --- 1. الأساسيات --- */
@import url("https://fonts.cdnfonts.com/css/zeyada");

:root {
  --main-color: #1e4d3b;
  --accent-color: #d4af37;
  --white: #ffffff;
  --fast-timing: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* user-select: none; */
}

body {
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  font-family: cairo, sans serif;
  background-color: #000;
}
.navbar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
/* --- 2. الهيدر (المتجاوب) --- */
/* إخفاء زرار البرجر في الشاشات الكبيرة */
.menu-toggle {
  display: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* يظهر في الموبايل بس */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%; /* مخفي يمين */
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    transition: 0.4s ease-in-out;
    z-index: 1000;
    gap: 25px;
  }

  /* لما الكلاس active يتضاف للـ nav-links */
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 80%; /* مساحة مناسبة في الموبايل */
    text-align: center;
  }

  /* منع السكرول لما المنيو يفتح */
  body.menu-open {
    overflow: hidden;
  }
  .nav-btn {
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 10px 30px !important;
    border-radius: 50px;
  }
}

.logo img {
  height: 40px;
  width: auto;
}

/* إخفاء اللينكات في الموبايل أو تنسيقها بشكل بسيط */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 15px;
  transition: 0.3s;
  background: transparent; /* شيلنا الخلفية والـ 300px */
  border-radius: 20px;
  font-size: 16px;
}
.nav-btn {
  background-color: var(--accent-color) !important;
  color: #fff !important;
  font-weight: bold;
}
.nav-links a:hover {
  color: var(--accent-color);
}
@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}

/* --- 3. الهيرو فيديو (المتجاوب تماماً) --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* ملء الشاشة في كل الأجهزة */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover; /* يغطي الشاشة بدون هوامش سوداء */
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 8vw, 3rem); /* حجم خط مرن */
  margin-bottom: 20px;
  line-height: 1.4;
}

.cta-button {
  padding: 12px 30px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
}

/* --- 4. سيكشن قدم طلبك (الزجاجي المتجاوب) --- */
.order-form {
  position: relative;
  z-index: 10;
  margin-top: -100px; /* تداخل منضبط */
  padding: 0 20px 50px;
}
.order-form .form-header {
  text-align: center;
  margin-bottom: 20px;
  color: white;
}
.order-form .form-header h3 {
  padding: 0 !important;
  margin: 0 !important;
  color: white;
}
.form-wrapper {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-wrapper h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.grid-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* عمودين في الكمبيوتر */
  gap: 15px;
}

.grid-inputs input,
.form-wrapper textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: Arial !important;
}

.form-wrapper textarea {
  grid-column: span 2;
  height: 100px;
  margin-top: 15px;
  resize: none;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

/* --- 5. ميديا كويري (تعديلات الموبايل الإضافية) --- */
@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
  } /* تقليل ارتفاع الهيرو قليلاً للموبايل */

  .grid-inputs {
    grid-template-columns: 1fr; /* عمود واحد فقط في الموبايل */
  }

  .form-wrapper textarea {
    grid-column: span 1;
  }

  .order-form {
    margin-top: -50px; /* تقليل التداخل عشان الزرار ميتداريش */
  }

  .form-wrapper {
    padding: 20px;
  }

  .form-wrapper h2 {
    font-size: 1.4rem;
  }
}

/* --- 6. سيكشن الخدمات (السرعة القصوى) --- */
/* --- سيكشن الخدمات (تنسيق كروت المروج الجديد) --- */
/* --- سيكشن الخدمات --- */
.services-section {
  padding: 80px 0;
  background-color: #000;
  perspective: 1500px; /* لتقليل البعد لراحة العين */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-section .section-title {
  text-align: center;
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 900;
}

.services-wrapper {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: stretch; /* عشان كل الكروت تبقى طول واحد حتى مع اختلاف المحتوى */
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
/* --- تنسيق الكارت الاستثماري --- */
.service-card {
  position: relative;
  /* توزيع ذكي: 4 كروت في الكمبيوتر، 2 في التابلت، 1 في الموبايل */
  flex: 1 1 calc(25% - 25px);
  min-width: 250px; /* لضمان عدم صغر الكارت زيادة عن اللزوم */

  /* التعديل الجوهري: نلغي الارتفاع الثابت عشان الكلام يظهر كامل */
  height: auto;

  border-radius: 25px;
  overflow: hidden;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);

  /* أنيميشن ناعم للميلان والحركة */
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;

  /* عشان الصورة والـcontent يبقوا تحت بعض */
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%; /* العرض كامل عرض الكارت */
  height: 300px; /* ثبت ارتفاع الصورة لتوحيد شكل الكروت */
  display: block; /* بيشيل الفراغات البيضاء تحت الصورة */
  transition: 0.6s;
}
.service-card:hover img {
  transform: scale(1.05);
}
/* تأثير الـ Hover (الميلان 3D) */
.service-card:hover {
  transform: rotateX(5deg) rotateY(-5deg) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: var(--accent-color);
}

/* --- التعامل مع الصور كخلفية ريسبونسف --- */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: 0.6s;
}

/* ربط الصور بالكروت */
.service-card:nth-child(1)::before {
  background-image: url("images/service1.jpg");
}
.service-card:nth-child(2)::before {
  background-image: url("images/service2.jpg");
}
.service-card:nth-child(3)::before {
  background-image: url("images/service3.jpg");
}
.service-card:nth-child(4)::before {
  background-image: url("images/service4.jpg");
}

.service-card:hover::before {
  transform: scale(1.1); /* زووم هادي للصورة */
}

/* طبقة التظليل (Overlay) عشان الكلام يبان */
.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(0, 0, 0, 0.9) 90%
  );
  z-index: 2;
}

/* --- محتوى الكارت (النصوص) --- */
.card-content {
  position: relative;
  z-index: 3;
  padding: 25px 20px; /* مسافة مريحة من الجوانب */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* بيخلي الcontent ياخد باقي مساحة الكارت بشكل متناسق */
  text-align: right; /* عربي */
}

.card-content h3 {
  color: var(--accent-color); /* اللون الذهبي */
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0px;
  text-align: right;
  transform: translateZ(20px); /* إحساس بالبروز للعنوان */
}

.card-content p {
  color: #fff;
  font-size: 0.7em;
  line-height: 1.6;
  opacity: 0.5;
  text-align: right;
}

.service-card:hover .card-content p {
  opacity: 1;
  transform: translateY(0);
}

/* --- 📱 الريسبونسف (التجاوب مع الموبايل) --- */

@media (max-width: 1024px) {
  .service-card {
    flex: 1 1 calc(45% - 20px); /* يظهر كارتين جنب بعض */
    height: 400px;
  }
  .services-section .section-title {
    font-size: 2rem;
  }
}
@media (hover: hover) {
  .service-card:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  }
}
@media (max-width: 768px) {
  .services-wrapper {
    gap: 20px;
  }
  .service-card {
    flex: 1 1 100%; /* كارت واحد بعرض الشاشة */
    height: 350px;
    min-width: unset; /* إلغاء الحد الأدنى عشان الموبايلات الصغيرة */
  }
  .service-card {
    flex: 0 0 100%; /* كارت واحد بعرض الشاشة */
    height: 400px;
    transform: none !important; /* إلغاء الـ 3D في الموبايل لسهولة التصفح */
  }
  .card-content p {
    opacity: 1; /* إظهار النص دايمًا في الموبايل */
    transform: translateY(0);
  }
}
/* --- سيكشن شركاء النجاح - حركة لانهائية متصلة --- */
/* --- سيكشن شركاء النجاح - الحركة المتصلة --- */
/* --- سيكشن شركاء النجاح - حركة متصلة للأبد --- */
/* تنسيق السيكشن */
.partners-section {
  padding: 30px 0;
  background-color: #0f0f0f; /* لون الخلفية بتاعك */
  overflow: hidden;
  position: relative;
  margin: 20px 0;
}
.partners-section .section-main-title {
  text-align: center;
  color: var(--accent-color); /* اللون الذهبي بتاعك */
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 900;
}
/* تأثير التلاشي يمين ويسار زي موقع طلبات */
.partners-section::before,
.partners-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.swiper {
  margin-top: 30px;
}
.partners-section::before {
  right: 0;
  background: linear-gradient(to left, #000 0%, transparent 100%);
}
.partners-section::after {
  left: 0;
  background: linear-gradient(to right, #000 0%, transparent 100%);
}

/* سحر الحركة المتصلة */
.partners-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.partners-swiper .swiper-slide {
  width: auto !important; /* بيخلي كل لوجو ياخد مساحته الطبيعية */
  padding: 0 40px; /* المسافة بين اللوجوهات */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* تنسيق اللوجوهات والتأثير عند الوقوف عليها */
.partners-swiper .swiper-slide img {
  height: 60px; /* ثبت الطول عشان يبقوا متناسقين */
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7) invert(1); /* لون باهت في البداية */
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.partners-swiper .swiper-slide:hover img {
  filter: none; /* يرجع للونه الطبيعي */
  opacity: 1;
  transform: scale(1.1);
}

/* ريسبونسف للموبايل */
@media (max-width: 768px) {
  .partners-swiper .swiper-slide img {
    height: 45px;
  }
  .partners-swiper .swiper-slide {
    padding: 0 20px;
  }
}
/* الموبايل */

/* --- سيكشن الأرقام والإنجازات --- */
.stats-section {
  padding: 80px 0;
  background-color: #000; /* لون الموقع الأساسي */
  overflow: hidden;
  /* font-family: "Cairo", sans-serif !important; */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px; /* ارتفاع مناسب للطبقات */
  text-align: center;
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color); /* اللون الذهبي بتاعك */
}
.stat-icon {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 20px;
}
.stat-number {
  font-size: 45px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 5px;
}
.stat-label {
  color: #a0a0a0;
  font-size: 16px;
  font-weight: 600;
}
/* الرقم الضخم الباهت في الخلفية */
.bg-number {
  position: absolute;
  font-size: 100px;
  font-weight: 900;
  color: rgba(43, 43, 44, 0.664) !important; /* لون شفاف جداً */
  z-index: 1;
  white-space: nowrap;
  user-select: none;
}

/* المحتوى الأمامي (الرقم العداد والنص) */
.stat-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
}

.stat-content span {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.stat-content p {
  width: 100%;
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 5px;
  font-weight: 500;
}

/* التجاوب مع الموبايل */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bg-number {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat-item {
  top: 0;
  transition: 0.3s all !important;
}
.stat-item .bg-number {
  position: absolute;
  top: 0; /* لازم تحديد قيمة بداية عشان الترانزيشن يشتغل */
  transition: all 0.5s ease-in-out; /* النعومة هنا */
  color: rgba(255, 255, 255, 0.05); /* لونه الأصلي الباهت */
}
.stat-item:hover > .bg-number {
  top: -40px;
  color: var(--accent-color) !important;
}
.stat-item > .stat-content {
  bottom: 0;
  transition: 0.5s !important;
}
.stat-item:hover > .stat-content {
  bottom: -40px;
}
/* --- سيكشن الموقع والخريطة --- */
.location-section {
  padding: 80px 20px;
  background-color: #0f0f0f; /* لون غامق فخم */
}

.location-title {
  text-align: center;
  color: var(--accent-color); /* اللون الذهبي بتاعك */
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 900;
}

.location-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.map-container {
  flex: 1;
  min-width: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.map-container iframe {
  filter: invert(1); /* خريطة مودرن غامقة */
  display: block;
}

.contact-info {
  flex: 1;
  min-width: 350px;
  color: #fff;
}

.address-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ddd;
  border-right: 4px solid var(--accent-color);
  padding-right: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
  text-align: center;
}

.info-item:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-5px);
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.2rem;
}

.info-item h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.info-item a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  direction: ltr;
  display: inline-block;
}
/* --- الفوتر --- */
.main-footer {
  background: #080808;
  padding: 60px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr; /* توزيع ثلاثي */
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-us p {
  color: #aaa;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  max-width: 120px;
  margin-bottom: 15px;
}

.footer-logo h2 {
  color: #fff;
  letter-spacing: 5px;
  font-size: 1.5rem;
}

.work-times p {
  color: #eee;
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--accent-color);
  color: #000;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links span {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a i {
  font-size: 0.6rem;
  margin-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #666;
  font-size: 0.8rem;
}

/* زر الواتساب العائم */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px; /* لليسار عشان ما يغطيش الكلام في العربي */
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* تعديل للموبايل */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}

.work-times {
  text-align: center;
}
