.services {
  width: 100%;
  padding: 60px 0;
  position: relative;
  background-image: url('./images/beautiful-car-washing-service.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
}
.txt-s{
  color: #000;
  position: relative;
}
.service {
display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1100px;
  margin: 0 auto;

  position: relative;
  z-index: 2;

  
}

.service.reverse {
  flex-direction: row-reverse;
}

.service-img img {
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
  object-fit: cover;
}

.service-content {
  max-width: 500px;
}

.service-content h3 {
  color: #fcfcfc; /* rouge rosé comme sur l’image */
  font-size: 22px;
  font-weight: 500;
}

.service-content .line {
  display: block;
  width: 60px;
  height: 2px;
  background: #000;
  margin-bottom: 15px;
}

.service-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}




@media (max-width: 768px) {
  .service,
  .service.reverse {
    flex-direction: column;
    text-align: center;
  }

  .service-content .line {
    margin: 10px auto 15px;
  }
}
.project-card-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 70%;
    margin: 40px auto;
    background: #2e2e2e;
    color: #f8f5f3;
    overflow: hidden;
    border-radius: 4px;
}
.project-card-right
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 70%;
    margin: 40px auto;
    background: #f8f5f3;
    color: #000000;
    overflow: hidden;
    border-radius: 4px;
}
.project-left {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-left h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.project-card-left p {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #ffffff;
}

.project-card-right .btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #000000;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.project-card-right .btn:hover {
    background: #028ea7;
    color: #f8f5f3;
    border: 1px solid #028ea7;;
}
.project-card-left .btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #f8f5f3;
    color: #f8f5f3;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.project-card-left .btn:hover {
    background: #f8f5f3;
    color: #000000;
}
/* Right image box */
.project-right {
    position: relative;
    overflow: hidden;
}


.project-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* dark overlay on hover */
.project-right::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: 0.3s ease;
}

/* Hover effects */
.project-card-left:hover img {
    transform: scale(1.08);
}
.project-card-right:hover img {
    transform: scale(1.08);
}
.project-card-left:hover .project-right::after {
    background: rgba(0, 0, 0, 0.25);
}
.project-card-right:hover .project-right::after {
    background: rgba(0, 0, 0, 0.25);
}
@media (max-width: 900px) {
    .project-card-left,
    .project-card-right {
        grid-template-columns: 1fr; /* Stack vertically */
        width: 90%; /* More space on mobile */
    }

    .project-left {
        padding: 25px;
        text-align: center;
    }

    .project-right img {
        height: 250px; /* Keep image height reasonable */
    }
}

@media (max-width: 500px) {


    .project-card-left .btn,
    .project-card-right .btn {

        padding: 8px 18px;
    }
}

