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

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

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


.background-pic{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:0;
  background-color:#000;
  /*background:url('/images/background.webp') center/cover no-repeat fixed;*/
}


canvas{
position:fixed;
inset:0;
z-index:1;
pointer-events:none;
}

.hero-glass{
  background: transparent;
  padding: 0;
  position: fixed;
  top:10%;
  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;
  color:#FFD700;
  animation:colorShift 18s linear infinite;
}

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

/* ----------------------------------------
   Cinematic Logo Box
---------------------------------------- */
.cinematic-logo-box {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;

  display: flex;
  align-items: center;
  gap: 16px;

  background: rgba(0, 0, 0, 0.35);
  padding: 8px 18px;
  border-radius: 14px;
  backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.07);

  transition: background 0.4s ease, border 0.4s ease, box-shadow 0.3s ease;
}

/* رفلکس نور رعد */
.cinematic-logo-box.flash {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 25px rgba(255,255,255,0.65);
}

/* ----------------------------------------
   لوگوها — Glow + Hover
---------------------------------------- */
.cinematic-logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: nowrap;

  margin-right: auto;
  margin-left: 0;

  padding: 12px 16px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow:
    0 6px 20px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.02);

  width: fit-content;
  max-width: 100%;
}

.cinematic-logo-box a,
.cinematic-logo-box > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.cinematic-logo-box img,
#zibal-trust,
#zibal-trust img,
#zibal-trust svg {
  display: block;
  height: 52px !important;
  width: auto !important;
  max-width: 110px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.18));
}

.cinematic-logo-box img:hover,
#zibal-trust:hover,
#zibal-trust img:hover,
#zibal-trust svg:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.32));
}

/* تنظیم جزئی برای هر لوگو */
.eanjoman-logo img {
  height: 50px !important;
}

.enamad-logo img {
  height: 54px !important;
}

.nasr-logo img {
  height: 52px !important;
}

#zibal-trust,
#zibal-trust img,
#zibal-trust svg {
  height: 48px !important;
}

@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:55px;
  }
    #heroSubText {
    font-size:25px;
  }

  .cinematic-logo-box {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    gap: 12px;
    padding: 10px 14px;
  }

}
