.ourService {
  position: relative;
  background-image: url("../img/our-services.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  background-attachment: fixed;
  overflow: hidden;
}

.ourService::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.ourService h2 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 40px;
  transform: translateY(30px);
  opacity: 0;
  animation: heroTitle 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
}

@keyframes heroTitle {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
  gap: 60px;
  position: relative;
}
.service-row.reverse {
  flex-direction: row-reverse;
}
.service-row img {
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  filter: brightness(1.02) contrast(1.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.service-row img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  filter: brightness(1.08) contrast(1.08);
}

.service-row .text {
  flex: 1;
  padding: 20px;
}

.service-row h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 20px;
  color: #222;
  position: relative;
  letter-spacing: 1px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.service-row.in-view h3 {
  transform: translateY(0);
  opacity: 1;
}

.service-row p {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.8;
  transform: translateY(40px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;
  font-weight: 300;
}

.service-row.in-view p {
  transform: translateY(0);
  opacity: 1;
}


@media (max-width: 1024px) {
  .service-row {
    gap: 40px;
    margin: 80px auto;
  }
}
@media (max-width: 768px) {
  .ourService {
    height: 40vh;
    background-attachment: scroll;
    padding-bottom: 20px;
  }

  .ourService h2 {
    font-size: 1.8em;
    margin: 0;
    padding: 10px;
  }

  .service-row {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    margin: 60px auto;
  }

  .service-row.reverse {
    flex-direction: column;
  }

  .service-row img {
    width: 90%;
    margin-bottom: 20px;
  }

  .service-row .text {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .service-row h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .ourService {
    height: 35vh;
  }

  .service-row {
    margin: 40px auto;
    gap: 30px;
  }

  .service-row h3 {
    font-size: 1.3em;
  }
}
