/* ===========================
   متغيرات الألوان والخطوط
=========================== */
:root {
  --background: #ffffff;
  --foreground: #171717;
  --primary-color: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --font-cairo: 'Cairo', sans-serif;
}

/* الوضع الليلي */
.dark {
  --background: #1a1a1a;
  --foreground: #f5f5f5;
}

/* ===========================
   إعدادات الجسم والخطوط
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-cairo);
  color: var(--foreground);
  background-color: var(--background);
  transition: background-color 0.4s ease, color 0.4s ease;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===========================
   Scrollbar Styling - إخفاء scrollbar على اليسار وتحسين اليمين
=========================== */
/* إخفاء scrollbar على اليسار في RTL */
html {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}

/* تخصيص scrollbar للمتصفحات التي تستخدم WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}

/* إخفاء scrollbar الأفقي إذا لم يكن مطلوباً */
::-webkit-scrollbar:horizontal {
  height: 0;
  display: none;
}

/* التأكد من أن scrollbar يظهر فقط على اليمين في RTL */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}

/* إخفاء scrollbar على العناصر الداخلية غير المرغوب فيها */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

h1, h2, h3 {
  font-family: var(--font-cairo);
  font-weight: 700;
}

h4 {
  font-weight: 600;
}

h5 {
  font-weight: 500;
}

h6 {
  font-weight: 400;
}

p, span, li, a, button, label, input {
  font-family: var(--font-cairo);
  font-weight: 400;
}

.text-blue-600 {
  color: #2563eb;
}

/* ===========================
   Main Content
=========================== */
.main-content {
  position: relative;
  overflow-x: hidden;
}

/* ===========================
   Section Floating Balls (In Each Section)
=========================== */
section {
  position: relative;
  overflow: hidden;
}

.section-ball {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* مواضع الكرات - متغيرة لكل قسم */
.section-ball-1 {
  top: 8%;
  left: 2%;
}

.section-ball-2 {
  top: 20%;
  right: 3%;
}

.section-ball-3 {
  top: 60%;
  left: 5%;
}

.section-ball-4 {
  top: 75%;
  right: 2%;
}

/* مواضع مختلفة للـ Hero Section */
.hero-section .section-ball-1 {
  top: 10%;
  left: 5%;
}

.hero-section .section-ball-2 {
  top: 25%;
  right: 8%;
}

.hero-section .section-ball-3 {
  top: 55%;
  left: 3%;
}

.hero-section .section-ball-4 {
  top: 70%;
  right: 5%;
}

/* مواضع مختلفة للـ Offers Section */
.offers-section .section-ball-1 {
  top: 5%;
  left: 3%;
}

.offers-section .section-ball-2 {
  top: 30%;
  right: 4%;
}

.offers-section .section-ball-3 {
  top: 65%;
  left: 2%;
}

.offers-section .section-ball-4 {
  top: 80%;
  right: 3%;
}

/* مواضع مختلفة للـ Specialties Section */
.specialties-section .section-ball-1 {
  top: 12%;
  left: 4%;
}

.specialties-section .section-ball-2 {
  top: 35%;
  right: 2%;
}

.specialties-section .section-ball-3 {
  top: 58%;
  left: 6%;
}

.specialties-section .section-ball-4 {
  top: 72%;
  right: 4%;
}

/* مواضع مختلفة للـ About Us Section */
.about-us-section .section-ball-1 {
  top: 6%;
  left: 2%;
}

.about-us-section .section-ball-2 {
  top: 28%;
  right: 5%;
}

.about-us-section .section-ball-3 {
  top: 62%;
  left: 4%;
}

.about-us-section .section-ball-4 {
  top: 78%;
  right: 2%;
}

/* مواضع مختلفة للـ Info Section */
.info-section .section-ball-1 {
  top: 9%;
  left: 3%;
}

.info-section .section-ball-2 {
  top: 32%;
  right: 3%;
}

.info-section .section-ball-3 {
  top: 60%;
  left: 2%;
}

.info-section .section-ball-4 {
  top: 75%;
  right: 5%;
}

/* مواضع مختلفة للـ How It Works Section */
.how-it-works-section .section-ball-1 {
  top: 7%;
  left: 4%;
}

.how-it-works-section .section-ball-2 {
  top: 25%;
  right: 2%;
}

.how-it-works-section .section-ball-3 {
  top: 58%;
  left: 3%;
}

.how-it-works-section .section-ball-4 {
  top: 73%;
  right: 4%;
}

/* مواضع مختلفة للـ Blog Section */
.blog-section .section-ball-1 {
  top: 10%;
  left: 2%;
}

.blog-section .section-ball-2 {
  top: 30%;
  right: 3%;
}

.blog-section .section-ball-3 {
  top: 55%;
  left: 5%;
}

.blog-section .section-ball-4 {
  top: 70%;
  right: 2%;
}

/* مواضع مختلفة للـ Testimonials Section */
.testimonials-section .section-ball-1 {
  top: 8%;
  left: 3%;
}

.testimonials-section .section-ball-2 {
  top: 27%;
  right: 4%;
}

.testimonials-section .section-ball-3 {
  top: 60%;
  left: 2%;
}

.testimonials-section .section-ball-4 {
  top: 76%;
  right: 3%;
}

/* مواضع مختلفة للـ FAQ Section */
.faq-section .section-ball-1 {
  top: 6%;
  left: 4%;
}

.faq-section .section-ball-2 {
  top: 22%;
  right: 2%;
}

.faq-section .section-ball-3 {
  top: 58%;
  left: 3%;
}

.faq-section .section-ball-4 {
  top: 74%;
  right: 5%;
}

/* مواضع مختلفة للـ Contact Section */
.contact-section .section-ball-1 {
  top: 9%;
  left: 2%;
}

.contact-section .section-ball-2 {
  top: 28%;
  right: 3%;
}

.contact-section .section-ball-3 {
  top: 62%;
  left: 4%;
}

.contact-section .section-ball-4 {
  top: 77%;
  right: 2%;
}

.section-floating-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.15));
  animation: sectionFloat 4s ease-in-out infinite;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
}

.section-circle-2 {
  animation-delay: 2s;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(37, 99, 235, 0.15));
}

.section-circle-3 {
  animation-delay: 1s;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
}

.section-circle-4 {
  animation-delay: 3s;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(37, 99, 235, 0.12));
}

@keyframes sectionFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@media (min-width: 1024px) {
  .section-floating-circle {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .section-floating-circle {
    width: 50px;
    height: 50px;
  }
  
  /* مواضع محسّنة للموبايل */
  .section-ball-1,
  .hero-section .section-ball-1,
  .offers-section .section-ball-1,
  .specialties-section .section-ball-1,
  .about-us-section .section-ball-1,
  .info-section .section-ball-1,
  .how-it-works-section .section-ball-1,
  .blog-section .section-ball-1,
  .testimonials-section .section-ball-1,
  .faq-section .section-ball-1,
  .contact-section .section-ball-1 {
    top: 5%;
    left: 1%;
  }
  
  .section-ball-2,
  .hero-section .section-ball-2,
  .offers-section .section-ball-2,
  .specialties-section .section-ball-2,
  .about-us-section .section-ball-2,
  .info-section .section-ball-2,
  .how-it-works-section .section-ball-2,
  .blog-section .section-ball-2,
  .testimonials-section .section-ball-2,
  .faq-section .section-ball-2,
  .contact-section .section-ball-2 {
    top: 15%;
    right: 1%;
  }
  
  .section-ball-3,
  .hero-section .section-ball-3,
  .offers-section .section-ball-3,
  .specialties-section .section-ball-3,
  .about-us-section .section-ball-3,
  .info-section .section-ball-3,
  .how-it-works-section .section-ball-3,
  .blog-section .section-ball-3,
  .testimonials-section .section-ball-3,
  .faq-section .section-ball-3,
  .contact-section .section-ball-3 {
    top: 60%;
    left: 2%;
  }
  
  .section-ball-4,
  .hero-section .section-ball-4,
  .offers-section .section-ball-4,
  .specialties-section .section-ball-4,
  .about-us-section .section-ball-4,
  .info-section .section-ball-4,
  .how-it-works-section .section-ball-4,
  .blog-section .section-ball-4,
  .testimonials-section .section-ball-4,
  .faq-section .section-ball-4,
  .contact-section .section-ball-4 {
    top: 75%;
    right: 2%;
  }
}

/* ===========================
   Loading Screen
=========================== */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: linear-gradient(to bottom right, #e3f6fd, #d1e9fb, #a6d1fb);
  transition: opacity 0.8s;
}

.dark .loading-screen {
  background: linear-gradient(to bottom right, #0b1436, #12294d, #1c3a73);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-orbs {
  position: relative;
  width: 224px;
  height: 224px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.6), rgba(96,165,250,0.3), transparent);
  animation: orbFloat 4s ease-in-out infinite;
}

.orb-1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.orb-2 {
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.5s;
}

.orb-3 {
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  animation-delay: 1s;
}

.orb-4 {
  top: 78%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.5s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15) translateY(-15px);
    opacity: 0.6;
  }
}

