/*--------------------------------------------------------------
# سكون هوم العقارية - ملف CSS محسّن ومطور
# النسخة: 2.0 المحدثة والمُصلحة
# التاريخ: 2025
# إصلاحات: القائمة المحمولة والتنسيقات العامة
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# استيراد الخطوط العربية المحسنة
--------------------------------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800;900&display=swap");

/*--------------------------------------------------------------
# المتغيرات العامة
--------------------------------------------------------------*/
:root {
  /* الألوان الأساسية */
  --main-color: #526c38;
  --main-color-hover: #354922;
  --main-color-light: #6b8a4a;
  --main-color-dark: #2d3d1f;
  
  /* الألوان الثانوية */
  --secondary-color: #c8a882;
  --accent-color: #d4af37;
  
  /* ألوان الخلفيات */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #e9ecef;
  --bg-dark: #121212;
  
  /* ألوان النصوص */
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #95a5a6;
  --text-white: #ffffff;
  
  /* الظلال */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(82, 108, 56, 0.12);
  --shadow-lg: 0 8px 24px rgba(82, 108, 56, 0.15);
  --shadow-xl: 0 12px 36px rgba(82, 108, 56, 0.18);
  
  /* الحدود */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-full: 50px;
  
  /* التحولات */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/*--------------------------------------------------------------
# التنسيقات العامة المحسنة
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--main-color-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-bg {
  background: var(--bg-light);
}

/*--------------------------------------------------------------
# زر الإجراء المحسن
--------------------------------------------------------------*/
.en {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: var(--border-radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.en:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.4);
}

/*--------------------------------------------------------------
# أيقونة واتساب العائمة المحسنة
--------------------------------------------------------------*/
.whats-icon i {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  bottom: 80px;
  right: 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--text-white);
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
  cursor: pointer;
  animation: pulse 2s infinite;
}

.whats-icon i:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/*--------------------------------------------------------------
# زر العودة لأعلى المحسن
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-full);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top i {
  font-size: 28px;
  color: var(--text-white);
  line-height: 0;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--main-color-hover) 0%, var(--main-color) 100%);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header المحسن
--------------------------------------------------------------*/
#header {
  height: 85px;
  transition: var(--transition-normal);
  z-index: 997;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#header.header-transparent {
  background: transparent;
  box-shadow: none;
}

#header.header-scrolled {
  background: rgba(82, 108, 56, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  height: 75px;
}

#header .logo img {
  padding: 0;
  margin: 0;
  height: 70px;
  width: auto;
  transition: var(--transition-normal);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

#header.header-scrolled .logo img {
  height: 60px;
}

/*--------------------------------------------------------------
# Navigation Menu المحسن - سطح المكتب
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  transition: var(--transition-normal);
  border-radius: var(--border-radius-full);
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition-normal);
}

.navbar a:hover::after,
.navbar .active::after {
  width: 60%;
}

.navbar a:hover,
.navbar .active,
.navbar li:hover > a {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 5px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 15px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
  border-radius: var(--border-radius-lg);
  min-width: 250px;
  border-top: 3px solid var(--main-color);
}

.navbar .dropdown ul li {
  min-width: 100%;
}

.navbar .dropdown ul a {
  padding: 12px 20px;
  color: var(--text-primary);
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius-md);
}

.navbar .dropdown ul a::after {
  display: none;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul li:hover > a {
  color: var(--main-color);
  background: var(--bg-light);
  transform: translateX(-5px);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

/*--------------------------------------------------------------
# Mobile Navigation - مُحسّن ومُصلح بالكامل
--------------------------------------------------------------*/
/* .mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 1;
  transition: 0.3s;
  z-index: 9999;
  padding: 5px;
  margin-right: 10px;
}

.mobile-nav-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
} */

/* منع scroll عند فتح القائمة */
body.mobile-nav-active {
  overflow: hidden !important;
}

/* إظهار زر القائمة في الشاشات الصغيرة */
/* @media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block !important;
  }

  .navbar ul {
    display: none;
  }
} */

/* تنسيقات القائمة المحمولة - مُحسّنة */
.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(18, 18, 18, 0.98);
  transition: 0.3s;
  z-index: 9998;
  display: block !important;
}

/* .navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  z-index: 10000;
} */

.navbar-mobile ul {
  display: block !important;
  position: absolute;
  top: 70px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 14px 20px;
  margin: 5px 0;
  font-size: 16px;
  color: #333;
  border-radius: 8px;
  display: block;
  transition: 0.3s;
}

.navbar-mobile a::after {
  display: none !important;
}

.navbar-mobile a:hover,
.navbar-mobile .active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
}

.navbar-mobile a i {
  font-size: 16px;
}

