  :root{
    --bg-900:#0a0114;
    --bg-800:#120222;
    --bg-700:#1c0833;
    --card:#160a2a;
    --grid:#2c0e4d;
    --accent:#a26bff;
    --accent-2:#7b3fff;
    --text:#efe9ff;
    --muted:#b8a8e6;
    --success:#4de0a4;
  }


  .section-modes {
    background-image: url("./images/bg-main.jpg"); /* مسیر رو طبق ساختار پروژه تنظیم کن */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* اختیاری: برای ثابت موندن تصویر هنگام اسکرول */
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    border-top: 3px solid #ff00cc;
    color: white;
  }

  background-attachment: fixed;
  .section-modes::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* یا هر رنگی که بخوای */
    z-index: 0;
  }
  .section-modes > * {
    position: relative;
    z-index: 1;
  }


.modes-container {
  display: flex;
  justify-content: center;
  gap: 30px; /* فاصله بین کارت‌ها */
  flex-wrap: wrap; /* برای اینکه توی موبایل بره زیر هم */
  margin-top: 40px;
}

.mode-card {
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: white;
  width: 280px;
  backdrop-filter: blur(6px);
}

.mode-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mode-card button {
  background: linear-gradient(135deg, #ff00cc, #3333ff);
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mode-card button:hover {
  transform: scale(1.05);
}


  *{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0;
    font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Arial;
    background: radial-gradient(1200px 600px at 70% 10%, rgba(162,107,255,.25), transparent 60%),
                linear-gradient(180deg, var(--bg-900), var(--bg-800));
    color:var(--text);
    overflow-x:hidden;
  }

  /* هدر */
  .site-header{
    position:sticky; top:0; z-index:50;
    background:linear-gradient(180deg, rgba(10,1,20,.85), rgba(10,1,20,.35));
    backdrop-filter: blur(8px);
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .container{width:min(1100px, 92%); margin-inline:auto}
  .header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
  .brand{display:flex; align-items:center; gap:10px; font-size:1.1rem}
  .pixel-dot{width:10px; height:10px; background:var(--accent); box-shadow:0 0 12px var(--accent);}

  /* ناوبری */
  .nav ul{display:flex; gap:18px; list-style:none; margin:0; padding:0}
  .nav a{color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:6px}
  .nav a:hover{color:var(--text); background:rgba(162,107,255,.08)}
  .nav-toggle{display:none; background:none; border:0; cursor:pointer}
  .nav-toggle span{display:block; width:22px; height:2px; background:#d7c9ff; margin:5px 0}

  /* هیرو با بک‌گراند قابل تعویض */
  .hero{
    position:relative;
    min-height:68vh;
    display:grid; place-items:center;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .hero::before{
    /* اینجاست که بک‌گراند را می‌گذاری */
    content:"";
    position:absolute; inset:0;
    background:
      linear-gradient(180deg, rgba(10,1,20,.4), rgba(10,1,20,.7)),
      url("./images/bg-main.jpg") center/cover no-repeat; /* اگر اسم فایلت bg.jpg نیست این را عوض کن */
    filter:saturate(1.15);
    z-index:-2;
  }
  .grid-overlay{
    position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:
      repeating-linear-gradient(90deg, transparent 0 48px, rgba(162,107,255,.06) 48px 49px),
      repeating-linear-gradient(0deg,  transparent 0 48px, rgba(162,107,255,.06) 48px 49px);
    mix-blend-mode:screen;
  }
  .scanlines{
    position:absolute; inset:0; background:
      repeating-linear-gradient(0deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 1px, transparent 3px);
    opacity:.25; pointer-events:none;
  }

  .hero-content{text-align:center; padding:80px 0}
  .hero h1{font-size: clamp(2rem, 4vw, 3.2rem); margin:0 0 10px}
  .hero p{color:var(--muted); margin:0 0 24px}

  /* دکمه‌های لاکچری */
  .btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(162,107,255,0.35), inset 0 0 12px rgba(255,255,255,0.08);
    transition: all .3s ease;
  }

  /* گرادیان و افکت شاین */
  .btn-primary {
    background: linear-gradient(135deg, #d6b0ff 0%, #a26bff 50%, #7b3fff 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
  }
  .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
  }
  .btn-primary:hover::after {
    left: 130%;
  }
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(162,107,255,0.55), inset 0 0 15px rgba(255,255,255,0.12);
  }

  /* نسخه Ghost شفاف اما لاکچری */
  .btn-ghost {
    background: rgba(162,107,255,0.1);
    border: 1px solid rgba(162,107,255,0.4);
    color: var(--text);
    backdrop-filter: blur(4px);
  }
  .btn-ghost:hover {
    background: rgba(162,107,255,0.2);
    border-color: rgba(162,107,255,0.6);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(162,107,255,0.4);
  }


  /* گوشه‌های پیکسلی */
  .pixel-corners{
    clip-path: polygon(
      0 10px, 10px 10px, 10px 0,
      calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px,
      100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px),
      calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px)
    );
  }

  /* سکشن‌ها */
  .section{padding:56px 0}
  .section-title{margin:0 0 22px}
  .neon{text-shadow:0 0 10px rgba(162,107,255,.7), 0 0 22px rgba(123,63,255,.5)}

  /* کارت‌ها */
  .cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:18px;
  }
  .card{
    background:linear-gradient(180deg, rgba(22,10,42,.85), rgba(22,10,42,.55));
    border:1px solid rgba(255,255,255,.08);
    padding:18px;
    box-shadow:0 4px 20px rgba(0,0,0,.25);
  }
  .card h3{margin:0 0 8px}
  .card p{color:var(--muted); margin:0 0 14px}

  /* فروشگاه */
  .products{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap:18px;
  }
  .product-card{
    background:linear-gradient(180deg, rgba(22,10,42,.9), rgba(22,10,42,.6));
    border:1px solid rgba(255,255,255,.08);
    display:flex; flex-direction:column; overflow:hidden;
  }
  .product-media{
    /* عمداً خالی؛ بعداً با background-image پرش کن */
    aspect-ratio: 4 / 3;
    background:
      linear-gradient(180deg, rgba(162,107,255,.08), rgba(162,107,255,.02)),
      repeating-linear-gradient(45deg, rgba(162,107,255,.08) 0 6px, transparent 6px 12px);
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .product-body{padding:14px}
  .product-title{margin:0 0 6px}
  .product-desc{margin:0 0 12px; color:var(--muted)}
  .product-meta{display:flex; align-items:center; justify-content:space-between}
  .price{color:var(--success)}

  /* فوتر */
  .site-footer{
    border-top:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(10,1,20,.6), rgba(10,1,20,.8));
  }
  .footer-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 0; color:var(--muted)}
  .footer-inner a{color:var(--muted); text-decoration:none}
  .footer-inner a:hover{color:var(--text)}

  /* ریسپانسیو */
  @media (max-width: 860px){
    .nav{position:fixed; inset:60px 12px auto 12px; background:rgba(12,2,24,.9); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px; display:none}
    .nav.open{display:block}
    .nav ul{flex-direction:column}
    .nav-toggle{display:block}
  }
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Vazirmatn&display=swap');

/* بک‌گراند کلی سایت */
body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-image: url("images/bg-main.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

/* هدر سایت */
header {
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #9d00ff;
}

/* منو ناوبری */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #9000ff;
}

/* بخش اصلی */
main {
  padding: 60px 20px;
}

/* بخش مودهای بازی */
.mode-card {
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: white;
  width: 280px;
  backdrop-filter: blur(6px);
}

.mode-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mode-card button {
  background: linear-gradient(135deg, #7b00ff, #6200ff);
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mode-card button:hover {
  transform: scale(1.05);
}





@font-face{
    font-family: vazir;
        src: url(./images/Vazir-Bold-FD-WOL.ttf);
}

*{
    direction: rtl;
    font-family: vazir;
    box-sizing: border-box;
}

body{

    font-size: 16px ;
    margin: 0px ;
}

a{

    text-decoration: none;
}


.custom-popover {
    --bs-popover-max-width: 200px;
    --bs-popover-border-color: var(--bd-violet-bg);
    --bs-popover-header-bg: var(--bd-violet-bg);
    --bs-popover-header-color: var(--bs-white);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
  }

  /* برای اینکه اسکرول نرم فعال باشه */
html {
  scroll-behavior: smooth;
}
