/* Projects Page */
.projects-page h1 {
  color: #0056b3;
  margin-bottom: 10px;
}

.projects-page p {
  color: #333;
  margin-bottom: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.project-card {
  background: #f2f6ff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 86, 179, 0.2);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  color: #0056b3;
  margin: 15px 0 5px;
}

.project-card p {
  padding: 0 15px 15px;
  color: #333;
}
body {
  font-family: "Cairo", "Tahoma", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  margin: 0;
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  background: #0056b3;
  color: white;
  padding: 15px 0;
}

header .logo {
  font-size: 1.5em;
  font-weight: bold;
  width: 30%;
  display: flex;
  justify-content: center;
}

header nav ul {
  list-style: none;
  display: flex; 
  flex-wrap : wrap;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

header nav a.active,
header nav a:hover {
  border-bottom: 2px solid #ffffff;
  padding-bottom: 3px;
}

/* Contact Page */
.contact-page h1,
.about-page h1 {
  color: #0056b3;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-section form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.contact-section form label {
  margin-top: 10px;
  font-weight: bold;
}

.contact-section form input,
.contact-section form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.contact-section form button {
  margin-top: 15px;
  background: #0056b3;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-section form button:hover {
  background: #003f82;
}

.info {
  flex: 1;
  min-width: 250px;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #f2f6ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.1);
}

.card h3 {
  color: #0056b3;
}

footer {
  position: relative;
  width: 100%;
  bottom: 0;
  background: #0056b3;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}
.header-template{
  display: flex;
  width: 95%;
  margin: auto;
  align-items: center;
}
.navbar{
  width: 40%;
}
@media(max-width:968px){
  .header-template{
    display: grid;
    justify-items: center;
    gap: 20px;

  }
  .img-logo{
    display: none;
  }
  header .logo{
    width: 100%;
    text-align: center;
  }
  .navbar{
    width: 100%;
  }
  .about-image{
    margin-bottom: 10%;
  }
}

/* ===== القائمة الجانبية المنسدلة ===== */
.options-menu {
  position: relative;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* محتوى القائمة */
.side-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: white;
  color: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  width: 180px;
  text-align: right;
}

/* ظهور القائمة عند تمرير الماوس */
.options-menu:hover .side-dropdown {
  display: block;
}

/* تنسيق الروابط داخل القائمة */
.side-dropdown li a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #0056b3;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
  font-size: 16px;
}

.side-dropdown li:last-child a {
  border-bottom: none;
}

.side-dropdown li a:hover {
  background-color: #f0f6ff;
}

/* ===== للموبايل فقط ===== */
@media (min-width: 550px) {
  .options-menu {
    display: none;
  }
  .mob-logo{
    display: none;
  }
}
@media (max-width: 550px) {
  .header-template{
    display: none;
  }
}
.mob-view{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
}