@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");



.btnhir{
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  all: unset;
  font-size: 18px;
  padding: 0.8rem 3rem;
  background-color: #000000;
  color: black;
  line-height: 1.5;
  font-weight: 600;
  border: 2px solid white;
  border-radius: 1000px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
}

.btnhir::before,
.btnhir::after {
  content: "";
  position: absolute;
  background: #000;
  background: #ff0;
  width: 100%;
  height: 102%;
  pointer-events: none;
  transform: skew(30deg) translateY(0);
  transition: transform 0.3s ease;
  z-index: -1;
}
.btnhir::before {
  --direction: 1;
  top: -103%;
  left: -70%;
}
.btnhir::after {
  --direction: -1;
  top: 102%;
  left: 69%;
}

.btnhir:hover::before,
.btnhir:hover::after {
  transform: skew(30deg) translateY(calc(var(--direction) * 100%));
}

.text-containerhir {
  display: block;
  overflow: hidden;
  position: relative;
}
.texthir {
  display: block;
  transition: 0.3s;
}
.btnhir:hover .texthir:nth-child(1) {
  color: white;
  translate: 0 80%;
}

.texthir:nth-child(2) {
  color: rgb(0, 0, 0);
  position: absolute;
  inset: 0;
  translate: 0 -80%;
}
.btnhir:hover .texthir:nth-child(2) {
  transition-delay: 0.1s;
  translate: 0 0;
}
.aa{
  color: #ff0;
}