@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

/* Start Global Rules */
:root {
  --brand-color: #00b9f1;
  --dark-color: #000;
  --light-color: #fafafa;

  --main-transition: all 0.3s;
}
body {
  color: var(--dark-color);
  font-family: "Cairo", sans-serif;
}
.divider {
  background-color: var(--brand-color);
  height: 4px;
  width: 30%;
  margin-top: 20px;
  border-radius: 100%;
}
@media (max-width: 768px) {
  .divider {
    width: 50%;
  }
}
.phone-call-btn {
  background-color: var(--brand-color);
  color: var(--dark-color);
  padding: 12px 50px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.phone-call-btn img {
  margin-right: 10px;
}
/* End Global Rules */

/* Start Topbar */
.topbar {
  background: linear-gradient(90deg, #00b8f0, #11d3f3);
  padding: 10px;
}
.topbar p {
  text-align: center;
}
/* End Topbar */

/* Start Navbar */
.navbar .navbar-brand img {
  width: 150px;
}
.navbar .navbar-nav a.nav-link {
  color: var(--dark-color);
  font-size: 18px;
}
.navbar .navbar-nav a.nav-link:hover {
  color: var(--brand-color);
}
.navbar .navbar-hotline {
  padding: 10px;
  color: var(--dark-color);
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.navbar .navbar-hotline img {
  width: 50px;
  margin-left: 10px;
}
.navbar .language-switch {
  text-decoration: none;
  color: var(--brand-color);
  font-weight: bold;
}
/* End Navbar */

/* Start Hero Section */
.hero-section {
  padding-top: 50px;
  background: linear-gradient(90deg, #ebf4f5, #b5c6e0);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  border-bottom: var(--brand-color) solid 50px;
  border-bottom-left-radius: 300px;
  border-bottom-right-radius: 100px;
  overflow: hidden;
}
.hero-section .intro {
  color: var(--brand-color);
}
.hero-section ul li {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--dark-color);
}
.hero-section ul li img {
  width: 50px;
  margin-left: 5px;
}
/* End Hero Section */

/* Start Features */
.features {
  padding: 100px 0;
}
.features .box {
  background-color: #fff;
  border-right: solid 5px var(--brand-color);
  padding: 10px;
  padding-top: 30px;
  height: 100%;
}
/* End Features */

/* Start Services */
.services {
  padding: 100px 0;
}
.services .box {
  padding: 10px;
  height: 100%;
  background-color: var(--light-color);
  border-right: 1px solid var(--brand-color);
}
.services .box h3 {
  font-weight: bold;
  font-size: 28px;
}
.services .phone-call-btn {
  padding: 10px 30px;
  width: 100%;
}
/* End Services */

/* Start Fast Call */
.fast-call {
  background-color: var(--dark-color);
  padding: 100px 0;
}
.fast-call h2 {
  color: var(--brand-color);
}
.fast-call p,
.fast-call li {
  color: var(--light-color);
}
/* End Fast Call */

/* Start Certification */
.certification {
  padding: 100px 0;
  background-color: #00b9f117;
  border-right: solid 10px var(--brand-color);
}
.certification h2 {
  color: var(--brand-color);
}
/* End Certification */

/* Start Reviews */
.reviews {
  padding: 100px 0;
}
.review-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  height: 100%; /* عشان الكروت تكون طول واحد */
  transition: transform 0.2s;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  margin-left: 10px;
}
.user-name {
  font-weight: 600;
  color: #202124;
  margin-bottom: 0;
  font-size: 15px;
}
.review-time {
  color: #70757a;
  font-size: 0.75rem;
}
.stars {
  color: #fbbc04;
  margin: 5px 0;
  font-size: 0.8rem;
}
.review-text {
  color: #3c4043;
  line-height: 1.4;
  font-size: 15px;
}
.google-icon {
  width: 16px;
  float: left;
}
/* End Reviews */

/* Start Branches */
.branches {
  padding: 100px 0;
}
.branches ul {
  list-style: none;
  position: relative;
}
.branches ul li::before {
  position: absolute;
  content: "📌";
  right: 0;
}
/* End Branches */

/* Start FAQ */
.faq {
  padding: 100px 0;
}
.faq h2 {
  color: var(--brand-color);
}
.faq .box {
  background-color: var(--light-color);
  padding: 30px 15px;
  border-radius: 12px;
  border: solid 1px transparent;
  border-right: solid 5px var(--brand-color);
  margin-top: 30px;
  transition: var(--main-transition);
}
.faq .box:hover {
  border: solid 1px var(--brand-color);
  border-right: solid 5px var(--brand-color);
}
/* End FAQ */

/* Start Contact */
.contact {
  padding: 100px 0;
  background-color: var(--light-color);
}
.contact .box {
  background-color: #fff;
  padding: 20px 10px;
  border-radius: 30px;
  height: 100%;
}
.contact .box a {
  text-decoration: none;
  color: var(--dark-color);
  font-size: 20px;
  font-weight: bold;
}
.contact .box a:hover {
  color: var(--brand-color);
}
.contact .box .hotline {
  color: var(--brand-color);
  font-size: inherit;
}
/* End Contact */

/* Start Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 10px;
}
/* End Footer */

/* Float BTNS */
.wa-float-wrapper {
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;
  right: auto !important; /* تأكيد إلغاء أي محاذاة لليمين */
  z-index: 2147483647 !important; /* أعلى طبقة ممكنة */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}

/* 2. دائرة الواتساب الملونة */
.wa-float-circle {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0; /* منع الانكماش */
}

/* 3. تأثير الرادار (التموجات) */
.wa-float-circle::before,
.wa-float-circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0;
  z-index: -1;
  animation: wa-radar-pulse 2.5s infinite;
}

.wa-float-circle::after {
  animation-delay: 1s;
}

/* 4. نقطة الإشعار الحمراء */
.wa-float-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  background-color: #ff0000;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: wa-badge-bounce 2s infinite;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 5. التول تيب (الرسالة الجانبية) */
.wa-float-popover {
  position: absolute;
  left: 80px; /* تظهر يمين الزرار */
  top: 50%;
  transform: translateY(-50%) translateX(-15px);
  background-color: #222;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  line-height: 1.2;
}

/* سهم صغير للتول تيب */
.wa-float-popover::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent #222 transparent transparent;
}

