/* الألوان الرئيسية */
:root {
  --primary-color: #1D9D8F;
  --secondary-color: #FFBA00;
  --white-color: #FFFFFF;
  --dark-gray: #333333;
  --light-gray: #F5F5F5;
  --hover-primary: #17867A;
  --hover-secondary: #E5A700;
  --golden-color: #FFD700; /* لون ذهبي جديد */
}

/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  direction: rtl;
}

body.en {
  direction: ltr;
  font-family: 'Poppins', 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: var(--hover-secondary);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white-color);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-whatsapp i {
  margin-left: 8px;
}

body.en .btn-whatsapp i {
  margin-left: 0;
  margin-right: 8px;
}

/* الهيدر */
header {
  background-color: var(--golden-color); /* تم تغيير لون الخلفية إلى الذهبي */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
}

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

.nav-list {
  display: flex;
  margin-left: 30px;
}

body.en .nav-list {
  margin-left: 0;
  margin-right: 30px;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-gray);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

body.en .nav-link::after {
  right: auto;
  left: 0;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.lang-switch {
  margin-left: 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
}

body.en .lang-switch {
  margin-left: 0;
  margin-right: 20px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-gray);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* القسم الرئيسي (Hero Section) */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* قسم من نحن */
.about {
  background-color: var(--white-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-text {
  flex: 1;
}

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

.about-text p {
  margin-bottom: 20px;
}

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

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

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

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

.service-image {
  height: 200px;
  overflow: hidden;
}

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

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

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-content p {
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 20px;
}

.service-features li {
  margin-bottom: 8px;
  position: relative;
  padding-right: 25px;
}

body.en .service-features li {
  padding-right: 0;
  padding-left: 25px;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  right: 0;
  font-weight: bold;
}

body.en .service-features li::before {
  right: auto;
  left: 0;
}

/* قسم الأعمال */
.portfolio {
  background-color: var(--white-color);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.portfolio-filter {
  padding: 8px 20px;
  margin: 5px;
  background-color: var(--light-gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter.active, .portfolio-filter:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

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

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 157, 143, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
  color: var(--white-color);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.portfolio-overlay p {
  margin-bottom: 15px;
}

.portfolio-cta {
  margin-top: 40px;
  text-align: center;
}

/* قسم التواصل */
.contact {
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

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

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-left: 15px;
  min-width: 30px;
}

body.en .contact-icon {
  margin-left: 0;
  margin-right: 15px;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--hover-primary);
  transform: translateY(-5px);
}

/* تأثيرات حركية للأيقونات */
.social-link i {
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.2); /* تكبير الأيقونة عند التوقف */
}

.contact-form {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.map-container {
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* الفوتر */
footer {
  background-color: var(--dark-gray);
  color: var(--white-color);
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
}

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

.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact-icon {
  margin-left: 15px;
  color: var(--secondary-color);
}

body.en .footer-contact-icon {
  margin-left: 0;
  margin-right: 15px;
}

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

/* تصميم متجاوب */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--white-color);
    flex-direction: column;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  
  body.en .nav-list {
    right: auto;
    left: 0;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }

  /* تحسين عرض الشعار وزر الحجز على الأجهزة المحمولة */
  .logo img {
    height: 40px; /* تصغير حجم الشعار */
  }

  .nav-actions .btn-whatsapp {
    padding: 8px 15px; /* تصغير حجم زر الحجز */
    font-size: 0.9rem;
  }

  .header-container {
    padding: 10px 0; /* تقليل المسافة الرأسية في الهيدر */
  }

  .nav-actions {
    gap: 10px; /* تقليل المسافة بين عناصر الإجراءات */
  }

  .hamburger {
    order: 2; /* نقل زر القائمة إلى اليمين */
  }

  .nav-actions .lang-switch {
    order: 1; /* نقل زر اللغة إلى اليسار */
  }

  .nav-actions .btn-whatsapp {
    order: 3; /* نقل زر الواتساب إلى أقصى اليمين */
  }

}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .portfolio-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .portfolio-filter {
    width: 80%;
    text-align: center;
  }
}

/* تأثيرات حركية */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* تأثيرات إضافية */
.zoom-in {
  transition: transform 0.3s ease;
}

.zoom-in:hover {
  transform: scale(1.05);
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body.en .section-title,
body.en .hero {
  text-align: center;
}


