/* ========================================
   ملف CSS موحد لمشروع كريم ديزاين
   ======================================== */

/* إعدادات أساسية */
:root {
    --primary-color: #112138; /* أسود */
    --secondary-color: #fec633; /* أصفر */
    --light-color: #F5F7FA; /* خلفية الهيدر والفوتر */
    --white-color: #ffffff; /* أبيض */
    --dark-color: #112138;
}

/* ========================================
   تعريف الخطوط (من مجلد /fonts)
   ======================================== */

/* الخط العربي: Madani Arabic */
@font-face {
    font-family: 'Madani Arabic';
    src: url('/fonts/alfont_com_Madani-Arabic-Regular-1.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* الخط الفرنسي: Playfair Display Italic */
@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* ========================================
   إعداد اللغة الافتراضية
   ======================================== */

/* خطوط عربية */
html[lang="ar"] {
    font-family: 'Madani Arabic', 'Noto Sans Arabic', sans-serif;
}

/* خطوط فرنسية */
html[lang="fr"] {
    font-family: 'Playfair Display', serif;
}

/* ========================================
   تنسيق عام
   ======================================== */
:root {
  --header-height-desktop: 100px;
  --header-height-mobile: 70px;
  --logo-height-desktop: 75px;
  --logo-height-mobile: 45px;
  --primary-color: #1a2f5a;
  --secondary-color: #fec633;
  --light-color: #ffffff;
  --white-color: #ffffff;
}

body {
  padding-top: var(--header-height-desktop);
  background-color: var(--primary-color);
  color: var(--white-color);
  margin: 0;
  font-family: inherit;
}

/* ========================================
   تنسيق الهيدر الأساسي
   ======================================== */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

#main-header .navbar {
  padding: 0;
  min-height: var(--header-height-desktop);
  display: flex;
  align-items: center;
}

#main-header .navbar-brand {
  padding: 0;
}

#main-header .navbar-nav {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

#main-header .navbar-nav .nav-item {
  margin: 0 5px;
}

#main-header .navbar-nav .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  padding: 8px 12px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

#main-header .navbar-nav .nav-link:hover {
  color: var(--secondary-color);
  background-color: rgba(0,0,0,0.05);
}

#main-header .btn-call {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 20px;
  padding: 5px 15px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

#main-header .btn-call:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

#main-header .navbar-toggler {
  border: none;
  color: var(--primary-color);
  padding: 0;
  margin: 0;
  background-color: rgba(0,0,0,0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}

#main-header .navbar-toggler:focus {
  box-shadow: none;
}

#main-header .navbar-toggler:hover {
  background-color: var(--secondary-color);
}

#main-header .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817, 33, 56, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#main-header .navbar-toggler:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* أيقونة اللغة */
#main-header .fa-globe {
  color: var(--primary-color);
  font-size: 1.2rem;
  display: inline-block; /* تصحيح: تغيير من block إلى inline-block */
  padding: 8px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  vertical-align: middle; /* إضافة لمحاذاة الأيقونة مع النص */
}

#main-header .fa-globe:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

/* اللوجو */
.navbar-brand img {
  height: var(--logo-height-desktop);
  max-height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

/* ========================================
   تنسيق الهيدر للجوال
   ======================================== */
@media (max-width: 991.98px) {
  body {
    padding-top: var(--header-height-mobile);
  }
  
  #main-header {
    padding: 10px 0;
    min-height: var(--header-height-mobile);
  }
  
  #main-header .navbar {
    min-height: var(--header-height-mobile);
    position: relative;
  }
  
  /* اللوجو في المنتصف */
  #main-header .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    z-index: 100;
  }
  
  #main-header .navbar-brand img {
    height: var(--logo-height-mobile);
  }
  
  /* أيقونة اللغة وزر القائمة */
  #main-header .nav-link,
  #main-header .navbar-toggler {
    position: relative;
    z-index: 120;
  }
  
  /* القائمة المنبثقة */
  #main-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 40;
  }
  
  #main-header .navbar-collapse .navbar-nav {
    flex-direction: column;
    align-items: center;
  }
  
  #main-header .navbar-collapse .nav-item {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }
  
  #main-header .navbar-collapse .nav-link {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
  }
  
  /* تصحيح زر الاتصال على الجوال */
  #main-header .btn-call {
    display: inline-block; /* تصحيح: تغيير من inline-flex */
    text-align: center; /* إضافة لمحاذاة النص */
  }
}

