:root {
  /* --- Color Variables --- */
  --primary-color: #3498db; /* رنگ اصلی */
  --secondary-color: #2ecc71; /* رنگ ثانویه */
  --tertiary-color: #f39c12; /* رنگ سوم */
  --accent-color: #53c5c5; /* رنگ تاکید */
  --text-color: #ffffff; /* رنگ متن */
  --text-head-color: #0ef0ad; /* رنگ متن */
  --text-light-color: #7f8c8d; /* رنگ متن روشن */
  --background-color: #222434; /* رنگ پس‌زمینه */
  --background-dark-color: #161829; /* رنگ پس‌زمینه تیره */
  --link-color: #3498db; /* رنگ لینک‌ها */
  --link-hover-color: #2980b9; /* رنگ هوور لینک‌ها */
  --button-color: #3498db; /* رنگ دکمه‌ها */
  --button-hover-color: #2980b9; /* رنگ هوور دکمه‌ها */
  --border-color: #ecf0f1; /* رنگ مرزها */
  --shadow-color: rgba(0, 0, 0, 0.1); /* رنگ سایه‌ها */

  /* --- Font Variables --- */
  --font-family: "Roboto", sans-serif; /* فونت اصلی */
  --font-size-base: 16px; /* اندازه فونت پایه */
  --font-size-lg: 24px; /* اندازه فونت بزرگ */
  --font-size-sm: 14px; /* اندازه فونت کوچک */
  --font-weight-normal: 400; /* وزن فونت نرمال */
  --font-weight-bold: 700; /* وزن فونت بولد */
  --line-height-base: 1.6; /* ارتفاع خط پایه */

  /* --- Spacing Variables --- */
  --spacing-small: 8px; /* فاصله کوچک */
  --spacing-medium: 16px; /* فاصله متوسط */
  --spacing-large: 24px; /* فاصله بزرگ */
  --spacing-xlarge: 32px; /* فاصله خیلی بزرگ */
  --spacing-xxlarge: 48px; /* فاصله فوق‌العاده بزرگ */

  /* --- Border Radius --- */
  --border-radius: 4px; /* شعاع مرزها */
  --border-radius-lg: 8px; /* شعاع مرز بزرگ */
  --border-radius-circle: 50%; /* شعاع مرز دایره‌ای */

  /* --- Box Shadows --- */
  --box-shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1); /* سایه نرم */
  --box-shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.15); /* سایه متوسط */
  --box-shadow-heavy: 0 6px 15px rgba(0, 0, 0, 0.2); /* سایه سنگین */

  /* --- Transition Variables --- */
  --transition-fast: 0.2s ease-in-out; /* ترانزیشن سریع */
  --transition-medium: 0.3s ease-in-out; /* ترانزیشن متوسط */
  --transition-slow: 0.5s ease-in-out; /* ترانزیشن کند */
}

/* --- Global Styles --- */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
}
html {
  scroll-behavior: smooth; /* ✅ اسکرول نرم هنگام کلیک روی لینک‌ها */
}
html,
body {
  overflow-x: hidden; /* جلوگیری از فضای اضافی در سمت راست */
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  transition: all var(--transition-fast);
}

/* --- Headings --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: var(--spacing-medium);
}

h1 {
  font-size: calc(var(--font-size-base) * 4);
  color: var(--text-head-color);
  margin-bottom: var(--spacing-large);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: calc(var(--font-size-base) * 2.75);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: calc(var(--font-size-base) * 2);
  font-weight: var(--font-weight-bold);
}
h4 {
  font-size: calc(var(--font-size-base) * 1.2);
  padding: var(--spacing-small) 0px;
  font-weight: var(--font-weight-bold);
  margin: 0px;
}

h5,
h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
}

/* --- Links --- */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-medium),
    text-decoration var(--transition-medium);
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* --- Buttons --- */
button {
  background-color: var(--button-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-small) var(--spacing-medium);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  transition: background-color var(--transition-medium);
  box-shadow: var(--box-shadow-light);
}

button:hover {
  background-color: var(--button-hover-color);
  box-shadow: var(--box-shadow-medium);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5); /* ایجاد اثر فوکوس */
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-medium);
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* کانتینر عمومی سایت */
.container {
  width: 100%;
  max-width: 1300px; /* حداکثر عرض کانتینر */
  margin: 0 auto; /* مرکز‌چین کردن کل محتوای سایت */
  padding: 0 var(--spacing-large); /* فاصله‌ی داخلی از کناره‌های صفحه */
}

