body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: #ffffff;
  color: #111;
  padding-top: 90px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 60px;

  z-index: 1000;

  background: transparent;

  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;

  box-sizing: border-box;
}

nav.scrolled {
  background: rgba(255,255,255,0.85);

  backdrop-filter: blur(10px);

  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo {
  font-weight: bold;
  font-size: 32px;
  color: #246350;
}

.logo img {
  height: 40px;   /* حجم الشعار */
  width: auto;
  display: block;
  margin-top: 10px;
}

.nav-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}

/* HERO (الأهم هنا التعديل) */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 160px;
  padding: 120px 60px;
  gap: 80px;
  background: linear-gradient(135deg, #fff, #f7f7f7);
  position: relative;
overflow: hidden;
}

.bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* الشكل */
.bubbles span {
  position: absolute;
  background: #2463500b;
  border: 1px solid #24635000;
  backdrop-filter: blur(5px);
  border-radius: 18px;
  animation: floatShape 8s ease-in-out infinite;
}

/* شكل 1 */
.bubbles span:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 8%;
  transform: rotate(20deg);
}

/* شكل 2 */
.bubbles span:nth-child(2) {
  width: 50px;
  height: 50px;
  top: 60%;
  left: 17%;
  border-radius: 50%;
  animation-delay: 2s;
}

/* شكل 3 */
.bubbles span:nth-child(3) {
  width: 80px;
  height: 80px;
  top: 25%;
  right: 10%;
  transform: rotate(-15deg);
  animation-delay: 4s;
}

/* الحركة */
@keyframes floatShape {

  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(8deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* المحتوى فوق */
.hero-text,
.phone {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 500px;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 15px;
  color: #246350;
}

.hero p {
  color: #666;
  font-size: 18px;
  line-height: 1.8;
}

.btn {
  font-family: 'Cairo', sans-serif;
  background: #1b483a;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}

.btn:hover{
    background-color: #1f5645;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

#timer {
  margin-right: 5px;
  margin-left: 5px;
  display: inline-block;
}

.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* 📱 صورة الجوال (تعديل مهم جدًا) */
.phone img {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  display: block;
  margin: 0 auto;
}

.phone img:hover {
  transform: translateY(-8px);
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background: #f7f7f7;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: #246350;
}

.stats p {
    /*font-weight: 600;*/
    color: #000;
}

.step-icon img {
  width: 70px;
  height: 70px;

  object-fit: contain;

  margin-bottom: 15px;
}

/* SECTIONS */
.section {
  padding: 100px 20px;
  text-align: center;
}

.section h2 {
  font-size: 34px;
  color: #246350;
}

.section p {
  max-width: 600px;
  margin: auto;
  color: #000;
  line-height: 1.8;
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

/* CTA */
.cta {
  text-align: center;
  padding: 50px 20px;
  background: #246350ec;
  color: #fff;
  position: relative;
  overflow: hidden;
  /* الشكل الجديد */
  border-radius: 40px;
  margin: 60px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  /* شكل غير مربع */
  clip-path: polygon(
    0 0,
    100% 0,
    100% 85%,
    50% 100%,
    0 85%
  );
}

.cat1 {
    color: #50cdaa;
    font-weight: bold;
    text-decoration: underline;
}

.cat1.disabled{
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* FOOTER */
footer {
  background: #eeeeee;
  color: #333;
  padding: 30px 20px;
  text-align: center;
}

/* تقسيم يمين / يسار */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  flex-wrap: wrap;

  max-width: 900px;
  margin: auto;

  gap: 30px;
}

/* قسم التواصل */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* قسم الروابط */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

a {
  color: inherit;
  text-decoration: none;
}

.footer-links a {
  position: relative;
}

/* خط تحت فقط روابط معينة */
.footer-links a:nth-child(1),
.footer-links a:nth-child(2),
.footer-links a:nth-child(3) {
  position: relative;
}

.footer-links a:nth-child(1)::after,
.footer-links a:nth-child(2)::after,
.footer-links a:nth-child(3)::after {
  content: "";

  position: absolute;
  bottom: -4px;
  right: 0;

  width: 100%;
  height: 1px;

  background: #919191;
  opacity: 0.5;
}

.footer-links a:hover {
  color: #bababa;
}

/* العناصر */
.footer-contact .item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* الشكل */
.shape {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #246350;
  box-shadow: 0 0 8px rgba(36, 99, 80, 0.4);
}

/* الحقوق */
.copy {
  margin-top: 25px;
  font-size: 13px;
  color: #666;
}

/* WAVE */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* 📱 MOBILE FIX */
@media (max-width: 768px) {

  /* إصلاح قسم كيف يعمل + أي features */
  .features {
    display: flex;
    flex-direction: column;
    align-items: center;   /* 🔥 أهم سطر لتوسيط العناصر */
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 40px auto 0;
  }

  .card {
    width: 85%;            /* بدل 90% عشوائي */
    margin: 0 auto;        /* 🔥 يضمن التوسيط */
    text-align: center;
  }

  /* تأكيد عدم الميلان في القسم */
  .section {
    text-align: center;
    padding: 80px 15px;
  }

 .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;   /* 🔥 أهم سطر */
    text-align: center;

    padding: 60px 20px;
    gap: 40px;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 36px;
  }

  .phone {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .phone img {
    width: 220px !important;  /* 🔥 يمنع أي override */
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(10, 143, 46, 0.429);
  }

    .nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 10px;
    background: #f7f7f7;
    border-radius: 8px;
    white-space: nowrap;    /* يمنع الكسر الغريب */
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

   .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact,
  .footer-links {
    width: 100%;
    align-items: center;
  }

  .footer-contact .item {
    justify-content: center;
  }
}
