.nav-link.active {
  background-color: rgba(40, 36, 167, 0.1);
  color: rgb(40, 36, 167) !important;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  /* کمی بزرگ‌تر */
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Vazirmatn', sans-serif;
  background-color: #DFDEFE;
  color: #2824A7;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}
 #enamad {
            display: none;
        }

.nav-link:hover {

  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  /* کمی بزرگ‌تر */
  font-weight: bold;
  transition: all 0.2s ease;
  /* انیمیشن نرم */
}

#hero {
  background-color: #2824A7;
  ;
  color: #DFDEFE;
  width: 100%;

}

#hero .content-wrapper {
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
}

#hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

#hero p {
  font-size: 1.2rem;
  color: #eee;
  padding-top: 20px;
}

#hero a {
  font-size: 50px;
  padding-top: 20px;
}

a.btn-download {
  font-size: 40px !important;
  padding: 30px !important;
}



.btn-download {
  background-color: #DFDEFE;
  color: #2824A7;
  padding: 12px 30px;
  border-radius: 30px;
  margin-top: 30px;
  font-weight: bold;

  font-size: 3rem ;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-download:hover {
  background-color: white;
  color: #2824A7;
}

.btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.hero-with-bg {
  position: relative;
  background-image: url('/images/hero-bg.jpg');
  /* عکس دلخواه */
  background-size: cover;
  background-position: center;
  height: 100vh;
  /* یا هر ارتفاع دلخواه */
  color: white;
  display: flex;
  align-items: center;
  /* متن وسط عمودی */
  justify-content: flex-start;
  /* متن از سمت چپ شروع بشه */
  padding-right: 50px;
  /* فاصله از راست */
  padding-left: 20px;
  /* کمی فاصله از چپ */
  box-sizing: border-box;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* لایه تیره روی عکس */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* بالاتر از overlay */
  max-width: 600px;
  /* محدود کردن عرض متن */
  text-align: right;
  /* چون فارسیه راست‌چین */
  direction: rtl;
  padding-right: 40px;
  /* فاصله داخل متن از راست */
}

.kinga-title {
  font-weight: bold;
  font-size: 4rem;
  color: #DFDEFE;
  /* رنگ روشن برای کینگا */
}

.games-section {
  background-color: #fff;
}

.section-title {
  font-size: 2rem;
  color: #2824A7;
}

.games-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.game-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 240px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #eee;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* .game-card:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
} */

.download-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.game-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #c2c2f1;
  background-size: cover;
  background-position: center;
  transition: 0.3s;
}

.game-card .game-image {
  width: 100%;
  height: 200px;
  /* ارتفاع کارت */
  overflow: hidden;
  border-radius: 1rem;
}

.game-card .game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* عکس رو بدون کشیدگی پر میکنه */
  display: block;
}


.game-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  text-align: center;
}

.game-label h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.games-scroll {
  display: flex;
  justify-content: center;
  /* 🏹 همه کارت‌ها وسط */
  gap: 1rem;
  /* فاصله بین کارت‌ها */
  flex-wrap: wrap;
  /* اگر عرض کم شد، برن زیر هم */
  padding: 1rem;
}

/* .container {
  max-width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
} */

/* تیترها زیباتر */
.feature-text h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.feature-text h3::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: currentColor;
  margin: 8px auto 0;
  border-radius: 2px;
  opacity: 0.6;
}

.feature-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* انیمیشن‌ها */
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-left h3 {
  animation: fadeSlideLeft 0.8s ease forwards;
}

.animate-left p {
  animation: fadeSlideLeft 1s ease forwards;
  animation-delay: 0.3s;
}

.animate-right h3 {
  animation: fadeSlideRight 0.8s ease forwards;
}

.animate-right p {
  animation: fadeSlideRight 1s ease forwards;
  animation-delay: 0.3s;
}

/* ساختار کلی سکشن‌ها */
.feature-section {
  padding: 80px 20px;
}

.feature-section.dark {
  background: linear-gradient(135deg, #2824a7, #5048e5);
  color: white;
}

.feature-section.light {
  background: #ffffff;
  color: #2824a7;
  position: relative;
}

/* عکس کارت */
.feature-img-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  margin: auto;
}

.feature-img-card img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-img-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* متن */
.feature-text h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* انیمیشن‌ها */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-left {
  animation: slideInLeft 1s ease forwards;
}

.animate-right {
  animation: slideInRight 1s ease forwards;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .feature-section .container {
    flex-direction: column !important;
    text-align: center;
  }

  .feature-img-card {
    max-width: 100%;
  }

  .feature-text {
    margin-bottom: 20px;
  }
}

