/* Word Pull Up css  */
.ms-header__title {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.4);
}

.ms-slider {
  display: inline-block;
  height: 1.5em;
  overflow: hidden;
  vertical-align: middle;
  -webkit-mask-image: linear-gradient(
    transparent,
    white,
    white,
    white,
    transparent
  );
  mask-image: linear-gradient(transparent, white, white, white, transparent);
  mask-type: luminance;
  mask-mode: alpha;
}

.ms-slider__words {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  -webkit-animation-name: wordSlider;
  animation-name: wordSlider;
  -webkit-animation-timing-function: ease-out;
  animation-timing-function: ease-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-duration: 7s;
  animation-duration: 7s;
}

.ms-slider__word {
  display: block;
  line-height: 1.3em;
  text-align: left;
}

@-webkit-keyframes wordSlider {
  0%,
  27% {
    transform: translateY(0%);
  }
  33%,
  60% {
    transform: translateY(-25%);
  }
  66%,
  93% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(-75%);
  }
}

@keyframes wordSlider {
  0%,
  27% {
    transform: translateY(0%);
  }
  33%,
  60% {
    transform: translateY(-25%);
  }
  66%,
  93% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(-75%);
  }
}

/* Word Pull Up css  */
.sparkles-container {
  position: relative;
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  width: 21px;
  height: 21px;
  animation: sparkle-animation 0.8s infinite;
}

@keyframes sparkle-animation {
  0% {
    opacity: 0;
    transform: scale(0) rotate(75deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(120deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(150deg);
  }
}

/*  Word Pull Up css End */

.header-brand {
  position: relative;
  overflow: hidden;
}

.brand-marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: marquee 20s linear infinite;
}

.brand-row {
  display: flex;
  gap: 7rem;
  animation: marquee 20s linear infinite;
}

.brand-item {
  display: inline-block;
  height: 40px;
}

.brand-item img {
  display: block;
  height: 100%;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.reverse {
  animation-direction: reverse;
}

/* For hover effects */
.brand-item:hover {
  filter: brightness(1.2);
}