/* Dropdown في الموبايل */
.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 5px 0 5px 20px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border-right: 3px solid var(--main-color);
  box-shadow: none;
  opacity: 1;
  visibility: visible;
}

.navbar-mobile .dropdown ul.dropdown-active {
  display: block;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 15px;
  font-size: 15px;
  margin: 3px 0;
}

.navbar-mobile .dropdown > a:after {
  content: "\f282";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 15px;
  font-size: 12px;
  transition: 0.3s;
}

.navbar-mobile .dropdown.dropdown-active > a:after {
  content: "\f286";
}

/* تحسين زر الـ CTA في الموبايل */
@media (max-width: 991px) {
  .cta-btn.en {
    display: inline-flex !important;
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 10px;
  }
  
  #header {
    padding: 15px 0;
    height: auto;
    min-height: 70px;
  }
  
  #header.header-scrolled {
    height: auto;
    min-height: 65px;
  }
  
  #header .logo img {
    height: 50px;
  }
  
  #header.header-scrolled .logo img {
    height: 45px;
  }
  
  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  #header .cta-btn {
    order: 2;
    margin-left: auto;
    margin-right: 10px;
  }
  
  /* #header .mobile-nav-toggle {
    order: 3;
  } */
}

/*--------------------------------------------------------------
# Hero Section المحسن
--------------------------------------------------------------*/
#hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: none;
  min-height: 100vh;
}

.carousel-item {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* فيديو الخلفية محسن */
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(82, 108, 56, 0.3) 0%, rgba(53, 73, 34, 0.5) 100%);
  z-index: 2;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.8);
}

/* طبقة معتمة محسنة */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 3;
}

/* محتوى النصوص محسن */
.carousel-container {
  position: relative;
  z-index: 4;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 80px 20px;
}

#hero h1,
#hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 30px;
  font-weight: 800;
  color: var(--text-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

#hero p {
  width: 90%;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-white);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
}

/* أزرار التحكم محسنة */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: var(--transition-normal);
  z-index: 5;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
  width: auto;
  height: auto;
  color: var(--text-white);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* زر تشغيل الفيديو محسن */
.play-btn {
  width: 90px;
  height: 90px;
  background: radial-gradient(
    circle,
    var(--main-color) 50%,
    rgba(82, 108, 56, 0.3) 52%
  );
  border-radius: 50%;
  display: block;
  position: absolute;
  left: calc(50% - 45px);
  bottom: 12%;
  overflow: hidden;
  z-index: 5;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(82, 108, 56, 0.4);
}

.play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--text-white);
  z-index: 100;
  transition: var(--transition-slow);
}

.play-btn::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  animation: pulsate-btn 2s infinite;
  opacity: 1;
  border-radius: 50%;
  border: 3px solid rgba(82, 108, 56, 0.4);
  top: -10px;
  left: -10px;
}

@keyframes pulsate-btn {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* الموجات المحسنة */
.hero-waves {
  display: block;
  width: 100%;
  height: 80px;
  position: relative;
  z-index: 5;
}

.wave1 use {
  animation: move-forever1 12s linear infinite;
  animation-delay: -2s;
}

.wave2 use {
  animation: move-forever2 10s linear infinite;
  animation-delay: -2s;
}

.wave3 use {
  animation: move-forever3 8s linear infinite;
  animation-delay: -2s;
}

@keyframes move-forever1 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}

@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

@keyframes move-forever3 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

/*--------------------------------------------------------------
# Sections العامة المحسنة
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.box-heading h2,
.box-heading h3,
.box-heading h4 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  border-right: 5px solid var(--main-color);
  padding-right: 20px;
  position: relative;
}

.box-heading h2::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--main-color) 0%, var(--accent-color) 100%);
}

.box-heading p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
}

/*--------------------------------------------------------------
# About Section المحسنة
--------------------------------------------------------------*/
.about .icon-box {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.about .icon-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.about .icon-box .icon {
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.about .icon-box .icon i {
  color: var(--text-white);
  font-size: 32px;
}

.about .icon-box:hover .icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.about .icon-box .title {
  margin-right: 90px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.about .icon-box .description {
  margin-right: 90px;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text-secondary);
}

.description ul li {
  font-size: 1.1rem;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.description ul li:hover {
  transform: translateX(-5px);
  color: var(--main-color);
}

.description ul li i {
  color: var(--main-color);
  margin-left: 8px;
}

.img-about img {
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  overflow: hidden;
}

.img-about img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/*--------------------------------------------------------------
# CTA Section المحسنة
--------------------------------------------------------------*/
.sec-bg {
  background: linear-gradient(150deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.85) 100%),
    url(../img/01.jpg) center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.sec-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(82, 108, 56, 0.3) 0%, rgba(53, 73, 34, 0.5) 100%);
  z-index: 1;
}

.sec-bg2 {
  background: linear-gradient(150deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%),
    url(../img/09.jpg) center bottom;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.sec-bg2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(82, 108, 56, 0.3) 0%, rgba(53, 73, 34, 0.5) 100%);
  z-index: 1;
}