/* انیمیشن هاور برای متنِ سکشن‌ها */
.feature-section {
  position: relative;
}

.feature-text {
  transform-origin: right center;
  /* چون فارسیه، انیمیشن از سمت راست طبیعی‌تره */
}

/* تیتر: حالت پایه */
.feature-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1),
    letter-spacing .35s cubic-bezier(.2, .8, .2, 1),
    text-shadow .35s ease;
}

/* خط زیر تیتر (اول صفره) */
.feature-text h3::after {
  content: "";
  position: absolute;
  right: 0;
  /* رشد خط از راست به چپ */
  bottom: -8px;
  height: 3px;
  width: 0;
  background: currentColor;
  border-radius: 3px;
  opacity: .9;
  transition: width .35s cubic-bezier(.2, .8, .2, 1);
}

/* پاراگراف: حالت پایه */
.feature-text p {
  font-size: 1.08rem;
  line-height: 1.9;
  opacity: .95;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1),
    opacity .35s ease;
}

/* هاور روی کل سکشن → افکت روی متن */
.feature-section:hover .feature-text h3 {
  transform: scale(1.06);
  /* تیتر کمی درشت‌تر */
  letter-spacing: .2px;
  /* یه ذره فاصله حروف برای حس داینامیک */
  text-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.feature-section:hover .feature-text h3::after {
  width: 100%;
  /* خط زیر تیتر با انیمیشن کشیده میشه */
}

.feature-section:hover .feature-text p {
  transform: translateY(-4px);
  /* متن یه ذره میاد بالا */
  opacity: 1;
}

/* برای سکشن‌های تیره کمی درخشش رنگی ظریف بدیم */
.feature-section.dark:hover .feature-text h3::after {
  background: linear-gradient(90deg, #DFDEFE, #fff);
}

/* افکت ملایم روی کارتِ عکس هم اگر خواستی */
.feature-section:hover .feature-img-card {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

/* احترام به کاربران با کاهش حرکت */
@media (prefers-reduced-motion: reduce) {

  .feature-text h3,
  .feature-text p,
  .feature-img-card,
  .feature-text h3::after {
    transition: none !important;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.social-icon {
  width: 55px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.35s ease;
  cursor: pointer;
}

/* اینستاگرام */
.social-icon.instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}





/* افکت hover */
.social-icon:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* تغییر رنگ خاص هر شبکه روی hover */
.social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 30%, #fff176, #ff4081, #ab47bc, #5c6bc0);
}



.btn-download-app {
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #fff;
}



.btn-download-app.direct:hover {
  background: #5149d8;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}









/* دکمه پایه */
/* .btn-download-app {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-radius: 28px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: transform .15s ease;
    flex-direction: column;

} */
.btn-download-app {
  position: relative;
  display: inline-block;
  background: #000;
  padding: 10px 10px 15px; /* پایین رو بیشتر کردیم */
  border-radius: 10px;
}

/* آیکون داخل دکمه */
.btn-icon {
  width: 140px;
  height: auto;
  display: block;
  transform-origin: center;
  transition: transform .15s ease;
}
.app-version {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #bbb;
  line-height: 1;
}

/* تعریف انیمیشن shake (لرزش کوتاه X) */
@keyframes shakeX {
  0% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-6px);
  }

  30% {
    transform: translateX(6px);
  }

  45% {
    transform: translateX(-4px);
  }

  60% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

/* حالت hover / focus — فقط آیکون می‌لرزه */
.btn-download-app:hover .btn-icon,
.btn-download-app:focus .btn-icon {
  animation: shakeX 420ms cubic-bezier(.36, .07, .19, .97);
  /* یک سایه یا بزرگ شدن ملایم هم بدیم */
  transform: translateZ(0);
}

/* اگر می‌خوای کل دکمه هم کمی bounce کنه */
.btn-download-app:hover {
  transform: translateY(-3px);
}





/* دسترسی — کاهش حرکت برای کاربرانی که ترجیح میدن حرکت کمتر باشه */
@media (prefers-reduced-motion: reduce) {

  .btn-download-app:hover .btn-icon,
  .btn-download-app:focus .btn-icon {
    animation: none;
    transform: none;
  }

  .btn-download-app:hover {
    transform: none;
  }
}

/* لوگو اصلی */
.logo-download {
  width: 120px;
  border-radius: 20%;
  /* 20% گوشه‌ها رو گرد میکنه */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}


/* افکت هاور */
.logo-download:hover {
  width: 130px;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* افکت ورودی صفحه */
@keyframes logoEntry {
  0% {
    transform: scale(0.8) rotate(-5deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.05) rotate(2deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.logo-download.animate-entry {
  animation: logoEntry 1s cubic-bezier(.68, -0.55, .265, 1.55) forwards;
}

.faq-wrapper {
  max-width: 1000px;
  margin: auto;
  padding-top: 120px;
}

.faq-tab {
  background: white;
  border-radius: 14px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-tab-title {
  padding: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  text-align:center;

}

.faq-tab-title:hover {
  background: #2824A7;
  color: white;
}
.faq-tab.active .faq-tab-title{
background:#2824A7;
color:white;
}



.faq-questions {
  max-height: 0;
  overflow: hidden;
  transition: .4s;
}

.faq-tab.active .faq-questions {
  max-height: 500px;
}

.faq-item {
  border-top: 1px solid #eee;
}

.faq-q {
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
  
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: .3s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 15px;
  background: #f8f8ff;
}

.faq-wrapper {
  max-width: 1000px;
  margin: auto;
}

.faq-tab {
  background: white;
  border-radius: 14px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-tab-title {
  padding: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
  position: relative;
}

.faq-tab-title:hover {
  background: #2824A7;
  color: white;
}

.faq-questions {
  max-height: 0;
  overflow: hidden;
  transition: .4s;
}

.faq-tab.active .faq-questions {
  max-height: 500px;
}

.faq-item {
  border-top: 1px solid #eee;
}

.faq-q {
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: .3s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 15px;
  background: #f8f8ff;
}

.faq-wrapper {
  max-width: 1000px;
  margin: auto;
}

.faq-tab {
  background: white;
  border-radius: 14px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-tab-title {
  padding: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
  position: relative;
}

.faq-tab-title:hover {
  background: #2824A7;
  color: white;
}

.faq-questions {
  max-height: 0;
  overflow: hidden;
  transition: .4s;
}

.faq-tab.active .faq-questions {
  max-height: 500px;
}

.faq-item {
  border-top: 1px solid #eee;
}

.faq-q {
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: .3s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 15px;
  background: #f8f8ff;
}
.faq-q{
display:flex;
align-items:center;
justify-content:space-between;
padding:18px;
cursor:pointer;
font-weight:bold;
transition:.3s;
position:relative;
}

/* دایره مشکی */
.faq-icon{
width:28px;
height:28px;
background:black;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin-left:10px;
position:relative;
transition:.3s;
}

/* فلش پایین */
.faq-icon::before{
content:"";
width:8px;
height:8px;
border-right:2px solid white;
border-bottom:2px solid white;
transform:rotate(45deg);
transition:.3s;
}

/* وقتی سوال باز است */
.faq-item.open .faq-q{
color:red;
}

/* فلش برگردد بالا */
.faq-item.open .faq-icon::before{
transform:rotate(-135deg);
}

.download-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 40px 0 20px;
}

.download-divider::before,
.download-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ddd;
}

.download-divider span {
  padding: 0 15px;
  font-weight: 600;
  color: #555;
}
.btn-download-app {
  background: #140f0f;
  color: #fff;
}

.download-divider span {
  color: #000;
}
@media (max-width:768px){
  .download-row{
    flex-wrap: wrap;
    justify-content:center;
  }
}

@media (max-width: 768px) {

  .hero-with-bg {
    min-height: 100vh;
    height: auto;
    padding: 80px 20px;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.8rem;
    line-height: 1.5;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .kinga-title {
    font-size: 2.5rem;
  }

  .btn-icon {
    width: 110px;
  }

  .social-icon {
    width: 42px;
  }

  .feature-section {
    padding: 50px 15px;
  }

  .feature-text h3 {
    font-size: 1.4rem;
  }

  .feature-text p {
    font-size: 1rem;
  }

  .game-card {
    width: 220px;
    height: 280px;
  }

  .logo-download {
    width: 90px;
  }

  .logo-download:hover {
    width: 90px;
  }
}
@media (max-width: 768px) {

  .hero-with-bg {
    height: auto;
    min-height: 100vh;
    padding: 80px 20px;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .kinga-title {
    font-size: 2.5rem;
  }
}
/* فقط دسکتاپ */
@media (min-width: 992px) {

  .game-card:hover {
    width: 400px;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
  }

}
@media (max-width: 991px) {

  .game-card:hover {
    width: 240px;
    transform: scale(1.03);
  }

}
@media (hover: none) {
  .game-card:hover {
    width: 240px;
  }
}