/* حذف بک‌گراند صفحه و استفاده از کل صفحه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* نمایش ایمیل در سمت راست بالا با بک‌گراند */
.email-info {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1rem;
  color: #fff;
  background-color: rgba(150, 0, 0, 0.7); /* بک‌گراند زرشکی شفاف */
  padding: 5px 15px;
  border-radius: 10px;
  z-index: 10;
}

/* استایل اسلایدشو پس‌زمینه */
.slideshow {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* استایل منوها با ظاهر حرفه‌ای‌تر */
.main-menu {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.main-menu a {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  background: rgba(255,20, 147, 0.9); /* بک‌گراند منوها */
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* سایه برای جلوه بیشتر */
  transition: all 0.3s ease;
  opacity: 0; /* ابتدا نامرئی */
  animation: slideIn 1s ease forwards;
}

.main-menu a:nth-child(1) { animation-delay: 0.8s; }
.main-menu a:nth-child(2) { animation-delay: 1.3s; }
.main-menu a:nth-child(3) { animation-delay: 1.5s; }
.main-menu a:nth-child(4) { animation-delay: 1.7s; }
.main-menu a:nth-child(5) { animation-delay: 1.9s; }
.main-menu a:nth-child(6) { animation-delay: 2.1s; }

/* افکت تغییر رنگ هنگام حرکت موس روی منوها */
.main-menu a:hover {
  background: #a90000; /* رنگ زرشکی روشن‌تر هنگام هاور */
  color: #fff;
  transform: translateY(-3px); /* حرکت جزئی به بالا برای جلوه پویا */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* افزایش سایه هنگام هاور */
}

/* انیمیشن ورود منوها */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* واکنش‌گرایی برای دستگاه‌های با عرض کمتر از 768 پیکسل (مانند موبایل) */
@media (max-width: 768px) {
  /* اطمینان از اینکه اندازه فونت و padding مناسب دستگاه‌های کوچک‌تر باشد */
  .email-info {
    font-size: 0.9rem;
    padding: 4px 12px;
    top: 8px;
    right: 10px;
  }

  /* تنظیم اندازه منو برای دستگاه‌های کوچک‌تر */
  .main-menu {
    flex-wrap: wrap;
    gap: 15px;
  }

  /* اطمینان از قرارگیری اسلایدشو در مرکز صفحه */
  .slide {
    background-size: cover;
    background-position: center;
  }
}