/* ========================================
   تنسيق الهيدر لسطح المكتب
   ======================================== */
@media (min-width: 992px) {
  #main-header .container {
    position: relative;
  }
  
  #main-header .position-absolute {
    z-index: 1;
  }
  
  #main-header .me-auto, 
  #main-header .ms-auto {
    z-index: 2;
  }
  
  #main-header .navbar-brand {
    position: relative;
    z-index: 3;
  }
}

/* ========================================
   تنسيق الهيدر العربي لسطح المكتب
   ======================================== */
@media (min-width: 992px) {
  html[lang="ar"] #main-header .d-lg-flex {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  html[lang="ar"] #main-header .position-absolute {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
  }

  html[lang="ar"] #main-header .ms-auto {
    order: 3;
    margin-right: 40px;
  }

  html[lang="ar"] #main-header .me-auto {
    order: 1;
    margin-left: 40px;
  }

  html[lang="ar"] #main-header .navbar-brand img {
    height: var(--logo-height-desktop);
    width: auto;
    display: block;
  }

  html[lang="ar"] #main-header .navbar {
    min-height: var(--header-height-desktop);
    align-items: center;
  }
}
/* ========================================
   تنسيق الفوتر
   ======================================== */
#main-footer {
    background-color: var(--light-color) !important;
    color: var(--primary-color);
    padding: 40px 0 20px;
    margin-top: 50px;
}

#main-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#main-footer a:hover {
    color: var(--secondary-color);
}

#main-footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

#main-footer .social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

#main-footer .border-top {
    border-color: rgba(0,0,0,0.1) !important;
}

/* ========================================
   تنسيق الصفحة الرئيسية
   ======================================== */

/* قسم الهيرو */
.hero-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-section h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 3rem;
    font-weight: 700;
}

.hero-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-section img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* قسم الخدمات */
.services-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.8), transparent);
    z-index: 1;
}

.services-section h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.service-box {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-box:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(254,198,51,0.2);
}

.service-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-box p {
    line-height: 1.6;
}

/* قسم معرض الأعمال */
.portfolio-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.8), transparent);
    z-index: 1;
}

.portfolio-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.portfolio-section p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.portfolioSwiper {
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
}

.portfolioSwiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolioSwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.portfolioSwiper .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* قسم لماذا أنا */
.why-me-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.why-me-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.8), transparent);
    z-index: 1;
}

.why-me-section h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.why-box {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.why-box:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(254,198,51,0.2);
}

.why-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.why-box p {
    line-height: 1.6;
}

/* قسم شهادات العملاء */
.testimonials-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.8), transparent);
    z-index: 1;
}

.testimonials-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.testimonials-section p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.testimonialsSwiper {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.testimonial-box {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.testimonial-box .stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-box .quote {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-box .client-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.testimonial-box .client-title {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonialsSwiper .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* قسم CTA */
.cta-section {
    background: linear-gradient(135deg, #1a2f5a 0%, var(--primary-color) 100%);
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.cta-section h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.cta-section p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* تنسيق الزر المفقود */
.cta-section .btn-cta {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color); /* أو أي لون تريده */
    color: var(--primary-color); /* لون النص */
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* لضمان قابلية النقر */
}

/* تأثير عند المرور بالماوس */
.cta-section .btn-cta:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* تأثير عند النقر */
.cta-section .btn-cta:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* ========================================
   تنسيق صفحة الخدمات
   ======================================== */

/* قسم الهيرو لصفحة الخدمات */
.services-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2f5a 100%);
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.services-hero h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 3rem;
    font-weight: 700;
}

.services-hero .lead {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.services-hero img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s ease;
}

.services-hero img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* قسم الخدمات التفصيلي */
.services-detail-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    position: relative;
    padding: 80px 0;
}

.services-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.8), transparent);
    z-index: 1;
}