.cta {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.cta h3 {
  color: var(--text-white);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta p {
  color: var(--text-white);
  line-height: 1.8;
  font-size: 1.1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.cta .cta-btn {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius-full);
  transition: var(--transition-normal);
  margin: 10px;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

.cta .cta-btn:hover {
  background: var(--bg-white);
  color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--main-color);
}

@media (min-width: 769px) {
  .cta .cta-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

/*--------------------------------------------------------------
# Features/Services Section المحسنة
--------------------------------------------------------------*/
.features .feature-box {
  padding: 30px 25px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bg-gray);
}

.features .feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%);
  transition: var(--transition-slow);
  z-index: 0;
}

.features .feature-box:hover::before {
  width: 100%;
}

.features .feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--main-color);
}

.features .feature-box h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
}

.features .feature-box:hover h3 {
  color: var(--text-white);
}

.features .feature-box i {
  line-height: 0;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%);
  color: var(--text-white);
  padding: 12px;
  margin-inline-end: 12px;
  font-size: 28px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.features .feature-box:hover i {
  background: var(--bg-white);
  color: var(--main-color);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.features .feature-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
  margin-top: 10px;
}

.features .feature-box:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/*--------------------------------------------------------------
# Contact Section المحسنة
--------------------------------------------------------------*/
.contact .info-box {
  color: var(--text-primary);
  text-align: center;
  box-shadow: var(--shadow-md);
  padding: 35px 20px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  transition: var(--transition-normal);
  border: 1px solid var(--bg-gray);
}

.contact .info-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--main-color);
}

.contact .info-box i {
  font-size: 36px;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%);
  border-radius: 50%;
  padding: 18px;
  border: 3px solid var(--bg-gray);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.contact .info-box:hover i {
  transform: scale(1.1) rotate(10deg);
  border-color: var(--main-color-light);
  box-shadow: var(--shadow-lg);
}

.contact .info-box h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
  margin: 20px 0 10px;
}

.contact .info-box p {
  padding: 0;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 0;
}

.contact .info-box p a {
  color: var(--main-color);
  font-weight: 600;
  transition: var(--transition-fast);
}

.contact .info-box p a:hover {
  color: var(--main-color-hover);
  text-decoration: underline;
}

iframe {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/*--------------------------------------------------------------
# Testimonials/Portfolio المحسن
--------------------------------------------------------------*/
.testimonials {
  padding: 80px 0;
  background: var(--bg-light);
}

.testimonials-slider {
  padding: 30px 0 50px 0;
  position: relative;
}

.testimonial-item {
  padding: 30px;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-item img,
.testimonial-item video {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.testimonial-item:hover img {
  transform: scale(1.02);
}

/* تحسين أزرار السلايدر */
.swiper-button-next,
.swiper-button-prev {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--main-color);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(82, 108, 56, 0.4);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  color: var(--main-color);
  font-weight: bold;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: #fff;
}

/* للموبايل */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
  
  .testimonial-item img,
  .testimonial-item video {
    height: 300px !important;
  }
}

@media (max-width: 480px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }
  
  .testimonial-item img,
  .testimonial-item video {
    height: 250px !important;
  }
}

/* إخفاء Pagination */
.swiper-pagination {
  display: none !important;
}

/*--------------------------------------------------------------
# Footer المحسن
--------------------------------------------------------------*/
#footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: var(--text-white);
  font-size: 15px;
  text-align: center;
  padding: 50px 0 30px;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(82, 108, 56, 0.1) 0%, rgba(53, 73, 34, 0.1) 100%);
  z-index: 1;
}

#footer > * {
  position: relative;
  z-index: 2;
}

#footer img {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  margin-bottom: 20px;
}

#footer p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.socail a {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: var(--transition-normal);
  margin: 0 8px;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.socail a:hover {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%);
  color: var(--text-white);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer2 {
  background: #000000;
  padding: 15px;
  text-align: center;
}

.design-credit a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 14px;
}

.design-credit a:hover {
  color: var(--main-color-light);
}