/* 6. تأثيرات الهوفر */
.wa-float-wrapper:hover .wa-float-circle {
  transform: scale(1.1) rotate(-5deg);
}

.wa-float-wrapper:hover .wa-float-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 7. الأنيميشن الخاص (Unique Keyframes) */
@keyframes wa-radar-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes wa-badge-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}
/* كلاس للإظهار الأوتوماتيكي (نفس ستايل الهوفر بالظبط) */
.wa-float-popover.show-auto {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 1. الحاوية الرئيسية (ثابتة يمين الشاشة) */
.phone-float-wrapper {
  position: fixed !important;
  bottom: 120px !important;
  left: 30px !important; /* مكان زر الصعود للأعلى القديم */
  right: auto !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important; /* عشان التول تيب يجي شماله */
  text-decoration: none !important;
}

/* 2. دائرة الاتصال الزرقاء */
.phone-float-circle {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca); /* أزرق جذاب */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

/* تأثير الموجات الزرقاء (Rings) */
.phone-float-circle::before,
.phone-float-circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid #0d6efd;
  opacity: 0;
  z-index: -1;
  animation: phone-ring-wave 2s infinite;
}

.phone-float-circle::after {
  animation-delay: 0.5s;
}

/* 3. أنيميشن سماعة التليفون (بترن) */
.phone-icon-anim {
  animation: phone-shake 3s infinite cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* 4. التول تيب (الرسالة الجانبية - تظهر على الشمال) */
.phone-float-popover {
  position: absolute;
  left: 80px; /* تظهر شمال الزرار */
  top: 50%;
  transform: translateY(-50%) translateX(15px);
  background-color: #222;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* سهم التول تيب */
.phone-float-popover::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent #222 transparent transparent;
}

/* 5. تأثيرات الهوفر */
.phone-float-wrapper:hover .phone-float-circle {
  transform: scale(1.1);
  background: linear-gradient(135deg, #0a58ca, #0d6efd);
}

.phone-float-wrapper:hover .phone-float-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 6. الأنيميشن (Keyframes) */

/* حركة الموجات */
@keyframes phone-ring-wave {
  0% {
    transform: scale(1);
    opacity: 0.8;
    border-width: 1px;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-width: 0;
  }
}

/* حركة اهتزاز السماعة */
@keyframes phone-shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0) rotate(-5deg);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0) rotate(5deg);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-3px, 0, 0) rotate(-7deg);
  }
  40%,
  60% {
    transform: translate3d(3px, 0, 0) rotate(7deg);
  }
}
/* كلاس الإظهار الأوتوماتيكي لزر الاتصال */
.phone-float-popover.show-auto {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Start Blog Posts */
.blog-posts {
  padding: 100px 0;
}
.blog-posts .article-post {
  background-color: #0000000c;
  border: solid 1px #eee;
  border-radius: 30px;
  transition: var(--main-transition);
  overflow: hidden;
}
.blog-posts .article-post:hover {
  background-color: var(--dark-color);
}
.blog-posts .article-post .meta-query {
  padding: 30px 20px;
}
.blog-posts .article-post h3 a {
  color: var(--dark-color);
  transition: var(--main-transition);
}
.blog-posts .article-post:hover h3 a {
  color: var(--brand-color);
}
.blog-posts .article-post .query-description {
  padding-top: 20px;
  color: #666;
  font-size: 22px;
  transition: var(--main-transition);
}
.blog-posts .article-post:hover .query-description {
  color: var(--light-color);
}
.blog-posts .article-post .read-more-btn {
  background-color: var(--brand-color);
  color: var(--dark-color);
  font-size: 18px;
  padding: 15px 40px;
  border-radius: 100px;
}
.blog-posts .article-post .read-more-btn img {
  width: 30px;
}
/* End Blog Posts */
