@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

.barbana {
  all: initial;
  font-family: 'Orbitron', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9f9f7, #e6e6e4);
  padding: 1rem 1rem;
  min-height: 150px;
  position: relative;
  text-align: center;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.barbana *,
.barbana *::before,
.barbana *::after {
  all: unset;
  box-sizing: border-box;
  font-family: inherit;
}

.barbana__title {
  display: inline-block;
  position: relative;
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.3rem);
  font-weight: 450;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1e293b;
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  z-index: 1;
}

.barbana__mask-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: linear-gradient(to right, #1e293b 0%, #1e293b 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: barbana__mask-wipe 1.8s ease-out forwards;
}

.barbana__underline {
  display: block;
  height: 3px;
  width: 70%;
  background-color: #1e293b;
  margin: 0.5rem auto 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: barbana__underline-slide 0.6s ease-out forwards;
  animation-delay: 1.9s;
  opacity: 0;
  position: relative;
  z-index: 1;
}

@keyframes barbana__mask-wipe {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

@keyframes barbana__underline-slide {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.barbana__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.barbana__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .barbana {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .barbana__title {
    font-size: 1.2rem;
    white-space: normal;
  }

  .barbana__underline {
    width: 50%;
  }
}

@media (max-width: 1024px) {
  .barbana {
    padding: 2.5rem 1rem;
    max-width: 100%;
  }
}
