/* إعداد الخط */
@import url("https://db.onlinewebfonts.com/c/7dfdff9f5cff88cd3898ccd72c83f653?family=TheMixArab");

body {
  font-family: "TheMixArab", sans-serif;
  background-color: #e5e1e6;
  scroll-behavior: smooth;
}

/* RTL/LTR Specific Styles */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

.navbar {
  background-color: #e5e1e6 !important;
  height: 80px;
  min-height: 80px;
}

.navbar .nav-link {
  color: #000;
  font-weight: bold;
}

.navbar .nav-link:hover {
  color: #007bff;
}

.navbar-brand img {
  height: 120px;
  width: auto;
  display: block;
  max-height: 100%;
}
/* ✅ زر اللغة */
.lang-btn {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  transition: all 0.3s;
}
.lang-btn:hover {
  background: #0d6efd;
  color: #fff;
}

/* القائمة المنسدلة */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.dropdown-menu {
  direction: rtl;
  text-align: right;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.navbar .social-nav .nav-link {
  margin-inline-start: .25rem;
}

.navbar .dropdown-toggle::after {
  margin-inline-start: .35rem;
}

@media (min-width: 992px) {
  .navbar .social-nav i {
    font-size: 1.05rem !important; 
  }
}


.custom-dropdown {
  direction: rtl;
  text-align: right;
  right: 0;
  left: auto;
}

.navbar .dropdown-menu {
  min-width: 14rem;
}

/* 🔄 إعادة ترتيب العناصر حسب اللغة */
html[dir="rtl"] .navbar .container {
  flex-direction: row;
}
html[dir="ltr"] .navbar .container {
  flex-direction: row;
}
html[dir="ltr"] .navbar .navbar-brand {
  order: -1; /* اللوغو يسار */
}
html[dir="ltr"] .navbar .main-nav {
  order: 0; /* القائمة */
}
html[dir="ltr"] .navbar .social-nav {
  order: 1; /* السوشال */
}
html[dir="ltr"] .navbar .lang-switch {
  order: 2; /* زر اللغة */
}

/* موبايل */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  .navbar .logo-img {
    height: 75px !important;
  }
}


/* البلوك الخاص بقسم الهيرو */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* صورة الخلفية */
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* التدرج */
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 74, 111, 0.85), rgba(0, 74, 111, 0.1));
  z-index: 2;
}

/* النص */
.text-container {
  z-index: 3;
  direction: rtl;
}


.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: white;
  text-align: right;
  position: relative;
  direction: rtl;
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}



.slogan {
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffff;
  animation: fadeInDown 1.5s ease-in-out;
}

/* أنيميشن لطيف للظهور من الأعلى */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تنسيق العنوان الرئيسي */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
}

/* تنسيق الكروت */
.custom-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* تنسيق العناوين داخل الكروت */
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #34495e;
}

/* تنسيق النصوص داخل الكروت */
.card-text {
  font-size: 1rem;
  color: #555;
}

/* تنسيق زر التحميل */
.custom-btn {
  background-color: #007bff;
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.custom-btn:hover {
  background-color: #0056b3;
  color: #fff;
}
/* عنوان القسم */
.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
}

/* البطاقة */
.contact-card-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* الأيقونة */
.contact-icon {
  font-size: 2.8rem;
  color: #198754;
}

/* عنوان كل بطاقة */
.contact-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #34495e;
}

/* نصوص العناوين والأرقام */
.contact-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

/* زر واتساب */
.contact-btn {
  background-color: #198754;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #146c43;
  color: #fff;
}


.card img {
  height: 200px;
  object-fit: cover;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* تخصيصات خاصة بالموبايل */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar .logo-img {
    height: 75px !important;
  }

  /* وسط الشعار */
  .navbar .navbar-brand.mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* لإظهار الشعار فقط في الشاشات الصغيرة */
  .navbar .navbar-brand.d-lg-none {
    display: block;
  }

  /* إخفاء الشعار الكبير في الموبايل */
  .navbar .navbar-brand.d-none.d-lg-block {
    display: none !important;
  }
  
}
@media (max-width: 767.98px) {
	 .hero-overlay {
		  position: absolute;
		  top: 0;
		  right: 0;
		  width: 100%;
		  height: 100%;
		  background: linear-gradient(to left, rgba(0, 74, 111, 0.85), rgba(0, 74, 111, 0.30));
		  z-index: 2;
	}
}


