/* ==========================================================================
   1. المتغيرات وإعدادات عامة (Variables & Reset)
   ========================================================================== */
:root {
  /* ======================
     Brand Colors
     ====================== */
  --primary-blue: #006d77;
  --secondary: #83c5be;
  --dark: #2f3e46;
  --bg-color: #f5f5f5;
  --white: #ffffff;

  /* ======================
     Text Colors
     ====================== */
  --dark-text: #2f3e46;
  --gray-text: rgba(47, 62, 70, 0.8);
  --light-text: #ffffff;

  /* ======================
     UI Colors
     ====================== */
  --border-color: #cccccc;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --overlay-green: rgba(131, 197, 190, 0.2);

  /* ======================
     Gradients
     ====================== */
  --gradient-main: linear-gradient(
    178.2deg,
    rgba(245, 245, 245, 0) 30.38%,
    #f5f5f5 88.77%
  );

  /* ======================
     Radius System
     ====================== */
  --radius-sm: 20px;
  --radius-md: 30px;
  --radius-lg: 40px;
  --radius-xl: 50px;
  --radius-hero: 147px;

  /* ======================
     Typography
     ====================== */
  --font-main: "Almarai", sans-serif;
  --font-alt: "Urbanist", sans-serif;

  /* ======================
     Font Sizes (Desktop)
     ====================== */
  --fs-h1: 64px;
  --fs-h2: 64px;
  --fs-h3: 64px;
  --fs-body-lg: 110px;
  --fs-body: 24px;
  --fs-small: 64px;

  /* ======================
     Line Heights
     ====================== */
  --lh-h1: 80px;
  --lh-body-lg: 60px;
  --lh-body: 40px;

  /* ======================
     Layout
     ====================== */
  --container-width: 1640px;
}

/* ======================
   Reset
   ====================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   2. الهيدر (Header)
   ========================================================================== */
.header {
  padding: 20px 0;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 60px;
  margin: 0 20px;
}

.nav-menu li a {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 24px;
  color: var(--dark-text);
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--primary-blue);
}

.btn-download {
  background: var(--secondary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.btn-download:hover {
  transform: scale(1.05);
}

/* Burger Menu */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-text);
  cursor: pointer;
  padding: 5px;
}
/* ======================
   Header on Scroll (Glass Effect)
   ====================== */
.header.header--scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   3. قسم الهيرو (Hero Section)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  background: var(--bg-color);
  direction: rtl;
}
.hero-wrapper {
  position: relative;
  width: 2250px;
}

/* الخلفية */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* تدرج فوق الخلفية */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  z-index: 2;
}

/* الجوالات */
.hero-phones {
  position: absolute;
  left: -600px;
  top: -150px;
  width: 1740px;
  z-index: 10;
}

/* النص */
.hero-text {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;

  justify-content: center;
  gap: 20px;
}

/* كرت النص */
.hero-card {
  max-width: 600px;
  max-height: 316px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 30px 60px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero-card h1 {
  font-size: 50px;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 18px;
}

.hero-card h1 span {
  color: var(--secondary);
}

.hero-card p {
  font-size: 30px;
  line-height: var(--lh-body);
  color: var(--gray-text);
}

/* الزر */
.hero-btn {
  align-self: flex-start;
  background: var(--primary-blue);
  color: var(--white);
  padding: 20px 45px;
  border-radius: 999px;
  font-size: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(0, 109, 119, 0.35);
}

.hero-btn:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* الحاوية */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ==========================================================================
   5. عن التطبيق (About)
   ========================================================================== */
.about {
  padding: 200px 0;
  background: #f7f7f7;
}

.about-card {
  position: relative;
  background: var(--primary-blue);
  border-radius: 48px;
  border: 1px solid #cccccc;
  max-width: 1340px;
  max-height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 0px 0px 0px 110px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: start;
  height: 100%;
}

.about-text h2 {
  font-size: 34px;
  color: #ffffff;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 24px;
  line-height: 1.9;
  color: #ffffff;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-image img {
  width: 450px;
  height: auto;
  display: block;
  margin-top: -200px;
}

/* ==========================================================================
   6. FEATURES SECTION
   ========================================================================== */

.features-section {
  padding: 0px 0px 120px 0px;
  background: var(--bg-color);
}

.features-title {
  text-align: center;
  font-size: 48px;
  color: var(--primary-blue);
  margin-bottom: 80px;
}

/* التخطيط العام */
.features-wrapper {
  display: flex;
  align-items: center;
  max-width: 1340px;
  gap: 0px;
}

/* الصورة */
.features-image {
  flex: 1;
}

.features-image img {
  height: 900px;
  object-fit: cover;
  border-radius: 40px;
}

/* قائمة المميزات */
.features-list {
  margin-left: -220px; /* دخول فوق الصورة */
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* المربع */
.feature-box {
  background: rgba(255, 255, 255, 0.5); /* شفافية خفيفة */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 24px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  max-width: 620px;
}

/* الدائرة */
.feature-dot {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 18px;
  margin-right: -50px;
}

.feature-dot.dark {
  background: var(--primary-blue);
}

.feature-dot.light {
  background: var(--secondary);
}

/* النص */
.feature-content h3 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 0px;
}

.feature-content p {
  font-size: 22px;
  line-height: 1.5;
  color: var(--gray-text);
}

/* ==========================================================================
   7. WHY SECTION
   ========================================================================== */

.why-section {
  background: var(--bg-color);
  position: relative;
  padding-bottom: 120px;
}

/* الجزء العلوي الأخضر */
.why-top {
  background: var(--secondary);
  padding: 80px 0 120px;
  text-align: center;
}

.why-content h2 {
  font-size: 60px;
  color: var(--white);
  margin-bottom: 40px;
}

.why-content p {
  font-size: 32px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin-inline: auto;
}

/* الكروت */
.why-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: -80px; /* overlap */
  position: relative;
  z-index: 5;
}

