@font-face {
  font-family: 'Nastaliq';
  src: url('/fonts/IranNastaliq.ttf') format('truetype');
}

html {
  overflow-y: scroll;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  width: 0px; background: transparent;
}

body{
  margin:0;
  font-family:sans-serif;
  direction:rtl;
  color:#D2A679;
  position: relative;
}

html, body {
  margin:0;
  padding:0;
  height:100%;
  background:#0b0b0b;
  overflow: hidden;
}

.hero{
  height:100vh;
  position:relative;
  background:
    radial-gradient(circle at top, rgba(255,215,0,0.15), transparent 40%),
    linear-gradient(180deg,#0c0c0c,#111);
  overflow:hidden;
}

.hero::after{
  content:''; 
  position:absolute;
  width:420px;
  height:420px;
  background:radial-gradient(circle,rgba(255,215,0,0.18),transparent 70%);
  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.2;
  margin:0;
  animation:colorShift 50s linear infinite;
}

#heroSubText{
  font-family:'Nastaliq', serif;
  font-size:35px;
  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;
}

@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;
}

.gallery{
  display:flex;
  gap:10px;
  animation:scrollGallery 200s linear infinite;
}

.gallery img{
  width:850px;
  height:520px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
  transition:transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
}
.gallery img:hover{
  transform:scale(1.05) rotate(-1deg);
  box-shadow:0 15px 30px rgba(255,215,0,0.5);
  filter:brightness(1.2);
}
@keyframes scrollGallery{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

.credit{
  position:fixed;
  bottom:5px;
  right:5px;
  left:auto;
  background:rgba(0,0,0,0.1);
  backdrop-filter:blur(6px);
  padding:6px 10px;
  border-radius:10px;
  color:#D2A679;
  font-size:12px;
  cursor:pointer;
  z-index:3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 4;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content:center; align-items:center;
  cursor:pointer;
}

.modal-content {
  background-color: #0b0b0b;
  padding: 5px;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  text-align:center;
  position: relative;
  cursor:pointer;
}

.modal-content img {
  width: 100%;
  height: auto;
  object-fit:contain;
  border-radius:12px;
}

.modal-link{
  display:inline-block; margin-top:10px;
  font-size:18px; color:#FFD700; text-decoration:none;
}
.modal-link:hover{
  color:#FF8C00; text-decoration:underline;
}

.enamad-box {
  position: fixed;
  bottom:2px;
  left: 2px;
  z-index: 3;
}

.enamad-box img {
  width: 80px;
  height: auto;
  display:block;
}

@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{
    flex-direction: row;
    gap:10px;
    animation:scrollGallery 370s linear infinite;
  }
  .gallery img{
    height:100vh;
    width:auto;
    object-fit:cover;
  }
}