.text-pink { color: #d63384; }
.btn-outline-pink {
  color: #d63384;
  border-color: #d63384;
}
.btn-outline-pink:hover {
  background-color: #d63384;
  color: #fff;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5); /* خلفية داكنة شفافة */
  border-radius: 50%;
  background-size: 60% 60%; /* لتصغير السهم داخل الدائرة */
}

/* فاصل أنيق بين الأيقونات وزر اللغة */
.navbar-divider {
  width: 1px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.15);
  margin-inline: 1rem;
  border-radius: 1px;
}
.phone-number {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
}



/* عرض القوائم في الموبايل */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eee;
    padding: 1rem;
    backdrop-filter: blur(8px);
  }

  .navbar-nav .nav-link {
    color: #111 !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
  }

  .social-nav {
    justify-content: center;
  }
  .navbar-nav.social-nav {
    display: flex !important;
    justify-content: center; /* توسيط الأيقونات */
    gap: 15px; /* مسافة بين الأيقونات */
    flex-direction: row !important; /* عرضها في صف واحد */
    margin-top: 10px;
  }

  .navbar-nav.social-nav .nav-item {
    display: inline-block;
  }

  .navbar-nav.social-nav .nav-link {
    font-size: 1.3rem;
    color: #333;
  }

  .navbar-nav.social-nav .nav-link:hover {
    color: #0d6efd;
  }

}

/* --------------------------
   محاذاة القائمة حسب اللغة
--------------------------- */
html[dir="rtl"] .navbar-nav {
  margin-right: auto !important;
  margin-left: 0 !important;
}

html[dir="ltr"] .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}


/* ----------------------------
   تنظيم عرض أيقونات السوشال في الموبايل
----------------------------- */
@media (max-width: 991.98px) {
  .navbar-nav .social-nav {
    display: inline-flex !important;
    margin: 0 6px !important;
  }

  /* جعل جميع الأيقونات في صف واحد */
  .navbar-nav.ms-lg-4 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }

  /* تحسين محاذاة زر اللغة بعد الأيقونات */
  .navbar-nav.ms-lg-4 .lang-btn {
    margin-left: 10px;
    margin-right: 10px;
  }

  /* إخفاء الفاصل في الموبايل */
  .navbar-divider {
    display: none !important;
  }
}



/* ============================
   قسم تطبيق كيم ستور
============================ */
.chemstore-section {
  background-color: #e5e1e6;
  overflow: hidden;
}

.chemstore-panel {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid rgba(31, 52, 82, 0.14);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(31, 52, 82, 0.11);
}

/* تثبيت الصورة يساراً والنص يميناً بصرف النظر عن لغة الصفحة */
.chemstore-layout {
  min-height: 610px;
  direction: ltr;
}

.chemstore-visual-column,
.chemstore-content-column {
  min-height: 610px;
}

.chemstore-visual {
  position: relative;
  height: 100%;
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  isolation: isolate;
}

.chemstore-visual-circle {
  position: absolute;
  z-index: -2;
  width: min(430px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #e7edf6, #f8faff);
  box-shadow: inset 0 0 40px rgba(31, 52, 82, 0.04);
}

.chemstore-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 15%;
  right: 9%;
  bottom: 9%;
  height: 52px;
  border-radius: 50%;
  background: rgba(31, 52, 82, 0.16);
  filter: blur(23px);
}

.chemstore-visual-dots {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 8%;
  width: 105px;
  height: 105px;
  opacity: 0.28;
  background-image: radial-gradient(#1f3452 1.5px, transparent 1.5px);
  background-size: 13px 13px;
}

.chemstore-image {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 92%;
  max-height: 535px;
  object-fit: contain;
  transform: rotate(-3deg);
  filter: drop-shadow(0 25px 24px rgba(31, 52, 82, 0.24));
}

.chemstore-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
  text-align: right;
  padding: 4.25rem 4rem 3.5rem;
  color: #1f3452;
}

