
/* ریست و تنظیمات اولیه */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
	@font-face {
	font-family: IransansDN-Bold;
	font-style: normal;
	font-weight: 300;
	src: url(../fonts/iransansdnbold.eot);
	src: url(../fonts/iransansdnbold.eot?#iefix) format('embedded-opentype'), url(../fonts/iransansdnbold.woff2) format('woff2'), url(../fonts/iransansdnbold.woff) format('woff'), url(../fonts/iransansdnbold.ttf) format('truetype');
}

body, html {
  height: 100%;
	font-family: IransansDN-Bold!important;
	direction: rtl;
  color: #f0f0f0;
  overflow-x: hidden;
  background: url('/main-bpafg.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* لایه تیرگی کم */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 50, 0.25); /* تیرگی خیلی کم */
  z-index: 0;
  pointer-events: none;
}

/* ساختار کلی صفحه */
main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  gap: 45px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* کادر متنی بالا */
.intro-text {
background: rgba(255 255 255 / 0.12);
  border-radius: 24px;
  padding: 30px 50px;
  max-width: 720px;
  box-shadow:
    0 0 40px #ffbc42aa,
    inset 0 0 25px #ffbc42cc;
  color: #ffe066;
  text-shadow: 0 0 10px #ffbc42bb;
  font-weight: 700;
  line-height: 1.6;
  user-select: none;
}

.intro-text h1 {
  font-size: 2.7rem;
  margin-bottom: 18px;
  font-weight: 900;
  color: #ffd93b;
  text-shadow: 0 0 14px #ffd93bcc;
}

.intro-text p {
  font-size: 0.8 rem;
  font-weight: 600;
  color: #fff8dc;
}

/* کانتینر آیکون‌ها، دو ردیف ۴ تایی دقیق */
.icon-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 38px 40px;
  max-width: 960px;
  width: 100%;
  justify-items: center;
}

/* هر آیکون */
.icon {
  background: rgba(255 255 255 / 0.12);
  border-radius: 22px;
  width: 140px;
  height: 170px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  outline-offset: 3px;
  outline-color: #ffbc42;
  box-shadow:
    0 0 8px rgba(255 188 66, 0.25);
}

.icon:focus,
.icon:hover {
  background: rgba(255 188 66 / 0.18);
  box-shadow:
    0 10px 32px rgba(255 188 66, 0.85),
    inset 0 0 22px rgba(255 188 66, 0.5);
  transform: translateY(-11px) scale(1.08);
  z-index: 5;
}

/* پس‌زمینه آیکون (تصویر) */
.icon-bg {
  background: rgba(255 255 255 / 0.15);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  box-shadow:
    0 0 8px #ffbc42bb,
    inset 0 0 15px #ffd93bcc;
  transition: box-shadow 0.45s ease;
  overflow: hidden;
}

.icon-bg img {
  max-width: 54px;
  max-height: 54px;
  filter: drop-shadow(0 0 3px #ffbc42);
  transition: filter 0.35s ease;
}

.icon:hover .icon-bg img,
.icon:focus .icon-bg img {
  filter: drop-shadow(0 0 9px #ffd93b);
}

/* متن هر آیکون */
.icon span {
  color: #fff5c3;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 4px #ffbc42cc;
  user-select: none;
}







@media (max-width: 860px) {
  .icon-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    max-width: 480px;
    gap: 30px 20px;
  }
  .icon {
    width: 120px;
    height: 140px;
  }
  .icon-bg {
    width: 65px;
    height: 65px;
  }
  .icon-bg img {
    max-width: 40px;
    max-height: 40px;
  }
  .intro-text {
    max-width: 360px;
    padding: 20px 30px;
    font-size: 0.9rem;
  }
}

/* پاپ‌آپ */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.popup-content {
  background: #232323;
  border-radius: 18px;
  padding: 30px 40px;
  max-width: 500px;
  width: 90%;
  color: #ffd93b;
  box-shadow:
    0 0 45px #ffbc42cc;
  position: relative;
  text-align: center;
}

.popup-content h2 {
  margin-bottom: 16px;
  font-weight: 900;
}

.popup-content p {
  font-size: 1.15rem;
  line-height: 1.5;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffd93b;
  font-size: 2.5rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ffec42;
}