/* --- Cards --- */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-light);
  padding: var(--spacing-medium);
  margin-bottom: var(--spacing-large);
  transition: box-shadow var(--transition-medium);
}

.card:hover {
  box-shadow: var(--box-shadow-medium);
}

/* --- Grid Layout --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-xlarge);
}

/* --- Form Elements --- */
input,
textarea,
select,
button {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-color);
  padding: var(--spacing-small);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

/* --- Footer --- */
footer {
  background-color: var(--background-dark-color);
  color: var(--text-color);
  padding: var(--spacing-large) 0;
  text-align: center;
  box-shadow: var(--box-shadow-heavy);
}

/* --- تنظیمات منو و دکمه همبرگری --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-medium);
  background-color: var(--background-dark-color);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* عرض ثابت برای هماهنگی با بقیه سایت */
  margin: 0 auto; /* وسط‌چین کردن محتوا */
  padding: 0 var(--spacing-large); /* فاصله‌ی داخلی برای کناره‌ها */
}

.navbar .logo h1 {
  color: var(--text-head-color);
  font-size: var(--font-size-lg);
  margin: 0;
}

.nav-links {
  display: flex;
  list-style-type: none;
  z-index: 10000000;
}

.nav-links li {
  margin-left: var(--spacing-xxlarge);
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* --- دکمه همبرگری --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
}

/* --- منو در حالت ریسپانسیو --- */
.nav-links.active {
  display: block;
  width: 100%;
}

.nav-links {
  display: flex;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 0fr 0.5fr 0.5fr; /* دو ستون مساوی */
  align-items: center; /* وسط چین کردن محتوا */
  padding: var(--spacing-xlarge);
  background-color: var(--background-color);
  color: var(--text-color);
  height: 60vh;
}

/* بخش متن */
.hero-content {
  text-align: right;
  margin: var(--spacing-xxlarge);
}

/* کارت */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-card img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--border-radius-lg);
}

.download-button {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: var(--spacing-medium);
  text-decoration: none;
  border-radius: var(--border-radius);
  display: inline-block;
  margin-top: var(--spacing-medium);
  transition: background-color 0.3s;
}