.why-card {
  flex: 1;
  background: var(--primary-blue);
  border-radius: 28px;
  padding: 60px 30px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* هذا المهم */
}

/* نصف دائرة داخل الكرت */
.why-card::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  height: 330px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* أيقونة */
/* مربع الأيقونة */
.why-icon {
  border-radius: 22px;
  margin: 0 auto 30px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* صورة الأيقونة */
.why-icon img {
  width: 70px;
  margin-top: -30px; /* ترفعها للأعلى */
  margin-bottom: 50px;
  height: 70px;
  object-fit: contain;
}

/* عنوان الكرت */
.why-card h3 {
  font-size: 30px;
  position: relative;
  z-index: 2;
  margin-top: auto;

  margin-bottom: -20px;
}
.why-card:hover {
  transform: translateY(-8px);
  transition: 0.3s ease;
}
/* ==========================================================================
   8. DOWNLOAD SECTION
   ========================================================================== */

.download-section {
  padding: 180px 0;
  background: var(--bg-color);
}

.download-wrapper {
  position: relative;
}

/* المربع الغامق */
.download-box {
  background: #2f3e46;
  border-radius: 150px;
  padding: 80px 80px;
  width: 100%; /* لا يأخذ كامل العرض */
  margin-left: auto; /* يبدأ من اليمين */
  position: relative;
}

/* النص */
.download-content {
  color: #fff;
  max-width: 500px;
}

.download-content h2 {
  font-size: 60px;
  line-height: 1.3;
  margin-bottom: 30px;
}

.download-content p {
  font-size: 30px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* الأزرار */
.download-buttons {
  display: flex;
}

.download-buttons img {
  height: 65px;
  transition: 0.3s ease;
}

.download-buttons img:hover {
  transform: translateY(-4px);
}

/* الجوال */
.download-images {
  position: absolute;
  left: -100px; /* يخرج من اليسار */
  bottom: -200px;
  width: 700px; /* أكبر من المربع */
  z-index: 5;
}

.download-images img {
  width: 100%;
  display: block;
}
/* ======================================================
   FOOTER
====================================================== */
/* ======================================================
   FOOTER SECTION
====================================================== */
.footer-section {
  background: var(--secondary);
  padding: 80px 0 60px;
  color: #fff;
  direction: rtl;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: start;
}

/* العناوين */
.footer-col h4 {
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* روابط */
.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* التواصل */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 18px;
}

.follow-title {
  margin-top: 30px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 15px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-links a:hover {
  transform: scale(1.1);
}

/* الشعار */
.footer-logo {
  width: 170px;
}

/* أزرار المتاجر */
.footer-download {
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 16px 20px;

  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.store-btn img {
  width: 48px;
  height: 48px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-text p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.store-text strong {
  font-size: 24px;
  font-weight: 600;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* الخط الفاصل */
.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 60px 0 30px;
}

/* الحقوق */
.copyright {
  text-align: center;
  font-size: 16px;
  opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVE DESIGN - TABLET
   ========================================================================== */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-card {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px 60px;
  }

  .hero-top {
    padding: 40px 60px 70px;
  }

  .hero-bottom-inner {
    padding: 30px 60px 60px;
  }

  .phone-mockup {
    left: -250px;
    width: 600px;
  }

  .Mask-mockup {
    width: 450px;
  }
}

@media (max-width: 992px) {
  .about-card {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    max-height: none;
  }

  .about-image img {
    margin-top: -40px;
    width: 280px;
  }

  .showcase-row {
    flex-direction: column;
  }

  .mockup-col,
  .text-card {
    flex: 0 0 100%;
  }

  .mockup-col img {
    transform: none;
    max-width: 440px;
    margin: 0 auto 20px;
  }

  .text-card {
    padding: 45px 35px;
    text-align: center;
  }

  .features-list li {
    padding-right: 0;
  }

  .features-list li::before {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  /* Header Mobile */
  .burger {
    display: block;
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0 0 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    font-size: 18px;
    text-align: center;
  }

  .btn-download {
    display: none;
  }

  /* Hero Mobile - Hide Images */
  .phone-mockup,
  .Mask-mockup {
    display: none !important;
  }

  .hero-top {
    padding: 30px 25px 50px;
    border-radius: 30px;
    margin-top: 20px;
    text-align: center;
  }

  .hero-header {
    justify-content: center;
  }

  .logo {
    width: 100px;
  }

  .hero-content {
    max-width: 100%;
    margin-top: 30px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-bottom {
    margin-top: 30px;
    margin-bottom: 40px;
    clip-path: none;
  }

  .hero-bottom-inner {
    padding: 30px 20px;
    border-radius: 30px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .icon-box {
    width: 56px;
    height: 56px;
  }

  .icon-box img {
    width: 50px;
    height: 50px;
  }

  .feature-text {
    text-align: center;
  }

  .feature-text h3 {
    font-size: 20px;
  }

  .feature-text p {
    font-size: 14px;
  }

  /* About Mobile - Hide Image */
  .about {
    padding: 60px 0;
  }

  .about-card {
    padding: 40px 20px;
    border-radius: 30px;
  }

  .about-image {
    display: none !important;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1.1rem;
  }

  /* Features Mobile */
  .features {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .feature-card {
    max-width: 100%;
    height: auto;
    padding: 30px 20px;
    border-radius: 30px;
  }

  .feature-icon {
    width: 80px;
    height: 80px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  /* App Showcase Mobile - Hide Image */
  .app-showcase {
    padding: 40px 0;
  }

  .mockup-col {
    display: none !important;
  }

  .text-card {
    width: 100%;
    padding: 40px 25px;
    border-radius: 30px;
    text-align: center;
  }
  .features-list {
    flex: 1;
  }
  .features-list li {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
  }

  /* Download Mobile - Hide Image */
  .download {
    padding: 40px 0 60px;
  }

  .download-bg {
    padding: 40px 20px;
    background: var(--gradient-main);
    border-radius: 30px;
  }

  .download-content {
    flex-direction: column;
    text-align: center;
  }

  .download-image {
    display: none !important;
  }

  .download-text {
    margin: 0;
    max-width: 100%;
    transform: none;
    text-align: center;
  }

  .download-text h2 {
    font-size: 2rem;
  }

  .download-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }

  .download-buttons {
    flex-direction: column;
    gap: 15px;
    transform: none;
    align-items: center;
  }

  .download-buttons a {
    width: 100%;
    max-width: 280px;
  }

  .download-buttons img {
    width: 100%;
    height: 60px;
  }

  /* Footer Mobile */
  .footer {
    padding: 60px 0 20px;
  }

  .footer-card {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    gap: 30px;
    border-radius: 30px;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-download {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 20px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 0.95rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-download {
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
  }

  .copyright {
    font-size: 0.85rem;
    margin-top: 30px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .download-text h2 {
    font-size: 1.6rem;
  }

  .download-text p {
    font-size: 1rem;
  }

  .features-list li {
    font-size: 18px;
  }
}
/* *********************************************************************************************** */
*,
::after,
::before {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.h1,
h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  .h1,
  h1 {
    font-size: 2.5rem;
  }
}
.h2,
h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  .h2,
  h2 {
    font-size: 2rem;
  }
}
.h3,
h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  .h3,
  h3 {
    font-size: 1.75rem;
  }
}
.h4,
h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  .h4,
  h4 {
    font-size: 1.5rem;
  }
}
.h5,
h5 {
  font-size: 1.25rem;
}
.h6,
h6 {
  font-size: 1rem;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;

  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1420px;
  }
}
