* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 100px;
  margin-top: 60px;
  cursor: pointer;
}

.card {
  flex: 1 1 calc(25% - 30px);
  max-width: 300px;
  min-width: 250px;
  padding: 20px 15px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.726);
  transition: 0.3s ease-in-out;
}

.card:hover {
  height: 350px;
  background: linear-gradient(90deg, #142b31, #1f3d45);
}

.imgContainer {
  position: relative;
  width: 100%;
  height: 150px;
  top: -50px;
  z-index: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  background-color: white;
}

.imgContainer img {
  width: 80px;
  height: 100px;
  border-radius: 4px;
  display: inline-block;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.imgContainer h2 {
  text-align: center;
  font-size: large;
  font-weight: bold;
  font-family: "Times New Roman", Times, serif;
  color: black;
}

.content {
  position: relative;
  margin-top: -140px;
  padding: 10px 15px;
  text-align: center;
  color: white;
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease-in-out;
  height: 100px;
}

.content p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: white;
  font-family: "Times New Roman", Times, serif;
  margin-top: 10px;
}

.card:hover .content {
  visibility: visible;
  opacity: 1;
  margin-top: -40px;
  transition-delay: 0.3s;
}

@media (max-width: 992px) {
  .card {
    flex: 1 1 calc(50% - 30px);
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .card {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }
}
/* service */
@media (min-width: 768px) and (max-width: 1366px) {
  .service-section .row {
    text-align: center !important;
    align-items: center !important;
  }

  .service-section .col-md-6 {
    width: 100% !important;
  }

  .service-section .text-start {
    text-align: center !important;
  }

  .service-section .btn {
    margin: 0 auto;
  }
}

/* contact */

.contact-section img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-section h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contact-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 768px) {
  .contact-section {
    text-align: center;
  }

  .contact-section .row {
    flex-direction: column-reverse;
  }

  .contact-section img {
    margin-bottom: 20px;
  }

  .contact-section h4 {
    font-size: 1.5rem;
  }

  .slide-left,
  .slide-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.in-view.slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.in-view.slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-gradient {
  font-weight: bold;
  color: white;
  background: linear-gradient(90deg, #142b31, #1f3d45);
  transition: background 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(90deg, #00394d, #012530);
  color: white;
}

@media (max-width: 1366px) and (min-width: 768px) {
  .contact-section .row {
    flex-direction: column-reverse !important;
    align-items: center !important;
    text-align: center !important;
  }

  .contact-section .col-md-6 {
    width: 100%;
    margin-bottom: 20px;
  }

  .contact-section .text-start {
    text-align: center !important;
  }

  .contact-section .btn {
    margin: 0 auto;
  }
}