.download-button:hover {
  background-color: var(--secondary-color);
}
.right {
  text-align: right;
}
.game2card {
  width: 100%;
  max-width: 300px;
  background-color: var(--text-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
  overflow: hidden;
  text-align: center;
  padding: var(--spacing-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* تصویر داخل کارت */
.game2card img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* کارت بازی */
.game-card {
  width: 100%;
  max-width: 300px;
  background-color: var(--text-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
  overflow: hidden;
  text-align: center;
  padding: var(--spacing-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* تصویر داخل کارت */
.game-card img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* بخش فوتر کارت */
.card-footer {
  margin-top: var(--spacing-medium);
  width: 100%;
}

/* دکمه دانلود بدون پس‌زمینه */
.download-button {
  display: inline-block;
  width: 100%;
  max-width: 250px; /* عرض ثابت مطابق طراحی */
  height: auto;
  text-align: center;
  border: none;
  background: none; /* حذف پس‌زمینه */
  padding: 0;
  transition: transform 0.2s ease-in-out;
}

/* تصویر داخل دکمه */
.download-button img {
  width: 100%;
  height: auto;
  display: block;
}

/* افکت هاور */
.download-button:hover {
  transform: scale(1.05); /* کمی بزرگ‌تر شدن هنگام هاور */
}

/* 🎯 تنظیمات برای Carousel */
.carousel-container {
  width: 100%;
  max-width: 320px; /* کمی بزرگ‌تر از کارت‌ها برای داشتن فاصله */
  overflow: hidden;
  position: relative;
  margin: auto;
  padding: 0 var(--spacing-small); /* فضای اطراف برای فاصله‌دهی بهتر */
}

/* 🚀 ترک (Track) که کارت‌ها داخل آن حرکت می‌کنند */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: var(--spacing-medium); /* ✅ فاصله بین کارت‌ها */
}

/* 🎮 کارت‌های بازی */
.game-card {
  flex-shrink: 0;
  width: 100%;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
  padding: var(--spacing-medium);
  text-align: center;
  margin: 0 var(--spacing-small); /* ✅ فاصله‌ی اضافی برای کارت‌ها */
  box-sizing: border-box; /* جلوگیری از بزرگ شدن بیش از حد کارت */
}

.about-section {
  text-align: center;
  padding: var(--spacing-xlarge) 0;
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
}

/* animation test background */

.wrapper {
  position: absolute;
  width: 100vw; /* ✅ تغییر 100% به 100vw تا کل صفحه را بگیرد */
  height: 100%;
  overflow: hidden;
}

.box {
  max-width: 100%; /* ✅ جلوگیری از بیرون رفتن عناصر */
}

.box div {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 6px solid var(--text-head-color);
}

.box div:nth-child(1) {
  top: 12%;
  left: 40%;
  animation: animate 10s linear infinite;
}
.box div:nth-child(2) {
  top: 70%;
  left: 45%;
  animation: animate 7s linear infinite;
}
.box div:nth-child(3) {
  top: 17%;
  left: 5%;
  animation: animate 9s linear infinite;
}
.box div:nth-child(4) {
  top: 20%;
  left: 58%;
  animation: animate 10s linear infinite;
}
.box div:nth-child(5) {
  top: 67%;
  left: 8%;
  animation: animate 6s linear infinite;
}
.box div:nth-child(6) {
  top: 80%;
  left: 65%;
  animation: animate 12s linear infinite;
}
.box div:nth-child(7) {
  top: 60%;
  left: 75%;
  animation: animate 15s linear infinite;
}
.box div:nth-child(8) {
  top: 32%;
  left: 20%;
  animation: animate 16s linear infinite;
}
.box div:nth-child(9) {
  top: 90%;
  left: 20%;
  animation: animate 9s linear infinite;
}
.box div:nth-child(10) {
  top: 20%;
  left: 75%;
  animation: animate 5s linear infinite;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* سه ستون مساوی */
  gap: var(--spacing-large);
  padding: var(--spacing-xlarge);
  background-color: var(--background-dark-color);
  color: var(--text-color);
  text-align: center;
  justify-content: center; /* وسط‌چین کردن کل گرید */
  align-items: center; /* وسط‌چین کردن محتوای کارت‌ها */
  place-items: center; /* وسط‌چین کردن دقیق‌تر */
  width: 100vw; /* 🚀 گرفتن کل عرض صفحه */
}
.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.2s ease-in-out;
}

/* ✅ افکت کوچک شدن و بزرگ شدن هنگام شمارش */
.animating {
  transform: scale(1.2);
}

/* استایل هر کارت */
.stat-box {
  background: rgba(255, 255, 255, 0.1); /* پس‌زمینه با شفافیت */
  padding: var(--spacing-medium);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 200px;
  box-shadow: var(--box-shadow-light);
  transition: transform 0.2s ease-in-out;
  text-align: center;
}

/* افکت هاور برای کارت */
.stat-box:hover {
  transform: scale(1.05);
}

/* عنوان آمار */
.stat-title {
  font-size: var(--font-size-normal * 2);
  font-weight: var(--font-weight-bold);
  color: var(--text-light-color);
  margin-bottom: var(--spacing-large);
}

/* مقدار عددی آمار */
.stat-value {
  font-size: var(--font-size-lg * 4);
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color); /* رنگ سبز مانند تصویر */
}

.about-section {
  text-align: center;
  padding: var(--spacing-xlarge);
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
}

.about-section h3 {
  color: var(--text-head-color);
  position: relative;
}

.about-section p {
  width: 50%; /* ✅ پاراگراف را به 50% عرض صفحه محدود می‌کنیم */
  margin: var(--spacing-large) auto 0; /* ✅ فاصله‌ی بالا زیادتر شده */
  text-align: center; /* ✅ متن در وسط چین شده */
  font-size: var(--font-size-base); /* ✅ استفاده از فونت استاندارد */
  line-height: var(
    --line-height-base
  ); /* ✅ فاصله بین خطوط برای خوانایی بهتر */
  color: var(--text-light-color);
}

/* ✅ استایل خطوط */
.line-images {
  position: absolute;
  top: calc(55% - 80px); /* ✅ تنظیم نسبت به تیتر به جای کل بخش */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between; /* ✅ چپ و راست */
  align-items: center;
  width: 100%;
  pointer-events: none;
}

/* ✅ استایل خط چپ */
.line.left {
  width: 30%;
  height: auto;
  position: absolute;
  left: 0;
  transform: translateY(-50%); /* ✅ وسط چین کردن دقیق */
}

/* ✅ استایل خط راست */
.line.right {
  width: 30%;
  height: auto;
  position: absolute;
  right: 0;
  transform: translateY(-50%) scaleX(-1); /* ✅ وسط چین + قرینه */
}

/* ✅ تنظیم بهتر پاراگراف */
.about-section p {
  width: 60%;
  margin: 5% auto 0; /* ✅ فاصله از بالا رو بیشتر کردیم */
  text-align: center;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
}

.team-section {
  text-align: center;
  padding: var(--spacing-xlarge) 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* ✅ استایل تیتر بخش */
.team-section h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

/* ✅ استایل گرید برای کارت‌ها */
.team-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* ✅ ریسپانسیو اتوماتیک */
  gap: var(--spacing-large);
  justify-items: center;
}

/* ✅ استایل کارت‌ها */
.team-card {
  padding: var(--spacing-medium);

  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
  color: var(--text-light-color);
  text-align: right;
  font-size: var(--font-size-sm);
}

/* ✅ عکس داخل کارت */
.team-card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  border: 4px solid white;
}

/* ✅ انیمیشن هنگام هاور */
.team-card:hover {
  transform: scale(1.35);
}

/* 📌 انیمیشن ورود به صفحه */
.show-card {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* ✅ هدر پروژه‌ها با تصویر پس‌زمینه */
.section-header {
  background: url("Group\ 97.png") center/cover no-repeat;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--spacing-large);
}

/* ✅ متن داخل هدر */
.section-header h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
}

/* ✅ استایل بخش پروژه‌ها */
.projects-section {
  text-align: center;
  padding: var(--spacing-xlarge) 0;
  background-color: var(--background-color);
  color: white;
}

/* ✅ کارت پروژه */
.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-dark-color);
  padding: var(--spacing-medium);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  margin: var(--spacing-large) auto;
  gap: var(--spacing-large);
}

