/* ==========================================================================
   1. المتغيرات وإعدادات عامة (Variables & Reset)
   ========================================================================== */
:root {
  --primary-blue: #4a90e2;
  --primary-green: #06d6a0;
  --dark-text: #1e1e1e;
  --gray-text: #555555;
  --bg-color: #f5f5f5;
  --white: #ffffff;
  --border-color: #cccccc;
  --gradient-main: linear-gradient(242.6deg, #4a90e2 14.55%, #06d6a0 89.93%);
  --gradient-secondary: linear-gradient(
    227.35deg,
    #4a90e2 26.42%,
    #06d6a0 123.06%
  );
  --card-radius: 40px;
  --font-main: "Almarai", sans-serif;
  --container-width: 1300px;
}

* {
  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);
}

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

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

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

.nav-menu li a {
  font-weight: 700;
  color: var(--dark-text);
  font-size: 16px;
}

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

.btn-download {
  background: var(--gradient-main);
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: transform 0.2s;
  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;
}

/* ==========================================================================
   3. قسم الهيرو (Hero Section)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
}

.hero-top {
  background: var(--gradient-main);
  padding: 50px 80px 90px;
  border-radius: 60px;
  margin-top: 40px;
  max-width: 1200px;
  margin-inline: auto;
}

.hero-header {
  display: flex;
  justify-content: flex-start;
}

.logo {
  width: 140px;
}

.hero-content {
  max-width: 500px;
  margin-top: 60px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 50px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-bottom {
  background: transparent;
  padding: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 60%);
  max-width: 1200px;
  margin-inline: auto;
  margin-top: 40px;
  margin-bottom: 60px;
}

.phone-mockup {
  position: absolute;
  left: -350px;
  top: 40px;
  width: 740px;
  z-index: 10;
}

.Mask-mockup {
  position: absolute;
  left: 10px;
  top: -50px;
  width: 550px;
}

.hero-bottom-inner {
  background: var(--white);
  padding: 40px 80px 80px;
  border-radius: 60px;
  border: 1px solid #e5e5e5;
}

.feature-cards {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 24px 36px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

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

.feature-text h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 16px;
  color: #666666;
  line-height: 1.5;
}

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

.about-card {
  position: relative;
  background: #ffffff;
  border-radius: 48px;
  border: 1px solid #cccccc;
  max-width: 1200px;
  max-height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 0px 0px;
  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: center;
  text-align: center;
  height: 100%;
}

.about-text h2 {
  font-size: 2.6rem;
  color: #00c897;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1.3rem;
  line-height: 1.2;
  color: #555;
}

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

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

/* ==========================================================================
   6. المميزات (Features)
   ========================================================================== */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 60px;
  color: #222;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  width: 100%;
  max-width: 520px;
  height: 250px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon img,
.feature-icon svg {
  width: 50px;
  height: 50px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

/* ==========================================================================
   7. عرض التطبيق (App Showcase)
   ========================================================================== */
.app-showcase {
  padding: 70px 0;
}

.showcase-row {
  display: flex;
  align-items: center;
}

.mockup-col {
  flex: 0 0 52%;
  display: flex;
  justify-content: flex-start;
}

.mockup-col img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  transform: translateX(-20px);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.25));
}

.text-card {
  flex: 0 0 48%;
  background: linear-gradient(135deg, #4a90e2, #06d6a0);
  margin: 0;
  padding: 60px 70px;
  border-radius: 40px;
  display: flex;
  align-items: center;
}

.features-list {
  list-style: none;
}

.features-list li {
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-right: 24px;
}

.features-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.15em;
  line-height: 1;
}

/* ==========================================================================
   8. التحميل (Download)
   ========================================================================== */
.download {
  padding: 50px 0 100px;
  overflow: visible;
}

.download-bg {
  background: url("images/showcase-bg.svg") no-repeat center/contain;
  border-radius: var(--card-radius);
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.download-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
  flex-direction: row;
}

.download-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-final {
  max-width: 500px;
  margin-top: -140px;
  margin-left: -30px;
  filter: drop-shadow(25px 25px 40px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.phone-final:hover {
  transform: rotate(-12deg) scale(1.02);
}

.download-text {
  flex: 1.2;
  color: white;
  margin-top: 60px;
  margin-left: 40px;
  max-width: 480px;
  text-align: center;
  transform: perspective(2000px) translateZ(20px);
}

.download-text h2 {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.download-text p {
  font-size: 1.8rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  gap: 15px;
  transform: translateX(-40px);
  flex-wrap: wrap;
  justify-content: center;
}

.store-button {
  background: #101010;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.store-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: black;
}

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

.store-label {
  font-size: 10px;
  opacity: 0.8;
}

.store-name {
  font-size: 16px;
  font-weight: bold;
}

/* ==========================================================================
   Footer (التذييل)
   ========================================================================== */
.footer {
  background: #f2f2f2;
  padding: 80px 0 30px;
  direction: rtl;
}

.footer-card {
  background: linear-gradient(135deg, #20c7a7, #4a8fe2);
  border-radius: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 90px;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr 1.3fr;
  gap: 60px;
  color: #fff;
}

.footer-col h4 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col p,
.footer-col a {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
  text-decoration: none;
}

.footer-col a:hover {
  opacity: 0.8;
}

.footer-about {
  text-align: right;
}

.footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
}

.footer-contact .contact-item {
  margin-bottom: 15px;
}

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

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

.social-links a {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #4a8fe2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
}

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

.footer-download {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.store-btn {
  border: 2px solid #ffffff;
  border-radius: 18px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.3s;
  color: #fff;
}

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

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left !important;
}

.store-btn p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

.store-btn strong {
  font-size: 1.3rem;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  color: #333;
  font-size: 0.95rem;
}

/* ==========================================================================
   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 h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .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;
  }
}