/*--------------------------------------------------------------
# Responsive Design المحسن
--------------------------------------------------------------*/
@media (max-width: 768px) {
  #hero h1,
  #hero h2 {
    font-size: 1.75rem;
  }
  
  #hero p {
    font-size: 1rem;
    width: 95%;
  }
  
  .carousel-container {
    height: 90vh;
    padding: 60px 15px;
  }
  
  .box-heading h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .cta h3 {
    font-size: 1.5rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  .about .icon-box {
    margin-top: 20px;
  }
  
  .about .icon-box .title,
  .about .icon-box .description {
    margin-right: 80px;
  }
  
  .whats-icon i {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 70px;
    right: 15px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    right: 15px;
    bottom: 15px;
  }
  
  .cta .cta-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .contact .info-box {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .navbar-mobile ul {
    padding: 15px;
    right: 10px;
    left: 10px;
  }
  
  #hero h1,
  #hero h2 {
    font-size: 1.5rem;
  }
  
  .play-btn {
    width: 70px;
    height: 70px;
    left: calc(50% - 35px);
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }
  
  .features .feature-box {
    padding: 20px;
  }
  
  .box-heading h2 {
    font-size: 1.25rem;
    padding-right: 15px;
  }
  
  .about .icon-box .icon {
    width: 60px;
    height: 60px;
  }
  
  .about .icon-box .icon i {
    font-size: 28px;
  }
}

/* تحسين Landscape Mode للموبايل */
@media (max-width: 991px) and (orientation: landscape) {
  #hero {
    min-height: auto;
  }
  
  .carousel-item {
    height: auto;
    min-height: 100vh;
  }
  
  .carousel-container {
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
  
  .navbar-mobile ul {
    top: 60px;
    bottom: 10px;
  }
}

/*--------------------------------------------------------------
# تحسينات الأداء
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU Acceleration */
.about .icon-box,
.features .feature-box,
.contact .info-box,
.navbar a,
.cta-btn,
.en,
.whats-icon i,
.back-to-top {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Print Styles */
/* @media print {
  .back-to-top,
  .whats-icon,
  #header,
  .mobile-nav-toggle,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
} */

/*==================================================
  تحسين القائمة المنسدلة في الموبايل
==================================================*/

@media (max-width: 991px) {
  
  /* القائمة المنسدلة مغلقة افتراضياً */
  .navbar.show .dropdown-menu {
    position: static;
    display: none; /* مغلقة */
    background: rgba(82, 108, 56, 0.08);
    padding: 0;
    margin: 0 0 0 15px;
    border-radius: 12px;
    border-right: 3px solid #526c38;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* عند الفتح */
  .navbar.show .dropdown.open .dropdown-menu {
    display: block;
    padding: 8px;
    margin: 8px 0 8px 15px;
    max-height: 600px;
    animation: dropdownExpand 0.4s ease;
  }
  
  /* تنسيق رابط "طلب خدمة" */
  .navbar.show .dropdown-toggle {
    position: relative;
    padding-left: 45px !important; /* مساحة للأيقونة */
  }
  
  /* أيقونة السهم محسّنة */
  .navbar.show .dropdown-toggle i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 16px;
    background: rgba(82, 108, 56, 0.15);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* دوران السهم عند الفتح */
  .navbar.show .dropdown.open .dropdown-toggle i {
    transform: translateY(-50%) rotate(180deg);
    background: #526c38;
    color: #fff;
  }
  
  /* تنسيق عناصر القائمة المنسدلة */
  .navbar.show .dropdown-menu li {
    opacity: 0;
    transform: translateX(20px);
  }
  
  .navbar.show .dropdown.open .dropdown-menu li {
    animation: slideInMenuItem 0.3s ease forwards;
  }
  
  /* تأخير تدريجي للعناصر */
  .navbar.show .dropdown.open .dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
  .navbar.show .dropdown.open .dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
  .navbar.show .dropdown.open .dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
  .navbar.show .dropdown.open .dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }
  .navbar.show .dropdown.open .dropdown-menu li:nth-child(5) { animation-delay: 0.25s; }
  .navbar.show .dropdown.open .dropdown-menu li:nth-child(6) { animation-delay: 0.3s; }
  
  .navbar.show .dropdown-menu li a {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    margin: 3px 0;
    border-radius: 8px;
  }
  
  /* إضافة أيقونة صغيرة للعناصر الفرعية */
  .navbar.show .dropdown-menu li a::before {
    content: '◆';
    margin-left: 8px;
    font-size: 8px;
    color: #526c38;
    opacity: 0.6;
  }
  
  .navbar.show .dropdown-menu li a:hover::before,
  .navbar.show .dropdown-menu li a.active::before {
    color: #fff;
    opacity: 1;
  }
}

/*==================================================
  أنيميشن جديد للقائمة المنسدلة
==================================================*/

@keyframes dropdownExpand {
  from {
    opacity: 0;
    max-height: 0;
    transform: scaleY(0.8);
    transform-origin: top;
  }
  to {
    opacity: 1;
    max-height: 600px;
    transform: scaleY(1);
  }
}

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