.home-banner {
  width: 100%;
  height: 80vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  position: relative;
  top: -70px;
  margin-bottom: -70px;
}
.home-banner .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  max-height: 700px;
  z-index: -1;
  filter: brightness(0.4);
  background-size: cover;
  background-position: center;
}
.home-banner .header {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.home-banner .sub-header {
  font-size: 21px;
  font-weight: 400;
  margin: 10px 0 0 0;
  padding: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section {
  padding: 40px 20px;
}
.section .section-header {
  font-size: 28px;
  font-weight: 600;
  color: #254560;
  margin-bottom: 20px;
  text-align: center;
}
.section .cards {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}
.section .cards .card {
  background-color: #082c4b;
  border-radius: 15px;
  padding: 30px;
  flex: 1;
}
.section .cards .card .name {
  color: #ffffff;
  font-weight: 600;
  font-size: 16.8px;
  text-align: center;
  margin-bottom: 0;
}
.section .cards .card .value {
  color: #ee212b;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
}
.section .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.section .contact-list .contact-item {
  flex: 1;
  padding: 30px;
  padding-top: 50px;
  border-radius: 25px;
  position: relative;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
}
.section .contact-list .contact-item .image {
  height: 80px;
  width: 80px;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: -40px;
  left: 30px;
  background-color: #ee212b;
  border-radius: 15px;
}
.section .contact-list .contact-item .icon {
  position: absolute;
  top: -40px;
  left: 30px;
  background-color: #ee212b;
  border-radius: 15px;
  height: 80px;
  width: 80px;
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;
}
.section .contact-list .contact-item .icon span {
  font-size: 35px;
  color: #ffffff;
  transition: transform 0.6s;
}
.section .contact-list .contact-item .title {
  font-size: 18.2px;
  font-weight: 600;
  margin-bottom: 15px;
}
.section .contact-list .contact-item .description {
  font-size: 14px;
  color: #254560;
  text-align: justify;
}
.section .contact-list .contact-item .description p {
  margin-top: 10px;
  margin-bottom: 0;
}
.section .contact-list .contact-item:hover .icon span {
  transform: rotateY(180deg);
}
.section .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.section .service-list .service-item {
  flex: 1;
  padding: 30px;
  padding-top: 50px;
  border-radius: 25px;
  position: relative;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
}
.section .service-list .service-item .image {
  height: 80px;
  width: 80px;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: -40px;
  left: 30px;
  background-color: #ee212b;
  border-radius: 15px;
}
.section .service-list .service-item .icon {
  position: absolute;
  top: -40px;
  left: 30px;
  background-color: #ee212b;
  border-radius: 15px;
  height: 80px;
  width: 80px;
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;
}
.section .service-list .service-item .icon span {
  font-size: 35px;
  color: #ffffff;
  transition: transform 0.6s;
}
.section .service-list .service-item .title {
  font-size: 18.2px;
  font-weight: 600;
  margin-bottom: 15px;
}
.section .service-list .service-item .description {
  font-size: 14px;
  color: #254560;
  text-align: justify;
}
.section .service-list .service-item .description p {
  margin-top: 10px;
  margin-bottom: 0;
}
.section .service-list .service-item:hover .icon span {
  transform: rotateY(180deg);
}
.section .project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-top: 40px;
}
.section .project-list .project-item {
  padding: 30px;
  padding-top: 50px;
  position: relative;
  flex: 1;
  aspect-ratio: 1/1;
  max-width: 100%;
}
.section .project-list .project-item .image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(1);
  border-radius: 25px;
  transition: filter 0.4s;
  box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
}
.section .project-list .project-item .info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background-color: rgba(238, 33, 43, 0.8);
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 15px;
  transform: perspective(400px) rotateX(90deg) scaleY(0.5);
  -webkit-transform: perspective(400px) rotateX(90deg) scaleY(0.5);
  -ms-transform: perspective(400px) rotateX(90deg) scaleY(0.5);
  transform-origin: center;
  overflow: hidden;
  transition: transform 0.6s;
}
.section .project-list .project-item .info .title {
  font-size: 18.2px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 0;
  margin-left: -150px;
  transition: margin-left 0.4s;
}
.section .project-list .project-item .info .description {
  font-size: 14px;
  color: #ffffff;
  margin-left: -150px;
  transition: left 0.4s;
}
.section .project-list .project-item .info .description p {
  margin-top: 10px;
  margin-bottom: 0;
}
.section .project-list .project-item .info .services {
  font-size: 12.6px;
  margin-top: 10px;
}
.section .project-list .project-item:hover .info {
  transform: perspective(400px) rotateX(0deg) scaleY(1);
  -webkit-transform: perspective(400px) rotateX(0deg) scaleY(1);
  -ms-transform: perspective(400px) rotateX(0deg) scaleY(1);
  transform-origin: center;
}
.section .project-list .project-item:hover .info .title, .section .project-list .project-item:hover .info .description {
  margin-left: 0;
  transition: margin-left 0.8s;
}
.section .project-list .project-item:hover .image {
  filter: brightness(0.4);
}
.section .project-list.project-list-gallery .project-item {
  width: calc(33.3333333333% - 20px);
  flex: auto;
  overflow: hidden;
  cursor: pointer;
}
.section .project-list.project-list-gallery .project-item .info {
  bottom: -100%;
  left: 30px;
  right: 30px;
  transition: bottom 0.6s;
  transform: none;
  -webkit-transform: none;
  -ms-transform: none;
}
.section .project-list.project-list-gallery .project-item .info .title,
.section .project-list.project-list-gallery .project-item .info .description {
  margin-left: 0;
}
.section .project-list.project-list-gallery .project-item:hover .info {
  bottom: 30px;
}
.section .services .service-item {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.section .services .service-item .service-image {
  flex: 1;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}
.section .services .service-item .service-text {
  flex: 2;
  font-size: 14px;
  color: #254560;
  text-align: justify;
}
.section .services .service-item .service-text .header {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.section .services .service-item .service-text .sub-header {
  font-size: 14px;
  color: #254560;
  margin-bottom: 20px;
}
.section .aboutus {
  text-align: center;
}
.section .aboutus .header {
  font-size: 25.2px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ee212b;
}
.section .aboutus .sub-header {
  font-size: 16.8px;
  color: #254560;
  text-align: justify;
}
.section .aboutus-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.section .aboutus-content .aboutus-image {
  flex: 1;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 1/1;
}
.section .aboutus-content .aboutus-text {
  flex: 2;
  font-size: 14px;
  color: #254560;
  text-align: justify;
}
.section .aboutus-content .aboutus-text .header {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.section .aboutus-content .aboutus-text .sub-header {
  font-size: 14px;
  color: #254560;
  margin-bottom: 20px;
}

.section.portfolio .cards .card {
  box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
}

.contact-form {
  display: flex;
  justify-content: flex-start;
  padding: 40px;
  border-radius: 15px;
  background-color: #315575;
}
.contact-form form {
  flex: 1;
}
.contact-form .contact-map {
  flex: 1;
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form textarea {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  outline: none;
}
.contact-form label {
  color: #ffffff;
}

.form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form .form-row label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}
.form .form-row input[type=text],
.form .form-row input[type=email],
.form .form-row input[type=tel],
.form .form-row textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #b4b4b4;
  border-radius: 5px;
  resize: vertical;
  font-family: "Poppins", sans-serif;
}
.form .required {
  color: #ee212b;
}

.btn {
  padding: 13.5px;
  font-size: 14px;
  border: none;
  background-color: #9e9e9e;
  color: #000000;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  font-family: "Poppins", sans-serif;
}
.btn:hover, .btn:focus {
  background-color: #9e9e9e;
  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background-color: #ee212b;
  color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: rgb(204.3514644351, 15.6485355649, 24.8535564854);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.row .col-4 {
  width: calc((100% - 40px) / 3);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1500;
}
.modal .close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
}
.modal .prev-button {
  position: absolute;
  top: 50%;
  left: 20px;
  font-size: 42px;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}
.modal .next-button {
  position: absolute;
  top: 50%;
  right: 20px;
  font-size: 42px;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}
.modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 90%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .modal-content .modal-image {
  max-height: 100%;
  max-width: 100%;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  .home-banner {
    top: 70px;
    margin-bottom: 70px;
  }
  .section .service-list {
    flex-direction: column;
  }
  .section .project-list {
    flex-direction: column;
  }
  .section .project-list .project-item {
    padding-top: 100%;
  }
  .section .project-list.project-list-gallery .project-item {
    width: 100%;
    flex: 1;
  }
  .section .contact-list {
    flex-direction: column;
  }
  .section .cards {
    flex-direction: column;
  }
  .section .aboutus-content {
    flex-direction: column;
  }
  .section .services .service-item {
    flex-direction: column;
  }
  .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .row .col-4 {
    width: 100%;
  }
}
