@font-face {
  font-family: 'Nastaliq';
  src: url('/fonts/IranNastaliq.ttf') format('truetype');
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;

  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

html {
  overflow-y: scroll;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

body {
  margin: 0;
  direction: rtl;
  color: #D2A679;
  position: relative;
  font-family: Vazirmatn, sans-serif;
  background-color: #000;
}

.hero {
  height: 100vh;
  position: relative;
  background: #000;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: #000;
  right: 10%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glass {
  background: transparent;
  padding: 0;
  position: fixed;
  top: 17%;
  left: 0;
  width: 100%;
  z-index: 2;
  text-align: center;
  direction: ltr;
  animation: fadeDown 10s ease forwards;
}

#heroText {
  font-family: 'Nastaliq', serif;
  font-size: 80px;
  line-height: 1.8;
  margin: 0;
  animation: colorShift 50s linear infinite;
}

#heroSubText {
  font-family: 'Nastaliq', serif;
  font-size: 35px;
  line-height: 2.1;
  margin: 5px auto 0;
  animation: colorShift 50s linear infinite;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-400px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes colorShift {
  0% {
    color: #F5F7FA;
  }

  20% {
    color: #FFF700;
  }

  40% {
    color: #FF8C00;
  }

  60% {
    color: #B100FF;
  }

  80% {
    color: #FFF700;
  }

  100% {
    color: #F5F7FA;
  }
}

.music-note {
  position: absolute;
  font-size: 30px;
  animation: rise 5s linear infinite;
  opacity: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes rise {
  0% {
    transform: translateY(300px);
    opacity: 1;
  }

  100% {
    transform: translateY(-300px);
    opacity: 0;
  }
}

.gallery-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  direction: ltr;
  unicode-bidi: isolate;
  opacity: 0.4;
  z-index: 1;

  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.gallery-wrapper::after {
  content: "Maysam HajiAghajani";
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  color: rgba(255, 215, 0, 0.28);
  font-size: 22px;
  font-weight: bold;
  font-family: Vazirmatn, sans-serif;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.gallery {
  display: flex;
  gap: 10px;
  animation: scrollGallery 200s linear infinite;

  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.gallery img {
  width: 850px;
  height: 550px;
  object-fit: cover;
  border-radius: 10px;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;

  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.gallery img:hover {
  transform: scale(1.05) rotate(-1deg);
  filter: brightness(1.2);
}

@keyframes scrollGallery {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-glass {
    position: absolute;
    top: 25%;
    left: 0%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #heroText {
    font-size: 50px;
  }

  #heroSubText {
    font-size: 25px;
  }

  .gallery-wrapper {
    height: 100vh;
    overflow: hidden;
    align-items: center;
  }

  .gallery-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
    pointer-events: auto;
  }

  .gallery-wrapper::after {
    right: 12px;
    bottom: 12px;
    font-size: 15px;
    z-index: 5;
  }

  .gallery {
    flex-direction: row;
    gap: 10px;
    animation: scrollGallery 250s linear infinite;
  }

  .gallery img {
    height: 100vh;
    width: auto;
    object-fit: cover;
    pointer-events: none;
  }
}
