.counterContainer {
  position: relative;
  padding: 144px 0;
  /* background-position: 0 -300px; */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-image: url(../../images/counterBg.jpg);
}
.counterContainer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.7);
}
.counterContainer .container {
  z-index: 2;
}
.counterBox {
  text-align: center;
  backdrop-filter: blur(10px) saturate(2.3);
  background-color: #0000000d;
  border: 1px solid;
  position: relative;
  corner-shape: squircle;
  border-radius: 30px;
  z-index: 10000;
  padding: 40px 0 20px;
  transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: 6s ease-in-out infinite float;
  overflow: hidden;
  margin-top: 10px;
}
.counterBox span {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 96px;
  font-weight: 500;
  line-height: 1.25em;
  color: #ffd910;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95),
    rgba(220, 240, 255, 0.9),
    rgba(255, 255, 255, 0.95)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 0 10px rgba(180, 220, 255, 0.15);
  animation: 6s ease-in-out infinite glassFlow;
}
.counterBox h4 {
  color: #fff;
  position: relative;
  z-index: 1;
  padding-top: 12px;
  font-size: 25px;
  margin-bottom: 0;
  height: 72px;
}
.counterBox h4:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  background: #ffd910;
  width: 46px;
  height: 4px;
}
.counterBox img {
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 190px;
  opacity: 0.65;
}
.counterBox-item:first-child .counterBox img {
  top: -13px;
  left: 47%;
}
.counterBox-item:nth-child(2n) .counterBox img {
  top: 1px;
  left: 45%;
  -webkit-transform: translateX(-50%) rotate(-34deg);
  transform: translateX(-50%) rotate(-34deg);
}
.counterBox-item:nth-child(3n) .counterBox img {
  top: -27px;
  left: 48%;
  -webkit-transform: translateX(-50%) rotate(14deg);
  transform: translateX(-50%) rotate(14deg);
}
.counterBox-item:nth-child(4n) .counterBox img {
  top: -3px;
  left: 47%;
  -webkit-transform: translateX(-50%) rotate(-29deg);
  transform: translateX(-50%) rotate(-29deg);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes glassFlow {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
/* ? */
.counterBox:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.counterBox::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18),
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-60%);
  transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.counterBox:hover::after {
  opacity: 1;
  transform: translateX(60%);
}

.counterBox:hover span {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 255, 255, 0.35),
    0 0 45px rgba(200, 220, 255, 0.35);
  transform: scale(1.03);
}
.counterBox img {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.counterBox:hover img {
  transform: translateX(-50%) rotate(25deg) scale(1.1) !important;
  opacity: 0.9;
}
.counterBox:hover h4::before {
  box-shadow: 0 0 14px rgba(255, 217, 16, 0.8);
}

@media (max-width: 768px) {
  .counterBox span {
    font-size: 57px;
  }
  .counterBox h4 {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .counterBox h4 {
    font-size: 18px;
  }
  .counterBox {
    padding: 30px 0 12px;
  }
}
