/* ==========================================================================
   1. المتغيرات وإعدادات عامة (Variables & Reset)
   ========================================================================== */
:root {
  /* Colors */
  --primary: #7973ff;
  --secondary: #f84669;

  --gradient-main: linear-gradient(135deg, #7973ff, #f84669);

  --white: #ffffff;
  --black: #000000;

  --text-dark: #1e1e1e;
  --text-light: rgba(255, 255, 255, 0.8);

  --bg-page: #f5f5f5;
  --border-color: #cccccc;

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

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1300px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  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%;
  height: auto;
  display: block;
}

/* =========================================
   HEADER
========================================= */
.header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 25px 0;
  z-index: 1000;
  background: transparent;
}

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

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

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

.nav-menu li a {
  font-weight: 700;
  color: var(--white);
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover {
  opacity: 0.7;
}

.btn-download {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Burger Menu */
.burger {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* =========================================
   2 - HERO
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  background: #f5f5f5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-direction: row-reverse;
}

.hero-content {
  color: white;
  max-width: 520px;
  text-align: right;
  transform: translateY(180px);
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.3;
  font-weight: 700;
}

.hero-content p {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.6;
  margin-top: 20px;
}

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

.hero-image img {
  width: clamp(260px, 40vw, 600px);
  position: absolute;
  transform: translateX(-60%) translateY(32px);
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.35));
}

/* HERO BOTTOM */
.hero-bottom {
  margin-top: 260px;
  position: relative;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  transform: translateY(20px);
  justify-content: flex-end;
  z-index: 3;
}

.hero-bottom .container {
  display: flex;
  justify-content: flex-end;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
  margin-left: auto;
}

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

