
html {
  scroll-behavior: smooth;
}

section {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1em;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em; /* Added gap for spacing between columns */
}

.column {
  flex: 1 1 100%;
  padding: 1em;
  text-align: center;
}

.card {
  width: 100%;
  max-width: 350px; /* Limit max-width for larger screens */
  margin: auto; /* Center card */
  padding: 2em 1.5em;
  background: linear-gradient(#ffffff 50%, #4f46e5 50%);
  background-size: 100% 200%;
  background-position: 0 2.5%;
  border-radius: 5px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: 0.5s;
}

h3 {
  font-size: 1.25em;
  font-weight: 600;
  color: #1f194c;
  margin: 1em 0;
}

p {
  color: #575a7b;
  font-size: 1em;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.icon-wrapper {
  background-color: #4f46e5;
  position: relative;
  margin: auto;
  font-size: 1.5em;
  height: 2.5em;
  width: 2.5em;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.5s;
}

.card:hover {
  background-position: 0 100%;
}

.card:hover .icon-wrapper {
  background-color: #ffffff;
  color: #4f46e5;
}

.card:hover h3 {
  color: #ffffff;
}

.card:hover p {
  color: #f0f0f0;
}

    /* Hover and Transition effects for cards */
    /* #services-container .w-full {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    } */

    /* #services-container .w-full:hover {
      transform: translateY(-10px) scale(1.05); 
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); 
    }

   */

@media screen and (min-width: 768px) {
  section {
    padding: 0 2em;
  }
  .row {
    gap: 1.5em; /* Increase gap for larger screens */
  }
  .column {
    flex: 1 1 50%;
    max-width: 50%;
  }
 
}

@media screen and (max-width: 600px) {

 .card{
  width: 300px;
 }
}

@media screen and (min-width: 992px) {
  section {
    padding: 1em 3em;
  }
  .row {
    gap: 0em; /* Further increase gap for larger screens */
  }
  .column {
    flex: 1 1 33.33%;
    max-width: 33.33%;
  }
  
}

  /* Hover and Transition effects for cards */
  #services-container .w-full {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #services-container .w-full:hover {
    transform: translateY(-10px) scale(1.05); /* Pop up effect */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Shadow on hover */
  }

  /* why-us */
  @media (max-width: 1023px) {
    .content.show {
      display: block;
    }
  }


/* Form Submission Modal styles */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); 
  transition: background-color 0.3s ease; 
}

.modal-content {
  background-color: white;
  border: 2px solid #7c2bbe;
  padding: 30px; 
  border-radius: 10px; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
  text-align: center;
  max-width: 500px; 
  width: 90%; 
  animation: fadeIn 0.5s; 
}

.close {
  cursor: pointer;
  font-size: 24px;
  color: #7b2bbe;
  transition: color 0.3s ease;
}

.close:hover {
  color: #5a1c8f;
}

.hidden {
  display: none;
}

/* Animation for modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
