/* ============================= */
/* ===   الخطوط والمتغيرات   === */
/* ============================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;900&display=swap');

@font-face {
  font-family: 'Expo Arabic';
  src: url('assets/fonts/Expo Arabic Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
  --accent-blue: #00AEEF;
  --dark-grey: #333333;
  --light-grey: #f0f0f0;
  --text-color: rgba(101, 156, 193, 1);
}

/* ============================= */
/* ===   التنسيقات الأساسية   === */
/* ============================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Expo Arabic', sans-serif;
  color: var(--text-color);
  background-color: #E9EBEF;
  background-image: url('assets/icons/image 7.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================= */
/* ===     الهيدر (العلوي)     === */
/* ============================= */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  width: 95%;
  max-width: 600px;
  height: 75px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
  z-index: 100;
  animation: headerFadeDown 1s ease forwards;
}

.header-logo img {
  height: 160px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav {
  display: flex;
  gap: 25px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
}

/* ============================= */
/* ===   القسم الرئيسي (Hero)  === */
/* ============================= */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.headline-badge {
  color: #000;
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 25px;
}

.headline {
  display: inline-block;
  background-color: #3482CC;
  color: #fff;
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 auto 20px auto;
  letter-spacing: -1px;
  padding: 16px 50px;
  border-radius: 999px;
  box-shadow: 0 6px 25px rgba(52, 130, 204, 0.4);
}

.lede {
  font-size: 1.3rem;
  line-height: 1.7;
  color: black;
  font-weight: bold;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ============================= */
/* ===         الأزرار         === */
/* ============================= */
.ctas {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all .25s ease;
  border: none;
}

.btn-apk {
    border-radius: 20px;

    border: 2px solid #63b9ff;
  background-color: #494546;
  color: #fff;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.telegram-button {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center; /* <<< تم التغيير من space-between إلى center */
  gap: 15px; /* <<< تم إضافة هذه الخاصية لتحديد المسافة */
  width: 100%;
  max-width: 400px;
  padding: 10px 20px 10px; /* تعديل الحشوة لتكون متساوية يمينًا ويسارًا */
  margin: 20px auto;
  background-color: #494546;
  color: #fff;
  border-radius: 20px;
  border: 2px solid #63b9ff;
  box-shadow: 0 0 15px rgba(99, 185, 255, 0.5);
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.2s ease-in-out;
}

.telegram-button .button-text {
  /* لم نعد بحاجة لخاصية flex-grow هنا */
  text-align: center;
}.telegram-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(99, 185, 255, 0.7);
}

.telegram-button .icon-background {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.telegram-button .telegram-icon {
  width: 24px;
  height: 24px;
  background-color: #494546;
  -webkit-mask-image: url('assets/icons/telegram.svg');
  mask-image: url('assets/icons/telegram.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ============================= */
/* === أيقونات التواصل الاجتماعي === */
/* ============================= */
.socials {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
}

.socials a img {
  width: 40px;
  height: 40px;
  transition: transform .25s ease;
}

.socials a:hover {
  transform: translateY(-5px);
}

/* ============================= */
/* ===    قسم عن التطبيق      === */
/* ============================= */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
}

.text-content {
  text-align: right;
  padding-right: 50px;
}

.content-section h2 {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #3482CC;
  margin: 0 0 20px 0;
  padding-right: 35px;
}

.content-section h2::before {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #3482CC;
}

.content-section p {
  font-size: 1.25rem;
  line-height: 2.2;
  color: black;
  font-weight: bold;
}

.info-image {
  text-align: center;
}

.info-image img {
  width: 100%;
  max-width: 350px;
  pointer-events: none;
}

/* ============================= */
/* ===         الفوتر         === */
/* ============================= */
.main-footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  color: #555555;
  font-size: 1rem;
  font-weight: 700;
}

/* ============================= */
/* ===   تأثيرات الحركة CSS   === */
/* ============================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(.2, .9, .2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes headerFadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* حركة الهاتف (ديسكتوب) */
@keyframes phoneDesktopReveal {
  0% { opacity: 0; transform: translateY(100px) scale(0.9) rotate(-5deg); filter: brightness(0.8); }
  60% { opacity: 1; transform: translateY(-10px) scale(1.02) rotate(0deg); filter: brightness(1); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); filter: brightness(1); }
}

/* حركة طفو مستمرة */
@keyframes phoneFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* ============================= */
/* === تحسين التصميم للموبايل === */
/* ============================= */
@media (max-width: 900px) {
  body {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .main-header {
    padding: 8px 20px;
    height: 65px;
  }

  .header-logo img {
    height: 100px;
  }

  .headline-badge {
    font-size: 1.8rem;
  }

  .headline {
    font-size: 2.4rem;
    padding: 10px 25px;
  }

  .lede {
    font-size: 1rem;
  }

  .telegram-button {
    font-size: 1rem;
    width: 90%;
  }

  .socials {
    gap: 25px;
  }

  .content-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 15px;
  }

  .text-content {
    text-align: center;
    padding-right: 0;
  }

  .info-image {
    order: -1;
    margin-bottom: 20px;
  }

  .info-image img {
    width: 80%;
    max-width: 280px;
    opacity: 0;
    transform: translateY(60px);
    animation: fadeUp 1.4s ease-out forwards;
  }

  .content-section h2 {
    font-size: 1.6rem;
  }

  .content-section p {
    font-size: 1rem;
  }

  .main-footer {
    font-size: 0.9rem;
  }
}

/* ============================= */
/* ===  حركة الهاتف للديسكتوب === */
/* ============================= */
@media (min-width: 901px) {
  body {
    background-attachment: scroll;
  }

  .info-image img {
    opacity: 0;
    transform: translateY(100px);
    animation:
      phoneDesktopReveal 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards,
      phoneFloat 4s ease-in-out 2.3s infinite;
    animation-delay: 0.5s, 2.3s;
  }
}
@media (max-width: 900px) {
  .info-image img {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    will-change: transform, opacity;
    animation: phoneMobileReveal 1.3s ease-out forwards;
    animation-delay: 0.2s;
  }
}
@keyframes phoneMobileReveal {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotate(-2deg);
    filter: brightness(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    filter: brightness(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: brightness(1);
  }
}
.info-image img {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 1s ease-out;
  will-change: transform, opacity;
}

/* الحالة النشطة عندما تظهر الصورة */
.info-image img.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

