/* ===========================
   SS Enterprises Service Cards
   Inspired by Uiverse
=========================== */

.service-card {
  position: relative;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: #f7fbff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 30px hwb(0 25% 28% / 0.078);

  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

/* ---------- FRONT ---------- */

.service-front {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 2;

  transition: 0.45s;
}

.service-front h3 {
  position: relative;
  z-index: 5;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.service-front::before {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  z-index: 1;
}

/* ---------- HOVER LAYER ---------- */

.service-back {
  position: absolute;
  inset: 0;

  background: #009bd3;

  color: #fff;

  padding: 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  opacity: 0;

  z-index: 5;

  transition: 0.45s;
}

.service-back h3 {
  color: #fff;
  margin-bottom: 15px;
}

.service-back p {
  color: #fff;
  font-size: 15px;
  line-height: 1.7;

  margin-bottom: 22px;
}

/* ---------- UIVERSE CORNERS ---------- */

.service-card:hover::before,
.service-card:hover::after {
  opacity: 0;
}

.service-card::before,
.service-card::after {
  content: "";

  position: absolute;

  width: 18%;
  height: 18%;

  background: #009bd3;

  z-index: 2;

  transition: 0.5s;
}

.service-card::before {
  top: 0;
  right: 0;

  border-radius: 0 18px 0 100%;
}

.service-card::after {
  bottom: 0;
  left: 0;

  border-radius: 0 100% 0 18px;
}

.service-card:hover::before,
.service-card:hover::after {
  width: 100%;
  height: 100%;

  border-radius: 18px;
}

/* ---------- ANIMATION ---------- */

.service-card:hover .service-front {
  opacity: 0;
  transform: scale(0.8);
}

.service-card:hover .service-back {
  opacity: 1;
}

/* ---------- BUTTON ---------- */

.service-back .btn-uiverse {
  margin-top: 5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .service-card {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .service-card {
    height: 280px;
  }

  .service-front i {
    font-size: 48px;
  }
}

.air-freight .service-front {
  background: url("../img/AirFreight.jpg") center center/cover;
}

.ocean-freight .service-front {
  background: url("../img/OceanFreight.jpg") center center/cover;
}

.ground-shipping .service-front {
  background: url("../img/GroundShipping.jpg") center center/cover;
}

.warehousing .service-front {
  background: url("../img/Warehousing.jpg") center center/cover;
}

.customs-clearance .service-front {
  background: url("../img/CustomClerance.jpg") center center/cover;
}

.end-logistics .service-front {
  background: url("../img/EtoELogistics.jpg") center center/cover;
}
