.pain {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px;
  margin-right: 129px;
}

.pain-agin {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -154px;
}

.line-image1 {
  margin-right: -191px;
  right: 359px;
  width: 226px;
  margin-right: -282px;
  margin-bottom: -69px;
}

.line-image4 {
  margin-left: -90px;
  width: 88px;
  margin-bottom: -80px;
  position: relative;
  z-index: 5;
}

.line-image2 {
  margin-left: -115px;
  width: 285px;
  position: relative;
  z-index: 2;
}
.line-image3 {
  width: 300px;
  position: relative;
  z-index: 6;
}
.line-image5 {
  width: 200px;
}
.line-image6 {
  width: 84px;
  margin-bottom: -157px;
}

.line-image7 {
  width: 320px;
  margin-bottom: 71px;
}
.one_cuntinar {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: -93px;
}

.line-image8 {
  width: 180px;
  margin-right: -274px;
  margin-bottom: -111px;
}

.line-image9 {
  width: 93px;
  padding-right: 248px;
  z-index: 4;
  position: relative;
}

/* ====== فقط هاور روی خود تصویر ====== */
.menu-link {
  display: inline-block;
  line-height: 0;
  border-radius: 0;
  /* حذف هرگونه فضای اضافی اطراف لینک */
}

.menu-link img {
  display: block;
  transition:
    transform 0.25s ease,
    filter 0.2s ease;
  backface-visibility: hidden; /* جلوگیری از لرزش در برخی مرورگرها */
}

/* فقط وقتی موس دقیقاً روی تصویر هست هاور اعمال بشه */
.menu-link:hover img {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.15));
}

/* اطمینان از اینکه مارجین‌های منفی باعث همپوشانی ناحیه هاور نمی‌شن */
.menu-item {
  overflow: visible;
  display: inline-block;
}

/* وسط چین کردن کل محتوا بدون تغییر در استایل‌های دیگه */
body {
  justify-content: center;
  overflow-x: hidden;
  background: linear-gradient(90deg, #ffa8f9bc, #ffe3f7);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.color-line-menu {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-right: 54px;
}

.menu-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

/* ========== 1. جلوگیری از جابجایی بقیه المان‌ها هنگام هاور ========== */
/* دلیل جابجایی: translateY در تصاویر باعث تغییر فضای اشغالی می‌شه */
/* راه حل: حذف translateY و فقط scale + سایه قوی برای حس بالا آمدن */

.menu-link img {
  display: block;
  transition:
    transform 0.25s ease,
    filter 0.2s ease;
  backface-visibility: hidden;
}

.menu-link:hover img {
  transform: scale(
    1.05
  ); /* فقط بزرگ بشه، نه بالا بیاد تا جابجایی نداشته باشه */
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.2));
}

/* برای حفظ حس "بالا اومدن" بدون جابجایی، یک سایه بزرگتر کافیه */

/* ========== 2. دایره بازشونده با رنگ متفاوت برای هر عکس ========== */
.menu-item {
  position: relative;
}

