/* 🎨 Variables */
:root {
  --primary: #0c00b3;
  --secondary: #0080cc;
  --dark: #0a1f44;
  --light: #ffffff;
  --text: #222;
  --text-light: #555;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --hover-color: #ffcc00;
}

/* 🌍 Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Cairo", sans-serif;
}
body {
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

section:not(.home) {
  scroll-margin-top: 100px;
}


/* 🔝 Top Bar */
.top-bar {
  background: var(--gradient);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 2rem;
  font-size: 1.5rem;
  animation: fadeDown 1s ease;
  z-index: 1001;
}
.top-bar .left,
.top-bar .right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-switch img {
  width: 50px;
  height: 30px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}
.lang-switch img:hover {
  transform: scale(1.2);
}

.social-icons a {
  color: #fff;
  margin-left: 0.5rem;
  transition: transform 0.3s, color 0.3s;
}


#toggleTheme {
  width: 40px;
  height: 40px;
  border-radius: 25px;
  border: 2px solid var(--primary);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s;
}

#toggleTheme:hover {
  background: var(--hover-color);
  color: var(--light);
  transform: scale(1.2);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--hover-color);
    transform: scale(1.2);
}

a:hover, .nav a:hover, .card-btn:hover, .circle-feature:hover, 
.gallery-item img:hover, .social-icons a:hover, .footer-links a:hover, 
.footer-social a:hover, .menu-toggle:hover {
    color: var(--hover-color) !important;
    border-color: var(--hover-color);
    transform: scale(1.2);
}



/* 📌 Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: var(--light);
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}
.main-header.scrolled {
  background: var(--gradient);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}
.main-header .logo img {
  height: 100px;
  border-radius: 50%;
  transition: transform 0.3s;
}
.main-header .logo img:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav a {
  font-weight: 700;
  color: #0c00b3;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s, transform 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s;
  border-radius: 1px;
}
.nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  transition: transform 0.3s;
}
.menu-toggle:hover { transform: scale(1.2); }

/* 📱 Mobile Popup */
.mobile-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.mobile-popup .popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  animation: scaleUp 0.5s ease;
}
.mobile-nav a {
  display: block;
  margin: 1rem 0;
  font-size: 1.3rem;
  color: var(--light);
}

#mobilePopup {
  display: none; /* إخفاء افتراضي */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#mobilePopup .popup-content {
  background: #12184d;
  color: #ffffff !important;
  padding: 2rem;
  border-radius: 10px;
}

/* ================= Swiper Styling ================= */
.modern-swiper {
  width: 100%;
  height: 100vh;
  /* position: relative; */
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,0,179,0.6), rgba(0,128,204,0.5));
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 25px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  color: #fff;
  animation: fadeUp 1s ease;
  margin-top: 200px;
  margin-left: 350px;
}


.slide-content h3 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  animation: fadeDown 1.2s ease;
}

.slide-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  animation: fadeUp 1.4s ease;
}

/* Pagination */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.6);
width: 25px !important;
  height: 25px !important;
  margin: 0 6px !important;
  opacity: 1;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  background: #ffcc00;
  transform: scale(1.3);
}

/* Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  width: 55px;
  height: 55px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #ffcc00;
  color: #000;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .slide-content h3 { font-size: 2rem; }
  .slide-content p { font-size: 1rem; }
  .swiper-button-next, .swiper-button-prev { width: 45px; height: 45px; }
}

/* Animations */
@keyframes fadeUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }
@keyframes fadeDown { from {opacity:0; transform:translateY(-20px);} to {opacity:1; transform:translateY(0);} }

/* 🔹 Section Title */
.section-title h2 {
  font-size: 2rem;
  text-align: center;
  margin: 3rem 0 2rem;
  color: var(--primary);
  position: relative;
  animation: fadeUp 1s ease;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--gradient);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* 🛠 Services */