.services-detail-section h2 {
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.service-detail-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-detail-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(254,198,51,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-detail-box:hover::before {
    opacity: 1;
}

.service-detail-box:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(254,198,51,0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(254,198,51,0.3);
    transition: all 0.3s ease;
}

.service-detail-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(254,198,51,0.4);
}

.service-detail-box h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.service-detail-box p {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* ========================================
   تنسيق صفحة معرض الأعمال
   ======================================== */

/* قسم الهيرو لصفحة معرض الأعمال */
.portfolio-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2f5a 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.portfolio-hero h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 3.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.portfolio-hero .lead {
    color: var(--white-color);
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* أقسام معرض الأعمال */
.portfolio-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.9), transparent);
    z-index: 1;
}

.section-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

html[lang="ar"] .section-title::after {
    left: auto;
    right: 0;
}

.portfolio-category {
    margin-bottom: 60px;
}

.portfolio-swiper {
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
}

.portfolio-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.portfolio-swiper .swiper-slide:hover img {
    transform: scale(1.05);
}

.portfolio-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* ========================================
   تنسيق صفحة من نحن
   ======================================== */

/* قسم الهيرو لصفحة من نحن */
.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2f5a 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.about-hero h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 3.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.about-hero .lead {
    color: var(--white-color);
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* قسم القصة */
.story-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    position: relative;
    padding: 80px 0;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.9), transparent);
    z-index: 1;
}

.story-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd700 100%);
    color: var(--primary-color);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(254,198,51,0.3);
}

html[lang="ar"] .story-badge {
    right: auto;
    left: 30px;
}

.story-badge .year {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.story-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* قسم النهج */
.approach-section {
    background: linear-gradient(135deg, #1a2f5a 0%, var(--primary-color) 100%);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.5;
}

.approach-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.approach-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(254,198,51,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.approach-box:hover::before {
    opacity: 1;
}

.approach-box:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(254,198,51,0.2);
}

.approach-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(254,198,51,0.3);
    transition: all 0.3s ease;
}

.approach-box:hover .approach-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(254,198,51,0.4);
}

.approach-box h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.approach-box p {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* ========================================
   تنسيق صفحة اتصل بنا
   ======================================== */

/* قسم الهيرو لصفحة اتصل بنا */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2f5a 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fec633" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.contact-hero h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 3.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.contact-hero .lead {
    color: var(--white-color);
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* قسم الاتصال */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.9), transparent);
    z-index: 1;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

html[lang="ar"] .contact-item:hover {
    transform: translateX(-10px);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

html[lang="ar"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

.contact-form {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-form h3 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white-color);
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(254,198,51,0.25);
    color: var(--white-color);
}

.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-cta {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}


/* قسم الخريطة */
.map-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(17,33,56,0.9), transparent);
    z-index: 1;
}

.map-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.map-container h3 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.map-container iframe {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ========================================
   تنسيق الأزرار
   ======================================== */
.btn-cta {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(254,198,51,0.3);
}

.btn-outline-light {
    color: var(--white-color) !important;
    border: 2px solid var(--white-color);
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* ========================================
   تنسيق الأزرار العلاقية
   ======================================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-btn, .call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
}

.call-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffc107 100%);
}

.whatsapp-btn:hover, .call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ========================================
   تحسينات للجوال
   ======================================== */
