/* 
 * شماك للأسمنت - الأنماط الرئيسية
 * الألوان: أبيض، أسود، #d39d57 (ذهبي)
 */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #d39d57;
  --dark-color: #000000;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --dark-gray: #333333;
  --header-height: 90px; /* زيادة ارتفاع الهيدر أكثر */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* تنسيق عام */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
}

/* الهيدر */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px #d49e58;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height); /* استخدام المتغير لتحديد ارتفاع الهيدر */
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  width: 100%;
}

.logo {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-left: 10px;
  display: none;
  text-align: center;
  line-height: 40px;
}

.menu-toggle i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.menu-toggle:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: rotate(90deg);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  font-weight: 500;
  position: relative;
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 5px;
  border: 2px solid var(--primary-color);
  color: var(--dark-color);
  transition: all 0.3s ease;
  margin: 0 8px;
}

.nav-menu a:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.nav-menu a::after {
  display: none; /* إزالة التأثير السابق تحت الرابط */
}

.language-switch {
  margin-left: 20px;
  padding: 8px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.language-switch:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* القائمة الجانبية */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px; /* للعربية */
  width: 300px;
  height: 100vh;
  background-color: #d49e5883;
  color: var(--light-color);
  padding: 30px;
  z-index: 2000;
  transition: all 0.4s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px #d49e5891;
}

.en .sidebar {
  right: auto;
  left: -300px; /* للإنجليزية */
}

.sidebar.active {
  right: 0; /* للعربية */
}

.en .sidebar.active {
  right: auto;
  left: 0; /* للإنجليزية */
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px; /* للعربية */
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-color);
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.en .sidebar-close {
  right: auto;
  left: 20px; /* للإنجليزية */
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 20px;
}

.sidebar-logo img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.sidebar-logo img:hover {
  transform: scale(1.05);
}

.sidebar-contact {
  margin-top: 30px;
}

.sidebar-contact h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.en .sidebar-contact h3::after {
  right: auto;
  left: 0;
}

.sidebar-contact a {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
}

.contact-item:hover {
  background-color: rgba(211, 157, 87, 0.1);
  transform: translateX(-5px);
}

.en .contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  color: var(--primary-color);
  margin-left: 15px; /* للعربية */
  font-size: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(211, 157, 87, 0.1);
  border-radius: 50%;
}

.en .contact-item i {
  margin-left: 0;
  margin-right: 15px; /* للإنجليزية */
}

.sidebar-social {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.sidebar-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.3s ease;
  font-size: 20px;
}

.sidebar-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  display: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* زر عرض القائمة الجانبية */
.sidebar-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-color);
  transition: all 0.3s ease;
  margin-right: 10px;
}

.sidebar-toggle i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.en .sidebar-toggle {
  margin-right: 0;
  margin-left: 10px;
}

.sidebar-toggle:hover {
  background-color: var(--dark-color);
  transform: rotate(90deg);
}

/* القائمة المتنقلة للهواتف */
.mobile-nav {
  position: fixed;
  top: var(--header-height); /* استخدام المتغير لتحديد موضع القائمة المتنقلة */
  right: -100%;
  width: 100%;
  height: auto;
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.4s ease;
  padding: 20px 0;
}

.en .mobile-nav {
  right: auto;
  left: -100%;
}

.mobile-nav.active {
  right: 0;
}

.en .mobile-nav.active {
  right: auto;
  left: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav li {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.mobile-nav a {
  display: block;
  padding: 15px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 5px;
  font-size: 1.2rem;
}

.mobile-nav a:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* أزرار الهيدر */
.header-buttons {
  display: flex;
  align-items: center;
}

/* السلايدر الرئيسي */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height); /* استخدام المتغير لتحديد هامش السلايدر */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 5;
}

.en .slide::after {
  background: linear-gradient(270deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  color: var(--light-color);
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease 0.3s;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease 0.5s;
}

.slide-content .btn {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease 0.7s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn {
  opacity: 1;
  transform: translateY(0);
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background-color: var(--primary-color);
}

/* قسم من نحن */
.about {
  padding: 80px 0;
  background-color: var(--gray-color);
}

.section-title {
  text-align: center;
  margin-bottom: 10px; /* Significantly reduce bottom margin */
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  padding-bottom: 5px; /* Reduce any additional bottom margin */
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px; /* Reduce top margin of content */
}

.about-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* قسم قيمنا */
.values {
  padding: 80px 0;
  background-color: var(--gray-color);
  position: relative;
}

.values-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.values-slider {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.value-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  transition: all 0.5s ease;
  transform: translateY(20px);
  padding: 0 20px;
}

.value-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 32px;
  box-shadow: 0 5px 15px rgba(211, 157, 87, 0.3);
}

.value-slide h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.value-slide p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

.values-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.value-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.value-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.values-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.value-arrow {
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.value-arrow:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* قسم إحصائيات الشركة */
.statistics {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
  color: var(--dark-color);
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.stats-particle {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(211, 157, 87, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

.stats-particle:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation-duration: 20s;
}

.stats-particle:nth-child(2) {
  top: 70%;
  left: 15%;
  width: 100px;
  height: 100px;
  animation-delay: 2s;
  animation-duration: 18s;
}

.stats-particle:nth-child(3) {
  top: 40%;
  left: 80%;
  width: 150px;
  height: 150px;
  animation-delay: 4s;
  animation-duration: 22s;
}

.stats-particle:nth-child(4) {
  top: 80%;
  left: 70%;
  width: 90px;
  height: 90px;
  animation-delay: 6s;
  animation-duration: 16s;
}

.stats-particle:nth-child(5) {
  top: 20%;
  left: 60%;
  width: 70px;
  height: 70px;
  animation-delay: 8s;
  animation-duration: 19s;
}

.stats-particle:nth-child(6) {
  top: 60%;
  left: 30%;
  width: 110px;
  height: 110px;
  animation-delay: 10s;
  animation-duration: 21s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-60px) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.5;
  }
}

.statistics .container {
  position: relative;
  z-index: 2;
}

.statistics .section-title h2 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 500;
}

.statistics .section-title h2::after {
  background-color: var(--primary-color);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-radius: 15px;
  background-color: var(--light-color);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(211, 157, 87, 0.2);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(211, 157, 87, 0.7) 100%);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.stat-item:hover::before {
  transform: scaleY(1);
}

.stat-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  background-color: rgba(211, 157, 87, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 40px;
  transition: all 0.5s ease;
  border: 2px dashed var(--primary-color);
}

.stat-item:hover .stat-icon {
  color: var(--light-color);
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
  border-color: var(--light-color);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.pulse-animation {
  animation: pulse 1s ease-in-out;
}

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

.stat-item:hover .stat-number {
  color: var(--light-color);
}

.counter {
  display: inline-block;
}

.plus {
  font-size: 30px;
  margin-right: 5px;
}

.stat-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--dark-color);
}

