/**
* App Name: Motherhood App
* Theme: Soft Purple, Pink, Green, Dark Slate
* Font: Cairo
*/

:root {
  --default-font: "Cairo", system-ui, -apple-system, sans-serif;
  --heading-font: "Cairo", system-ui, -apple-system, sans-serif;
  --nav-font: "Cairo", system-ui, -apple-system, sans-serif;

  /* App Brand Colors */
  --background-color: #fdfaf6; 
  --default-color: #546270;    
  --heading-color: #546270;    
  --accent-color: #9b78b0;     
  --accent-light: #c783aa;     
  --surface-color: #ffffff;    
  --contrast-color: #ffffff;   
  --danger-color: #d94545;     
  --success-color: #8fb996;    
}

:root {
  --nav-color: rgba(84, 98, 112, 0.7);
  --nav-hover-color: #9b78b0;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #546270;
  --nav-dropdown-hover-color: #9b78b0;
}

.light-background {
  --background-color: #f7f1f4;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #546270;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #4a5568;
  --contrast-color: #ffffff;
}

:root { scroll-behavior: smooth; }

/* Global Styles */
body { color: var(--default-color); background-color: var(--background-color); font-family: var(--default-font); }
a { color: var(--accent-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent-light); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--heading-color); font-family: var(--heading-font); }

/* RTL Adjustments via CSS logical properties */
html[dir="rtl"] { text-align: right; }
html[dir="ltr"] { text-align: left; }
html[dir="rtl"] .me-auto { margin-inline-start: auto; margin-inline-end: 0 !important; }
html[dir="rtl"] .ms-auto { margin-inline-end: auto; margin-inline-start: 0 !important; }
html[dir="rtl"] .hero .download-btn i { margin-inline-end: 8px; margin-inline-start: 0; }
html[dir="ltr"] .hero .download-btn i { margin-inline-end: 8px; margin-inline-start: 0; }
html[dir="rtl"] .about .content .read-more i { margin-inline-start: 5px; transform: scaleX(-1); }
html[dir="rtl"] .faq .faq-container .faq-item h3 { margin: 0 0 0 30px; }
html[dir="ltr"] .faq .faq-container .faq-item h3 { margin: 0 30px 0 0; }
html[dir="rtl"] .faq .faq-container .faq-item .faq-toggle { right: auto; left: 20px; }
html[dir="ltr"] .faq .faq-container .faq-item .faq-toggle { left: auto; right: 20px; }