.project-info {
  width: 60%;
  text-align: center; /* ✅ متن کاملاً راست‌چین */
  padding: var(--spacing-medium); /* ✅ تنظیم فاصله داخلی */
  line-height: 1.8; /* ✅ افزایش فاصله خطوط برای خوانایی بهتر */
}

/* ✅ اصلاح اندازه و فاصله عنوان */
.project-info h3 {
  font-size: 1.8rem; /* ⚠️ کمی بزرگ‌تر از قبل، ولی متناسب */
  font-weight: bold;
  color: white;
  margin-bottom: var(--spacing-medium); /* ⚠️ افزایش فاصله تا خط سبز */
}

/* ✅ تنظیم بهتر خط سبز زیر عنوان */
.divider {
  width: 100%; /* ⚠️ خط سبز کمی بلندتر باشه */
  height: 3px;
  background-color: var(--secondary-color);
  margin: var(--spacing-large) 0; /* ⚠️ فاصله بیشتر بین عنوان و پاراگراف */
}

/* ✅ تنظیم انیمیشن اولیه (مخفی کردن کارت‌ها) */
.project-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ✅ کارت‌هایی که وارد صفحه می‌شوند */
.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ کارت‌های زوج از سمت راست بیایند */
.project-card:nth-child(even) {
  transform: translateX(50px);
}

/* ✅ کارت‌های فرد از سمت چپ بیایند */
.project-card:nth-child(odd) {
  transform: translateX(-50px);
}

/* ✅ وقتی اسکرول بهشون رسید */
.project-card.show:nth-child(even) {
  transform: translateX(0);
}

.project-card.show:nth-child(odd) {
  transform: translateX(0);
}

/* ✅ تنظیم اندازه کارت برای تناسب با متن */

.contact-us {
  background-color: var(--background-dark-color); /* ✅ رنگ بک‌گراند تیره */
  padding: var(--spacing-large) 0; /* ✅ فاصله از بالا و پایین */
  display: flex;
  justify-content: center; /* ✅ متن وسط */
  align-items: center;
}

.contact-us h2 {
  font-size: var(--font-size-lg * 2); /* ✅ اندازه بزرگ‌تر برای عنوان */
  font-weight: bold;
  color: white; /* ✅ رنگ سفید برای متن */
  text-align: right; /* ✅ متن در سمت راست */
  letter-spacing: 2px; /* ✅ فضای بین حروف برای ظاهری حرفه‌ای‌تر */
}
/* ✅ سکشن اطلاعات تماس */
.contact-info {
  background-color: #1a1b2d; /* ✅ بک‌گراند متفاوت */
  padding: var(--spacing-large) 0;
  margin-top: 24px; /* ✅ فاصله ۲۴ پیکسلی از سکشن قبل */
  text-align: right;
}

/* ✅ کانتینر تنظیم شده برای وسط چین کردن محتوا */
.contact-info .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-medium);
}

/* ✅ استایل آیکون‌ها */
.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
/* ✅ استایل تصاویر آیکون */
.icon {
  width: 24px; /* اندازه ثابت برای نمایش بهتر */
  height: 24px;
  object-fit: contain; /* جلوگیری از تغییر فرم */
}

