/**
* FINAL MOBILE + BACKGROUND FIX
*/

/* ================= GLOBAL ================= */
body {
  margin: 0;
  background: #000;
  color: #fff;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  width: 100%;
  z-index: 999;
  background: rgba(0,0,0,0.8);
  padding: 15px 20px;
}

/* ================= NAV ================= */
.navmenu ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  position: relative;

  /* 🔥 الصورة */
  background-image: url("../img/hero-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

/* overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9) 30%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0.2) 90%
  );
}

/* النص */
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 6%;
}

/* ================= TEXT ================= */
.hero h2 {
  font-size: 64px;
}

.hero p {
  font-size: 20px;
}

/* ================= CTA ================= */
.hero-cta {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  /* 🔥 أهم تعديل للصورة */
  .hero {
    justify-content: center;
    text-align: center;

    background-position: center center; /* مهم */
    background-size: cover;
  }

  /* overlay أخف */
  .hero::before {
    background: rgba(0,0,0,0.6);
  }

  .hero .container {
    margin-left: 0;
    padding: 0 20px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}