/* Header */
.header { background-color: #815B99; padding: 15px 0; transition: all 0.5s; z-index: 997; }
.header .logo img { max-height: 50px; margin-inline-end: 8px; }
.header .logo h1 { font-size: 26px; margin: 0; font-weight: 800; color: #ffffff; }
.scrolled .header { box-shadow: 0px 0 18px rgba(0, 0, 0, 0.15); background-color: #815B99; }
.scrolled .header .navmenu a { color: #ffffff; }

/* Navmenu */
.navmenu .lang-btn { background: #ffffff; color: #815B99 !important; border-radius: 50px; padding: 8px 20px !important; margin-inline-start: 15px; font-weight: 700; transition: 0.3s; }
.navmenu .lang-btn:hover { background: #e5d5ef; color: #815B99 !important; }
@media (min-width: 1200px) {
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu li { position: relative; }
  .navmenu a { color: #ffffff; padding: 18px 15px; font-size: 16px; font-weight: 600; transition: 0.3s; }
  .navmenu li:hover>a, .navmenu .active { color: #e5d5ef; }
}
@media (max-width: 1199px) {
  .mobile-nav-toggle { color: #ffffff; font-size: 32px; cursor: pointer; transition: 0.3s; z-index: 9999; }
  
  /* خلفية ضبابية تمنع التمرير وتعطي مظهراً زجاجياً احترافياً */
  body.mobile-nav-active { overflow: hidden; }
  body.mobile-nav-active::before { 
    content: ""; 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(6px); 
    z-index: 996; 
  }

  /* صندوق القائمة العائم */
  .navmenu ul { 
    position: absolute; 
    top: 100%; 
    right: 15px; 
    left: 15px; 
    background-color: #ffffff; 
    padding: 20px; 
    margin: 15px 0 0 0; /* تم التعديل لمنع الهوامش الافتراضية المسببة للفراغات */
    border-radius: 16px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.18); 
    z-index: 9998; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none; /* تمت الإضافة: لإخفاء النقاط الدائرية تماماً */
  }

  /* تفعيل الظهور بانسيابية عند النقر */
  body.mobile-nav-active .navmenu > ul { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* تنسيق روابط الأقسام */
  .header .navmenu a,
  .scrolled .header .navmenu a { 
    display: block; 
    color: #546270; 
    padding: 12px 18px; 
    font-size: 16px; 
    font-weight: 700; 
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  /* تأثير التمرير (Hover) وحالة النشاط (Active) */
  .header .navmenu a:hover, 
  .header .navmenu .active,
  .scrolled .header .navmenu a:hover, 
  .scrolled .header .navmenu .active { 
    background-color: rgba(129, 91, 153, 0.08); 
    color: #815B99; 
    padding-inline-start: 28px; /* دفع النص للداخل برفق حسب اللغة */
  }
  
  /* تخصيص زر اللغة في الجوال */
  .navmenu .lang-btn {
    margin: 15px 0 0 0 !important;
    background: #815B99 !important;
    color: #ffffff !important;
    text-align: center;
    border-radius: 50px !important;
    padding: 12px 20px !important;
  }
  
  .navmenu .lang-btn:hover {
    background: #54336c !important;
    padding-inline-start: 20px !important; /* ثبات النص لزر اللغة لتجنب تشوهه */
  }
}

/* Sections */
section, .section { padding: 80px 0; scroll-margin-top: 90px; }
.section-title { text-align: center; padding-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: 800; margin-bottom: 15px; color: var(--accent-color); }
.section-title p { color: var(--default-color); font-size: 18px; }

/* Hero */
.hero { 
  width: 100%; 
  min-height: 80vh; 
  position: relative; 
  padding: 130px 0 70px 0; 
  display: flex; 
  align-items: center; 
  background: linear-gradient(135deg, #815B99 0%, #b87aa6 100%); 
}
.hero h2 { font-size: 42px; font-weight: 800; line-height: 1.3; color: #ffffff; }
.hero p { color: rgba(255, 255, 255, 0.92); margin: 15px 0 30px 0; font-size: 18px; line-height: 1.8; }
ء
/* 1. ضبط الهامش بين عمود النصوص والصورة في الشاشات الكبيرة */
@media (min-width: 992px) {
  .hero .col-lg-7 {
    padding-inline-end: 45px;
  }
}

/* 2. أزرار التحميل وتأثير الـ Hover التفاعلي */
.hero .download-btn { 
  background: #ffffff; 
  color: #815B99; 
  padding: 12px 28px; 
  border-radius: 50px; 
  font-weight: 700; 
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
  display: inline-flex; 
  align-items: center; 
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  text-decoration: none;
}
.hero .download-btn i {
  font-size: 20px;
  transition: transform 0.35s ease;
}
.hero .download-btn:hover { 
  background: #54336c; 
  color: #ffffff !important; 
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.2);
}
.hero .download-btn:hover i {
  transform: scale(1.22);
}
.hero .download-btn + .download-btn { margin-inline-start: 15px; }

/* 3. حاوية الهواتف وتأثير حركة الطفو الانسيابية */
.hero .hero-img { position: relative; min-height: 500px; }
.hero .phone-1 { 
  position: absolute; 
  left: 0; 
  width: 220px; 
  border-radius: 30px; 
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25); 
  animation: floatPhone1 5s ease-in-out infinite;
}
.hero .phone-2 { 
  position: absolute; 
  left: 100px; 
  top: 50px; 
  width: 220px; 
  border-radius: 30px; 
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3); 
  z-index: 2; 
  animation: floatPhone2 5.5s ease-in-out infinite 0.7s;
}

html[dir="rtl"] .hero .phone-1 { left: auto; right: 0; }
html[dir="rtl"] .hero .phone-2 { left: auto; right: 100px; }

/* Keyframes لحركة الطفو */
@keyframes floatPhone1 {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes floatPhone2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(1.8deg);
  }
}

.hero-content-wrapper {
  display: block !important;
  /* تم إزالة width: 100% هنا للحفاظ على تقسيم الشاشة وبقاء الصور بجوار النص */
}

/* فرض المحاذاة لليمين في اللغة العربية بشكل قطعي */
html[dir="rtl"] .hero-content-wrapper,
html[dir="rtl"] .hero-content-wrapper h2,
html[dir="rtl"] .hero-content-wrapper p,
html[dir="rtl"] .hero-btns-wrapper {
  text-align: right !important;
}

/* فرض المحاذاة لليسار في اللغة الإنجليزية بشكل قطعي */
html[dir="ltr"] .hero-content-wrapper,
html[dir="ltr"] .hero-content-wrapper h2,
html[dir="ltr"] .hero-content-wrapper p,
html[dir="ltr"] .hero-btns-wrapper {
  text-align: left !important;
}

/* إضافة هامش ذكي بين النصوص والصور في الشاشات الكبيرة فقط */
@media (min-width: 992px) {
  .hero-content-wrapper {
    padding-inline-end: 80px !important;
  }
}

/* About */
.about .content h3 { font-size: 16px; background: rgba(155, 120, 176, 0.1); color: var(--accent-color); padding: 8px 15px; border-radius: 5px; font-weight: 700; display: inline-block; }
.about .content h2 { font-weight: 800; margin-top: 10px; }
.about .content .read-more { background: var(--accent-color); color: var(--contrast-color); font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 5px; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; margin-top: 15px; }
.about .content .read-more:hover { background: var(--accent-light); }
.about .icon-box { background: var(--surface-color); padding: 40px 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border-bottom: 4px solid transparent; height: 100%;}
.about .icon-box:hover { transform: translateY(-5px); border-bottom-color: var(--accent-color); }
.about .icon-box i { font-size: 40px; color: var(--accent-light); margin-bottom: 15px; display: block; }
.about .icon-box h3 { font-size: 22px; font-weight: 800; color: var(--heading-color); }

/* تأثير اللمعان للصور في قسم About */
.glow-effect {
  /* تشغيل حركة اللمعان بشكل مستمر وتبادلي */
  animation: iconGlow 2.5s infinite alternate ease-in-out;
  border-radius: 50%; /* للحفاظ على انسيابية اللمعان حول الحواف */
}

@keyframes iconGlow {
  0% {
    /* الحالة العادية بدون لمعان مع حجم طبيعي */
    filter: drop-shadow(0 0 2px rgba(155, 120, 176, 0.2)) brightness(1);
    transform: translateY(0) scale(1);
  }
  100% {
    /* حالة اللمعان مع توهج بجي بلون الثيم، زيادة السطوع، وتكبير طفيف وحركة لأعلى */
    filter: drop-shadow(0 0 16px rgba(155, 120, 176, 0.85)) brightness(1.15);
    transform: translateY(-4px) scale(1.05);
  }
}

/* ====== Baby Tools Detailed Grid ====== */
.baby-tool-card {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.03);
}
.baby-tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(155, 120, 176, 0.15);
  border-color: rgba(155, 120, 176, 0.2);
}
.baby-tool-card .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: 0.3s;
}
.baby-tool-card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
}
.color-purple { background: rgba(156, 126, 206, 0.15); color: #9C7ECE; }
.color-pink { background: rgba(237, 100, 92, 0.15); color: #ED645C; }
.color-blue { background: rgba(162, 204, 205, 0.15); color: #A2CCCD; }
.color-green { background: rgba(99, 167, 122, 0.15); color: #63A77A; }
.color-yellow { background: rgba(226, 166, 90, 0.15); color: #E2A65A; }

.baby-tool-card h3 { font-weight: 800; font-size: 20px; margin-bottom: 12px; color: var(--heading-color); }
.baby-tool-card p { font-size: 15px; color: var(--default-color); line-height: 1.7; margin: 0; }

/* Gallery */
.gallery { overflow: hidden; }
.gallery .swiper-wrapper { height: auto; }
.gallery .swiper-pagination { margin-top: 20px; position: relative; }
.gallery .swiper-pagination .swiper-pagination-bullet { background-color: var(--background-color); border: 2px solid var(--accent-light); width: 12px; height: 12px; opacity: 1; }
.gallery .swiper-pagination .swiper-pagination-bullet-active { background-color: var(--accent-color); border-color: var(--accent-color); }
.gallery .swiper-slide-active { text-align: center; }
@media (min-width: 992px) {
  .gallery .swiper-wrapper { padding: 60px 0; }
  .gallery .swiper-slide-active { background: var(--background-color); border: 4px solid var(--accent-light); padding: 4px; z-index: 1; transform: scale(1.1); border-radius: 20px; transition: none; }
}

/* Testimonials */
.testimonials .testimonial-item { text-align: center; background: var(--surface-color); padding: 40px 20px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin: -15px; }
.testimonials .testimonial-item .testimonial-img { width: 100px; border-radius: 50%; border: 4px solid var(--accent-light); margin: 0 auto 15px auto; }
.testimonials .testimonial-item h3 { font-size: 20px; font-weight: 800; margin: 0 0 5px 0; }
.testimonials .testimonial-item h4 { font-size: 14px; color: var(--accent-color); margin: 0 0 15px 0; font-weight: 600; }
.testimonials .testimonial-item .stars { margin-bottom: 15px; }
.testimonials .testimonial-item .stars i { color: #ffc107; margin: 0 2px; }
.testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right { color: rgba(155, 120, 176, 0.4); font-size: 26px; line-height: 0; }
.testimonials .testimonial-item .quote-icon-left { display: inline-block; position: relative; }
.testimonials .testimonial-item .quote-icon-right { display: inline-block; position: relative; top: 10px; transform: scale(-1, -1); }
html[dir="rtl"] .testimonials .testimonial-item .quote-icon-left { transform: scale(-1, -1); top: 10px; }
html[dir="rtl"] .testimonials .testimonial-item .quote-icon-right { transform: none; top: 0; }
.testimonials .testimonial-item p { font-style: italic; margin: 0 auto 15px auto; font-size: 16px; line-height: 1.6; }

/* FAQ */
.faq .faq-container .faq-item { background-color: var(--surface-color); position: relative; padding: 20px; margin-bottom: 15px; border: 1px solid rgba(84, 98, 112, 0.1); border-radius: 10px; overflow: hidden; transition: 0.3s; }
.faq .faq-container .faq-item h3 { font-weight: 700; font-size: 18px; line-height: 24px; transition: 0.3s; cursor: pointer; display: flex; align-items: center; color: var(--heading-color); }
.faq .faq-container .faq-item h3:hover { color: var(--accent-color); }
.faq .faq-container .faq-item .faq-content { display: grid; grid-template-rows: 0fr; transition: 0.3s ease-in-out; visibility: hidden; opacity: 0; }
.faq .faq-container .faq-item .faq-content p { margin-bottom: 0; overflow: hidden; font-size: 15px; color: var(--default-color); line-height: 1.6; }
.faq .faq-container .faq-item .faq-toggle { position: absolute; top: 20px; font-size: 16px; transition: 0.3s; cursor: pointer; color: var(--heading-color); }
.faq .faq-container .faq-active { background-color: rgba(155, 120, 176, 0.05); border-color: var(--accent-light); }
.faq .faq-container .faq-active h3 { color: var(--accent-color); }
.faq .faq-container .faq-active .faq-content { grid-template-rows: 1fr; visibility: visible; opacity: 1; padding-top: 15px; }
.faq .faq-container .faq-active .faq-toggle { transform: rotate(180deg); color: var(--accent-color); }

/* Disclaimer Section (Compact & Minimal) */
.disclaimer-box { 
  background-color: #fff9f0; 
  border: 1px solid #fde68a; 
  border-radius: 10px; 
  padding: 25px; 
  position: relative; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
  max-width: 800px; 
  margin: 0 auto; 
}
.disclaimer-box .icon-warning { 
  position: absolute; 
  top: -20px; 
  left: 50%; 
  transform: translateX(-50%); 
  background: #f59e0b; 
  color: white; 
  width: 40px; 
  height: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 50%; 
  font-size: 20px; 
  border: 3px solid white; 
}
.disclaimer-list { list-style: none; padding: 0; margin: 0; }
.disclaimer-list li { position: relative; padding-inline-start: 22px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #78350f; line-height: 1.6; }
.disclaimer-list li::before { content: '•'; position: absolute; left: 0; color: #f59e0b; font-size: 16px; top: 0; }
html[dir="rtl"] .disclaimer-list li::before { left: auto; right: 0; }

/* Custom Alert Overlay */
.custom-alert-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(84, 98, 112, 0.7); backdrop-filter: blur(4px); z-index: 99999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.custom-alert-overlay.show { opacity: 1; visibility: visible; }
.custom-alert-box { background: white; padding: 30px; border-radius: 20px; text-align: center; width: 90%; max-width: 400px; border-bottom: 5px solid var(--accent-color); box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: scale(0.8); transition: 0.3s; }
.custom-alert-overlay.show .custom-alert-box { transform: scale(1); }
.custom-alert-box h3 { color: var(--accent-color); font-weight: 800; font-size: 22px; margin-bottom: 15px; }
.custom-alert-box p { color: var(--default-color); font-weight: 600; font-size: 15px; margin-bottom: 25px; }
.custom-alert-btn { background: linear-gradient(135deg, var(--accent-color), var(--accent-light)); color: white; border: none; padding: 10px 30px; border-radius: 50px; font-weight: 700; font-family: var(--default-font); cursor: pointer; }

/* Footer (Original SoftLand Format) */
.footer { color: var(--default-color); background-color: var(--background-color); font-size: 14px; text-align: center; padding: 30px 0; position: relative; }
.footer h3 { font-size: 36px; font-weight: 800; position: relative; padding: 0; margin: 0 0 15px 0; color: white;}
.footer p { font-size: 15px; font-style: italic; padding: 0; margin: 0 0 30px 0; color: rgba(255,255,255,0.8); }
.footer .social-links { margin: 0 0 30px 0; }
.footer .social-links a { font-size: 16px; display: flex; align-items: center; justify-content: center; background: var(--accent-color); color: var(--contrast-color); line-height: 1; margin: 0 4px; border-radius: 50%; text-align: center; width: 36px; height: 36px; transition: 0.3s; }
.footer .social-links a:hover { background: color-mix(in srgb, var(--accent-color), transparent 20%); text-decoration: none; transform: translateY(-3px);}
.footer .copyright { padding-top: 25px; border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); }

/* Preloader & Scroll Top */
#preloader { position: fixed; inset: 0; z-index: 999999; background: var(--background-color); display: flex; justify-content: center; align-items: center; }
#preloader::before { content: ""; width: 50px; height: 50px; border: 4px solid var(--accent-light); border-top-color: var(--accent-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.scroll-top { position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px; z-index: 99999; background-color: var(--accent-color); width: 40px; height: 40px; border-radius: 50%; transition: all 0.4s; display: flex; align-items: center; justify-content: center; }
.scroll-top i { font-size: 24px; color: var(--contrast-color); line-height: 0; }
.scroll-top:hover { background-color: var(--accent-light); color: var(--contrast-color); }
.scroll-top.active { visibility: visible; opacity: 1; }
html[dir="rtl"] .scroll-top { right: auto; left: 15px; }

/* Mobile Adjustments */
@media (max-width: 991px) {
  .hero h2 { font-size: 32px; }
  
  /* إظهار الحاوية للصور وضبط أبعادها */
  .hero .hero-img { 
    display: block; 
    min-height: 420px; 
    margin-top: 50px; 
    position: relative; 
  }
  
  /* تصغير حجم الصور وتوسيطها ديناميكياً للواجهة الإنجليزية (LTR) */
  .hero .phone-1 { 
    width: 180px; 
    left: 50% !important; 
    right: auto !important; 
    margin-left: -130px; 
  }
  .hero .phone-2 { 
    width: 180px; 
    left: 50% !important; 
    right: auto !important; 
    margin-left: -30px; 
    top: 40px; 
  }
  
  /* عكس الاتجاهات وتوسيطها للواجهة العربية (RTL) */
  html[dir="rtl"] .hero .phone-1 { 
    left: auto !important; 
    right: 50% !important; 
    margin-right: -130px; 
    margin-left: 0; 
  }
  html[dir="rtl"] .hero .phone-2 { 
    left: auto !important; 
    right: 50% !important; 
    margin-right: -30px; 
    margin-left: 0; 
  }
}
.app-screen-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 35px; /* مسافة مريحة بين الصورة وعنوان القسم */
}

.floating-app-screen {
  max-width: 280px; /* حجم مثالي ومناسب لشاشة الهاتف لتجنب أخذ مساحة ضخمة */
  width: 100%;
  height: auto;
  border-radius: 24px; /* حواف دائرية تتناسب مع شاشات الهواتف الحديثة */
  box-shadow: 0 15px 40px rgba(129, 91, 153, 0.2); /* ظل أنيق بلون الثيم البنفسجي */
  animation: floatAppScreen 5s ease-in-out infinite; /* تشغيل الحركة باستمرار */
  z-index: 2;
}

/* حركة الطفو (Floating Animation) للصورة */
@keyframes floatAppScreen {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px); /* ترتفع الصورة للأعلى قليلاً ثم تعود بسلاسة */
  }
}

/* تعديل حجم الصورة للشاشات الصغيرة جداً */
@media (max-width: 576px) {
  .floating-app-screen {
    max-width: 240px;
  }
}

/* =======================================================
 * جدار الحماية: منع تحديد النصوص وسحب الصور
 * ======================================================= */
body {
  /* منع تحديد النصوص في كافة المتصفحات */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
  /* منع ظهور القائمة المنبثقة عند الضغط المطول في الجوال */
  -webkit-touch-callout: none; 
}

/* منع سحب الصور (Drag & Drop) */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* استثناء حقول الإدخال (إن وجدت مستقبلاً) ليتمكن المستخدم من الكتابة فيها */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* =======================================================
 * 1. تخصيص الأزرار الصغيرة للأقسام المختلفة (خارج قسم الهيرو)
 * ======================================================= */
.download-btn.small-btn {
  background: #815B99; /* لون بنفسجي ليكون واضحاً وجذاباً على الخلفيات الفاتحة */
  color: #ffffff !important; 
  padding: 8px 22px; 
  border-radius: 50px; 
  font-weight: 700; 
  font-size: 15px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
  display: inline-flex; 
  align-items: center; 
  box-shadow: 0 6px 18px rgba(129, 91, 153, 0.25);
  border: 2px solid transparent;
  text-decoration: none;
}

.download-btn.small-btn i {
  font-size: 18px;
  transition: transform 0.35s ease;
  margin-inline-end: 8px; /* مسافة ديناميكية تتوافق مع اللغتين */
}

.download-btn.small-btn:hover { 
  background: #54336c; 
  color: #ffffff !important; 
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(129, 91, 153, 0.4);
}

.download-btn.small-btn:hover i {
  transform: scale(1.22);
}

/* تخصيص الأزرار الصغيرة في الفوتر (لأن خلفيته داكنة) */
.footer .download-btn.small-btn {
  background: #ffffff;
  color: #815B99 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.footer .download-btn.small-btn:hover {
  background: #54336c;
  color: #ffffff !important;
}

/* =======================================================
 * 2. تصميم النافذة المنبثقة (Modal) وكروت الخصائص
 * ======================================================= */
/* جعل الكروت قابلة للنقر */
.baby-tool-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* تصميم خلفية النافذة المنبثقة */
.feature-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(84, 98, 112, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.feature-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* تصميم صندوق النافذة */
.feature-modal-box {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  width: 90%;
  max-width: 440px;
  position: relative;
  transform: scale(0.8) translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  border: 1px solid rgba(129, 91, 153, 0.15);
}
.feature-modal-overlay.show .feature-modal-box {
  transform: scale(1) translateY(0);
}

/* زر الإغلاق العائم */
.close-modal-btn {
  position: absolute;
  top: 15px;
  background: rgba(129, 91, 153, 0.1);
  border: none;
  color: #815B99;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
html[dir="rtl"] .close-modal-btn { left: 15px; right: auto; }
html[dir="ltr"] .close-modal-btn { right: 15px; left: auto; }

.close-modal-btn:hover {
  background: #815B99;
  color: #ffffff;
  transform: rotate(90deg);
}

/* محتوى النافذة */
.modal-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(129, 91, 153, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}
.modal-icon-wrapper img {
  width: 45px;
  animation: floatAppScreen 3s ease-in-out infinite;
}
.feature-modal-box h3 {
  color: #815B99;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 15px;
}
.feature-modal-box p {
  color: #546270;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.feature-modal-box .modal-btns-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}