/* Carousel */
.carousel-caption h2 {
  font-size: 3rem;
  color: #fff;
  animation: fadeIn 1s ease-in-out;
}
.carousel-caption p {
  font-size: 1.3rem;
  color: #fff;
  animation: fadeInUp 1.5s ease-in-out;
}
.carousel-item img {
  height: 450px;
  object-fit: cover;
}

/* Cards & Sections */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  height: 250px; /* Increased height of the card image */
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 20px;
  }

  .row.mb-4 {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .carousel-caption {
    right: 0 !important;
    left: 0 !important;
  }
}

@media (max-width: 768px) {
  #service-card-2 {
    flex-direction: column-reverse;
  }
  #service-card-4 {
    flex-direction: column-reverse;
  }
}

/* Add animations */
.service-card {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Keyframes for fade in */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeInLeft {
  animation: fadeIn 0.5s ease forwards;
}

.animate__fadeInRight {
  animation: fadeIn 0.5s ease forwards;
}