.stat-item:hover h3 {
  color: var(--light-color);
}

.stat-item p {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.stat-item:hover p {
  color: var(--light-color);
}

.stat-progress {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.stat-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), #e8c48f);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

.stats-cta {
  text-align: center;
  margin-top: 60px;
}

.stats-cta .btn {
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(211, 157, 87, 0.3);
  transition: all 0.3s ease;
}

.stats-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(211, 157, 87, 0.5);
}

/* قسم المنتجات */
.products {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.product-info p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

/* قسم الخدمات */
.services {
  padding: 80px 0;
  background-color: var(--light-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--gray-color);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* تأثيرات التمرير */
.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-animation.scrolled {
  opacity: 1;
  transform: translateY(0);
}

/* زر التمرير للأعلى */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px; /* للعربية */
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.en .scroll-top {
  right: auto;
  left: 30px; /* للإنجليزية */
}

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

.scroll-top:hover {
  background-color: var(--dark-color);
  transform: translateY(-5px);
}

/* قسم الاتصال */
.contact {
  padding: 80px 0;
  background-color: var(--gray-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.info-item {
  display: flex;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.info-item i {
  color: var(--primary-color);
  font-size: 20px;
  margin-left: 15px; /* للعربية */
}

.en .info-item i {
  margin-left: 0;
  margin-right: 15px; /* للإنجليزية */
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Tajawal', sans-serif;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* الفوتر */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-right: 5px; /* للعربية */
}

.en .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px; /* للإنجليزية */
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

.footer-social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px; /* للعربية */
  transition: all 0.3s ease;
}

.en .footer-social a {
  margin-left: 0;
  margin-right: 10px; /* للإنجليزية */
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

.footer-bottom p {
  font-size: 1rem;
  opacity: 0.8;
}

/* تنسيقات خاصة باللغة العربية */
body {
  direction: rtl;
  text-align: right;
}

/* تنسيقات خاصة باللغة الإنجليزية */
.en {
  direction: ltr;
  text-align: left;
}

/* تنسيقات متجاوبة */
@media (max-width: 992px) {
  :root {
    --header-height: 80px; /* زيادة ارتفاع الهيدر للشاشات المتوسطة */
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slider-arrows {
    padding: 0 15px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px; /* زيادة ارتفاع الهيدر للشاشات الصغيرة */
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-content, .contact-container {
    flex-direction: column;
  }
  
  .slider-arrows {
    display: none;
  }
  
  .sidebar-logo img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 80px; /* زيادة ارتفاع الهيدر للهواتف */
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 8px 20px;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .slider-controls {
    bottom: 15px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
  
  .header-container {
    padding: 5px 0;
    position: relative;
    top: 3px; /* دفع المحتوى للأسفل قليلاً */
  }

  .logo {
    width: 60px;
    height: 60px;
    position: relative;
    top: 1px; /* تحريك اللوغو للأسفل قليلاً */
  }

  .sidebar-logo img {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 992px) {
  .logo {
    width: 90px;
    height: 90px;
  }
}

/* إزالة التأثير الأزرق عند النقر على العناصر في الأجهزة المحمولة */
a, button, .btn, .menu-toggle, .sidebar-toggle, .nav-menu a, .mobile-nav a, 
.slider-arrow, .value-arrow, .value-dot, .scroll-top, .footer-social a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* للتأكد من إزالة الحدود عند التركيز */
a:focus, button:focus, .btn:focus, .menu-toggle:focus, .sidebar-toggle:focus, 
.nav-menu a:focus, .mobile-nav a:focus, .slider-arrow:focus, 
.value-arrow:focus, .value-dot:focus, .scroll-top:focus, .footer-social a:focus {
    outline: none;
    box-shadow: none;
}

/* تأثير مخصص للتركيز للحفاظ على إمكانية الوصول */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* تنسيق البريد الإلكتروني في القائمة الجانبية */
.contact-item .email-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
}

/* تعديل تباعد العنصر الذي يحتوي على البريد الإلكتروني */
.contact-item:has(.email-text) {
    padding-right: 10px;
}

/* للمتصفحات التي لا تدعم :has */
.contact-item i + .email-text {
    padding-right: 10px;
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 576px) {
    .contact-item .email-text {
        font-size: 0.8rem;
    }
}

/* تعديل قسم إحصائيات الشركة للهواتف المحمولة */
@media (max-width: 768px) {
  .stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-item {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 30px 20px;
  }
  
  .stat-icon, .stat-number, .stat-item h3, .stat-item p, .stat-progress {
    margin-bottom: 15px;
  }
} 