@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .services-section,
    .portfolio-section,
    .why-me-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .services-section h2,
    .portfolio-section h2,
    .why-me-section h2,
    .testimonials-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .service-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .why-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .testimonial-box {
        padding: 20px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    /* صفحة الخدمات */
    .services-hero {
        padding: 80px 0;
    }
    
    .services-hero h1 {
        font-size: 2.2rem;
    }
    
    .services-hero .lead {
        font-size: 1.2rem;
    }
    
    .services-detail-section {
        padding: 60px 0;
    }
    
    .service-detail-box {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .service-detail-box h3 {
        font-size: 1.2rem;
    }
    
    /* صفحة معرض الأعمال */
    .portfolio-hero {
        padding: 80px 0;
    }
    
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    
    .portfolio-hero .lead {
        font-size: 1.2rem;
    }
    
    .portfolio-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .portfolio-swiper {
        height: 300px;
    }
    
    /* صفحة من نحن */
    .about-hero {
        padding: 80px 0;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-hero .lead {
        font-size: 1.2rem;
    }
    
    .story-section,
    .approach-section,
    .values-section,
    .offer-section,
    .team-section {
        padding: 60px 0;
    }
    
    .story-image {
        margin-bottom: 30px;
    }
    
    .story-badge {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    html[lang="ar"] .story-badge {
        right: auto;
        left: 20px;
    }
    
    .story-badge .year {
        font-size: 1.2rem;
    }
    
    .story-badge .text {
        font-size: 0.8rem;
    }
    
    .approach-box {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .approach-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .approach-box h3 {
        font-size: 1.2rem;
    }
    
    .value-box {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .value-number {
        font-size: 2.5rem;
    }
    
    .value-box h3 {
        font-size: 1.1rem;
    }
    
    .offer-content h3 {
        font-size: 1.5rem;
    }
    
    .offer-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .team-member {
        flex-direction: column;
    }
    
    .member-image {
        flex: none;
        width: 100%;
        height: 300px;
    }
    
    .member-info {
        padding: 30px 20px;
    }
    
    .member-info h3 {
        font-size: 1.8rem;
    }
    
    /* صفحة اتصل بنا */
    .contact-hero {
        padding: 80px 0;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero .lead {
        font-size: 1.2rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-card,
    .contact-form {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .contact-card h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-container {
        padding: 30px 20px;
    }
    
    .map-container h3 {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    /* الأزرار العلاقية */
    .floating-buttons {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-btn,
    .call-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ========================================
   تحسينات للتابلت
   ======================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.4rem;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero .lead {
        font-size: 1.4rem;
    }
    
    .portfolio-hero h1 {
        font-size: 2.8rem;
    }
    
    .portfolio-hero .lead {
        font-size: 1.4rem;
    }
    
    .about-hero h1 {
        font-size: 2.8rem;
    }
    
    .about-hero .lead {
        font-size: 1.4rem;
    }
    
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-hero .lead {
        font-size: 1.4rem;
    }
    
    .story-badge {
        bottom: 25px;
        right: 25px;
        padding: 12px 18px;
    }
    
    html[lang="ar"] .story-badge {
        right: auto;
        left: 25px;
    }
    
    .offer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .member-image {
        flex: 0 0 250px;
    }
}

/* ========================================
   تحسينات لسطح المكتب
   ======================================== */
@media (min-width: 992px) {
    /* تأثير parallax للخلفية */
    .hero-section {
        background-attachment: fixed;
    }
    
    .services-hero {
        background-attachment: fixed;
    }
    
    .portfolio-hero {
        background-attachment: fixed;
    }
    
    .about-hero {
        background-attachment: fixed;
    }
    
    .contact-hero {
        background-attachment: fixed;
    }
    
    /* تأثيرات hover متقدمة */
    .service-detail-box {
        position: relative;
    }
    
    .service-detail-box::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(254,198,51,0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .service-detail-box:hover::after {
        width: 300px;
        height: 300px;
    }
    
    .approach-box::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(254,198,51,0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .approach-box:hover::after {
        width: 300px;
        height: 300px;
    }
    
    .value-box::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(254,198,51,0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .value-box:hover::after {
        width: 250px;
        height: 250px;
    }
    
    /* تحسينات الأداء */
    .service-box,
    .why-box,
    .service-detail-box,
    .approach-box,
    .value-box,
    .contact-card,
    .contact-form,
    .map-container {
        will-change: transform;
        backface-visibility: hidden;
    }
    
    img {
        will-change: transform;
    }
}

/* ========================================
   تحسينات للشاشات الكبيرة
   ======================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .services-hero h1 {
        font-size: 3.5rem;
    }
    
    .portfolio-hero h1 {
        font-size: 4rem;
    }
    
    .about-hero h1 {
        font-size: 4rem;
    }
    
    .contact-hero h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .service-detail-box {
        padding: 50px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-detail-box h3 {
        font-size: 1.6rem;
    }
    
    .approach-box {
        padding: 50px;
    }
    
    .approach-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .approach-box h3 {
        font-size: 1.6rem;
    }
    
    .value-box {
        padding: 40px 30px;
    }
    
    .value-number {
        font-size: 3.5rem;
    }
    
    .value-box h3 {
        font-size: 1.4rem;
    }
    
    .contact-card,
    .contact-form {
        padding: 50px;
    }
    
    .contact-card h3,
    .contact-form h3 {
        font-size: 2rem;
    }
    
    .map-container {
        padding: 50px;
    }
    
    .map-container h3 {
        font-size: 2rem;
    }
    
    .floating-buttons {
        bottom: 30px;
        left: 30px;
    }
    
    .whatsapp-btn,
    .call-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* ========================================
   طباعة محسّنة
   ======================================== */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    #main-header,
    #main-footer,
    .floating-buttons {
        display: none !important;
    }
    
    .hero-section,
    .services-hero,
    .portfolio-hero,
    .about-hero,
    .contact-hero {
        padding: 40px 0 !important;
        background: none !important;
    }
    
    .hero-section::before,
    .services-hero::before,
    .portfolio-hero::before,
    .about-hero::before,
    .contact-hero::before {
        display: none !important;
    }
    
    .service-box,
    .why-box,
    .service-detail-box,
    .approach-box,
    .value-box,
    .contact-card,
    .contact-form,
    .map-container {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
    }
    
    .btn-cta,
    .btn-outline-light {
        background: #333 !important;
        color: white !important;
        border: 1px solid #333 !important;
    }
}
/* ===== إصلاح سريع لقسم الهيرو: لا يغير خلفية الصفحة ===== */
.hero-section {
  position: relative;
  overflow: visible; /* نترك المحتوى يتصرف طبيعياً */
}

/* نضمن أن الزر فوق أي عناصر أخرى ويكون قابل للنقر */
.hero-section .btn-cta {
  position: relative;
  z-index: 9999;
  cursor: pointer;
}

/* نمنع الصورة من اعتراض النقرات (ستبقى مرئية لكن غير قابلة للتفاعل) */
.hero-section .hero-image img,
.hero-image-lg {
  pointer-events: none;
  max-width: 100%;
  height: auto;
  display: block;
}

/* تحسين تنسيق في الشاشات الكبيرة */
@media (min-width: 992px) {
  .hero-section .hero-content {
    text-align: left;
  }
}
/* ===== إصلاح وتنسيق صورة الهيرو ===== */
.hero-section {
  overflow: hidden;
}

/* ===== الصورة بعرض الشاشة الكامل في قسم الهيرو ===== */
.hero-image-wrapper {
  width: 100%;
  margin-top: 40px;
}

.hero-image-full {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain; /* تبقي الصورة كاملة */
  object-position: center;
  pointer-events: none;
  border: none;
}
/* ======================================
   إصلاح حجم شرائح البورتفوليو (Portfolio)
   ====================================== */

/* 1. التأكد من أن حاوية السلايدر تأخذ العرض الكامل المتاح لها */
.portfolioSwiper {
    width: 100%;
    overflow: hidden; /* إخفاء أي جزء زائد */
}

/* 2. جعل كل شريحة مرنة وتأخذ الحجم المحدد بواسطة Swiper */
.portfolioSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* السماح لارتفاع الشريحة بالتكيف مع المحتوى */
}

/* 3. التأكد من أن عنصر البورتفوليو داخل الشريحة يملأ المساحة */
.portfolioSwiper .portfolio-item {
    width: 100%;
    height: 100%;
}

/* 4. التحكم الكامل في حجم الصورة داخل الشريحة */
.portfolioSwiper .portfolio-item img {
    width: 100%; /* الصورة تأخذ عرض الحاوية بالكامل */
    height: 350px; /* تحديد ارتفاع ثابت للصور للحفاظ على التناسق */
    object-fit: cover; /* هذا هو السطر الأهم: يقوم بقص الصورة لملء الحاوية دون تشويه */
    border-radius: 8px; /* إضافة زوايا دائرية لجمال المظهر (اختياري) */
}

/* تعديل حجم الصور على الشاشات المتوسطة والصغيرة */
@media (max-width: 768px) {
    .portfolioSwiper .portfolio-item img {
        height: 200px;
    }
}

