/* إعدادات عامة */
body {
  font-family: 'Cairo', 'Tajawal', 'Amiri', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333333;
  direction: rtl;
  line-height: 1.8;
}

/* رأس الصفحة */
header {
  background-color: #11ccec;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.logo-img {
  width: 100px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

nav a.active {
  border-bottom: 2px solid goldenrod;
}

/* زر الوضع الداكن */
.dark-mode-btn {
  margin-right: 20px;
  padding: 8px 15px;
  background-color: goldenrod;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 1em;
}

.dark-mode-btn:hover {
  background-color: #444;
  color: #fff;
}

/* قسم البانر */
.hero {
  background-color: #ddd;
  text-align: center;
  padding: 50px 20px;
}

/* الأقسام العامة */
.about, .services, .projects, .contact {
  padding: 40px 20px;
  text-align: center;
}

/* صناديق الخدمات والمشاريع */
.service-boxes, .project-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.box, .project {
  background-color: #eee;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 200px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.box:hover, .project:hover {
  transform: translateY(-5px);
  border-color: goldenrod;
}

/* نموذج التواصل */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
}

button {
  padding: 10px;
  background-color: #444;
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: goldenrod;
}

/* الفوتر */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* صفحة المشاريع */
.project-page {
  padding: 40px 20px;
  text-align: center;
}

.project-page h1 {
  color: #444;
  margin-bottom: 10px;
}

.project-page p {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  border-color: goldenrod;
}

/* صفحة الخدمات */
.services-page {
  padding: 40px 20px;
  text-align: center;
}

.services-page h1 {
  color: #444;
  margin-bottom: 15px;
}

.services-page p {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.service-boxes .box {
  width: 250px;
}

/* صفحة من نحن */
.about-page {
  padding: 40px 20px;
  line-height: 1.8;
}

.about-page h1 {
  font-family: 'Amiri', serif;
  font-size: 2em;
  color: #444;
  margin-bottom: 15px;
}

.about-page h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.5em;
  color: goldenrod;
  margin-top: 25px;
  margin-bottom: 10px;
}

.about-page p, .about-page ul li {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.about-page ul {
  list-style: disc;
  padding-right: 40px;
  text-align: right;
}

.about-page ul li {
  margin-bottom: 8px;
}

/* الوضع الداكن */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

header.dark-mode {
  background-color: #222;
}

footer.dark-mode {
  background-color: #111;
}

.box.dark-mode, .project.dark-mode {
  background-color: #1e1e1e;
  border-color: #333;
}

.gallery img.dark-mode {
  border-color: #333;
}
.contact-page {
  padding: 40px 20px;
  text-align: center;
}

.contact-info {
  margin: 20px auto;
  font-size: 1.1em;
  line-height: 2;
}

.contact-info a {
  color: goldenrod;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  padding: 10px;
  background-color: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background-color: goldenrod;
}
/* الخط الأساسي للموقع */
body {
  font-family: 'Cairo', 'Tajawal', 'Amiri', 'Noto Kufi Arabic', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  direction: rtl;
  line-height: 1.8;
}

/* العناوين الرئيسية */
h1 {
  font-family: 'Amiri', serif;
  font-size: 2em;
  color: #444;
}

/* العناوين الفرعية */
h2, h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.5em;
  color: goldenrod;
}

/* الفقرات والنصوص */
p, li {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1em;
}

/* القوائم */
ul {
  font-family: 'Noto Kufi Arabic', sans-serif;
}
/* الهواتف الصغيرة */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .logo {
    justify-content: center;
    margin-bottom: 10px;
  }

  .service-boxes, .project-gallery {
    flex-direction: column;
    align-items: center;
  }

  .box, .project {
    width: 90%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  form {
    width: 90%;
  }
}

/* الأجهزة اللوحية */
@media (min-width: 601px) and (max-width: 1024px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-boxes, .project-gallery {
    flex-wrap: wrap;
    justify-content: center;
  }

  .box, .project {
    width: 45%;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}