.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly; /* Distribute services evenly */
  gap: 20px; /* Adjust the gap between services */
  background-color: var(--middle-bg-color);
  padding: 20px;
}

.service {
  background-color: var(--middle-bg-color);
  color: var(--middle-text-color);
  border: 2px solid var(--light-bg-color);
  border-radius: 10px;
  padding: 20px;
  margin: 0; /* Remove margin to prevent gaps within each service */
  text-align: left;
  transition: transform 0.3s ease-in-out;
  flex: 0 0 calc(33.33% - 20px); /* Three services per row initially */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 250px; /* Set a minimum width for each service */
}

.service:hover {
  transform: scale(1.05);
  background-color: var(--main-bg-color);
  border: none;
}

.service:hover p {
  color: var(--middle-text-color);
}

.service img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  height: 400px; /* Adjust the height as needed */
  object-fit: cover;
}

.service h2 {
  font-size: var(--small-heading);
  margin-bottom: 10px;
  font-family: var(--heading-font);
  text-align: center;
  color: var(--accent-color);
}

.service p {
  font-size: var(--middle-txt);
  padding: 10px;
  animation: fadeIn 4s ease-in;
  color: var(--dark-text-color);
  line-height: 25px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px); /* Slide in from the left */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CONTACT SECTION */

#contact-section {
  background-color: var(--light-bg-color);
  padding: 40px 0;
  text-align: center;
  border-bottom: 5px solid var(--second-accent-color);
}

#contact-container {
  max-width: 800px;
  margin: 0 auto;
  color: var(--accent-color);
  font-size: 1.2rem;
}

#contact-container p {
  margin-bottom: 20px;
}

.button:hover {
  background-color: var(--main-bg-color);
  transform: scale(4);
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 480px) {
  .service h2 {
    font-size: var(--middle-txt);
  }
  .service p {
    font-size: var(--small-txt);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .service h2 {
    font-size: var(--large-txt);
  }
  .service p {
    font-size: var(--middle-txt);
  }
  #contact-container {
    padding: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
}

@media (min-width: 1025px) and (max-width: 1200px) {
  /* Add your styles for this breakpoint */
}

@media (min-width: 1201px) {
  /* Add your styles for this breakpoint */
}