.icon-box {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #7973ff33;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

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

.feature-text p {
  font-size: 16px;
  color: #666;
}

/* =========================================
   3 - ABOUT SECTION
========================================= */
.about {
  padding: 120px 0 100px 0;
  background: #f5f5f5;
  position: relative;
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* IMAGE */
.about-image {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.about-image img {
  width: 540px;
  max-width: 100%;
  border-radius: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  display: block;
}

/* LOGO WATERMARK */
.about-logo {
  position: absolute;
  left: 60px;
  right: auto;
  top: -40px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

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

/* TEXT BOX */
.about-box {
  background: #e9e9f7;
  padding: 65px 180px 65px 55px;
  border-radius: 32px;
  margin-right: -110px;
  width: 780px;
  min-height: 290px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-box h2 {
  font-size: 38px;
  color: #6c63ff;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.about-box p {
  font-size: 22px;
  color: #554ec7;
  line-height: 1.8;
  max-width: 480px;
}

.about-image,
.about-logo,
.about-box {
  transition: 0.3s ease;
}

/* ==========================================================================
   4. Features Section
   ========================================================================== */
.features {
  padding: 80px 0;
  background: #f5f5f5;
}

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

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

.feature-card {
  width: 100%;
  max-width: 520px;
  min-height: 220px;
  height: auto;
  padding: 30px 20px;
  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-red {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f8466933;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

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

/* =========================================
   5 - Showcase
========================================= */
.showcase {
  padding: 120px 0 0;
  background: #f5f5f5;
  text-align: center;
  overflow: hidden;
}

.phones-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phones-wrapper img {
  width: min(1100px, 100%);
  max-width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.2));
}

.showcase-bar {
  margin-top: 80px;
  background: #f8c7cd;
  padding: 25px 0;
}

.showcase-bar p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 30px;
  font-weight: 600;
  color: #e63950;
}

.showcase-bar p span {
  transition: transform 0.2s ease;
}

.showcase-bar p span:hover {
  transform: scale(1.1);
}

/* =========================================
   6 - DOWNLOAD SECTION
========================================= */
.download-section {
  padding: 120px 0px 320px 0px;
  background: #f5f5f5;
  overflow: hidden;
}

.download-layout {
  position: relative;
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 520px;
}

.download-phones-col {
  position: relative;
  width: 42%;
  min-height: 520px;
  flex-shrink: 0;
}

.download-phones {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-30%);
  width: 750px;
  z-index: 2;
}

.download-phones img {
  width: 100%;
  max-width: none;
  display: block;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.22));
}

.download-card {
  width: min(1000px, 100%);
  min-height: 270px;
  margin-right: 0;
  margin-left: -130px;
  background: linear-gradient(135deg, #6f67ff 0%, #746dff 100%);
  border-radius: 42px;
  position: relative;
  overflow: hidden;
}

.download-card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 60px 120px 60px 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: right;
}

.download-card h2,
.download-card p {
  width: 100%;
  text-align: right;
}

.download-card h2 {
  font-size: 72px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
}

.download-card p {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 30px;
}

.download-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.download-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-buttons img {
  width: 180px;
  height: 55px;
  display: block;
}

/* =========================================
   7 - FOOTER
========================================= */
.footer {
  background: linear-gradient(135deg, #d4548a 0%, #7b73ff 100%);
  color: #fff;
  padding: 90px 0 40px;
  overflow: hidden;
}

.footer-card {
  width: min(1300px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr 1fr;
  column-gap: 60px;
  row-gap: 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer h4 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 28px;
  color: #fff;
}

.footer-about {
  align-items: flex-start;
}

.footer-logo {
  width: 220px;
  max-width: 100%;
  margin-bottom: 26px;
}

.footer-about p {
  font-size: 23px;
  line-height: 1.4;
  margin: 0;
  max-width: 260px;
  color: #fff;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: opacity 0.3s ease;
}

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

.footer-contact {
  align-items: flex-start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #fff;
}

.contact-item i {
  font-size: 30px;
  flex-shrink: 0;
}

.follow-title {
  margin-top: 28px;
  margin-bottom: 22px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #b168d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer-download {
  gap: 22px;
  align-items: flex-start;
}

.store-btn {
  width: 260px;
  min-height: 80px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
}

.store-text p {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
}

.store-text strong {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #fff;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (ONLY FIXING RESPONSIVENESS)
   ========================================================================== */

/* --- Tablet (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .about-box {
    width: 600px;
    padding: 50px 140px 10px 60px;
    margin-right: -120px;
  }
  .about-logo {
    right: 280px;
    width: 380px;
  }
  .download-card {
    margin-left: -60px;
  }
  .download-phones {
    width: 580px;
  }
  .download-card-content {
    padding: 60px 80px 60px 140px;
  }
}

/* --- Small Tablet / Large Mobile (max-width: 992px) --- */
@media (max-width: 992px) {
  /* Navbar */
  .burger {
    display: flex;
  }
  .btn-download {
    display: none;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(35, 28, 70, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px;
    gap: 16px;
    text-align: center;
    z-index: 1000;
    margin-top: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li a {
    font-size: 18px;
    display: block;
    padding: 8px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .hero-content {
    transform: none;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-top: 120px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .hero-image {
    justify-content: center;
    width: 100%;
  }
  .hero-image img {
    position: relative;
    transform: none;
    width: min(85%, 340px);
    margin: 0 auto;
  }
  .hero-bottom {
    position: relative;
    margin-top: 40px;
    transform: none;
    justify-content: center;
  }
  .hero-bottom .container {
    justify-content: center;
  }
  .feature-cards {
    max-width: 100%;
    width: 100%;
    align-items: center;
    margin: 0 auto;
    gap: 18px;
  }
  .feature-item {
    width: 100%;
    max-width: 360px;
  }

  /* About */
  .about {
    padding: 60px 0;
  }
  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .about-image img {
    transform: none;
    width: min(90%, 380px);
    margin: 0 auto;
  }
  .about-logo {
    display: none;
  }
  .about-box {
    width: 100%;
    height: auto;
    margin-right: 0;
    padding: 35px 24px;
    text-align: center;
  }
  .about-box h2 {
    font-size: 28px;
  }
  .about-box p {
    font-size: 18px;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Showcase */
  .showcase {
    padding: 60px 0 0;
  }
  .phones-wrapper img {
    width: 95%;
  }
  .showcase-bar {
    margin-top: 40px;
    padding: 18px 12px;
  }
  .showcase-bar p {
    font-size: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* Download Section */
  .download-section {
    padding: 60px 0 80px 0;
  }
  .download-layout {
    flex-direction: column;
    min-height: auto;
    gap: 30px;
    align-items: center;
  }
  .download-card {
    width: 100%;
    margin-left: 0;
    min-height: auto;
    border-radius: 28px;
  }
  .download-card-content {
    padding: 40px 24px;
    text-align: center;
    align-items: center;
  }
  .download-card h2 {
    font-size: 42px;
    text-align: center;
  }
  .download-card p {
    font-size: 20px;
    text-align: center;
  }
  .download-buttons {
    justify-content: center;
  }
  .download-phones-col {
    width: 100%;
    min-height: auto;
  }
  .download-phones {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(90%, 380px);
    margin: 0 auto;
  }

  /* Footer */
  .footer {
    padding: 60px 0 30px;
  }
  .footer-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    border-radius: 36px;
    padding: 24px 16px;
  }
  .feature-icon,
  .feature-icon-red {
    width: 80px;
    height: 80px;
  }
  .feature-icon img,
  .feature-icon-red img {
    width: 40px;
    height: 40px;
  }
  .showcase-bar p {
    font-size: 16px;
    gap: 10px;
  }
  .download-card h2 {
    font-size: 32px;
  }
  .download-card p {
    font-size: 16px;
  }
  .download-buttons img {
    width: 145px;
    height: auto;
  }
  .footer-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-download {
    align-items: center;
  }
  .contact-item {
    justify-content: center;
    font-size: 18px;
  }
  .social-links {
    justify-content: center;
  }
  .footer h4 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .footer-about p,
  .footer-links a {
    font-size: 16px;
  }
  .store-btn {
    max-width: 240px;
    padding: 12px 18px;
    min-height: 64px;
  }
  .store-text strong {
    font-size: 18px;
  }
  .store-text p {
    font-size: 13px;
  }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .about-box h2 {
    font-size: 22px;
  }
  .about-box p {
    font-size: 15px;
  }
  .download-card h2 {
    font-size: 26px;
  }
  .download-card p {
    font-size: 14px;
  }
}
