    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      background-color: #f9f9f9;
      overflow-x: hidden;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }

    .service {
      display: flex;
      flex-direction: column;
     
      background-color: #fff;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 0.8s ease-out forwards;
    }

    .service:nth-child(2) {
      animation-delay: 0.2s;
    }

    .service:nth-child(3) {
      animation-delay: 0.4s;
    }

    .service:nth-child(4) {
      animation-delay: 0.6s;
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .service img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.4s ease;
    }

   

    .service-content {
      padding: 30px 20px;
      text-align: center;
    }

 .service-content h2 {
  position: relative;
  display: inline-block;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.service-content h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: red;
}

.servicesbutton {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid #999;
  background: transparent;
  color: #000; /* Default text color */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50%;
  margin: 0 auto;
  text-align: center;
}

/* Hover effect */
.servicesbutton:hover {
  background: #333;
  color: #fff;
  transform: scale(1.05);
  border-color: #333;
}


    .service-content p {
      font-size: 15px;
      color: #555;
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .service-content button {
      padding: 10px 20px;
      font-size: 14px;
      border: 1px solid #999;
      background: transparent;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .service-content button:hover {
      background: #333;
      color: #fff;
      transform: scale(1.05);
      border-color: #333;
    }

    /* Tablet responsiveness */
    @media (min-width: 768px) and (max-width: 991px) {
      .service-content h2 {
        font-size: 26px;
      }

      .service-content p {
        font-size: 16px;
      }

      .service-content button {
        font-size: 13px;
      }
    }

    /* Large screens */
    @media (min-width: 992px) {
      .service {
        flex-direction: row;
      }

      .service:nth-child(even) {
        flex-direction: row-reverse;
      }

      .service img {
        width: 50%;
        max-height: 400px;
        object-fit: cover;
      }

      .service-content {
        width: 50%;
        padding: 40px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .service-content h2 {
        font-size: 28px;
      }

      .service-content p {
        font-size: 16px;
      }

      .service-content button {
        padding: 8px 16px;
        font-size: 13px;
      }
    }
