.our-expertise-container {
  display: flex;
  gap: 40px;
}

.all-dev-container {
  flex: 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 columns */
  gap: 30px;
  width: 100%;
  max-width: 800px; /* ensures it doesn’t stretch too wide */
  margin: 0 auto;
  padding: 20px;
  padding-left: 0px;
}

.all-dev-container a {
  text-decoration: none;
}

.web-dev-container {
  padding-top: 20px;
  flex: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.service-container {
  background: #f5f5f5; /* example bg */
  border: 1px solid #ddd;
  border-radius: 20px;
  min-height: 250px; /* adjust as needed */
  max-height: 364px;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.5s;
  overflow: hidden;
}
.service-container-content h3 {
  transform: translateY(60px);
  transition: 0.5s;
}
.service-container-content {
  display: flex;
  flex-direction: column;
  transition: 0.5s;

  gap: 15px;
  /* margin-bottom: -60px; */
}

.btn-div-container {
  transition: 0.5s;
  transform: translateY(100px);
}

.service-container:hover .service-container-content h3 {
  transition: 0.5s;
  transform: translateY(0px);
}
.service-container:hover .service-container-content .btn-div-container {
  transition: 0.5s;
  transform: translateY(0px);
}

.btn-div-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.apps-dev-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* black overlay */ url('/assets/img/others/appDev.png');
  background-position: center;
}
.games-dev-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* black overlay */ url('/assets/img/others/GamesDev.png');
  background-position: 40% 90%;
}
.digital-marketing-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* black overlay */ url('/assets/img/others/digitalMarketing.png');
  background-position: center;
}
.ui-ux-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* black overlay */ url('/assets/img/others/ui-ux-design.png');
  background-position: center;
}

.web-dev-service-list {
  display: flex;
}

.web-dev-service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px 0px;
  max-width: 800px;
  /* margin: 0 auto; */
}

.web-dev-service-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.web-dev-service-list li {
  background: #f8f9fa;
  padding: 8px 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  cursor: pointer;
  border-left: 4px solid var(--primary-theme-color);
  transform: translateX(5px);
  /* box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); */
}

.web-dev-service-list li span {
  font-size: 18px;
}

.web-dev-service-list li:hover {
  border-left: 4px solid var(--secondary-color);
  transform: translateX(7px);
  /* box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); */
}

.web-technology-list {
  display: flex;
  /* justify-content: space-between; */
  overflow-x: hidden;
  overflow-y: hidden;
}

.web-technology-list .marquee {
  display: flex;
  justify-content: space-between;
}
.technology-list-img {
  height: 50px;
  min-width: 100px;
  flex: 1;
}
.technology-list-img img {
  height: 100%;
}

.web-dev-bottom-btn {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}


@media (max-width: 1120px) {
  .our-expertise-container {
    flex-direction: column-reverse;
  }
}

@media (max-width: 950px) {
  .service-container .service-container-content h3 {
    transition: 0.5s;
    transform: translateY(0px);
  }
  .service-container .service-container-content .btn-div-container {
    transition: 0.5s;
    transform: translateY(0px);
  }

  .all-dev-container {
    position: relative;
    padding: 0;
  }
  .web-dev-expertise-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      /* black overlay */ url('/assets/img/others/expertise/abstractRed.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    left: -20px;
    right: -20px;
    width: calc(100% + 40px);
    padding: 25px 20px;
  }
  .web-dev-expertise-container .text-color-dark {
    color: var(--text-color-white);
  }
}

@media (max-width: 768px) {
  .web-dev-service-list {
    grid-template-columns: 1fr; /* stack on small screens */
    gap: 0;
  }
  .our-expertise-container {
    flex-direction: column-reverse;
  }

  .second-ul-list {
    margin: 0;
  }

  .web-technology-list {
    position: relative;
    left: -20px;
    right: -20px;
    width: calc(100% + 40px);
    padding: 25px 20px;
    /* width: 100%; */
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 80px;
    background-color: var(--text-color-white);
  }
  .technology-list-img img {
    height: 45px; /* adjust size */
    object-fit: contain;
    transition: transform 0.3s;
  }
  .web-technology-list .marquee {
    display: flex;
    /* overflow: hidden; */
    animation: scroll 25s linear infinite;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 500px) {
  .all-dev-container {
    grid-template-columns: 1fr; /* only 1 column */
  }
  .service-container {
    width: 100%;
  }
}
