@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap");

body {
  background: url(img/001%202.jpg) no-repeat top center;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  font-family: "Vazirmatn", sans-serif;
  margin: 0%;
  padding: 0%;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 100%;
  position: relative;
}

.sidebar-wrapper {
  height: 300%;
  background: #313131;
  padding: 40px 30px;
  border-radius: 25px;
  box-shadow: 0 0 35px 14px rgba(245, 241, 148, 0.4);
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-wrapper.left {
  left: 50px;
}

.sidebar-wrapper.right {
  right: 50px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.menu-box {
  background: #474747;
  padding: 20px 28px;
  border-radius: 18px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #c8c8c8;
  box-shadow: 0 0 0px 5px rgba(121, 121, 121, 0.4);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  display: block;
  min-width: 150px;
  cursor: pointer;
  user-select: none;
}

.menu-box span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #a9a9a9;
}

.menu-box:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px 6px rgba(255, 223, 100, 0.6);
  background-color: #5a5a5a;
}

.center-text {
  color: #fafcaa;
  text-align: center;
  background: #313131;
  padding: 35px 75px;
  border-radius: 22px;
  box-shadow: 0 0 35px 14px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.center-text h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  border-bottom: none; /* حذف خط زیر نوشته */
}

.center-text p {
  font-size: 1rem;
  color: #757171;
  margin-top: 0;
}
/* حذف کامل نشانگر پیش‌فرض از همه المنت‌ها */
*,
button,
a,
input,
textarea,
select {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.2);
  border: 2px solid #ffcc00;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s ease-out, background 0.3s, box-shadow 0.3s;

  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.2);
}

.cursor.click {
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(255, 204, 0, 0.8);
}
/* حذف کامل نشانگر پیش‌فرض از همه المنت‌ها */
*,
button,
a,
input,
textarea,
select {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.2);
  border: 2px solid #ffcc00;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s ease-out, background 0.3s, box-shadow 0.3s;

  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.2);
}

.cursor.click {
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(255, 204, 0, 0.8);
}

@media (max-width: 768px) {
  body {
    overflow: hidden;
  }

  .menu-box {
    width: 100%;
    background: #474747;
    padding: 20px 0px;
    border-radius: 18px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #c8c8c8;
    box-shadow: 0 0 0px 5px rgba(121, 121, 121, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    display: block;
    min-width: 0;
    cursor: pointer;
    user-select: none;
  }

  .container {
    position: relative;
    margin-bottom: 110%;
    width: 500px;
  }

  .sidebar-wrapper {
    margin-top: 75%;
    width: 20%;
    height: 200%;
  }

  .center-text {
    width: 70%;
    padding: 20px 25px;
  }
}

/* انیمیشن نور طلایی رد شونده */
.gold-light {
  position: fixed;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100vh;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(245, 241, 148, 0) 0%,
    rgba(245, 241, 148, 0.25) 40%,
    rgba(245, 241, 148, 0.8) 50%,
    rgba(245, 241, 148, 0.25) 60%,
    rgba(245, 241, 148, 0) 100%
  );
  filter: blur(25px);
  animation: slideLight 3.5s ease forwards;
  z-index: 9999;
}

@keyframes slideLight {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}
#content {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 1.2s ease, filter 1.2s ease;
  padding: 20px;
}

/* وقتی لودینگ تموم شد */
#content.show {
  opacity: 1;
  filter: blur(0);
}

/* کل صفحه لودینگ */
#loader {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.85); /* مشکی مات و نیمه شفاف */
  backdrop-filter: blur(12px); /* بلور */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  user-select: none;
  transition: opacity 0.8s ease;
}

/* پنهان کردن با fadeout */
#loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* حلقه‌ها */
.rings {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring {
  position: absolute;
  border: 6px solid transparent;
  border-top-color: #d4af37;
  border-radius: 50%;
  animation-timing-function: cubic-bezier(0.68, 0.55, 0.265, 1.55);
  box-shadow: 0 0 8px #d4af37, 0 0 15px #d4af37;
}

.ring1 {
  width: 120px;
  height: 120px;
  top: 0;
  left: 0;
  animation: spinClockwise 1.8s linear infinite;
}

.ring2 {
  width: 90px;
  height: 90px;
  top: 15px;
  left: 15px;
  border-top-color: #bbb;
  box-shadow: 0 0 6px #bbb, 0 0 12px #bbb;
  animation: spinCounter 1.2s linear infinite;
}

.ring3 {
  width: 60px;
  height: 60px;
  top: 30px;
  left: 30px;
  animation: spinClockwise 1s linear infinite;
}

@keyframes spinClockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinCounter {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* متن بارگذاری */
#loader-text {
  margin-top: 30px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px #d4af37, 0 0 20px #d4af37;
  animation: glowText 2.5s ease-in-out infinite;
}

@keyframes glowText {
  0%,
  100% {
    text-shadow: 0 0 8px #d4af37, 0 0 20px #d4af37, 0 0 30px #d4af37;
    color: #d4af37;
  }
  50% {
    text-shadow: 0 0 4px #fff, 0 0 15px #fff, 0 0 25px #d4af37;
    color: #fff;
  }
}