.menu-item::after {
  position: absolute;
  bottom: 20%;
  width: 65px;
  height: 65px;
  color: white;
  font-size: 13px;
  font-weight: bold;
  font-family: system-ui, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.2s;
  pointer-events: none;
  opacity: 0;
  transform: scale(0) rotate(-10deg);
  line-height: 1.3;
  padding: 5px;
  box-sizing: border-box;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.menu-item:hover::after {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* ===== رنگ و متن و موقعیت مخصوص هر عکس ===== */
/* عکس line-image1 */
.menu-item:has(.line-image1):hover::after {
  content: "درباه ما";
  left: 291px;
  bottom: 30%;
  background: #e60073; /* نارنجی-زرد */
  width: 126px;
  height: 128px;
}

/* عکس line-image2 */
.menu-item:has(.line-image2):hover::after {
  content: "درباه ما";
  right: 292px;
  bottom: 80%;
  background: #f8b715; /* آبی */
  width: 126px;
  height: 128px;
}

/* عکس line-image3 */
.menu-item:has(.line-image3):hover::after {
  content: "درباه ما";
  left: 112px;
  bottom: 80%;
  background: #65bfa6; /* بنفش */
  width: 126px;
  height: 128px;
}

/* عکس line-image4 */
.menu-item:has(.line-image4):hover::after {
  content: "درباه ما";
  left: 10px;
  bottom: 20%;
  background: #6056a1;
  width: 126px;
  height: 128px;
}

/* عکس line-image5 */
.menu-item:has(.line-image5):hover::after {
  content: "درباه ما";
  right: 2px;
  bottom: -9%;
  background: #f8b715;
  width: 126px;
  height: 128px;
}

/* عکس line-image6 */
.menu-item:has(.line-image6):hover::after {
  content: "درباه ما";
  left: -84px;
  bottom: -96%;
  background: #e60073;
  width: 111px;
  height: 110px;
}

/* عکس line-image7 */
.menu-item:has(.line-image7):hover::after {
  content: "درباه ما";
  right: 147px;
  bottom: 50%;
  background: #6056a1;
  width: 126px;
  height: 128px;
}

/* عکس line-image8 */
.menu-item:has(.line-image8):hover::after {
  content: "درباه ما";
  left: 144px;
  bottom: 48%;
  background: #65bfa6; /* آبی آسمانی */
  width: 126px;
  height: 128px;
}

/* عکس line-image9 */
.menu-item:has(.line-image9):hover::after {
  content: "درباه ما";
  right: 138px;
  bottom: 60%;
  background: #e60073; /* صورتی داغ */
  width: 126px;
  height: 128px;
}

.mnuee {
  display: flex;
  justify-content: space-around;
  align-items: anchor-center;
}

.mnue_log img {
  width: 120px;
}

.img_icom {
  width: 35px;
}

/* ===== فونت ایران سنس ===== */
@font-face {
  font-family: "IranSans";
  src: url("./fonts/IRANSansX-Medium.woff2") format("woff2");
  font-weight: 500; /* مدیوم */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IranSans";
  src: url("./fonts/IRANSansX-Bold.woff2") format("woff2");
  font-weight: 700; /* بولد */
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت به کل بدنه و همه المان‌ها */
* {
  font-family: "IranSans", system-ui, "Segoe UI", Tahoma, sans-serif;
}

/* در صورت تمایل، می‌توانید وزن خاصی برای منوها تنظیم کنید */
.menu-link .menu-label {
  font-weight: 500; /* مدیوم */
}

.mnue_log img,
.img_icom {
  /* اطمینان از اینکه فونت روی آیکون‌ها تأثیر نزارد (اختیاری) */
  font-family: inherit;
}

/* تنظیم فونت دایره‌های هاور */
.menu-item::after {
  font-family: "IranSans", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-weight: 500; /* مدیوم – اگر بولد می‌خوای عدد 700 بذار */
  font-size: 25px;
}

/* ============================================= */
/* RESPONSIVE DESIGN - بدون تغییر در چیدمان اصلی */
/* ============================================= */

/* صفحه‌های بزرگتر از 1400px (دسکتاپ عریض) - تغییری لازم نیست */
@media (max-width: 1400px) {
  .pain {
    margin-right: 80px;
    gap: 30px;
  }
  .pain-agin {
    margin-bottom: -120px;
  }
  .one_cuntinar {
    margin-top: 60px;
  }
}

/* تبلت و لپ‌تاپ کوچک (1024px) */
@media (max-width: 1024px) {
  body {
    padding: 1rem;
  }
  .color-line-menu {
    margin-right: 0;
    width: 100%;
    overflow-x: visible;
  }
  .menu-grid {
    width: 100%;
    padding: 0 10px;
  }

  /* تنظیم فواصل و مارجین‌های منفی */
  .pain {
    margin-right: 0;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pain-agin {
    margin-bottom: -80px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .one_cuntinar {
    margin-top: 40px;
    margin-bottom: -60px;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* کاهش سایز تصاویر به صورت نسبی */
  .line-image1 {
    width: 180px;
    margin-right: -200px;
    margin-bottom: -40px;
  }
  .line-image2 {
    width: 220px;
    margin-left: -80px;
  }
  .line-image3 {
    width: 240px;
  }
  .line-image4 {
    width: 70px;
    margin-left: -60px;
    margin-bottom: -50px;
  }
  .line-image5 {
    width: 160px;
  }
  .line-image6 {
    width: 70px;
    margin-bottom: -120px;
  }
  .line-image7 {
    width: 260px;
    margin-bottom: 50px;
  }
  .line-image8 {
    width: 140px;
    margin-right: -200px;
    margin-bottom: -80px;
  }
  .line-image9 {
    width: 75px;
    padding-right: 180px;
  }

  /* تنظیم موقعیت دایره‌ها برای تبلت */
  .menu-item:has(.line-image1):hover::after {
    left: 220px;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
  .menu-item:has(.line-image2):hover::after {
    right: 220px;
    bottom: 70%;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
  .menu-item:has(.line-image3):hover::after {
    left: 80px;
    bottom: 70%;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
  .menu-item:has(.line-image4):hover::after {
    left: 0;
    width: 90px;
    height: 90px;
    font-size: 16px;
  }
  .menu-item:has(.line-image5):hover::after {
    right: -10px;
    bottom: -15%;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
  .menu-item:has(.line-image6):hover::after {
    left: -50px;
    bottom: -100%;
    width: 90px;
    height: 90px;
    font-size: 16px;
  }
  .menu-item:has(.line-image7):hover::after {
    right: 100px;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
  .menu-item:has(.line-image8):hover::after {
    left: 100px;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
  .menu-item:has(.line-image9):hover::after {
    right: 90px;
    width: 100px;
    height: 100px;
    font-size: 18px;
  }
}

/* موبایل بزرگ (768px) */
@media (max-width: 768px) {
  .mnuee {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }
  .mnue_log img {
    width: 90px;
  }
  .img_icom {
    width: 28px;
  }

  .pain,
  .pain-agin,
  .one_cuntinar {
    gap: 10px;
    margin: 0;
    margin-bottom: -40px;
  }
  .pain-agin {
    margin-bottom: -40px;
  }
  .one_cuntinar {
    margin-top: 20px;
    margin-bottom: -30px;
  }

  /* تنظیم مجدد اندازه عکس‌ها برای موبایل */
  .line-image1 {
    width: 130px;
    margin-right: -100px;
    margin-bottom: -20px;
  }
  .line-image2 {
    width: 160px;
    margin-left: -50px;
  }
  .line-image3 {
    width: 170px;
  }
  .line-image4 {
    width: 50px;
    margin-left: -40px;
    margin-bottom: -30px;
  }
  .line-image5 {
    width: 110px;
  }
  .line-image6 {
    width: 50px;
    margin-bottom: -80px;
  }
  .line-image7 {
    width: 180px;
    margin-bottom: 30px;
  }
  .line-image8 {
    width: 100px;
    margin-right: -120px;
    margin-bottom: -50px;
  }
  .line-image9 {
    width: 55px;
    padding-right: 100px;
  }

  /* دایره‌ها در موبایل کوچک‌تر و نزدیک‌تر */
  .menu-item::after {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
  .menu-item:has(.line-image1):hover::after {
    left: 120px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .menu-item:has(.line-image2):hover::after {
    right: 120px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .menu-item:has(.line-image3):hover::after {
    left: 50px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .menu-item:has(.line-image4):hover::after {
    left: -10px;
    width: 60px;
    height: 60px;
    font-size: 12px;
  }
  .menu-item:has(.line-image5):hover::after {
    right: -20px;
    bottom: -25%;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .menu-item:has(.line-image6):hover::after {
    left: -30px;
    bottom: -110%;
    width: 60px;
    height: 60px;
    font-size: 12px;
  }
  .menu-item:has(.line-image7):hover::after {
    right: 60px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .menu-item:has(.line-image8):hover::after {
    left: 60px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .menu-item:has(.line-image9):hover::after {
    right: 50px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
}

/* موبایل کوچک (480px) - تنظیمات نهایی برای جلوگیری از شکستگی */
@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  .pain {
    gap: 5px;
  }
  .line-image1 {
    width: 100px;
    margin-right: -60px;
  }
  .line-image2 {
    width: 120px;
    margin-left: -30px;
  }
  .line-image3 {
    width: 130px;
  }
  .line-image4 {
    width: 40px;
    margin-left: -30px;
  }
  .line-image5 {
    width: 90px;
  }
  .line-image6 {
    width: 40px;
    margin-bottom: -60px;
  }
  .line-image7 {
    width: 140px;
    margin-bottom: 20px;
  }
  .line-image8 {
    width: 80px;
    margin-right: -80px;
  }
  .line-image9 {
    width: 45px;
    padding-right: 70px;
  }

  .menu-item:has(.line-image1):hover::after {
    left: 80px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }
  .menu-item:has(.line-image2):hover::after {
    right: 80px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }
  .menu-item:has(.line-image3):hover::after {
    left: 35px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }
  .menu-item:has(.line-image4):hover::after {
    left: -15px;
    width: 50px;
    height: 50px;
    font-size: 10px;
  }
  .menu-item:has(.line-image5):hover::after {
    right: -15px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }
  .menu-item:has(.line-image6):hover::after {
    left: -20px;
    width: 50px;
    height: 50px;
    font-size: 10px;
  }
  .menu-item:has(.line-image7):hover::after {
    right: 40px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }
  .menu-item:has(.line-image8):hover::after {
    left: 40px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }
  .menu-item:has(.line-image9):hover::after {
    right: 35px;
    width: 55px;
    height: 55px;
    font-size: 10px;
  }

  .menu-item::after {
    backdrop-filter: blur(2px);
  }
}

/* همچنین اطمینان از عدم اسکرول افقی در همه سایزها */
body {
  overflow-x: hidden;
  max-width: 100vw;
}
.color-line-menu,
.menu-grid {
  max-width: 100%;
  overflow-x: visible;
}



