  /* Overlay خفيف لتوضيح النص */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* يملى الشاشة بالكامل */
  background-image: url('../imgs/service-bg.webp'); /* ضع رابط الصورة */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3); /* إضاءة سوداء خفيفة */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 20px;
}




/*service*/
.services {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
  font-family: 'Cairo', sans-serif;
}

.head-service{
    margin: auto;
    display: block;
    text-align: center;
   background: linear-gradient(135deg,
#C9D0D6 0%,
#B2BAC2 45%,
#9AA3AD 85%,
#868F99 100%);
    border-radius: 20px;
    padding: 20px 10px;
    margin-bottom: 30px;
    margin-top: 20px;
    font-weight: bold;
    width: 70%;
    box-shadow: #868F99 10px 10px;
}
.head-service h1{
    color: #7A262A;
    font-size: 60px;
    margin-bottom: 10px;
}
.head-service p{
    color: #F5F5F5;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 992px) {

  .head-service h1{
    font-size: 30px;
  }

  .head-service p{
    font-size: 14px;
  }
  .head-service{
    width: 80%;
  }
}

/* Service Item Layout */
.service-section {
  padding: 80px 20px;
  font-family: 'Cairo', sans-serif;
}

.service-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
background: linear-gradient(135deg,
#C9D0D6 0%,
#B2BAC2 45%,
#9AA3AD 85%,
#868F99 100%);

  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.service-image img {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  object-fit: cover;
}


/* Responsive */
@media (max-width: 992px) {

  .service-image img{
    height: 300px;
  }
}


.service-content {
  flex: 2;
  min-width: 300px;
  color: #ffffff;
}

.service-content h1 {
  font-size: 32px;
  color: #7A262A;
  margin-bottom: 15px;
}

.service-description {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sub-box {
  flex: 1 1 calc(50% - 20px);
  background-color: rgba(0,0,0,0.2);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sub-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.sub-box h3 {
  font-size: 22px;
  color: #7A262A;
  margin-bottom: 10px;
}

.sub-box p {
  font-size: 16px;
  line-height: 1.5;
  color: #E0E0E0;
}

/* Responsive */
@media (max-width: 992px) {
  .service-container {
    flex-direction: column;
  }

  .sub-box {
    flex: 1 1 100%;
  }
}

.service-section {
  opacity: 1;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.service-section.in-view {
  opacity: 1;
  transform: translateY(0);
}