.connection-section {
  padding: 50px 0;
  overflow: hidden;
}

.connection-section .container-section .heading-title-section {
  margin-bottom: 50px;
}

.connection-section .container-section .custom-row .cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.connection-section .container-section .custom-row .cards-wrapper .card-box {
  width: 400px;
  text-align: center;

  color: #fff;
  position: relative;
  transition: 0.4s;
  z-index: 1;
}

.connection-section .container-section .custom-row .cards-wrapper .center-box {
  width: 420px;
  padding: 40px 20px;

  background: rgba(0, 20, 50, 0.6);
  box-shadow:
    inset 0px 0px 6px #0000002f,
    0px 3px 6px #0000004e;
  backdrop-filter: blur(25px);
  border-radius: 8px;
  z-index: 3;
}

.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box:first-child {
  margin-right: -40px;
  background: transparent linear-gradient(95deg, #26a165 0%, #1375a5 100%) 0% 0%
    no-repeat padding-box;
  box-shadow: 0px 0px 6px #00000045;
  padding: 10px 80px 10px 40px;
}

.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box:last-child {
  margin-left: -40px;
  background: transparent linear-gradient(267deg, #26a165 0%, #1375a5 100%) 0%
    0% no-repeat padding-box;
  box-shadow: 0px 0px 6px #00000045;
  padding: 10px 40px 10px 80px;
}

.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box
  .count {
  font-size: 80px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box
  .sub-title {
  font-size: 18px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

/*============================ hover effect ==========================*/
.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box
  .card-inner {
  position: relative;
}
.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box
  .card-inner
  .count {
  position: relative;
  z-index: 2;
  line-height: 1;
  display: inline-block;
}
.connection-section
  .container-section
  .custom-row
  .cards-wrapper
  .card-box
  .card-inner
  .small-text {
  position: absolute;

  top: 0;
  left: 50%;
  transform: translate(-50%, -120%) scale(0.6);

  font-size: 80px;
  font-weight: 700;
  line-height: 1;

  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.connection-section
  .container-section
  .custom-row
  .cards-wrapper:hover
  .card-box:not(.center-box)
  .small-text {
  animation: perfectDrop 0.6s ease forwards;
}

@keyframes perfectDrop {
  0% {
    transform: translate(-50%, -120%) scale(0.6);
    opacity: 0;
  }

  70% {
    transform: translate(-50%, 0%) scale(1);
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -2px);
    opacity: 0;
  }
}

/*=========================== media query ==========================*/

@media (max-width: 991px) {
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:hover
    .small-text {
    animation: none !important;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .card-inner
    .small-text {
    transform: none !important;
    opacity: 0 !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .count {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 15px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:first-child {
    padding: 10px 50px 10px 25px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:last-child {
    padding: 10px 25px 10px 50px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .sub-title {
    font-size: 16px;
    margin-bottom: 5px;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:first-child {
    padding: 10px 45px 10px 5px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:last-child {
    padding: 10px 5px 10px 45px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .count {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .sub-title {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .center-box {
    padding: 30px 20px;
  }
}

@media (min-width: 0px) and (max-width: 575.98px) {
  .connection-section .container-section .heading-title-section {
    margin-bottom: 20px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .count {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box
    .sub-title {
    margin-bottom: 0;
    font-size: 10px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:first-child {
    margin-right: -18px;
    height: 75px;
    padding: 10px 30px 10px 10px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .card-box:last-child {
    margin-left: -18px;
    height: 75px;
    padding: 10px 10px 10px 30px;
  }
  .connection-section
    .container-section
    .custom-row
    .cards-wrapper
    .center-box {
    width: 350px;
    padding: 26px 16px;
  }
  .connection-section {
    padding: 10px 0;
  }
}
