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

canvas{
position:fixed;
inset:0;
z-index:1;
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;
  color:#FFD700;
  animation:colorShift 18s linear infinite;
}

#heroSubText{
  font-family:'Nastaliq', serif;
  font-size:35px;
  margin:5px auto 0;
  color:#FFD700;
  animation:colorShift 18s linear infinite;
}

@keyframes fadeDown{
  from{opacity:0; transform:translateY(-400px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes colorShift{
  0%   { color: #FF0000; }
  14%  { color: #FF7F00; }
  28%  { color: #FFFF00; }
  42%  { color: #00FF00; }
  57%  { color: #00FFFF; }
  71%  { color: #E0E0FF; }
  85%  { color: #FF00FF; }
  100% { color: #FF0000; }
}

.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;
  top: 300px; 
  left: 88px;
  transform: translateX(-50%);
  z-index: 3;
}

.enamad-box img {
  width: 80px;
  height: auto;
  cursor: pointer;
}

.nasr-logo{
  width:163px !important;
  height:auto;
  margin-top:3px;
  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;
  }
  
.enamad-box {
  position: fixed;
  top: 359px; 
  left: 88px;
  transform: translateX(-50%);
}

.enamad-box img {
  width: 80px;
  height: auto;
  cursor: pointer;
}
}
