body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: #f5f5f5;
  overflow-x: hidden;
}
header {
  background-color: #f7f7f7;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  margin-left: auto;
}
.logo img {
  max-width: 100px;
  height: auto;
  display: block;
}
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #083b72;
}
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
nav a:hover {
  color: #083b72;
}
.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1001;
  display: none;
}
.side-menu.active {
  left: 0;
}
.side-menu ul {
  list-style: none;
  padding: 0;
}
.side-menu ul li {
  margin: 20px 0;
}
.side-menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
}
.side-menu ul li a:hover {
  color: #083b72;
}
section {
  padding: 60px 20px;
}
.about, .map, .contact {
  display: block;
}
.about .text, .contact .form-container {
  padding: 20px;
}
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.about .text {
  flex: 1;
  max-width: 50%;
  padding-right: 20px;
}
.about img {
  max-width: 100%;
  width: 40%;
  height: auto;
}
.jobs-section {
  text-align: center;
}
.jobs-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.job-box {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 20px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}
.job-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.job-box img {
  max-width: 100%;
  height: auto;
}
.job-box h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #333;
}
.job-box p {
  color: #888;
  margin: 0;
}
.stats-section {
  background: linear-gradient(to right, #00c6ff, #083b72);
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
  margin-bottom: 40px;
}
.stat-box {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  border: 2px solid #fff;
  border-radius: 10px;
  min-width: 150px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.stat-box.show {
  opacity: 1;
  transform: translateY(0);
}
.stat-box h2 {
  font-size: 28px;
  margin: 0;
}
.stat-box p {
  margin: 5px 0 0;
  font-size: 16px;
}
.search-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
}
.search-section .row {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}
.search-section .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.search-section .btn-primary {
  padding: 10px 20px;
  background-color: #083b72;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}
.search-section .btn-primary:hover {
  background-color: #062d55;
}
.contact .form-container {
  width: 100%;
  max-width: 76%;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
  text-align: right;
}
.contact {
  display: block;
  text-align: center;
}
.contact .form-container .form-group {
  margin-bottom: 20px;
  position: relative;
}
.contact .form-container .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}
.contact .form-container .form-group input,
.contact .form-container .form-group textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}
.contact .form-container .form-group input:focus,
.contact .form-container .form-group textarea:focus {
  outline: none;
  border-color: #083b72;
}
.contact .form-container .form-group .icon {
  position: absolute;
  left: 12px;
  top: 70%;
  transform: translateY(-50%);
  color: #555;
  font-size: 16px;
}
.contact .form-container button {
  width: 100%;
  padding: 12px;
  background-color: #083b72;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.contact .form-container button:hover {
  background-color: #062d55;
}
.map {
  padding: 0;
  margin-top: 40px;
}
.map iframe {
  width: 100%;
  height: 450px;
  border: 0;
}
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
}
footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
footer .footer-section {
  margin: 10px;
}
footer h3 {
  font-size: 18px;
  margin-bottom: 15px;
}
footer ul {
  list-style: none;
  padding: 0;
}
footer ul li {
  margin-bottom: 10px;
}
footer ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
footer ul li a:hover {
  color: #083b72;
}
footer p {
  font-size: 14px;
  margin-top: 20px;
}
.services-section {
  text-align: center;
  background: #fff;
  padding: 40px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}
.services-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}
.services-section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #083b72;
}
.services-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.service-box {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 20px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  /*transform: translateY(30px);*/
}
.service-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.service-box i {
  font-size: 40px;
  color: #083b72;
  margin-bottom: 15px;
}
.service-box h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #333;
}
.service-box p {
  color: #888;
  font-size: 14px;
  margin: 0;
}
.gallery-section {
  text-align: center;
  background: #fff;
  padding: 40px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.gallery-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}

.gallery-section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #083b72;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 25px;
  background-color: #fff;
  cursor: pointer;
  border: 2px solid #1e3a8a;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  min-width: 120px;
  text-align: center;
}

.tab.active {
  background: linear-gradient(to right, #294ba9, #8b8f98);
  color: #fff;
  border-color: #1e3a8a;
}

.tab-panel {
  display: none;
  width: 100%;
}

.tab-panel.active {
  display: block;
}

/* ✅ الشبكة الجديدة */
.sub-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  width: 90%;
  margin: 0 auto;
}

.sub-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.sub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sub-image:hover {
  transform: scale(1.05);
}

/* ✅ أحجام صور متغيرة بالنمط */
#jobs-gallery .sub-image:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 2 / 2;
}
#jobs-gallery .sub-image:nth-child(4){
grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 2 / 2;
}
#jobs-gallery .sub-image:nth-child(2),
#jobs-gallery .sub-image:nth-child(3),
#jobs-gallery .sub-image:nth-child(6) {
  aspect-ratio: 1 / 1;
}


#jobs-gallery .sub-image:nth-child(5),
#jobs-gallery .sub-image:nth-child(7),
#jobs-gallery .sub-image:nth-child(8) {
  grid-column: span 1;
  aspect-ratio: 3 / 3;
}



/* ✅ للموبايل */
@media (max-width: 768px) {
  .sub-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .tab {
    font-size: 14px;
    padding: 8px 16px;
  }

  .sub-image:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1;
  }
}



.clients-section {
  text-align: center;
  background: #fff;
  padding: 40px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}
.clients-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}
.clients-section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #083b72;
}
.clients-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.client-box {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 20px;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
}
.client-box img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    display: block !important;
  }
  .side-menu {
    display: block;
    left: -100%;
  }
  .side-menu.active {
    left: 0;
  }
  .about {
    flex-direction: column-reverse;
  }
  .about .text {
    max-width: 100%;
    padding-right: 0;
    margin-top: 20px;
  }
  .about img {
    width: 100%;
  }
  .search-section .row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .search-section .col-12 {
    width: 100% !important;
    margin-bottom: 10px;
  }
  .search-section .btn-primary {
    width: 100%;
  }
  .contact .form-container {
    max-width: 91%;
  }
  .jobs-container, .services-container, .clients-container {
    flex-direction: column;
    align-items: center;
  }
  .job-box, .service-box, .client-box {
    width: 100%;
    max-width: 300px;
  }
  .gallery-row.top .gallery-image {
    width: 100%;
    height: 200px;
  }
  .gallery-row.middle .gallery-image {
    width: 100%;
    height: 150px;
  }
  .gallery-row.bottom .gallery-image {
    width: 100%;
    height: 120px;
  }
  footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  footer .footer-section {
    width: 100%;
    max-width: 300px;
    margin: 20px 0;
  }
}