.carausalsec {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  background-color: #00000000;
}
.carausalsec2 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  background-color: #00000000;
}
.carousel {
  width: 90%;
  max-width: 1500px;
  overflow: hidden;
  position: relative;
}
.carousel2 {
  width: 90%;
  max-width: 1500px;
  overflow: hidden;
  position: relative;
}

.carousel-inner {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 100px;
}
.carousel-inner2 {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 100px;
}
.carousel-item .card {
  position: relative; /* Ensure the pseudo-element aligns with the card */
  color: white; /* Make the text visible on the dark background */
}

.carousel-item .card h2,
.carousel-item .card p {
  position: relative; /* Ensure the text appears above the overlay */
  z-index: 2;
}

/* 2 */
.carousel-item2 .card2 {
  position: relative; /* Ensure the pseudo-element aligns with the card */
  color: white; /* Make the text visible on the dark background */
}

.carousel-item2 .card2 h2,
.carousel-item2 .card2 p {
  position: relative; /* Ensure the text appears above the overlay */
  z-index: 2;
}

.carousel-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
.carousel-item2 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.card {
  background-color: #96969628;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 400px;
  height: 400px;
  transition: all 0.35s;
}

.card:hover {
  transform: scale(1.1);
}
.card2 {
  background-color: #96969628;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 400px;
  height: 400px;
  transition: all 0.35s;
}
.card2:hover:hover {
  transform: scale(1.1);
}

h2 {
  margin-top: 10px;

  color: #ffffff;
}

/* p {
  font-size: 16px;
  
  color: #000000;

  
} */

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 10px;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}
.prev2 {
  left: 0;
}

.next2 {
  right: 0;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
/* Background Images for each Card */
.carousel-item:nth-child(1) .card {
  background-image: url("/assets2/technicalVideo.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
  margin-left: 70px;
}
.carousel-item:nth-child(7) .card {
  background-image: url("/assets2/Webandappwalkthrough.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}

.carousel-item:nth-child(2) .card {
  background-image: url("/assets2/Webandappwalkthrough.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}

.carousel-item:nth-child(3) .card {
  background-image: url("/assets2/corperateVodeo.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}
.carousel-item:nth-child(4) .card {
  background-image: url("/assets2/promoVideo.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}

.carousel-item:nth-child(5) .card {
  background-image: url("/assets2/explainerani.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}

.carousel-item:nth-child(6) .card {
  background-image: url("/assets2/technicalVideo.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}

/* 3D  */
.carousel-item2:nth-child(1) .card2 {
  background-image: url("/assets2/interiorwalkthrough.jpg");
  margin-left: 70px;
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}

.carousel-item2:nth-child(2) .card2 {
  background-image: url("/assets2/360vish.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}
.carousel-item2:nth-child(3) .card2 {
  background-image: url("/assets2/Interior\ Bathroom.png");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}
.carousel-item2:nth-child(4) .card2 {
  background-image: url("/assets2/interiorwalkthrough.jpg");
  background-size: contain; 
  background-position: bottom;
  background-repeat: no-repeat;
}
/* cloned box */
/* .carousel-item2:nth-child(5) .card2 {
  background-image: url("/assets2/360vish.jpg");
  background-size: contain; 
  background-position: bottom;
  background-repeat: no-repeat;
} */
.carousel-item2:nth-child(5) .card2 {
  background-image: url("/assets2/360vish.jpg");
  background-size: contain; /* Makes the image fit entirely within the parent */
  background-position: bottom;
  background-repeat: no-repeat;
}
/* Responsive Design */
@media (max-width: 768px) {
  /* Tablet devices */
  .carousel {
    width: 100%;
  }
  .carousel-item:nth-child(1) .card {
    margin-left: 22px;
  }
  .carousel-item2:nth-child(1) .card2 {
    margin-left: 22px;
  }

  .carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    gap: 50px;
  }

  .card {
    width: 260px;
    height: 260px;
    padding: 20px;
  }
  .carousel2 {
    width: 100%;
  }

  .card2 {
    width: 260px;
    height: 260px;
    padding: 20px;
  }
  .carousel-inner2 {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    gap: 50px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }

  button {
    font-size: 20px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .carousel-item:nth-child(1) .card {
    margin-left: 0px;
  }
  .anchore{
    width: 90%;
    height: 90%;
  }

  .carausalsec {
    height: auto;
  }
  .carousel {
    margin-top: 100px;
    margin-bottom: 100px;
    width: 80%;
    overflow: visible;
  }

  .carousel-inner {
    flex-direction: column; /* Stack the items vertically */
    gap: 20px;
    transition: none !important; /* Disable the sliding effect */
    transform: none !important; /* Remove the sliding */
  }

  .card {
    width: 100%; /* Make the cards full width on mobile */
    padding: 15px;
    margin-top: 2rem;
  }
  .clone-first {
    display: none;
  }
  .clone-first2 {
    display: none;
  }
  .clone-last {
    display: none;
  }
  .clone-last2 {
    display: none;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 13px;
  }

  .prev {
    display: none; /* Hide navigation buttons */
  }
  .next {
    display: none; /* Hide navigation buttons */
  }

  /* 2nd section */
  .carousel-item2:nth-child(1) .card2 {
    margin-left: 0px;
  }

  .carausalsec2 {
    height: auto;
  }
  .carousel2 {
    margin-top: 100px;
    margin-bottom: 100px;
    width: 80%;
    overflow: visible;
  }

  .carousel-inner2 {
    flex-direction: column; /* Stack the items vertically */
    gap: 20px;
    transition: none !important; /* Disable the sliding effect */
    transform: none !important; /* Remove the sliding */
  }

  .card2 {
    width: 100%; /* Make the cards full width on mobile */
    padding: 15px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 13px;
  }

  .prev2 {
    display: none; /* Hide navigation buttons */
  }
  .next2 {
    display: none; /* Hide navigation buttons */
  }
}
