body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a; 
  color: #e2e8f0;
}

.hub-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  position: relative; 
}
.hub-header h1 {
  color: #13a2b7; 
  font-size: 3rem;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.hub-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.worksContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1e293b; 
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 35px 25px;
  text-decoration: none; 
  color: #94a3b8; 
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.project-card:hover {
  background-color: #27354f;
  transform: translateY(-8px);
  border-color: #13a2b7; 
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-card img {
  width: 180px;       
  height: 180px;      
  object-fit: contain; 
  margin-bottom: 25px;
}

.project-description h4 {
  color: #13a2b7;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.project-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.project-description strong {
  color: #f8fafc;
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
}




.modal-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #ffffff;
  width: 90%;
  max-width: 550px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background-color: #1a6e38; 
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 30px;
  text-align: center;
  color: #475569;
}

.modal-icon {
  margin-bottom: 15px;
}

.modal-body h3 {
  color: #1e293b;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal-divider {
  border: 0;
  border-top: 1px solid #cbd5e1;
  margin: 25px 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.contact-btn:last-child {
  margin-bottom: 0;
}

.btn-blue {
  color: #2563eb;
  border: 1px solid #2563eb;
  background-color: transparent;
}

.btn-blue:hover {
  background-color: #eff6ff;
}

.btn-green {
  color: #16a34a;
  border: 1px solid #16a34a;
  background-color: transparent;
}

.btn-green:hover {
  background-color: #f0fdf4;
}

.page-logo {
  position: absolute;
  top: 40px;  /* المسافة من الأعلى */
  left: 150px; /* المسافة من اليسار */
  width: 120px; /*  حجم الشعار */
  height: auto;
  border-radius: 50%; 
}

.page-logo-right {
  position: absolute;
  top: 40px;  /* المسافة من الأعلى */
  right: 150px; /* المسافة من اليمين */
  width: 120px; /* لتغيير حجم الشعار */
  height: auto;
  border-radius: 50%; 
}


@media screen and (max-width: 768px) {
  
  .page-logo, 
  .page-logo-right {
    width: 55px; 
    top: 15px;
  }
  
  .page-logo { left: 15px; }
  .page-logo-right { right: 15px; }

  .hub-header {
    padding: 90px 15px 30px; 
  }

  .hub-header h1 {
    font-size: 2rem; 
  }

  .hub-header p {
    font-size: 0.95rem; 
  }


  .projects-grid {
    grid-template-columns: 1fr; 
    gap: 20px;
  }

  .project-card {
    padding: 25px 15px;
  }

  .project-card img {
    width: 140px; 
    height: 140px;
    margin-bottom: 15px;
  }

  .modal-content {
    width: 95%; 
  }

  .modal-body {
    padding: 20px 15px;
  }

  .modal-desc {
    font-size: 0.9rem;
  }
  
  .contact-btn {
    font-size: 0.85rem; 
    padding: 12px;
  }
}