.features-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; padding: 4rem 2rem; }
.circle-feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
}
.circle-feature img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}
.circle-feature:hover { transform: translateY(-12px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* 📂 Projects */
.cards-section {
  display: grid;
   grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  align-items: stretch; /* يضمن أن البطاقات تمتد بالكامل */
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  height: 100%; /* يملأ المساحة المتاحة */
}

.card img {
  width: 100%;
  height: auto;       /* يحافظ على نسبة الصورة */
  object-fit: contain; /* تظهر الصورة كاملة */
  border-bottom: 3px solid #301af1;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;      /* يملأ المساحة المتبقية */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* يضمن توزيع النصوص والأزرار بالتساوي */
  text-align: center;
}

.card-btn { 
  margin-top: 1rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s; 
}

.card-btn:hover { transform: scale(1.05); }

.card-btn {
  width: 100%;
  padding: 15px;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.card:hover { 
  transform: translateY(-12px); 
  box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
}

/* 🖼 Gallery */
.gallery-section { padding: 3rem 2rem; }
.gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.gallery-item img { border-radius: var(--radius); transition: transform 0.4s; }
.gallery-item img:hover { transform: scale(1.08); }

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 20px;
  background: rgba(0, 128, 204, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  color: var(--dark);
  margin-bottom: 100px;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
}
.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

.contact-info p {
  margin: 12px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}
.contact-info p:hover {
  transform: translateX(8px);
  opacity: 1;
}


.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease forwards;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 12px;
  outline: none;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.card-btn:hover {
  background: #2575fc;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(50px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}


/* ======= Modal Base ======= */
.modal {
  display: none; /* مخفي افتراضيًا */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* خلفية نصف شفافة */
  backdrop-filter: blur(4px); /* تأثير طمس للخلفية */
  transition: background-color 0.3s ease;
}

/* محتوى المودال */
.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 30px 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  animation: fadeInUp 0.4s ease-in-out;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* زر الإغلاق */
.close {
  color: #555;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #007BFF;
}

/* عناوين ونصوص */
.modal-content h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ======= Dark Mode Support ======= */
body.dark-theme .modal-content {
  background-color: #12184d;
  color: #f1f1f1;
}

body.dark-theme .modal {
  background-color: #12184d;
}

body.dark-theme .close:hover {
  color: #00BFFF;
}

/* ======= Animations ======= */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}




/* ⬇️ Scroll To Top */
#scrollTopBtn { position: fixed; bottom: 25px; right: 25px; background: var(--light); color: #0c00b3; border: none; border-radius: 50%; padding: 0.9rem; font-size: 1.3rem; cursor: pointer; display: none; box-shadow: var(--shadow); transition: transform 0.3s; }
#scrollTopBtn:hover {
   transform: scale(1.2);
   background: #ffcc00;
   color: #ffffff;
  }

/* 🔻 Footer */
.site-footer {
  background: var(--gradient);
  color: #fff;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  animation: rotateBg 20s linear infinite;
}
.footer-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; position: relative; z-index: 2; }
.footer-logo img {
  height: 100px;
  margin-bottom: 1rem;
  border-radius: 50%;
   transition: transform 0.3s;
}
.footer-logo img:hover{
    transform: scale(1.2);
    cursor: pointer;
}
.footer-links ul { list-style: none; }
.footer-links a { color: #fff; opacity: 0.8; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; }
.footer-social a { color: #fff; margin-right: 1rem; transition: transform 0.3s; }
.footer-social a:hover { transform: scale(1.2); }
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.2rem 0;
  font-size: 0.95rem;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.footer-bottom span {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.footer-bottom span:hover {
  color: #00bcd4;
  transform: scale(1.2);
}


/* ✨ Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rotateBg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 📱 Media Queries */
@media (max-width: 1024px) { .main-header { padding: 1rem 2rem; } }
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block;}
  .top-bar { flex-direction: column; gap: 0.5rem; padding: 0.5rem 1.5rem; }
  .footer-logo img{
    align-items: center;
  }
}

.mobile-popup {
  display: none; /* هذا يمنع ظهورها عند تحميل الصفحة */
}

/* ================== 🌙 DARK MODE ================== */
body.dark-theme {
  background-color: #232a69;
  color: #eee;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Header & Top Bar */
body.dark-theme .top-bar {
  background: linear-gradient(135deg, #12184d, #2a3fff);
  color: #fff;
}
body.dark-theme .main-header {
  background: rgba(42, 49, 114, 0.9);
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
body.dark-theme .main-header.scrolled {
  background: rgba(42,63,255,0.95);
}

/* Navigation Links */
body.dark-theme .nav a,
body.dark-theme .mobile-nav a {
  color: #fff; /* القوائم باللون الأبيض */
  transition: color 0.3s ease;
}
body.dark-theme .nav a:hover,
body.dark-theme .mobile-nav a:hover {
  color: #66b3ff; /* أزرق فاتح عند hover */
}

/* Swiper Section */
body.dark-theme .slide-content h3,
body.dark-theme .slide-content p {
  color: #fff; /* العناوين باللون الأبيض */
}
body.dark-theme .overlay {
  background: rgba(18, 24, 77, 0.65);
}

body.dark-theme .menu-toggle{
  color: #f0f8ff;
}

/* Sections */
body.dark-theme .section-title h2 {
  color: #fff; /* العناوين الرئيسية */
}

/* Features / Services */
body.dark-theme .circle-feature {
  background: rgba(204,229,255,0.03);
  color: #eee;
  box-shadow: 0 0 10px rgba(204,229,255,0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
body.dark-theme .circle-feature h3 {
  color: #fff; /* العناوين */
}
body.dark-theme .circle-feature:hover {
  background: rgba(102,179,255,0.1); /* أزرق فاتح عند hover */
}

/* Projects / Cards */
body.dark-theme .card {
  background: rgba(204,229,255,0.03);
  color: #eee;
  box-shadow: 0 0 12px rgba(204,229,255,0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
body.dark-theme .card h3 {
  color: #fff;
}
body.dark-theme .card-btn {
  background: linear-gradient(135deg, #2a3fff, #66b3ff);
  color: #fff;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
body.dark-theme .card-btn:hover {
  background: #FFD700;
  color: #ffffff !important;
  transform: scale(1.05);
}
body.dark-theme .card:hover {
  background: rgba(102,179,255,0.08); 
}

/* Gallery */
body.dark-theme .gallery-item {
  border: 1px solid rgba(204,229,255,0.1);
}
body.dark-theme .gallery-item img {
  filter: brightness(0.88);
  transition: filter 0.3s;
}
body.dark-theme .gallery-item img:hover {
  filter: brightness(1); /* أخف عند hover */
}

/* Contact Section */
body.dark-theme .contact-section {
  background: rgba(18,24,77,0.85);
  color: #eee;
}
body.dark-theme .contact-form {
  background: rgba(204,229,255,0.03);
  box-shadow: 0 0 8px rgba(204,229,255,0.08);
}
body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea {
  background: rgba(18,24,77,0.7);
  border: 1px solid #3399ff;
  color: #eee;
}
body.dark-theme .contact-form input::placeholder,
body.dark-theme .contact-form textarea::placeholder {
  color: #b3d1ff;
}

/* Footer */
body.dark-theme .site-footer {
  background: linear-gradient(135deg, #12184d, #2a3fff);
  color: #cce0ff;
}
body.dark-theme .footer-container h3 {
  color: #fff;
}
body.dark-theme .footer-links a {
  color: #b3d1ff;
  transition: color 0.3s;
}
body.dark-theme .footer-links a:hover {
  color: #fff; /* أزرق فاتح عند hover */
}
body.dark-theme .footer-bottom {
  border-top: 1px solid #66b3ff;
  color: #99ccee;
}

/* Scroll Button */
body.dark-theme #scrollTopBtn {
  background: #085baf;
  color: #fff;
}
body.dark-theme #scrollTopBtn:hover {
  background: #66b3ff;
}

/* Mobile Menu */
body.dark-theme .mobile-popup {
  background: rgba(18, 24, 77, 0.95); /* لون داكن مع شفافية */
  display: none;
  justify-content: center;
  align-items: center;
}

body.dark-theme .mobile-popup .popup-content {
  background: rgba(42, 49, 114, 0.95); /* خلفية داكنة للـ popup */
  color: #fff; /* نص أبيض */
  padding: 2rem;
  border-radius: var(--radius);
}

body.dark-theme .mobile-nav a {
  color: #fff; /* لون الروابط أبيض */
  font-weight: 500;
  transition: color 0.3s ease;
}

body.dark-theme .mobile-nav a:hover {
  color: #66b3ff; /* أزرق فاتح عند hover */
}



/* ================= Swiper Responsive ================= */
@media (max-width: 1024px) {
  .modern-swiper {
    height: 600px; /* ارتفاع أصغر للتابلت */
  }
  .slide-content {
    margin-top: 150px;
    margin-left: 50px;
    padding: 30px;
  }
  .slide-content h3 {
    font-size: 2.5rem;
  }
  .slide-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .modern-swiper {
    height: 500px; /* ارتفاع أصغر للهواتف */
  }
  .slide-content {
    margin-top: 100px;
    margin-left: 0;
    padding: 20px;
  }
  .slide-content h3 {
    font-size: 2rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
}

/* ================= Projects Section Responsive ================= */
@media (max-width: 1024px) {
  .cards-section {
    grid-template-columns: repeat(2, 1fr); /* عمودين للتابلت */
  }
  .card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .cards-section {
    grid-template-columns: 1fr; /* عمود واحد للهواتف */
  }
  .card img {
    height: 250px;
  }
  .card-content {
    padding: 1rem;
  }
}




/* ========================= 📊 Stats English ========================= */
.stats-section.lang-en {
  padding: 5rem 2rem;
  background: rgba(12, 0, 179, 0.05);
  text-align: center;
  direction: ltr;
  cursor: pointer;
}

.stats-section.lang-en .section-title h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
}

.stats-section.lang-en .section-title h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--gradient);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.stat h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: var(--text);
}

/* ========================= Dark Mode English ========================= */
body.dark-theme .stats-section.lang-en {
  background: rgba(18,24,77,0.85);
}

body.dark-theme .stats-section.lang-en .section-title h2 {
  color: #ffffff; /* عنوان القسم باللون الأبيض */
}

body.dark-theme .stats-section.lang-en .stat {
  background: rgba(204,229,255,0.03);
  color: #ffffff; /* نصوص عامة باللون الأبيض */
  box-shadow: 0 0 10px rgba(204,229,255,0.08);
}

body.dark-theme .stats-section.lang-en .stat h3 {
  color: #ffffff; /* الرقم الرئيسي باللون الأبيض */
}

body.dark-theme .stats-section.lang-en .stat p.lang-en {
  color: #ffffff; /* نص الإنجازات باللون الأبيض */
}


/* ========================= Responsive ========================= */

/* Tablets */
@media (max-width: 1024px) {
  .stats-section.lang-en {
    padding: 4rem 2rem;
  }
  .stats-section.lang-en .section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  .stats-container {
    gap: 1.5rem;
  }
  .stat h3 {
    font-size: 2.5rem;
  }
  .stat p {
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .stats-section.lang-en {
    padding: 3rem 1rem;
  }
  .stats-section.lang-en .section-title h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat h3 {
    font-size: 2rem;
  }
  .stat p {
    font-size: 0.9rem;
  }
}


/* ===== Pricing / Packages Section - Responsive ===== */
.pricing-section {
  padding: 4rem 2rem;
  background: rgba(12,0,179,0.05);
  text-align: center;
}

.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  align-items: stretch; /* يجعل البطاقات بنفس الارتفاع */
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-grow: 1;
}

.pricing-card ul li {
  margin: 0.6rem 0;
}

.pricing-card .card-btn {
  margin-top: 1rem;
  background: #0080cc;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.pricing-card .card-btn:hover {
  background: #FFD700;
  color: #ffffff !important;
  transform: scale(1.05);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 2rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  margin: 4rem 2rem;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  background: #0080cc; 
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #FFD700;
  color: #ffffff !important;
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pricing-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .pricing-container {
    grid-template-columns: 1fr;
  }
  .cta-container h2 {
    font-size: 2rem;
  }
  .cta-container p {
    font-size: 1rem;
  }
}

/* ===== Dark Mode - Arabic Pricing Cards ===== */
body.dark-theme .pricing-section {
  background: rgba(18,24,77,0.85); /* خلفية داكنة للقسم */
  color: #e0e0e0;
}

body.dark-theme .pricing-card {
  background: rgba(204, 229, 255, 0.03); /* خلفية داكنة للبطاقات */
  color: #e0e0e0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

body.dark-theme .pricing-card h3 {
  color: var(--light); /* عنوان البطاقة */
}

body.dark-theme .pricing-card .price {
  color: #ffffff; /* سعر البطاقة */
}

body.dark-theme .pricing-card ul li {
  color: #e0e0e0; /* نص القائمة */
}

body.dark-theme .pricing-card .card-btn {
  background: #004080;
  color: #ffffff;
}

body.dark-theme .pricing-card .card-btn:hover {
  background: #FFD700;
  color: #ffffff;
}

/* ===== Strong Text Blue ===== */
.pricing-card ul li strong {
  color: #004080;
}


#whatsappBtnEn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  left: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  line-height: 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: 0.3s ease;
  opacity: 0;
  pointer-events: none;
  animation: pulseEn 2s infinite;
}

#whatsappBtnEn:hover {
  transform: rotate(10deg) scale(1.12);
  box-shadow: 0 0 18px #25D366;
}

/* Pulse Animation */
@keyframes pulseEn {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}