html[dir="ltr"] .chemstore-content {
  direction: ltr;
  text-align: left;
}

.chemstore-label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  color: #1f3452;
  background: #f0f3f8;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.chemstore-label-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: #1f3452;
}

.chemstore-title {
  margin: 1.15rem 0 0;
  color: #1f3452;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
}

.chemstore-title-line {
  display: block;
  width: 86px;
  height: 5px;
  margin: 1rem 0 1.35rem;
  border-radius: 999px;
  background-color: #1f3452;
}

.chemstore-intro {
  max-width: 760px;
  color: #5f6876;
  font-size: 1.05rem;
  line-height: 2;
}

.chemstore-intro p {
  margin-bottom: 0.65rem;
}

.chemstore-features-grid {
  margin-top: 1.1rem;
  direction: rtl;
}

html[dir="ltr"] .chemstore-features-grid {
  direction: ltr;
}

.chemstore-feature {
  height: 100%;
  text-align: center;
  padding: 0.5rem 0.3rem;
}

.chemstore-feature-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: #1f3452;
  background: linear-gradient(145deg, #ffffff, #e9eef6);
  border: 1px solid rgba(31, 52, 82, 0.12);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(31, 52, 82, 0.08);
  font-size: 1.35rem;
}

.chemstore-feature h3 {
  margin-bottom: 0.45rem;
  color: #1f3452;
  font-size: 1.05rem;
  font-weight: 800;
}

.chemstore-feature p {
  margin: 0 auto;
  max-width: 200px;
  color: #7a8391;
  font-size: 0.9rem;
  line-height: 1.75;
}

.chemstore-downloads {
  margin-top: 1.8rem;
}

.store-download-btn {
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.72rem 1.15rem;
  color: #fff;
  background-color: #1f3452;
  border: 1px solid #1f3452;
  border-radius: 13px;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(31, 52, 82, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.store-download-btn:hover {
  color: #fff;
  background-color: #14263f;
  transform: translateY(-3px);
  box-shadow: 0 13px 26px rgba(31, 52, 82, 0.25);
}

.store-download-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.05;
}

.store-download-btn small {
  margin-bottom: 0.28rem;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  opacity: 0.78;
}

.store-download-btn strong {
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
}

.store-download-icon {
  font-size: 1.75rem;
}

@media (max-width: 1199.98px) {
  .chemstore-content {
    padding: 3.5rem 2.5rem;
  }

  .chemstore-image {
    max-width: 96%;
  }
}

@media (max-width: 991.98px) {
  .chemstore-panel,
  .chemstore-layout,
  .chemstore-visual-column,
  .chemstore-content-column {
    min-height: auto;
  }

  .chemstore-visual {
    min-height: 470px;
    padding: 2.7rem 1.5rem 1rem;
  }

  .chemstore-image {
    max-height: 420px;
  }

  .chemstore-content {
    align-items: center;
    padding: 2rem 2.2rem 3.25rem;
    text-align: center;
  }

  html[dir="ltr"] .chemstore-content {
    text-align: center;
  }

  .chemstore-title-line {
    margin-left: auto;
    margin-right: auto;
  }

  .chemstore-downloads {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .chemstore-panel {
    border-radius: 22px;
  }

  .chemstore-visual {
    min-height: 400px;
  }

  .chemstore-image {
    max-height: 360px;
  }

  .chemstore-feature {
    max-width: 330px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .chemstore-section .container-xxl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .chemstore-visual {
    min-height: 350px;
    padding: 2rem 1rem 0;
  }

  .chemstore-image {
    max-height: 310px;
  }

  .chemstore-content {
    padding: 1.7rem 1.15rem 2.4rem;
  }

  .chemstore-title {
    font-size: 2.35rem;
  }

  .chemstore-intro {
    font-size: 0.98rem;
  }

  .store-download-btn {
    width: 100%;
  }
}