@font-face {
  font-family: 'Rubik-Bold';
  src: url('../font/Rubik-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  background-color: #000000;
  color: #ffffff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.glitch-overlay {
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

.carousel-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-item {
  scroll-snap-align: center;
}

.nav-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-line.active {
  width: 48px;
  background-color: white;
}

.nav-link {
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link.active {
  color: white;
}

.nav-link.active::after {
  opacity: 1;
}

@media (max-width: 767px) {
  nav > div {
    padding: 1rem 1.25rem;
  }

  #home {
    min-height: 100svh;
    padding-top: 5.5rem;
  }

  #home .carousel-container {
    padding-bottom: 6.5rem;
  }

  #home .carousel-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #home .carousel-item > div {
    aspect-ratio: 4 / 5;
  }

  #home .carousel-item img {
    object-position: center;
  }

  #home .carousel-item .absolute.bottom-10 {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  #home .carousel-item .absolute.bottom-10 span {
    display: inline-block;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    word-break: break-word;
  }

  #home .nav-line {
    width: 1.75rem;
  }

  #home > .relative.flex-1.group > button {
    top: auto;
    bottom: 2rem;
    transform: none;
    opacity: 1;
  }

  #home > .relative.flex-1.group > button:first-of-type {
    left: 1rem;
  }

  #home > .relative.flex-1.group > button:last-of-type {
    right: 1rem;
  }

  #home > .relative.flex-1.group > button .material-symbols-outlined {
    font-size: 2.5rem;
  }
}
