/* ====== Base ====== */
:root {
  --bg: #f5f5fa;
  --text: #2d004d;
  --brand: #5c2d91;
  --brand-darker: #3f1f6f;
  --nav: #39004F;
  --footer: #1a0033;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}


/* ارتفاع الزر الأساسي لكل الشاشات */
.btn {
  background-color: var(--brand);
  color: white;
  border: none;
  padding: 18px 36px; /* ← هذا يزيد ارتفاع الزر */
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}

/* تكبير إضافي للموبايل إذا حابب */
@media (max-width: 768px) {
  .btn {
    padding: 20px 40px;
    font-size: 20px;
  }
}

/* ====== Navbar (Desktop + Mobile) ====== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0; /* top:0; left/right:0 */
  z-index: 10;
  background-color: var(--nav);
  color: #fff;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between; /* توزيع منطقي بدل margin-right الضخم */
  gap: 16px;
}

/* شعار */
.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

/* زر الهامبرغر (يظهر بالموبايل) */
.menu-toggle {
  display: none;          /* يخفي على الديسكتوب */
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

/* قائمة الروابط */
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  color: #fff;
}

.navbar ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  opacity: .95;
  transition: opacity .2s ease, color .2s ease;
}

.navbar ul li a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

/* ====== Hero ====== */
.hero {
  margin-top: 70px; /* مساحة للنافبار المثبت */
  text-align: center;
  padding: 40px 20px;
}

.hero-customized {
  margin-top: 10px;
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: var(--brand);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .1s ease;
}

.btn-primary:hover {
  background-color: var(--brand-darker);
}





/* ====== Sections / Cards ====== */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section.alt {
  background-color: #f1ecfa;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 800;
}

.grid-3 {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background-color: white;
  color: var(--text);
  padding: 30px;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  font-size: 15px;
}

/* ====== Partners ====== */
.partner-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.partner-logos img {
  width: 100px;
  height: auto;
  opacity: 0.8;
  transition: opacity .2s ease;
}

.partner-logos img:hover {
  opacity: 1;
}

/* ====== Media Section ====== */
.media-section {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.media-section img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.media-text {
  max-width: 400px;
  text-align: left;
}

.media-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.media-text p {
  font-size: 16px;
  line-height: 1.6;
}

/* ====== Slider ====== */
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-color: #faf7ff;
}

/* Video controls */
.slide video {
  cursor: pointer;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 50%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
}

.caption {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
  background-color: #faf7ff;
  text-align: left;
}

.caption h3 {
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--text);
}

.caption p {
  font-size: 16px;
  margin: 0;
  color: #444;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #5c2d91aa;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  z-index: 3;
  font-size: 20px;
  border-radius: 50%;
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
  text-align: center;
  margin-top: 10px;
  position: absolute;
  width: 100%;
  bottom: 10px;
}

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ccc;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
}

.dots .active {
  background: var(--brand);
}

/* ====== Pricing ====== */
.pricing-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.box {
  background-color: white;
  color: var(--text);
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  text-align: center;
}

.offer {
  background-color: white;
  color: var(--text);
  border-radius: 10px;
  padding: 0;
  height: 100px;
  width: 250px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  text-align: center;
}

.price {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

/* ====== Forms ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 5px #ffffff88;
}

/* ====== Footer ====== */
.footer {
  margin-top: 100px;
  background-color: var(--footer);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid #ffffff22;
}

/* ====== Containers ====== */
.container {
  margin-top: 100px;
  text-align: center;
}

/* ====== Responsive ====== */

/* لوحات متوسطة */
@media (max-width: 992px) {
  .hero h1 { font-size: 40px; }
}

/* موبايل عام */
@media (max-width: 768px) {
  .hero { padding: 32px 16px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }

  /* navbar: إظهار زر الهامبرغر وإخفاء القائمة افتراضيًا */
  .menu-toggle { display: block; }

  .navbar ul {
    position: absolute;
    top: 60px;          /* أسفل الشريط */
    right: 12px;
    left: 12px;
    background: var(--nav);
    border: 1px solid #ffffff22;
    border-radius: 10px;
    padding: 10px 0;
    display: none;       /* مخفية افتراضياً */
    flex-direction: column;
    gap: 6px;
  }

  /* طريقتين للفتح: إمّا كلاس active على ul … */
  .navbar ul.active { display: flex; }

  /* … أو كلاس open على .navbar */
  .navbar.open ul { display: flex; }

  .navbar ul li { width: 100%; }
  .navbar ul li a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
  }
  .navbar ul li a:hover {
    background: rgba(255,255,255,0.08);
  }

  .grid-3 { gap: 16px; }

  .caption,
  .slide img {
    width: 100%;
  }
  .caption { padding: 20px; }
  .slide { flex-direction: column; }

  .pricing-boxes { flex-direction: column; align-items: center; }

  .container { padding: 0 20px; }

  .footer { font-size: 12px; padding: 16px; }
}

/* موبايل صغير */
@media (max-width: 600px) {
  .navbar { padding: 12px 16px; }
  .logo-text { font-size: 22px; }
  .prev, .next { padding: 10px; }
}


@media (max-width: 768px) {
  .video-text-container {
    display: flex;
    flex-direction: column; /* فيديو فوق - كتابة تحت */
    gap: 12px;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .video-text-container video {
    order: 1; /* تأكيد أن الفيديو أول */
    width: 110% !important;  
    max-width: 110% !important;
    height: auto;
    margin-left: -5%; /* لتوسيط الفيديو بعد تكبيره */
    border-radius: 0;
  }

  .caption {
    order: 2; /* الكتابة بعد الفيديو */
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px;
    box-sizing: border-box;
    text-align: left;
  }

  .custom-slider > div:last-child {
    order: 3; /* الأسهم آخر شيء */
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    background: transparent !important;
  }

  .slider-nav.prev,
  .slider-nav.next {
    background: transparent !important;
    color: var(--brand) !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 28px;
  }
}