.loading-message {
  margin-top: 40px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e40af;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dark .loading-message {
  color: #93c5fd;
}

.loading-bar {
  margin-top: 24px;
  width: 224px;
  height: 8px;
  background: #bfdbfe;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.dark .loading-bar {
  background: #1e3a8a;
}

.loading-progress {
  position: absolute;
  height: 100%;
  width: 30%;
  background: #3b82f6;
  border-radius: 9999px;
  animation: loadingProgress 3s ease-in-out infinite;
}

.dark .loading-progress {
  background: #60a5fa;
}

@keyframes loadingProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* ===========================
   Top Header
=========================== */
.header-top {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.header-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.header-top .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-contact {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  min-height: 32px;
}

.header-contact > .header-phone {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-contact > .header-email {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.header-contact > .header-social {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.header-social a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.header-social a:hover::before {
  width: 100%;
  height: 100%;
}

.header-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-social a svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.header-social a:hover svg {
  transform: scale(1.1);
}

.header-social a svg {
  width: 16px;
  height: 16px;
}

.header-email {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E4E8E9;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-email::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.header-email:hover::before {
  left: 100%;
}

.header-email:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-email svg {
  width: 16px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.header-email:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E4E8E9;
  font-size: 0.875rem;
  font-weight: 500;
}

.header-phone a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E4E8E9;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-phone a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.header-phone a:hover::after {
  width: 80%;
}

.header-phone a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-3px);
}

.header-phone a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.header-phone a:hover svg {
  transform: scale(1.15) rotate(15deg);
}

.header-phone span {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 6px;
  font-weight: 300;
}

.header-phone i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.header-phone a:hover i {
  transform: scale(1.1);
}

/* Dark mode support for header-top */
.dark .header-top {
  background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 100%);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

/* Responsive header-top */

/* شاشات كبيرة جداً */
@media (min-width: 1400px) {
  .header-top .container {
    max-width: 1400px;
    padding: 0 40px;
  }
  
  .header-social {
    gap: 14px;
  }
  
  .header-social a {
    width: 38px;
    height: 38px;
  }
}

/* شاشات متوسطة (Tablets) */
@media (max-width: 1024px) {
  .header-top .container {
    padding: 0 24px;
  }
  
  .header-contact {
    gap: 16px;
  }
  
  .header-social {
    gap: 10px;
  }
  
  .header-social a {
    width: 34px;
    height: 34px;
  }
  
  .header-email,
  .header-phone {
    font-size: 0.8125rem;
  }
}

/* شاشات صغيرة (Tablets عمودي) */
@media (max-width: 768px) {
  .header-top {
    padding: 12px 0;
  }
  
  .header-top .container {
    padding: 0 16px;
  }
  
  .header-contact {
    flex-direction: row;
    gap: 10px;
    min-height: auto;
    justify-content: center;
  }
  
  /* إخفاء الأرقام والإيميل على الجوال */
  .header-contact > .header-phone {
    display: none !important;
  }
  
  .header-contact > .header-email {
    display: none !important;
  }
  
  /* إظهار الأيقونات فقط */
  .header-contact > .header-social {
    position: static;
    transform: none;
    width: auto;
    justify-content: center;
    margin: 0 auto;
  }
  
  .header-social {
    gap: 12px;
  }
  
  .header-social a {
    width: 32px;
    height: 32px;
  }
}

/* شاشات صغيرة جداً (Phones) */
@media (max-width: 640px) {
  .header-top {
    padding: 10px 0;
  }
  
  .header-top .container {
    padding: 0 12px;
  }
  
  .header-contact {
    gap: 8px;
  }
  
  .header-email {
    font-size: 0.6875rem;
    padding: 5px 10px;
    gap: 6px;
  }
  
  .header-email svg {
    width: 14px;
    height: 13px;
  }
  
  .header-phone {
    font-size: 0.6875rem;
    gap: 6px;
  }
  
  .header-phone a {
    padding: 4px 8px;
    gap: 6px;
  }
  
  .header-phone a svg,
  .header-phone a i {
    font-size: 0.75rem;
  }
  
  .header-phone span {
    margin: 0 4px;
  }
  
  .header-social {
    gap: 10px;
  }
  
  .header-social a {
    width: 30px;
    height: 30px;
  }
  
  .header-social a svg {
    width: 14px;
    height: 14px;
  }
}

/* شاشات صغيرة للغاية */
@media (max-width: 480px) {
  .header-top {
    padding: 8px 0;
  }
  
  .header-top .container {
    padding: 0 10px;
  }
  
  .header-contact {
    gap: 6px;
  }
  
  .header-email {
    font-size: 0.625rem;
    padding: 4px 8px;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header-email svg {
    width: 12px;
    height: 11px;
  }
  
  .header-phone {
    font-size: 0.625rem;
    gap: 5px;
    flex-direction: column;
    align-items: center;
  }
  
  .header-phone a {
    padding: 3px 6px;
    gap: 5px;
    font-size: 0.625rem;
  }
  
  .header-phone a svg {
    width: 11px;
    height: 11px;
  }
  
  .header-phone span {
    display: none; /* إخفاء الشرطة في الشاشات الصغيرة جداً */
  }
  
  .header-social {
    gap: 8px;
  }
  
  .header-social a {
    width: 28px;
    height: 28px;
  }
  
  .header-social a svg {
    width: 13px;
    height: 13px;
  }
}

/* شاشات صغيرة للغاية (أقل من 375px) */
@media (max-width: 375px) {
  .header-top .container {
    padding: 0 8px;
  }
  
  .header-contact {
    gap: 5px;
  }
  
  .header-email {
    font-size: 0.5625rem;
    padding: 3px 6px;
  }
  
  .header-phone a {
    font-size: 0.5625rem;
    padding: 2px 5px;
  }
  
  .header-social {
    gap: 6px;
  }
  
  .header-social a {
    width: 26px;
    height: 26px;
  }
  
  .header-social a svg {
    width: 12px;
    height: 12px;
  }
}

/* تحسينات إضافية للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-contact {
    justify-content: space-between;
  }
  
  .header-contact > .header-phone {
    position: relative;
    right: auto;
    transform: none;
  }
  
  .header-contact > .header-email {
    position: relative;
    left: auto;
    transform: none;
  }
  
  .header-contact > .header-social {
    position: relative;
    left: auto;
    transform: none;
  }
}

/* ===========================
   Navbar
=========================== */
.navbar {
  background: var(--background);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 2000;
  transition: background-color 0.3s;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo img {
  object-fit: contain;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-weight: 500;
}

.desktop-nav a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: #2563eb;
}

.desktop-actions {
  display: none;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2100;
}

.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--foreground);
  font-size: 1rem;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: #2563eb;
}

.theme-toggle {
  padding: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  color: #1f2937;
  transition: all 0.3s;
}

.dark .theme-toggle {
  background: #374151;
  color: #fff;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.lang-toggle {
  padding: 4px 12px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: #f3f4f6;
}

.dark .lang-toggle {
  border-color: #4b5563;
}

.dark .lang-toggle:hover {
  background: #1f2937;
}

/* Register Dropdown - Styles moved to header.blade.php for consistency */

/* User Icon Dropdown - Styles moved to header.blade.php for consistency */

/* Search Bar */
.search-bar {
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s, opacity 0.3s;
  opacity: 0;
}

.search-bar.active {
  max-height: 100px;
  opacity: 1;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 12px;
}

.dark .search-input-wrapper {
  background: #374151;
}

.search-input-wrapper i {
  color: #6b7280;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-size: 1rem;
}

.search-input::placeholder {
  color: #9ca3af;
}

.close-search {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.close-search:hover {
  color: #374151;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.mobile-sidebar.active {
  display: block;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}

.sidebar-content {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 256px;
  background: var(--background);
  box-shadow: -10px 0 15px -3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.mobile-sidebar.active .sidebar-content {
  transform: translateX(0);
}

.close-sidebar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #4b5563;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.dark .mobile-nav {
  border-color: #374151;
}

.mobile-nav a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: #2563eb;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-register-btn,
.mobile-login-btn {
  width: 100%;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}

.mobile-register-btn {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.mobile-register-btn:hover {
  background: #eff6ff;
}

.mobile-login-btn {
  background: #2563eb;
  color: white;
}

.mobile-login-btn:hover {
  background: #1d4ed8;
}

.mobile-lang-toggle,
.mobile-theme-toggle {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.mobile-lang-toggle:hover,
.mobile-theme-toggle:hover {
  background: #f3f4f6;
}

.dark .mobile-lang-toggle,
.dark .mobile-theme-toggle {
  border-color: #4b5563;
}

.dark .mobile-lang-toggle:hover,
.dark .mobile-theme-toggle:hover {
  background: #1f2937;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .desktop-nav {
    display: flex;
  }
  
  .desktop-actions {
    display: flex;
  }
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
  padding: 96px 24px 64px;
  background: var(--background);
  transition: background-color 0.3s;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-image-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  min-height: 400px;
}

.hero-circle {
  position: absolute;
  z-index: 0;
}

.hero-circle-1 {
  animation: spin 40s linear infinite;
}

.hero-circle-2 {
  animation: spin 20s linear reverse infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-badge {
  position: absolute;
  z-index: 30;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.badge-1 {
  top: 64px;
  left: 20px;
  background: #dbeafe;
  color: #000;
  font-size: 1.125rem;
  animation: bounce 2s infinite;
  position: absolute;
}

.dark .badge-1 {
  background: #1e3a8a;
  color: #fff;
}

.badge-2 {
  top: 112px;
  right: 40px;
  background: #fef3c7;
  color: #000;
  font-size: 1rem;
  animation: pulse 2s infinite;
  position: absolute;
}

.dark .badge-2 {
  background: #92400e;
  color: #fff;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-image {
  position: relative;
  z-index: 10;
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.hero-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 24px;
}

.hero-description {
  margin-top: 24px;
  font-size: 1.125rem;
  color: #374151;
  max-width: 36rem;
}

.dark .hero-description {
  color: #d1d5db;
}

.hero-cta {
  margin-top: 48px;
  padding: 16px 56px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.hero-cta:hover {
  background: #1d4ed8;
  transform: translateY(-4px) scale(1.05);
}

/* Hero Section - Mobile Responsive */
@media (max-width: 767px) {
  .hero-section {
    padding: 60px 16px 40px;
  }

  .hero-container {
    gap: 32px;
    flex-direction: column;
    text-align: center;
  }

  .hero-image-wrapper {
    margin-top: 24px;
    min-height: 300px;
    order: -1;
  }

  .hero-circle {
    width: 280px !important;
    height: 280px !important;
  }

  .hero-circle-1 {
    width: 280px !important;
    height: 280px !important;
  }

  .hero-circle-2 {
    width: 220px !important;
    height: 220px !important;
  }

  .hero-image {
    width: 200px;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .badge-1 {
    top: 40px;
    left: 10px;
  }

  .badge-2 {
    top: 70px;
    right: 20px;
    font-size: 0.8125rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    text-align: center;
  }

  .hero-description {
    font-size: 1rem;
    margin-top: 16px;
    text-align: center;
  }

  .hero-cta {
    margin-top: 32px;
    padding: 14px 40px;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    gap: 96px;
  }
  
  .hero-image-wrapper {
    width: 50%;
    margin-top: 0;
  }
  
  .hero-image {
    width: 300px;
  }
  
  .hero-text {
    width: 50%;
    align-items: flex-start;
    text-align: right;
    padding: 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    width: 400px;
  }
}

/* ===========================
   Offers Section
=========================== */
.offers-section {
  padding: 64px 16px;
  font-family: var(--font-cairo);
}

.offers-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.offers-text {
  width: 100%;
  text-align: center;
}

.offer-title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.offer-desc {
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.offer-time {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 32px;
}

.offer-btn {
  padding: 12px 48px;
  background: #2563eb;
  color: white;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.3s;
}

.offer-btn:hover {
  background: #1d4ed8;
}

.offers-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.offer-image {
  width: 100%;
  max-width: 384px;
  border-radius: 16px 16px 0 0;
  display: block;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  border: 4px solid #dbeafe;
  border-bottom: none;
}

.offer-image-footer {
  background: rgba(37, 99, 235, 0.8);
  color: white;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 12px 12px;
  width: 100%;
  box-sizing: border-box;
  margin-top: -4px;
}

.offers-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.offer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bfdbfe;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.offer-dot.active {
  background: #1e40af;
  transform: scale(1.1);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* Offers Section - Mobile Responsive */
@media (max-width: 767px) {
  .offers-section {
    padding: 48px 12px;
  }
  
  .offers-container {
    gap: 32px;
  }
  
  .offer-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .offer-desc {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .offer-time {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }
  
  .offer-btn {
    padding: 10px 32px;
    font-size: 1rem;
  }
  
  .offer-image {
    max-width: 100%;
  }
  
  .offers-dots {
    margin-top: 32px;
  }
}

@media (min-width: 768px) {
  .offers-container {
    flex-direction: row;
    gap: 64px;
  }
  
  .offers-text {
    width: 50%;
    text-align: right;
  }
  
  .offers-image {
    width: 50%;
  }
  
  .offer-image {
    max-width: 512px;
  }
}

/* ===========================
   Statistics Section
=========================== */
.statistics-section {
  position: relative;
  padding: 96px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.statistics-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.statistics-header {
  text-align: center;
  margin-bottom: 64px;
  color: white;
}

.statistics-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  line-height: 1.2;
}

.statistics-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.statistic-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.statistic-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.statistic-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.statistic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.statistic-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.statistic-label {
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.statistic-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin-top: 8px;
}

/* Statistics Section - Mobile Responsive */
@media (max-width: 767px) {
  .statistics-section {
    padding: 64px 16px;
  }
  
  .statistics-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
    padding: 0 8px;
  }
  
  .statistics-subtitle {
    font-size: 1rem;
    padding: 0 8px;
  }
  
  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .statistic-card {
    padding: 32px 20px;
  }
  
  .statistic-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  
  .statistic-number {
    font-size: 2.5rem;
  }
  
  .statistic-label {
    font-size: 1.5rem;
  }
  
  .statistic-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .statistics-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Why Choose Us Section
=========================== */
.why-choose-section {
  position: relative;
  padding: 96px 24px;
  background: var(--background);
  transition: background-color 0.3s;
  overflow: hidden;
}

.why-choose-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.why-choose-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-choose-badge {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.why-choose-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 16px;
  line-height: 1.2;
}

.why-choose-subtitle {
  font-size: 1.125rem;
  color: rgba(23, 23, 23, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark .why-choose-subtitle {
  color: rgba(245, 245, 245, 0.7);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  position: relative;
  background: var(--background);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.dark .why-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.why-card-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.icon-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  opacity: 0.1;
  transition: all 0.4s ease;
}

.icon-bg-1 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.icon-bg-2 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.icon-bg-3 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.icon-bg-4 {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.icon-bg-5 {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.icon-bg-6 {
  background: linear-gradient(135deg, #30cfd0, #330867);
}

.why-card:hover .icon-bg {
  opacity: 0.2;
  transform: scale(1.1) rotate(5deg);
}

.why-card-icon i {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  color: #667eea;
  transition: all 0.4s ease;
}

.why-card:hover .why-card-icon i {
  transform: scale(1.1) rotate(-5deg);
  color: #764ba2;
}

.why-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.why-card:hover .why-card-title {
  color: #667eea;
}

.why-card-desc {
  font-size: 1rem;
  color: rgba(23, 23, 23, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.dark .why-card-desc {
  color: rgba(245, 245, 245, 0.7);
}

.why-card-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(102, 126, 234, 0.1);
  line-height: 1;
  transition: all 0.4s ease;
}

.why-card:hover .why-card-number {
  color: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

/* Why Choose Section - Mobile Responsive */
@media (max-width: 767px) {
  .why-choose-section {
    padding: 64px 16px;
  }
  
  .why-choose-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  
  .why-choose-subtitle {
    font-size: 1rem;
    padding: 0 8px;
  }
  
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .why-card {
    padding: 32px 24px;
  }
  
  .why-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }
  
  .why-card-icon i {
    font-size: 2rem;
  }
  
  .why-card-title {
    font-size: 1.25rem;
  }
  
  .why-card-number {
    font-size: 3rem;
    top: 20px;
    right: 20px;
  }
}

/* Why Choose Us Section - Mobile Responsive */
@media (max-width: 767px) {
  .why-choose-section {
    padding: 64px 16px;
  }

  .why-choose-header {
    margin-bottom: 40px;
  }

  .why-choose-badge {
    font-size: 0.8125rem;
    padding: 6px 20px;
    margin-bottom: 16px;
  }

  .why-choose-title {
    font-size: 1.875rem;
    margin-bottom: 12px;
  }

  .why-choose-subtitle {
    font-size: 1rem;
    padding: 0 8px;
  }

  .why-choose-grid {
    gap: 24px;
  }

  .why-card {
    padding: 32px 24px;
  }

  .why-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .why-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .why-card-icon {
    margin: 0 auto 16px;
  }

  .why-card-icon i {
    font-size: 1.75rem;
  }

  .why-card-title {
    font-size: 1.125rem;
    margin-bottom: 8px;
  }

  .why-card-desc {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .why-card-number {
    font-size: 2.5rem;
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 28px 20px;
  }
}

/* ===========================
   Specialties Section
=========================== */
.specialties-section {
  padding: 96px 24px;
  background: linear-gradient(180deg, var(--background) 0%, rgba(102, 126, 234, 0.03) 50%, var(--background) 100%);
  transition: background-color 0.3s;
  position: relative;
  overflow: hidden;
}

.specialties-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.specialties-header {
  max-width: 1280px;
  margin: 0 auto 64px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.specialties-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  display: inline-block;
}

.specialties-title .text-blue-600 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.specialties-title .text-blue-600::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  opacity: 0.3;
}

.specialties-subtitle {
  font-size: 1.125rem;
  color: rgba(23, 23, 23, 0.75);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.dark .specialties-subtitle {
  color: rgba(245, 245, 245, 0.75);
}

.specialties-actions {
  max-width: 1280px;
  margin: 0 auto 48px;
  text-align: right;
  position: relative;
  z-index: 2;
}

.all-specialties-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.all-specialties-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.all-specialties-btn:hover::before {
  width: 300px;
  height: 300px;
}

.all-specialties-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.all-specialties-btn::after {
  content: '←';
  transition: transform 0.3s ease;
}

.all-specialties-btn:hover::after {
  transform: translateX(-4px);
}

.specialties-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 16px;
  position: relative;
  z-index: 2;
}

/* Specialties Section - Mobile Responsive */
@media (max-width: 767px) {
  .specialties-section {
    padding: 64px 16px;
  }
  
  .specialties-header {
    margin-bottom: 40px;
    padding: 0 8px;
  }
  
  .specialties-title {
    font-size: 1.875rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .specialties-subtitle {
    font-size: 1rem;
    padding: 0 8px;
    text-align: center;
  }

  .specialties-actions {
    margin-bottom: 32px;
    padding: 0 8px;
    text-align: center;
  }

  .all-specialties-btn {
    padding: 12px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    display: inline-block;
    text-align: center;
  }
  
  .specialties-grid {
    gap: 20px;
    padding: 24px 8px;
    grid-template-columns: repeat(2, 1fr);
  }

  .specialty-card {
    padding: 28px 20px;
    text-align: center;
  }

  .specialty-icon {
    width: 64px;
    height: 64px;
    top: 24px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .specialty-icon i {
    font-size: 1.75rem;
  }
  
  .specialty-name {
    margin-top: 88px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .specialty-card {
    padding: 24px 16px;
  }

  .specialty-icon {
    width: 56px;
    height: 56px;
    top: 20px;
  }

  .specialty-icon i {
    font-size: 1.5rem;
  }

  .specialty-name {
    margin-top: 72px;
    font-size: 1.125rem;
  }
}

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: 24px;
  border: 2px solid transparent;
  background: linear-gradient(var(--background), var(--background)) padding-box,
              linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2)) border-box;
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out both;
  cursor: pointer;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.specialty-card:hover::before {
  left: 100%;
}

.dark .specialty-card {
  background: linear-gradient(#0f172a, #0f172a) padding-box,
              linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3)) border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.specialty-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.2),
    0 0 0 1px rgba(102, 126, 234, 0.1) inset;
}

.dark .specialty-card:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(102, 126, 234, 0.2) inset;
}

.specialty-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.dark .specialty-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.specialty-card:hover .specialty-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.specialty-icon i {
  font-size: 2rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-card:hover .specialty-icon i {
  transform: scale(1.15);
}

.specialty-name {
  margin-top: 100px;
  font-size: 1.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0 8px;
}

.specialty-card:hover .specialty-name {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-2px);
}

/* Animation delays for staggered effect */
.specialty-card:nth-child(1) { animation-delay: 0.1s; }
.specialty-card:nth-child(2) { animation-delay: 0.2s; }
.specialty-card:nth-child(3) { animation-delay: 0.3s; }
.specialty-card:nth-child(4) { animation-delay: 0.4s; }
.specialty-card:nth-child(5) { animation-delay: 0.5s; }
.specialty-card:nth-child(6) { animation-delay: 0.6s; }
.specialty-card:nth-child(7) { animation-delay: 0.7s; }
.specialty-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===========================
   About Us Section
=========================== */
.about-us-section {
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
}

.about-us-section::before {
  content: '';
  position: absolute;
  top: -128px;
  left: -128px;
  width: 384px;
  height: 384px;
  background: #dfe4ff;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.3;
  z-index: 0;
}

.about-us-section::after {
  content: '';
  position: absolute;
  bottom: -128px;
  right: -128px;
  width: 500px;
  height: 500px;
  background: #cbd3ff;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.2;
  z-index: 0;
}

.about-us-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 10;
}

.about-us-text {
  flex: 1;
  text-align: right;
}

.about-us-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-us-desc {
  font-size: 1.25rem;
  color: #1f2937;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-us-desc-2 {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.75;
}

.highlight {
  color: #4f5eff;
  font-weight: 600;
}

.about-us-image {
  flex: 1;
}

.about-image {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* About Us Section - Mobile Responsive */
@media (max-width: 767px) {
  .about-us-section {
    padding: 48px 16px;
  }
  
  .about-us-container {
    gap: 32px;
  }
  
  .about-us-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }
  
  .about-us-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .about-us-image {
    width: 100%;
  }
  
  .about-us-image img {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .about-us-container {
    flex-direction: row;
    gap: 48px;
  }
}

/* ===========================
   Who Is It For Section (Info Section)
=========================== */
.info-section {
  padding: 96px 24px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.info-section .container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.info-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: right;
  margin-bottom: 48px;
  color: #111827;
  font-family: var(--font-cairo);
  padding: 0 16px;
}

@media (min-width: 768px) {
  .info-section-title {
    font-size: 3rem;
    margin-bottom: 64px;
  }
}

.info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .info__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .info__grid:first-of-type {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info__grid:last-of-type {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info__item {
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.info__item--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.info__item--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.info__item--blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

.info__item--white {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1f2937;
  border: 1px solid #e2e8f0;
}

.info__item--black {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  color: white;
}

.info__item-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.95;
}

.info__item--green .info__item-label {
  color: rgba(255, 255, 255, 0.9);
}

.info__item--orange .info__item-label {
  color: rgba(255, 255, 255, 0.9);
}

.info__item--blue .info__item-label {
  color: rgba(255, 255, 255, 0.9);
}

.info__item--black .info__item-label {
  color: rgba(255, 255, 255, 0.85);
}

.info__item--white .info__item-label {
  color: #4b5563;
}

.info__item-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  z-index: 2;
  position: relative;
}

.info__item--green .info__item-title,
.info__item--orange .info__item-title,
.info__item--blue .info__item-title,
.info__item--black .info__item-title {
  color: white;
}

.info__item--white .info__item-title {
  color: #1f2937;
}

@media (min-width: 768px) {
  .info__item-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .info__item-title {
    font-size: 2rem;
  }
}

.info__item-icon {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 140px;
  height: 140px;
  opacity: 0.25;
  transition: all 0.3s ease;
  z-index: 1;
}

.info__item--white .info__item-icon {
  opacity: 0.15;
}

.info__item:hover .info__item-icon {
  opacity: 0.35;
  transform: scale(1.05);
}

.info__item--white:hover .info__item-icon {
  opacity: 0.2;
}

@media (min-width: 768px) {
  .info__item-icon {
    width: 160px;
    height: 160px;
    bottom: 20px;
    left: 20px;
  }
}

@media (min-width: 1024px) {
  .info__item-icon {
    width: 180px;
    height: 180px;
  }
}

/* ===========================
   Moving Features Section
=========================== */
.moving-features-section {
  align-items: center;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
  padding: 20px 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.moving-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
  z-index: 0;
}

.moving-features-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.moving-features-heading {
  flex: 0 0 auto;
  margin-left: 30px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px 35px 30px 45px;
  border-left: 5px solid #fff;
  min-height: 142px;
  gap: 15px;
  position: relative;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  font-family: var(--font-cairo);
}

.moving-features-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.moving-box-container {
  display: flex;
  overflow: hidden;
  position: relative;
}

.moving-box {
  display: inline-block;
  min-width: 100%;
  animation: scrollRTL 40s linear infinite;
  flex-shrink: 0;
}

.moving-features-section:hover .moving-box {
  animation-play-state: paused;
}

.moving-features-list {
  display: flex;
  padding: 40px 15px;
  margin: 0;
  list-style: none;
  justify-content: space-around;
  gap: 15px 40px;
  align-items: center;
}

.moving-features-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 15px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.moving-feature-icon {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.moving-features-list li:hover .moving-feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.moving-feature-icon i {
  font-size: 1.5rem;
  color: #2563eb;
}

.moving-feature-content {
  flex: 1;
  min-width: 0;
}

.moving-feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.4;
  font-family: var(--font-cairo);
}

.moving-feature-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-family: var(--font-cairo);
}

/* ===== الحركة (Animation) ===== */
@keyframes scrollRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== التصميم المتجاوب ===== */
@media (max-width: 991px) {
  .moving-features-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .moving-features-heading {
    margin-left: 0;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
    border-left: none;
    border-bottom: 3px solid #fff;
    padding: 20px 15px;
    min-height: auto;
    white-space: normal;
  }
  
  .moving-feature-title {
    font-size: 1.125rem;
  }
  
  .moving-feature-desc {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .moving-features-section {
    padding: 15px 0;
  }
  
  .moving-features-heading {
    font-size: 1.125rem;
    padding: 15px;
  }
  
  .moving-features-list {
    padding: 30px 10px;
    gap: 10px 20px;
  }
  
  .moving-feature-icon {
    height: 56px;
    width: 56px;
  }
  
  .moving-feature-icon i {
    font-size: 1.25rem;
  }
  
  .moving-feature-title {
    font-size: 1rem;
  }
  
  .moving-feature-desc {
    font-size: 0.8125rem;
  }
  
  .moving-box {
    animation-duration: 35s;
  }
}

@media (max-width: 480px) {
  .moving-features-list {
    gap: 8px 15px;
  }
  
  .moving-features-list li {
    gap: 12px;
    margin-left: 10px;
  }
  
  .moving-feature-icon {
    height: 48px;
    width: 48px;
  }
  
  .moving-feature-icon i {
    font-size: 1.125rem;
  }
}

/* ===========================
   Interactive Reasons Section
=========================== */
.reasons-section {
  position: relative;
  width: 100%;
  padding: 60px 24px 80px;
  min-height: 132vw;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .reasons-section {
    min-height: 70vw;
    padding: 80px 24px 120px;
  }
}

/* الخلفية */
.reasons-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.3;
}

/* العنوان */
.reasons-title {
  padding-bottom: 2vw;
  padding-top: 0;
  margin-top: -2vw;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(to right, #2563eb, #06b6d4, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-cairo);
  text-align: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .reasons-title {
    padding-bottom: 1.5vw;
    margin-top: -1.5vw;
  }
}

/* إصلاح العنوان في الجوال - إضافة مسافة كافية */
@media (max-width: 1023px) {
  .reasons-title {
    margin-top: 0 !important;
    margin-bottom: 100px !important;
    padding: 0 20px 0 !important;
    font-size: 1.75rem;
    position: relative;
    z-index: 30;
  }
}

@media (max-width: 480px) {
  .reasons-title {
    margin-bottom: 80px !important;
    font-size: 1.5rem;
  }
}

/* الكرات المتحركة */
.reason-ball {
  position: absolute;
  z-index: 5;
}

.reason-ball-1 {
  top: 20vw;
  left: 4vw;
}

.reason-ball-2 {
  top: 10vw;
  right: 5vw;
}

.reason-ball-3 {
  top: 50vw;
  left: 2vw;
}

.reason-ball-4 {
  top: 60vw;
  right: 3vw;
}

.reason-ball-5 {
  top: 85vw;
  left: 50%;
  transform: translateX(-50%);
}

.reason-ball-6 {
  top: 25vw;
  left: 50%;
  transform: translateX(-50%);
}

.floating-circle {
  width: 8vw;
  height: 8vw;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.circle-2 {
  animation-delay: 1.5s;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2));
}

.circle-3 {
  animation-delay: 0.8s;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
}

.circle-4 {
  animation-delay: 2.2s;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(239, 68, 68, 0.2));
}

.circle-5 {
  animation-delay: 1s;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
}

.circle-6 {
  animation-delay: 2.5s;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(37, 99, 235, 0.2));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (min-width: 1024px) {
  .floating-circle {
    width: 6vw;
    height: 6vw;
  }
  
  .reason-ball-3 {
    top: 35vw;
    left: 1vw;
  }
  
  .reason-ball-4 {
    top: 45vw;
    right: 2vw;
  }
  
  .reason-ball-5 {
    top: 58vw;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .reason-ball-6 {
    top: 20vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* الأزرار */
.reason-button {
  position: absolute;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.reason-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 25;
}

.reason-button:active {
  transform: scale(0.95);
}

.reason-button span {
  font-weight: 600;
  color: white;
  text-align: center;
  font-size: 2.5vw;
  line-height: 1.3;
  font-family: var(--font-cairo);
  padding: 4px;
}

/* مواضع الأزرار - موبايل (قبل التعديل) */
.reason-btn-1 {
  top: 11vw;
  left: 40vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.reason-btn-2 {
  top: 17vw;
  right: 16vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.reason-btn-3 {
  top: 33vw;
  right: 0vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

.reason-btn-4 {
  top: 99vw;
  right: 13vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.reason-btn-5 {
  top: 107vw;
  left: 40vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #65a30d, #4d7c0f);
}

.reason-btn-6 {
  top: 98vw;
  left: 13vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #10b981, #059669);
}

.reason-btn-7 {
  top: 18vw;
  left: 16vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.reason-btn-8 {
  top: 34vw;
  left: 0vw;
  width: 20vw;
  height: 20vw;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* تعديل مواضع الأزرار في الجوال - إضافة مسافة بعد العنوان */
@media (max-width: 1023px) {
  .reason-btn-1 {
    top: calc(11vw + 100px) !important;
  }
  
  .reason-btn-2 {
    top: calc(17vw + 100px) !important;
  }
  
  .reason-btn-3 {
    top: calc(33vw + 100px) !important;
  }
  
  .reason-btn-4 {
    top: calc(99vw + 100px) !important;
  }
  
  .reason-btn-5 {
    top: calc(107vw + 100px) !important;
  }
  
  .reason-btn-6 {
    top: calc(98vw + 100px) !important;
  }
  
  .reason-btn-7 {
    top: calc(18vw + 100px) !important;
  }
  
  .reason-btn-8 {
    top: calc(34vw + 100px) !important;
  }
}

@media (max-width: 480px) {
  .reason-btn-1 {
    top: calc(11vw + 80px) !important;
  }
  
  .reason-btn-2 {
    top: calc(17vw + 80px) !important;
  }
  
  .reason-btn-3 {
    top: calc(33vw + 80px) !important;
  }
  
  .reason-btn-4 {
    top: calc(99vw + 80px) !important;
  }
  
  .reason-btn-5 {
    top: calc(107vw + 80px) !important;
  }
  
  .reason-btn-6 {
    top: calc(98vw + 80px) !important;
  }
  
  .reason-btn-7 {
    top: calc(18vw + 80px) !important;
  }
  
  .reason-btn-8 {
    top: calc(34vw + 80px) !important;
  }
}

/* مواضع الأزرار - ديسكتوب */
@media (min-width: 1024px) {
  .reason-btn-1 {
    top: 10vw;
    left: 43vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-2 {
    top: 15.5vw;
    right: 27vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-3 {
    top: 30vw;
    right: 22vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-4 {
    top: 44vw;
    right: 28vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-5 {
    top: 50vw;
    left: 42.5vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-6 {
    top: 44.5vw;
    left: 28vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-7 {
    top: 30vw;
    left: 23vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-btn-8 {
    top: 15.5vw;
    left: 28vw;
    width: 15vw;
    height: 15vw;
  }
  
  .reason-button span {
    font-size: 1.5vw;
    font-weight: 600;
  }
}

/* المحتوى التفاعلي */
.reason-content {
  position: absolute;
  top: 34vw;
  left: 16.5vw;
  width: 69.5vw;
  height: 69.5vw;
  z-index: 15;
  color: white;
  font-family: var(--font-cairo);
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .reason-content {
    top: 26.5vw;
    left: 39.5vw;
    width: 22vw;
    height: 22vw;
    font-size: 1rem;
  }
}

.reason-content-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease-in-out;
}

.reason-content-item p {
  margin: 0;
  padding: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .reason-content-item p {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

/* ألوان المحتوى */
.reason-content-1 {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.reason-content-2 {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.reason-content-3 {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

.reason-content-4 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.reason-content-5 {
  background: linear-gradient(135deg, #65a30d, #4d7c0f);
}

.reason-content-6 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.reason-content-7 {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.reason-content-8 {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* Alpine.js cloaking */
[x-cloak] {
  display: none !important;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
  .reasons-section {
    padding: 48px 12px;
    min-height: 150vw;
  }
  
  .reasons-title {
    margin-top: 0;
    padding: 4vw 8px 8vw;
    font-size: 1.5rem;
  }
  
  .reason-button {
    padding: 0.25rem;
  }
  
  .reason-button span {
    font-size: 2.5vw;
    padding: 2px;
    line-height: 1.2;
  }
  
  .reason-content {
    width: 70vw;
    height: 70vw;
    top: calc(35vw + 100px) !important;
    left: 15vw;
    max-width: 320px;
    max-height: 320px;
  }
  
  .reason-content-item {
    padding: 0.75rem;
  }
  
  .reason-content-item p {
    font-size: 0.75rem;
    padding: 0.75rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .reasons-section {
    min-height: 160vw;
    padding: 32px 8px;
  }
  
  .reasons-title {
    font-size: 1.25rem;
    padding-bottom: 10vw;
  }
  
  .reason-button span {
    font-size: 2.2vw;
  }
  
  .reason-content {
    width: 65vw;
    height: 65vw;
    top: calc(38vw + 80px) !important;
    left: 17.5vw;
  }
  
  .reason-content-item p {
    font-size: 0.6875rem;
    padding: 0.5rem;
  }
}

/* ===========================
   How It Works Section
=========================== */
.how-it-works-section {
  padding: 96px 24px;
  font-family: var(--font-cairo);
}

.how-it-works-title {
  font-size: 1.875rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--foreground);
}

.how-it-works-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.steps-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.step-line {
  position: absolute;
  top: 56px;
  right: 28px;
  width: 2px;
  height: 64px;
  background: linear-gradient(to bottom, #60a5fa, #93c5fd);
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--foreground);
}

.step-desc {
  font-size: 1rem;
  color: #6b7280;
}

.how-it-works-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.steps-image {
  width: 100%;
  max-width: 650px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  object-fit: contain;
  max-height: 420px;
}

/* How It Works Section - Mobile Responsive */
@media (max-width: 767px) {
  .how-it-works-section {
    padding: 48px 16px;
  }
  
  .how-it-works-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    padding: 0 8px;
  }
  
  .how-it-works-container {
    gap: 32px;
  }
  
  .steps-wrapper {
    gap: 20px;
  }
  
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .step-title {
    font-size: 1.125rem;
  }
  
  .step-desc {
    font-size: 0.9375rem;
  }
  
  .steps-image {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .how-it-works-container {
    flex-direction: row;
  }
  
  .steps-wrapper {
    width: 50%;
  }
  
  .how-it-works-image {
    width: 50%;
  }
}

/* ===========================
   Blog Section
=========================== */
.blog-section {
  position: relative;
  padding: 80px 16px;
}

.blog-section::before {
  content: '';
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 384px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), transparent);
  z-index: -10;
}

.blog-container {
  max-width: 1280px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
}

.blog-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 32rem;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.blog-card {
  background: var(--background);
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.dark .blog-card {
  background: #1f2937;
}

.blog-card:hover {
  transform: scale(1.05);
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 224px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
}

.blog-content {
  padding: 24px;
  text-align: right;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.blog-category {
  background: #e5e7eb;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
}

.dark .blog-category {
  background: #374151;
  color: #e5e7eb;
}

.blog-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.blog-card:hover .blog-arrow {
  transform: rotate(-45deg);
}

.blog-arrow i {
  font-size: 1rem;
  color: #6b7280;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  line-height: 1.4;
}

.dark .blog-card-title {
  color: #f3f4f6;
}

.blog-excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 16px;
}

.dark .blog-excerpt {
  color: #9ca3af;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dark .blog-footer {
  border-color: #374151;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 500;
  color: #374151;
}

.dark .author-name {
  color: #d1d5db;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-date .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ca3af;
}

.blog-actions {
  text-align: center;
  margin-top: 48px;
}

.view-all-btn {
  display: inline-block;
  padding: 12px 32px;
  font-weight: 600;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
}

.view-all-btn:hover {
  background: #2563eb;
  color: white;
}

/* Blog Section - Mobile Responsive */
@media (max-width: 767px) {
  .blog-section {
    padding: 48px 12px;
  }
  
  .blog-header {
    margin-bottom: 40px;
    padding: 0 8px;
  }
  
  .blog-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  
  .blog-subtitle {
    font-size: 1rem;
    padding: 0 8px;
  }
  
  .blog-grid {
    gap: 24px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-card-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }
  
  .blog-excerpt {
    font-size: 0.8125rem;
    margin-bottom: 12px;
  }
  
  .blog-image-wrapper {
    height: 180px;
  }
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   Partners Section
=========================== */
.partners-section {
  position: relative;
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  padding: 80px 24px;
  transition: background-color 0.3s;
  overflow: hidden;
}

.partners-container {
  max-width: 1280px;
  margin: 0 auto;
}

.partners-header {
  text-align: center;
  margin-bottom: 48px;
}

.partners-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--foreground);
  line-height: 1.2;
}

.partners-subtitle {
  font-size: 1.125rem;
  color: rgba(23, 23, 23, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark .partners-subtitle {
  color: rgba(245, 245, 245, 0.7);
}

.partners-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 64px;
  animation: scrollPartners 30s linear infinite;
  width: fit-content;
  will-change: transform;
  /* منع أي توقف في الحركة */
  animation-fill-mode: both;
  /* تحسين الأداء */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.partner-logo {
  position: relative;
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--background);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark .partner-logo {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }
  100% {
    /* حساب دقيق: نتحرك بنسبة 25% (ربع العرض) لأننا كررنا العناصر 4 مرات */
    /* عندما نصل لربع العرض، تكون المجموعة الأولى قد خرجت والمجموعة الثانية في نفس موضعها */
    /* هذا يضمن استمرارية الحركة بدون أي فراغ */
    transform: translateX(calc(-100% / 4));
  }
}

/* تحسين الحركة لتكون أكثر سلاسة */
.partners-track {
  /* إزالة أي توقف مرئي */
  animation-timing-function: linear;
  /* منع أي قفزة مرئية */
  transform: translate3d(0, 0, 0);
  /* ضمان استمرارية الحركة */
  animation-iteration-count: infinite;
  /* منع أي توقف في الحركة */
  animation-fill-mode: both;
}

/* إيقاف الحركة عند hover للتحكم */
.partners-track:hover {
  animation-play-state: paused;
}

/* تحسين الأداء والحركة السلسة */
.partners-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  /* منع أي توقف مرئي */
  backface-visibility: hidden;
  perspective: 1000px;
  /* تحسين الأداء */
  transform: translateZ(0);
  /* منع أي فراغ مرئي */
  white-space: nowrap;
}

/* Partners Section - Mobile Responsive */
@media (max-width: 767px) {
  .partners-section {
    padding: 48px 16px;
  }
  
  .partners-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  
  .partners-subtitle {
    font-size: 1rem;
    padding: 0 8px;
  }
  
  .partners-track {
    gap: 40px;
    animation-duration: 20s;
  }
  
  .partner-logo {
    width: 120px;
    height: 80px;
    padding: 16px;
  }
}

@media (min-width: 768px) {
  .partners-track {
    gap: 80px;
  }
  
  .partner-logo {
    width: 180px;
    height: 120px;
  }
}

/* ===========================
   Testimonials Section
=========================== */
.testimonials-section {
  padding: 96px 24px;
  text-align: right;
  font-family: var(--font-cairo);
  background: linear-gradient(180deg, var(--background) 0%, rgba(102, 126, 234, 0.02) 50%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
  opacity: 1;
  visibility: visible;
}

.testimonials-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 2;
  padding: 0 20px;
  direction: rtl;
}

.testimonial-nav-btn {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.testimonial-nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.testimonial-nav-btn:hover::before {
  width: 300px;
  height: 300px;
}

.testimonial-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.testimonial-nav-btn:active {
  transform: scale(0.95);
}

.testimonial-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.testimonials-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: center;
}

.testimonials-slider {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: max-content;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(102, 126, 234, 0.1) inset;
  padding: 32px;
  min-width: 350px;
  width: 350px;
  max-width: 350px;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
  box-sizing: border-box;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.testimonial-card:hover::before {
  left: 100%;
}

.dark .testimonial-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(102, 126, 234, 0.2) inset;
  border-color: rgba(102, 126, 234, 0.2);
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.2),
    0 0 0 2px rgba(102, 126, 234, 0.3) inset;
  border-color: rgba(102, 126, 234, 0.3);
}

.dark .testimonial-card:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(102, 126, 234, 0.4) inset;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937; /* تعيين لون ثابت بدلاً من الشفافية */
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.dark .testimonial-name {
  color: #f3f4f6;
}

.testimonial-role {
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 500;
}

.dark .testimonial-role {
  color: #9ca3af;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-radius: 20px;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 1rem;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.rating-value {
  color: #1f2937;
  font-weight: 700;
  font-size: 1rem;
}

.dark .rating-value {
  color: #f3f4f6;
}

.rating-count {
  color: #9ca3af;
  font-size: 0.8125rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  position: relative;
  z-index: 1;
  flex: 1;
  font-style: italic;
}

.dark .testimonial-text {
  color: #d1d5db;
}

/* Animation delays for staggered effect */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

/* Testimonials Section - Mobile Responsive */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 64px 16px;
  }

  .testimonials-title {
    font-size: 1.875rem;
    margin-bottom: 40px;
    padding: 0 8px;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .testimonials-container {
    gap: 12px;
    flex-direction: column;
  }

  .testimonials-slider-wrapper {
    width: 100%;
    overflow: visible;
  }

  .testimonials-slider {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    min-width: 100%;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .testimonial-nav-btn {
    display: none;
  }

  .testimonial-header {
    flex-direction: row;
    text-align: right;
  }

  .testimonial-info {
    margin-right: 16px;
    margin-left: 0;
  }

  .testimonial-name {
    font-size: 1.1rem;
  }

  .testimonial-role {
    font-size: 0.9rem;
  }

  .testimonial-rating {
    justify-content: flex-end;
  }

  .testimonial-text {
    text-align: right;
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  .testimonial-avatar {
    width: 64px;
    height: 64px;
  }
  
  .testimonial-name {
    font-size: 1.125rem;
  }
  
  .testimonial-role {
    font-size: 0.875rem;
  }
  
  .testimonial-text {
    font-size: 0.9375rem;
  }
}

@media (min-width: 768px) {
  .testimonial-nav-btn {
    display: flex;
  }
  
  .testimonials-slider-wrapper {
    overflow: hidden;
  }
  
  .testimonials-slider {
    gap: 28px;
  }
  
  .testimonial-card {
    min-width: 320px;
    width: 320px;
  }
}

@media (min-width: 768px) {
  .testimonials-container {
    flex-direction: row;
  }

  .testimonials-slider {
    flex-direction: row;
    gap: 24px;
  }

  .testimonial-card {
    min-width: 320px;
    width: 320px;
  }

  .testimonial-nav-btn {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .testimonials-slider {
    gap: 32px;
  }

  .testimonial-card {
    min-width: 350px;
    width: 350px;
  }
}

@media (min-width: 1280px) {
  .testimonial-card {
    min-width: 380px;
    width: 380px;
  }
}

/* ===========================
   FAQ Section
=========================== */
.faq-section {
  padding: 80px 16px;
  text-align: right;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 56px;
  text-align: center;
}

.faq-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-column {
  flex: 1;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  margin-bottom: 16px;
  transition: all 0.3s;
  background: var(--background);
}

.dark .faq-item {
  border-color: #374151;
}

.faq-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: right;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  transition: color 0.2s;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-question i {
  transition: transform 0.3s;
  color: #6b7280;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 16px;
  opacity: 1;
}

.faq-answer p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--foreground);
}

/* FAQ Section - Mobile Responsive */
@media (max-width: 767px) {
  .faq-section {
    padding: 48px 12px;
  }
  
  .faq-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
    padding: 0 8px;
  }
  
  .faq-container {
    gap: 24px;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 0.9375rem;
  }
  
  .faq-answer {
    padding: 0 20px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 12px;
  }
  
  .faq-answer p {
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  .faq-container {
    flex-direction: row;
  }
}

/* ===========================
   Contact Section
=========================== */
.contact-section {
  position: relative;
  z-index: 10;
  padding: 80px 16px;
  overflow: hidden;
  text-align: right;
  font-family: 'Tajawal', var(--font-cairo);
  color: #111827;
  background: var(--background);
  transition: background-color 0.5s;
}

.dark .contact-section {
  background: #0f172a;
  color: #e5e7eb;
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.contact-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-badge {
  display: inline-block;
  color: #2563eb;
  padding: 6px 20px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.dark .contact-badge {
  background: #1e3a8a;
  border-color: #1e40af;
  color: #93c5fd;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 32rem;
}

.dark .contact-title {
  color: #93c5fd;
}

.contact-desc {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 28rem;
  margin-bottom: 32px;
}

.dark .contact-desc {
  color: #9ca3af;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.app-store-btn,
.google-play-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.app-store-btn {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
}

.app-store-btn:hover {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
}

.google-play-btn {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
}

.google-play-btn:hover {
  background: #2563eb;
  color: white;
}

.dark .google-play-btn:hover {
  background: #3b82f6;
}

.contact-image {
  width: 100%;
  max-width: 360px;
}

.app-image {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  overflow: hidden;
  border: 8px solid #93c5fd;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  object-fit: contain;
}

.dark .app-image {
  border-color: #1e40af;
}

@media (min-width: 640px) {
  .contact-buttons {
    flex-direction: row;
    width: auto;
  }
  
  .contact-image {
    max-width: 420px;
  }
}

@media (min-width: 768px) {
  .contact-image {
    max-width: 460px;
  }
}

/* Contact Section - Mobile Responsive */
@media (max-width: 767px) {
  .contact-section {
    padding: 48px 12px;
  }
  
  .contact-container {
    gap: 32px;
  }
  
  .contact-badge {
    font-size: 0.8125rem;
    padding: 5px 16px;
    margin-bottom: 12px;
  }
  
  .contact-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    padding: 0 8px;
  }
  
  .contact-desc {
    font-size: 0.9375rem;
    padding: 0 8px;
  }
  
  .contact-form {
    width: 100%;
    padding: 24px 16px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-label {
    font-size: 0.9375rem;
    margin-bottom: 8px;
  }
  
  .form-input,
  .form-textarea {
    padding: 12px 16px;
    font-size: 0.9375rem;
  }
  
  .form-submit {
    padding: 12px 32px;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .contact-container {
    flex-direction: row;
  }
  
  .contact-text {
    width: auto;
    align-items: flex-start;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .contact-container {
    flex-direction: row;
  }
  
  .contact-text {
    width: auto;
    align-items: flex-start;
    text-align: right;
  }
}



/* ===========================
   WhatsApp Button
=========================== */
.whatsapp-btn {
  position: fixed;
  right: 16px;
  bottom: 40px;
  z-index: 50;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(to top right, #25d366, #2563eb);
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.875rem;
  text-decoration: none;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.7);
}

/* ===========================
   Mouse Follower
=========================== */
.mouse-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: exclusion;
}

.mouse-follower-1 {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  filter: blur(3px);
}

.mouse-follower-2 {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.mouse-follower-3 {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

/* ===========================
   New Footer Design
=========================== */
.pg-footer {
  font-family: var(--font-cairo);
  direction: rtl;
  font-size: 1rem;
  line-height: 1.6;
}

.pg-footer * {
  box-sizing: border-box;
}

.pg-footer .footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  position: relative;
}

.pg-footer .footer-wave-svg {
  background-color: transparent;
  display: block;
  height: 50px;
  position: relative;
  top: -1px;
  width: 100%;
}

.pg-footer .footer-wave-path {
  fill: var(--background);
}

.dark .pg-footer .footer-wave-path {
  fill: #1a1a1a;
}

.pg-footer .footer-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 1230px;
  padding: 40px 15px 450px;
  position: relative;
}

.pg-footer .footer-content-column {
  box-sizing: border-box;
  float: right;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  color: #fff;
  text-align: right;
  vertical-align: top;
}

.pg-footer .footer-logo-link {
  display: inline-block;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.pg-footer .footer-logo-link:hover {
  transform: translateY(-2px);
}

.pg-footer .footer-logo-img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.pg-footer .footer-logo-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 280px;
  text-align: right;
}

.pg-footer .footer-menu {
  margin-top: 30px;
}

.pg-footer .footer-menu-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 18px;
  margin-top: 0;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.pg-footer .footer-menu-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.pg-footer .footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-footer .footer-menu-list li {
  margin-top: 8px;
  margin-bottom: 8px;
}

.pg-footer .footer-menu-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 4px 0;
}

.pg-footer .footer-menu-list a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.pg-footer .footer-menu-list a:hover {
  color: #fff;
  transform: translateX(-5px);
}

.pg-footer .footer-menu-list a:hover::after {
  width: 100%;
}

.pg-footer .footer-call-to-action {
  margin-top: 30px;
}

.pg-footer .footer-call-to-action-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 12px;
  margin-top: 0;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.pg-footer .footer-call-to-action-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.pg-footer .footer-call-to-action-description {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pg-footer .footer-call-to-action-button {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 21px;
  color: #fff;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 18px;
  padding: 12px 30px;
  margin: 0 10px 10px 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s;
  cursor: pointer;
  position: relative;
}

.pg-footer .footer-call-to-action-button:hover {
  background-color: #fff;
  color: #667eea;
}

.pg-footer .footer-call-to-action-link-wrapper {
  margin-bottom: 0;
  margin-top: 15px;
  color: #fff;
  font-size: 1rem;
}

.pg-footer .footer-call-to-action-link {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.pg-footer .footer-call-to-action-link:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(-3px);
}

.pg-footer .footer-social-links {
  bottom: 0;
  height: 54px;
  position: absolute;
  left: 0;
  width: 236px;
  z-index: 10;
}

.pg-footer .footer-social-amoeba-svg {
  height: 54px;
  left: 0;
  display: block;
  position: absolute;
  top: 0;
  width: 236px;
}

.pg-footer .footer-social-amoeba-path {
  fill: rgba(255, 255, 255, 0.12);
}

.pg-footer .footer-social-link {
  display: block;
  padding: 8px;
  position: absolute;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.pg-footer .footer-social-link:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.2);
}

.pg-footer .hidden-link-text {
  position: absolute;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
  clip-path: inset(0px 0px 99.9% 99.9%);
  overflow: hidden;
  height: 1px;
  width: 1px;
  padding: 0;
  border: 0;
  top: 50%;
}

.pg-footer .footer-social-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pg-footer .footer-social-icon-path {
  fill: #fff;
  transition: fill 0.3s ease;
}

.pg-footer .footer-social-link:hover .footer-social-icon-path {
  fill: rgba(255, 255, 255, 0.9);
}

.pg-footer .footer-social-link.linkedin {
  height: 32px;
  left: 5px;
  top: 11px;
  width: 32px;
}

.pg-footer .footer-social-link.twitter {
  height: 32px;
  left: 65px;
  top: 3px;
  width: 32px;
}

.pg-footer .footer-social-link.youtube {
  height: 28px;
  left: 125px;
  top: 12px;
  width: 28px;
}

.pg-footer .footer-social-link.github {
  height: 36px;
  left: 175px;
  top: 8px;
  width: 36px;
}

.pg-footer .footer-copyright {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 15px 30px;
  text-align: center;
  clear: both;
}

.pg-footer .footer-copyright-wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
}

.pg-footer .footer-copyright-text {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
}

.pg-footer .footer-copyright-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.pg-footer .footer-copyright-link:hover {
  opacity: 0.8;
}

/* Responsive Footer */
@media (min-width: 760px) {
  .pg-footer .footer-content {
    padding: 40px 15px 450px;
  }

  .pg-footer .footer-wave-svg {
    height: 50px;
  }

  .pg-footer .footer-content-column {
    width: 24.99%;
  }
}

@media (min-width: 320px) and (max-width: 479px) {
  .pg-footer .footer-content {
    padding: 40px 15px 1050px;
  }
}

@media (min-width: 480px) and (max-width: 599px) {
  .pg-footer .footer-content {
    padding: 40px 15px 1050px;
  }
}

@media (min-width: 600px) and (max-width: 800px) {
  .pg-footer .footer-content {
    padding: 40px 15px 1050px;
  }
}

/* Dark Mode */
.dark .pg-footer .footer {
  background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 100%);
}

.dark .pg-footer .footer-copyright {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ===========================
   Utility Classes
=========================== */
.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\:hidden {
    display: none !important;
  }
}

/* ===========================
   Scroll Animations
=========================== */

/* الأنيميشن الأساسي للظهور */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* أنيميشن للبطاقات */
.animate-child {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-child.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* تأثيرات خاصة للأقسام المختلفة */
.hero-section.animate-on-scroll {
  transform: scale(0.95);
}

.hero-section.animate-in {
  transform: scale(1);
}

/* أنيميشن للبطاقات من اليسار واليمين */
.why-card:nth-child(odd) {
  transform: translateX(-50px) translateY(30px);
}

.why-card:nth-child(even) {
  transform: translateX(50px) translateY(30px);
}

.why-card.animate-in {
  transform: translateX(0) translateY(0);
}

/* أنيميشن للتخصصات */
.specialty-card {
  opacity: 0;
  transform: scale(0.8) rotateY(20deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.specialty-card.animate-in {
  opacity: 1;
  transform: scale(1) rotateY(0);
}

/* أنيميشن للإحصائيات */
.statistic-card {
  opacity: 0;
  transform: translateY(40px) rotateX(-15deg);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.statistic-card.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ===========================
   3D Hover Effects
=========================== */
.why-card,
.specialty-card,
.blog-card,
.statistic-card {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* تأثير الإضاءة عند Hover */
.why-card::before,
.specialty-card::before,
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.why-card:hover::before,
.specialty-card:hover::before,
.blog-card:hover::before {
  opacity: 1;
}

/* ===========================
   Text Reveal Animation
=========================== */
.word-animate {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Floating Animation
=========================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

.section-ball,
.reason-ball {
  animation: float 15s ease-in-out infinite;
}

.section-ball:nth-child(even),
.reason-ball:nth-child(even) {
  animation-delay: -7s;
  animation-duration: 18s;
}

/* ===========================
   Pulse Animation for Icons
=========================== */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
  }
}

.statistic-icon,
.why-card-icon,
.specialty-icon {
  animation: iconPulse 3s ease-in-out infinite;
}

.statistic-card:nth-child(2) .statistic-icon,
.why-card:nth-child(2) .why-card-icon {
  animation-delay: -1s;
}

.statistic-card:nth-child(3) .statistic-icon,
.why-card:nth-child(3) .why-card-icon {
  animation-delay: -2s;
}

/* ===========================
   Gradient Animation
=========================== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-section,
.offers-section,
.reasons-section {
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* ===========================
   Shimmer Effect
=========================== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.blog-card:hover .blog-image::after,
.testimonial-card:hover .testimonial-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

/* ===========================
   Bounce Animation for Buttons
=========================== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.hero-cta:hover,
.offer-btn:hover,
.all-specialties-btn:hover,
.view-all-btn:hover {
  animation: bounce 1s ease;
}

/* ===========================
   Fade In Variations
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================
   Loading Animation
=========================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===========================
   Glowing Effect
=========================== */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5),
                0 0 10px rgba(59, 130, 246, 0.3),
                0 0 15px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8),
                0 0 20px rgba(59, 130, 246, 0.5),
                0 0 30px rgba(59, 130, 246, 0.3);
  }
}

.hero-cta,
.offer-btn {
  animation: glow 2s ease-in-out infinite;
}

/* ===========================
   Responsive Animations
=========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* تقليل الحركة على الشاشات الصغيرة */
@media (max-width: 768px) {
  .animate-on-scroll {
    transform: translateY(20px);
  }
  
  .why-card:nth-child(odd),
  .why-card:nth-child(even) {
    transform: translateY(20px);
  }
  
  /* إيقاف تحريك الكرات والخلفيات الثقيلة */
  .section-ball,
  .reason-ball,
  .section-floating-circle,
  .floating-circle {
    animation: none !important;
  }

  .hero-section,
  .offers-section,
  .reasons-section {
    animation: none !important;
    background-size: auto !important;
  }

  /* إيقاف نبض الأيقونات */
  .statistic-icon,
  .why-card-icon,
  .specialty-icon {
    animation: none !important;
  }

  /* إيقاف توهج الأزرار */
  .hero-cta,
  .offer-btn {
    animation: none !important;
  }
}

/* ===========================
   قسم كيف يعمل نظام حجز المواعيد
=========================== */
:root{
  --bg:#ffffff;
  --ink:#111827;
  --muted:#6b7280;

  --blue:#0b5ed7;
  --cyan:#1ddfe6;
  --purple:#b86bf0;
  --softblue:#8bbcff;

  --puzzle:#ff4a2f;
}

.how-it-works{
  position:relative;
  padding: 64px 0 72px;
  overflow:hidden;
}

.how-title{
  text-align:center;
  font-weight:800;
  letter-spacing:.2px;
  margin: 0 0 34px;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
}

/* Steps */
.step{
  text-align:center;
  max-width: 280px;
  margin: 0 auto;
}
.step h3{
  margin: 14px 0 8px;
  font-weight:800;
  font-size: 1.06rem;
}
.step p{
  margin:0;
  color: var(--muted);
  line-height:1.9;
  font-size: .95rem;
}

.linkish{
  color: #1e6ff3;
}

/* Icon circles */
.icon-circle{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  margin: 0 auto;
  display:grid;
  place-items:center;
  box-shadow: 0 18px 34px rgba(0,0,0,.14);
}
.icon-circle svg{
  width: 42px;
  height: 42px;
  fill: #fff;
}

.bg-blue{ background: var(--blue); }
.bg-cyan{ background: var(--cyan); }
.bg-purple{ background: var(--purple); }
.bg-softblue{ background: var(--softblue); }

/* Center illustration */
.illustration-frame{
  max-width: 560px;
  margin-inline:auto;
}
.illustration-frame img{
  width: 100%;
  height: auto;
  display:block;
}

/* Puzzle pieces like screenshot */
.pzl{
  position:absolute;
  width: 34px;
  height: 34px;
  background: var(--puzzle);
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(255,74,47,.25);
  transform: rotate(-12deg);
  opacity:.95;
}
.pzl:before, .pzl:after{
  content:"";
  position:absolute;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--puzzle);
}
.pzl:before{ top:-6px; left:10px; }
.pzl:after{ right:-6px; top:10px; }

.pzl-1{ left: 70px; top: 115px; transform: rotate(18deg); }
.pzl-2{ right: 70px; top: 95px; transform: rotate(-10deg); }
.pzl-3{ left: 420px; top: 230px; opacity:.75; }
.pzl-4{ right: 430px; top: 230px; opacity:.75; }
.pzl-5{ right: 300px; top: 260px; opacity:.8; transform: rotate(12deg); }

@media (max-width: 767px){
  .how-it-works{
    padding: 46px 16px 54px;
  }

  .container-xl {
    padding: 0;
  }

  .row.align-items-center.justify-content-center.gy-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 2rem;
  }

  .how-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
  }

  .col-12.col-lg-3 {
    margin-bottom: 32px;
  }

  .step {
    text-align: center;
    max-width: 100%;
  }

  .step h3 {
    font-size: 1.125rem;
    margin: 12px 0 8px;
  }

  .step p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
  }

  .icon-circle svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 992px){
  .pzl-3,.pzl-4,.pzl-5{ display:none; }
  .how-it-works{ padding: 46px 0 54px; }
}

/* ===========================
   قسم How It Works مع Slider
=========================== */
:root{
  --how-bg0: #0f1722;
  --how-bg1: #121b2a;
  --how-ink: #eaf0ff;
  --how-muted: rgba(234,240,255,.72);
  --how-soft: rgba(234,240,255,.12);
  --how-shadow: 0 18px 45px rgba(0,0,0,.35);
  --how-radius: 18px;
  --how-gap: 22px;
  --how-btn: #ff2d55;
  --how-btn2: #ff355d;
  --how-btnGlow: rgba(255,45,85,.35);
  --how-cardW: 340px;
}

.how-slider-section{
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: linear-gradient(135deg, #1a1f2e 0%, #162238 100%);
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Decorative shapes */
.how-slider__bg{
  position:absolute;
  inset:-120px -120px -120px -120px;
  pointer-events:none;
}
.how-slider__bg::before,
.how-slider__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 320px at 18% 24%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(560px 320px at 72% 36%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(520px 280px at 80% 88%, rgba(255,255,255,.05), transparent 60%);
}
.how-slider__bg::after{
  opacity:.35;
  background:
    linear-gradient(120deg, transparent 0 76%, rgba(255,255,255,.05) 76% 78%, transparent 78% 100%),
    linear-gradient(0deg, transparent 0 72%, rgba(255,255,255,.05) 72% 74%, transparent 74% 100%);
  transform: translate(70px,-40px) rotate(8deg);
}

/* Container */
.how-slider__wrap{
  width:min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 56px;
  position: relative;
}

/* Left */
.how-slider__left{
  flex: 1 1 520px;
  max-width: 560px;
  text-align: right;
  direction: rtl;
}
.how-slider__title{
  margin: 0 0 18px 0;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--how-ink);
  text-align: right;
}
.how-slider__desc{
  margin: 0 0 28px 0;
  color: var(--how-muted);
  max-width: 520px;
  line-height: 1.7;
  font-size: 14.5px;
  text-align: right;
}

/* Button */
.how-slider-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--how-btn2), var(--how-btn));
  color: white;
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 30px var(--how-btnGlow);
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease;
  margin-top: 8px;
}
.how-slider-btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.how-slider-btn:active{ transform: translateY(0px); filter: brightness(.98); }
.how-slider-btn__icon{
  width: 18px; height: 18px;
  display:grid; place-items:center;
}
.how-slider-btn__icon svg{ width: 18px; height: 18px; }

/* Right / Slider */
.how-slider__right{
  flex: 1 1 520px;
  min-width: 360px;
  position: relative;
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.how-slider{
  width: min(780px, 100%);
  position: relative;
  padding-right: 72px;
}

.how-slider__viewport{
  overflow: hidden;
  padding: 6px 4px 6px 4px;
  max-width: calc((var(--how-cardW) * 2) + var(--how-gap));
}
.how-slider__track{
  display:flex;
  flex-wrap: nowrap;
  gap: var(--how-gap);
  align-items: stretch;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  direction: ltr; /* للـ slider فقط */
}

/* Cards */
.how-card{
  flex: 0 0 var(--how-cardW);
  width: var(--how-cardW);
  border-radius: var(--how-radius);
  padding: 28px 28px 22px;
  box-shadow: var(--how-shadow);
  position: relative;
  overflow:hidden;
  direction: rtl;
  text-align: right;
}
.how-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 45%);
  opacity: .35;
  pointer-events:none;
}
.how-card__icon{
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,.95);
  margin-bottom: 10px;
}
.how-card__icon svg{ width: 44px; height: 44px; }
.how-card__title{
  margin: 6px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-align: right;
}
.how-card__text{
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
  font-size: 13.5px;
  text-align: right;
}

/* Card themes */
.how-card--purple{
  background: linear-gradient(135deg, #1b2b9f, #b565d9);
}
.how-card--blue{
  background: linear-gradient(135deg, #0b2a8a, #7eb7f3);
}
.how-card--teal{
  background: linear-gradient(135deg, #0c6a75, #6be2c4);
}

/* Dots */
.how-slider__dots{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 18px;
  padding-right: 6px;
}
.how-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.26);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, width .15s ease;
}
.how-dot.is-active{
  background: var(--how-btn);
  width: 22px;
}
.how-dot:focus-visible{
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px){
  :root{ --how-cardW: 320px; }
  .how-slider__wrap{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .how-slider__left{
    flex: none;
    width: 100%;
  }
  .how-slider__right{
    flex: none;
    width: 100%;
    justify-content: flex-start;
  }
  .how-slider{
    padding-right: 0;
    width: 100%;
  }
  .how-slider__viewport{ max-width: 100%; }
  .how-slider-section{ padding: 64px 16px; }
  .how-slider__title{
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
  }
  .how-slider__desc{
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
  }
  .how-slider-btn{
    padding: 10px 18px;
    font-size: 13px;
    margin-top: 2px;
  }
}
@media (max-width: 560px){
  :root{ --how-cardW: 280px; --how-gap: 16px; }
  .how-slider__viewport{ max-width: var(--how-cardW); }
  .how-slider-section{ padding: 48px 16px; }
  .how-slider__desc{ font-size: 13px; }
  .how-slider__wrap{ gap: 2px; }
  .how-slider__left{
    flex: none;
    width: 100%;
  }
  .how-slider__right{
    flex: none;
    width: 100%;
  }
  .how-slider__title{
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
  }
  .how-slider__desc{ margin-bottom: 4px; }
  .how-slider-btn{
    padding: 10px 18px;
    font-size: 12px;
    margin-top: 0px;
  }
  .how-card{
    padding: 24px 24px 18px;
  }
  .how-card__title{
    font-size: 18px;
    margin: 4px 0 8px;
  }
  .how-card__text{
    font-size: 12.5px;
    line-height: 1.5;
  }
}

@media (max-width: 480px){
  :root{ --how-cardW: 260px; --how-gap: 12px; }
  .how-slider-section{ padding: 40px 16px; }
  .how-slider__wrap{ gap: 2px; }
  .how-slider__left{
    flex: none;
    width: 100%;
  }
  .how-slider__right{
    flex: none;
    width: 100%;
  }
  .how-slider__title{
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 10px;
  }
  .how-slider__desc{
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 2px;
  }
  .how-slider-btn{
    padding: 10px 16px;
    font-size: 11px;
    gap: 6px;
    margin-top: 0px;
  }
  .how-slider-btn__icon{
    width: 16px;
    height: 16px;
  }
  .how-slider-btn__icon svg{
    width: 16px;
    height: 16px;
  }
  .how-card{
    padding: 20px 20px 16px;
  }
  .how-card__icon{
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  .how-card__icon svg{
    width: 36px;
    height: 36px;
  }
  .how-card__title{
    font-size: 16px;
    margin: 4px 0 6px;
  }
  .how-card__text{
    font-size: 11.5px;
    line-height: 1.4;
  }
  .how-slider__dots{
    margin-top: 12px;
  }
  .how-dot{
    width: 8px;
    height: 8px;
  }
  .how-dot.is-active{
    width: 18px;
  }
}

/* ===========================
   Floating Side Help Menu
=========================== */
.sideMenuToggleWrapper {
  position: fixed;
  left: 20px;
  bottom: 100px;
  z-index: 9999;
  direction: rtl;
  font-family: var(--font-cairo);
}

.sideMenuBtn {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
  color: #111827;
  border: 2px solid #667eea;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: platformGlow 3s infinite ease-in-out;
}

/* Shimmer effect */
.sideMenuBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
  animation: sideShimmer 4s infinite;
}

@keyframes sideShimmer {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

@keyframes platformGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 25px rgba(118, 75, 162, 0.6), 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
  }
}

.sideMenuBtn i {
  font-size: 1.3rem;
  color: #667eea;
  filter: drop-shadow(0 0 2px rgba(102, 126, 234, 0.3));
}

.sideMenuBtn .btn-text {
  font-weight: 800;
  font-size: 0.95rem;
}

.sideMenuBtn:hover {
  background: #fff;
  border-color: #764ba2;
}

.sideMenuContent {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(102, 126, 234, 0.3);
  display: flex;
  flex-direction: column;
}

.sideMenuToggleWrapper.active .sideMenuContent {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sideMenuHeader {
  background: #ffffff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  min-height: 70px;
  position: relative;
}

.sideMenuHeader h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  flex: 1;
  text-align: center;
  letter-spacing: -0.01em;
}

.closeSideMenu {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: auto;
  z-index: 5;
}

.closeSideMenu:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.backToMain {
  display: none;
  background: #f0f4ff;
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: #667eea;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.3s;
  position: absolute;
  right: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.backToMain:hover {
  background: #667eea;
  color: #fff;
  transform: translateX(-3px);
}

.sideMenuToggleWrapper.submenu-active .backToMain {
  display: flex;
}

.sideMenuToggleWrapper.submenu-active .sideMenuHeader h3 {
  padding-right: 75px;
}

.sideMenuBody {
  position: relative;
  width: 100%;
  height: 380px; 
  overflow: hidden;
  background: #fff;
}

.main-help-menu {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.dropdown-item-help {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: none;
  border: none;
  color: #374151;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.dropdown-item-help::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: #667eea;
  transition: height 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.dropdown-item-help:hover::before {
  height: 70%;
}

.dropdown-item-help:hover {
  background: linear-gradient(to left, rgba(102, 126, 234, 0.08), transparent);
  color: #667eea;
  padding-right: 32px;
}

.icon-main {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-left: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Service - Purple */
.icon-service {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
}
.dropdown-item-help:hover .icon-service {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

/* Consultant - Blue */
.icon-consultant {
  background: rgba(79, 172, 254, 0.1);
  color: #4facfe;
  border: 1px solid rgba(79, 172, 254, 0.2);
}
.dropdown-item-help:hover .icon-consultant {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

/* Complaint - Pink/Red */
.icon-complaint {
  background: rgba(240, 147, 251, 0.1);
  color: #f093fb;
  border: 1px solid rgba(240, 147, 251, 0.2);
}
.dropdown-item-help:hover .icon-complaint {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
}

/* Package - Green */
.icon-package {
  background: rgba(67, 233, 123, 0.1);
  color: #43e97b;
  border: 1px solid rgba(67, 233, 123, 0.2);
}
.dropdown-item-help:hover .icon-package {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #fff;
}

/* Video - Orange */
.icon-video {
  background: rgba(250, 112, 154, 0.1);
  color: #fa709a;
  border: 1px solid rgba(250, 112, 154, 0.2);
}
.dropdown-item-help:hover .icon-video {
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: #fff;
}

/* App - Deep Blue */
.icon-app {
  background: rgba(48, 207, 208, 0.1);
  color: #30cfd0;
  border: 1px solid rgba(48, 207, 208, 0.2);
}
.dropdown-item-help:hover .icon-app {
  background: linear-gradient(135deg, #30cfd0, #330867);
  color: #fff;
}

.dropdown-item-help:hover .icon-main {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.arrow {
  margin-right: auto;
  font-size: 0.8rem;
  color: #d1d5db;
  transition: all 0.3s;
}

.dropdown-item-help:hover .arrow {
  color: #374151;
  transform: translateX(-5px);
}

.submenus-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  background: #fff;
  z-index: 2;
}

.sideMenuToggleWrapper.submenu-active .submenus-container {
  transform: translateX(0);
}

.sideMenuToggleWrapper.submenu-active .main-help-menu {
  transform: translateX(100%);
}

.dropdown-menu-help {
  display: none;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  width: 100%;
}

.dropdown-menu-help.active {
  display: block;
}

/* Submenu Links */
.dropdown-menu-help li a {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-right: 4px solid transparent;
  position: relative;
}

.dropdown-menu-help li a i {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-left: 15px;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Service Submenu - Purple */
#serviceMenu li a:hover {
  background: rgba(102, 126, 234, 0.05);
  color: #667eea;
  border-right-color: #667eea;
  padding-right: 35px;
}
#serviceMenu li a:hover i {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* Consultant Submenu - Blue */
#consultantMenu li a:hover {
  background: rgba(79, 172, 254, 0.05);
  color: #4facfe;
  border-right-color: #4facfe;
  padding-right: 35px;
}
#consultantMenu li a:hover i {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* Complaint Submenu - Pink */
#complaintMenu li a:hover {
  background: rgba(240, 147, 251, 0.05);
  color: #f093fb;
  border-right-color: #f093fb;
  padding-right: 35px;
}
#complaintMenu li a:hover i {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* Package Submenu - Green */
#packageMenu li a:hover {
  background: rgba(67, 233, 123, 0.05);
  color: #43e97b;
  border-right-color: #43e97b;
  padding-right: 35px;
}
#packageMenu li a:hover i {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* App Submenu - Deep Blue */
#appMenu li a:hover {
  background: rgba(48, 207, 208, 0.05);
  color: #30cfd0;
  border-right-color: #30cfd0;
  padding-right: 35px;
}
#appMenu li a:hover i {
  background: linear-gradient(135deg, #30cfd0, #330867);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* Close Button Enhancement */
.closeSideMenu i {
  font-size: 1.1rem;
  font-weight: 900;
}

@media (max-width: 768px) {
  .sideMenuToggleWrapper {
    left: 15px;
    bottom: 80px;
  }
  .sideMenuBtn .btn-text {
    display: none;
  }
  .sideMenuBtn {
    padding: 18px;
    border-radius: 50%;
  }
  .sideMenuContent {
    width: calc(100vw - 40px);
    max-width: 340px;
    bottom: 85px;
    left: 0;
    transform: translateY(20px) scale(0.95);
  }
  .sideMenuToggleWrapper.active .sideMenuContent {
    transform: translateY(0) scale(1);
  }
}