/* ✅ تنظیم هر آیتم اطلاعات */
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

@keyframes animate {
  0% {
    transform: scale(0) translateY(-90px) rotate(360deg);
    opacity: 1;
  }

  100% {
    transform: scale(1.3) translateY(-90px) rotate(-180deg);
    border-radius: 50%;
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
}

/* Mobile View */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr; /* تبدیل به یک ستون */
    text-align: center;
    height: 100vh;
  }

  .hero-content {
    margin-bottom: var(--spacing-large);
  }

  .nav-links {
    display: none;
    width: 100%;
    text-align: center;
    background-color: var(--background-dark-color);
    position: absolute;
    top: 60px;
    left: 0;
    padding: var(--spacing-large) 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 10000000;
  }

  .nav-links li {
    margin: var(--spacing-small) 0;
    z-index: 10000000;
  }

  .nav-links.active {
    display: block;
    z-index: 10000000;
  }

  .space-line {
    display: none !important;
  }
  .project-card {
    flex-direction: column;
    text-align: center;
  }

  .game-card,
  .project-info {
    width: 100%;
  }

  .project-info {
    padding: var(--spacing-small);
  }
  .line {
    width: 150px; /* ✅ کوچک‌تر شدن در موبایل */
  }
  .about-section {
    text-align: center;
    padding: var(--spacing-xlarge) 0;
    background-color: var(--background-color);
    color: var(--text-color);
    position: relative;
  }

  .line-images {
    top: calc(50% - 50px); /* ✅ تنظیم دوباره در موبایل */
  }
  .container {
    max-width: 100%;
    padding: var(--spacing-medium); /* در موبایل فاصله را کمتر می‌کنیم */
  }
  .carousel-container {
    max-width: 100%;
  }
  .game-stats {
    flex-direction: column;
    align-items: center;
  }
  .game-stats {
    grid-template-columns: 1fr; /* در موبایل، یک ستون */
    gap: var(--spacing-medium);
    justify-items: center;
  }

  .stat-box {
    max-width: 100%;
  }
  .about-section p {
    width: 80%; /* ✅ در موبایل عرض بیشتر بشه تا بهتر دیده بشه */
    font-size: var(--font-size-sm);
  }
  /* ✅ استایل خطوط */
  .line-images {
    position: absolute;
    top: calc(55% - 80px); /* ✅ تنظیم نسبت به تیتر به جای کل بخش */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between; /* ✅ چپ و راست */
    align-items: center;
    width: 100%;
    pointer-events: none;
  }

  /* ✅ استایل خط چپ */
  .line.left {
    width: 10%;
    height: auto;
    position: absolute;
    left: 0;
    transform: translateY(-2000%); /* ✅ وسط چین کردن دقیق */
  }

  /* ✅ استایل خط راست */
  .line.right {
    width: 10%;
    height: auto;
    position: absolute;
    right: 0;
    transform: translateY(-2000%) scaleX(-1); /* ✅ وسط چین + قرینه */
  }

  /* ✅ تنظیم بهتر پاراگراف */
  .about-section p {
    width: 100%;
    margin: 15% auto 0; /* ✅ فاصله از بالا رو بیشتر کردیم */
    text-align: center;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
  }

  .team-section {
    text-align: center;
    padding: var(--spacing-xlarge) 0;
    background-color: var(--background-color);
    color: var(--text-color);
  }

  .wrapper {
    position: absolute;
    width: 90vw; /* ✅ تغییر 100% به 100vw تا کل صفحه را بگیرد */
    height: 290vw;
    overflow: hidden;
  }
}

/* Small Screens */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: calc(var(--font-size-base) * 3);
    color: var(--text-head-color);
    margin-bottom: var(--spacing-large);
    margin-top: var(--spacing-small);
    font-weight: var(--font-weight-bold);
  }

  h2 {
    font-size: calc(var(--font-size-base) * 1.75);
    font-weight: var(--font-weight-bold);
  }

  h3 {
    font-size: calc(var(--font-size-base) * 1.3);
    font-weight: var(--font-weight-bold);
    margin: 0px;
  }
  h4 {
    font-size: calc(var(--font-size-base) * 1.2);
    padding: var(--spacing-small) 0px;
    font-weight: var(--font-weight-bold);
    margin: 0px;
  }

  .hero-section {
    height: 100vh;
  }
  .hero-section h1 {
    padding: 0;
  }
  /* بخش متن */
  .hero-content {
    text-align: center;
    margin: 20px;
	   margin-top: -20px;
  }
}
