/* ============= 1) تعريف الخطوط (DinNext) باستخدام @font-face ============= */

@font-face {
  font-family: 'DinNext';
  src: url("../Content/fonts/DinNextRegular.eot");
  src: local("?"),
       url("../Content/fonts/DinNextRegular.woff") format("woff"),
       url("../Content/fonts/DinNextRegular.ttf") format("truetype"),
       url("../Content/fonts/DinNextRegular.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DinNext';
  src: url("../Content/fonts/DinNextMedium.eot");
  src: local("?"),
       url("../Content/fonts/DinNextMedium.woff") format("woff"),
       url("../Content/fonts/DinNextMedium.ttf") format("truetype"),
       url("../Content/fonts/DinNextMedium.svg") format("svg");
  font-weight: 500;
  font-style: normal;
}

/* ============= 2) إعادة ضبط أساسية ============= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  z-index: 3;
  font-family: "DinNext", sans-serif;
}

body {
  direction: rtl;
  /* overflow: hidden;  <-- إذا أردت إخفاء التمرير، اتركها. خلاف ذلك، أزلها. */
  font-family: "DinNext", sans-serif;
}

/* ============= 3) الحاوية الرئيسية ============= */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #000;
  /* إذا أردت توسيط المحتوى عموديًا وأفقيًا:
     display: flex;
     align-items: center;
     justify-content: center;
  */
}

/* ============= 4) الهيدر ============= */
header {
  width: 100%;
  padding: 10px 2em;
  color: #fff;
  background-color: #006c68;
  z-index: 100;      /* كي يبقى فوق الفيديو أو المحتوى */
  position: fixed;   /* تثبيت العنوان */
  top: 0;            /* أعلى الصفحة */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7em;
}

header svg {
  width: 60px;
}

/* اللون الأبيض لمسارات الشعار */
.logo path {
  fill: #fff;
  stroke: #fff;
}

/* معلومات أمامية */
.front {
  display: flex;
  flex-direction: column;
}

.front p {
  font-size: 0.6em;
  text-align: center;
}

/* ============= 5) خصائص المحتوى (مخفي افتراضياً) ============= */
.content {
  /* افتراضياً مخفي (إذا لا تريد إخفاؤه، أزل display: none;) */
  display: none;
  width: 100%;
  padding: 1em;

  /* إذا أردت استخدام Grid */
  grid-template-columns: auto 1fr;
  justify-content: center;

  /* أنيميشن الظهور */
  animation-name: show;
  animation-duration: 2s;
  animation-fill-mode: forwards;

  /* مسافة أسفل الهيدر */
  margin-top: 80px;
}

@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* تحرير النص داخل SVG في المحتوى */
.content svg text {
  font-family: "Tajawal", sans-serif;
}

#rect {
  opacity: 0.6;
}

/* خلفية فيديو */
.vid {
  position: absolute;
  z-index: 1;
  width: 100%;
  top: 0;
  left: 0;
  object-fit: cover; /* لجعل الفيديو يملأ العنصر */
}

/* صنف مساعد لمركزية العناصر */
.c {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============= 6) قسم "الكلمة" / Speech ============= */
.speech {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 3em;
  background: rgba(248, 248, 248, 0.773);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(33, 33, 33, 0.3);
}

/* صورة الخطاب */
.speech img {
  width: 60%;
  margin: 0 auto;
}

/* نص الخطاب */
.speech p {
  padding: 0.3em;
  width: 100%;
  min-height: 120px;
  color: #000; /* خلفية .speech فاتحة */
}

/* ============= 7) الخريطة ============= */
.content svg {
  max-width: 600px;
}

.content path {
  fill: transparent;
}

.map svg path {
  stroke-width: 1.7px;
}

/* لون مميز لعناصر محددة */
.brighten {
  fill: rgba(250, 14, 14, 0.315) !important;
}

/* ============= 8) تأثير انزلاق من الأعلى ============= */
.slide-in-top {
  -webkit-animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-top {
  0% {
    -webkit-transform: translateY(-1000px);
            transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-top {
  0% {
    transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============= 9) الاستجابة للشاشات (media queries) ============= */

/* أقل من 700px */
@media screen and (max-width: 700px) {
  /* إذا كنت تريد إظهار content بدلاً من إخفائه، أزل display: none; */
  .content {
    display: none;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
    gap: 1em;
    align-items: center;
    justify-items: center;
    padding: 1em;
    margin-top: 80px;
  }

  .speech {
    width: 100%;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
  }

  .speech img {
    width: 80%;
  }

  .speech p {
    font-size: 1em;
    line-height: 1.5;
  }

  .map {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .map svg {
    width: 90%;
    height: auto;
  }

  svg {
    min-width: 100%;
  }
}

/* أقل من 430px */
@media screen and (max-width: 430px) {
  /* مرة أخرى، إذا أردت إظهار المحتوى على الشاشات الصغيرة، أزل display: none; */
  .content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    gap: 1em;
    margin-top: 80px;
  }

  .speech, .map {
    width: 100%;
    text-align: center;
  }

  .speech img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .speech p {
    font-size: 0.9em;
    line-height: 1.4;
    padding: 0.5em;
  }

  .map svg {
    width: 100%;
    height: auto;
  }
}

/* ============= 10) القائمة الأفقية (مثال horizontal-menu) ============= */
.horizontal-menu {
  background-color: #006c68; /* لون الخلفية */
  padding: 1em;
}

.horizontal-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.horizontal-menu li {
  /* أي تنسيقات إضافية إن وجدت */
}

.horizontal-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5em 1em;
  transition: background 0.3s ease;
}

.horizontal-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* مثال لاستجابة القائمة عند عرض أقل من 600px */
@media screen and (max-width: 600px) {
  .horizontal-menu ul {
    flex-direction: column;
    align-items: flex-start; /* أو center */
  }
}

/* 1) تنسيق الزر الهامبرغر */
.menu-toggle {
  display: none;       /* افتراضياً مخفي في الشاشات الكبيرة */
  font-size: 1.5rem;   /* حجم الرمز ☰ */
  background: #006c68; /* لون الزر */
  color: #fff;         /* لون الرمز */
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* 2) القائمة الأفقية بشكل افتراضي (للحجم الكبير) */
.horizontal-menu {
  background-color: #006c68;
  padding: 1em;
}

.horizontal-menu ul {
  list-style: none;
  display: flex;       /* عرض أفقي */
  gap: 1.5em;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.horizontal-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5em 1em;
  transition: background 0.3s ease;
}

.horizontal-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 3) عند الشاشات الصغيرة نخفي القائمة ونظهر الزر */
@media screen and (max-width: 600px) {
  .menu-toggle {
    display: block;   /* إظهار زر الهامبرغر */
  }
  
  /* القائمة تُخفى افتراضيًا بالشاشات الصغيرة */
  .horizontal-menu {
    display: none;
  }
  
  /* عند إضافة كلاس show على .horizontal-menu ، تظهر */
  .horizontal-menu.show {
    display: block;
  }
  
  /* نعرض القوائم عموديًا */
  .horizontal-menu ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====== نهاية الملف ====== */
