@font-face{
    font-family: 'vazir';
    src: url('/font/vazir.eot') format('eot');
    src: url('/font/vazir.ttf') format('ttf');
    src: url('/font/vazir.woff') format('woff');
    src: url('/font/vazir.woff2') format('woff');
}

body {
    font-family: 'vazir';
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1f1f1f;
    border-bottom: 2px solid #7c4dff;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #7c4dff;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #7c4dff;
}

.login-btn {
    padding: 8px 20px;
    background-color: #7c4dff;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #5e35ff;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .user-actions {
        width: 100%;
    }

    .login-btn {
        width: 100%;
    }
}

:root{
  --bg:#0b0b10;
  --primary:#7c4dff;
  --white:#fff;
}

.hero{
  padding: 18px 0 24px;
}

.hero-slider{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}


.slides{
  position: relative;
  height: 460px;
}

.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .6s ease, transform .9s ease;
  pointer-events: none;
}

.slide.active{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08);
}

.overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.20) 55%,
    rgba(0,0,0,.0) 100%
  );
  color: var(--white);
}

.overlay h1{
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
}

.overlay p{
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
  opacity: .95;
}


.actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid rgba(255,255,255,.22);
}

.btn.primary{
  background: var(--primary);
  border-color: rgba(124,77,255,.6);
  color: #0b0b10;
  box-shadow: 0 14px 30px rgba(124,77,255,.25);
}

.btn.ghost{
  background: rgba(255,255,255,.06);
  color: #fff;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}


.nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .15s ease;
}

.nav:hover{
  background: rgba(0,0,0,.55);
}

.nav.prev{ left: 14px; }
.nav.next{ right: 14px; }


.dots{
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
}

.dot.active{
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(124,77,255,.18);
}


@media (max-width: 768px){
  .slides{ height: 360px; }
  .overlay{ padding: 18px; }
}


@media (max-width: 992px){
  .overlay{ padding: 20px; }
}

@media (max-width: 576px){
  .slides{ height: 300px; }
  .overlay p{ font-size: 14px; }
  .actions .btn{ width: 100%; }
  .nav.prev{ left: 8px; }
  .nav.next{ right: 8px; }
}



    .py-5 { padding: 3rem 0; }
    .mb-5 { margin-bottom: 3rem; }
    .text-center { text-align: center; }
    .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

   
    .section-title {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 2rem;
    }

  
    .popular-games .row {
        display: flex;
        flex-wrap: wrap;
        margin: -15px; 
    }
    .popular-games .col {
        padding: 15px;
        box-sizing: border-box;
    }

 
    .popular-games .col { flex: 1 0 100%; } 

  
    @media (min-width: 576px) {
        .popular-games .col-md-2 { flex: 1 0 50%; max-width: 50%; } 
    }

    @media (min-width: 992px) {
        .popular-games .col-lg-4 { flex: 1 0 calc(25% - 30px); max-width: calc(25% - 30px); } 
      
        .popular-games .row-cols-lg-4 > * {
            flex: 1 0 calc(25% - 30px);
            max-width: calc(25% - 30px);
        }
    }
    
 
    @media (min-width: 576px) and (max-width: 991px) {
        .popular-games .row-cols-md-2 > * {
            flex: 1 0 calc(50% - 30px);
            max-width: calc(50% - 30px);
        }
    }




.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #7c4dff; 
    text-shadow: 0 0 10px #5e35ff;
}


.popular-games {
    padding: 60px 0;
}

.popular-games .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    justify-content: center; 
}

.popular-games .col {
    flex: 1 1 100%; 
    box-sizing: border-box;
}

.game-card {
    background-color: #2a2a2a; 
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px #5e35ff; 
}

.game-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 5px;
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.game-card p {
    font-size: 0.95em;
    color: #ccc;
    flex-grow: 1; 
    margin-bottom: 15px;
}

.game-card .btn {
    display: inline-block;
    background-color: #7c4dff; 
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto; 
}

.game-card .btn:hover {
    background-color: #5e35ff; 
    color: #1a1a1a;
}




@media (min-width: 576px) {
    .popular-games .col {
        flex: 1 1 calc(50% - 10px); 
    }
}


@media (min-width: 992px) {
    .popular-games .col {
        flex: 1 1 calc(25% - 15px); 
    }
}



.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h2 {
    color: #7c4dff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 0 0 10px #5e35ff, 0 0 20px #7c4dff;
}


.game-categories {
    background-color: #1a1a1a; 
    padding: 40px 0;
    border-bottom: 2px solid #7c4dff; 
}

.category-list {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 15px; 
}

.category-btn {
    background-color: transparent;
    color: #7c4dff; 
    border: 2px solid #5e35ff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #7c4dff;
}

.category-btn:hover {
    background-color: #5e35ff;
    color: #1a1a1a; 
    text-shadow: none;
    box-shadow: 0 0 15px #7c4dff;
}

.category-btn.active {
    background-color: #5e35ff;
    color: #1a1a1a; 
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 0 15px #7c4dff;
}


@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }
    .category-list {
        flex-direction: column; 
        align-items: center; 
    }
    .category-btn {
        width: 80%; 
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8em;
    }
    .category-btn {
        font-size: 1em;
        padding: 8px 15px;
    }
}


.popular-games .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
}

.popular-games .game-card {
    background-color: #2c2c2c;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 15px #5e35ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
    position: relative;
}

.popular-games .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #5e35ff;
}

.popular-games .game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    display: block; 
}

.popular-games .game-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.popular-games .game-card-title {
    color: #7c4dff;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #5e35ff;
}

.popular-games .game-card-description {
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 15px;
    flex-grow: 1; 
}

.popular-games .game-card .btn {
    background-color: #7c4dff;
    color: #1a1a1a;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto; 
}

.popular-games .game-card .btn:hover {
    background-color: #5e35ff;
    box-shadow: 0 0 10px #7c4dff;
}


@media (min-width: 992px) { 
    .popular-games .row {
        gap: 20px;
    }
    .popular-games .game-card {
        flex: 0 0 calc(25% - 15px); 
    }
}

@media (min-width: 576px) and (max-width: 991px) { 
    .popular-games .row {
        gap: 15px;
    }
    .popular-games .game-card {
        flex: 0 0 calc(50% - 10px); 
    }
}

@media (max-width: 575px) { 
    .popular-games .row {
        gap: 10px;
    }
    .popular-games .game-card {
        flex: 0 0 100%; 
    }
    .popular-games .game-card img {
        height: 180px; 
    }
    .popular-games .game-card-title {
        font-size: 1.1em;
    }
    .popular-games .game-card-description {
        font-size: 0.9em;
    }
    .popular-games .game-card .btn {
        padding: 8px 12px;
        font-size: 0.95em;
    }
}


.latest-news {
    background-color: #111; 
    padding: 50px 0;
    color: #e0e0e0;
}

.latest-news h2 {
    color: #7c4dff; 
    text-shadow: 0 0 10px #7c4dff;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
  
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
}

.news-card {
    background-color: #2c2c2c; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px #5e35ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #7c4dff;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    display: block;
}

.news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.news-content h3 {
    color: #7c4dff;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #7c4dff;
    line-height: 1.4; 
}

.meta-info {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 10px;
    opacity: 0.8;
}

.excerpt {
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 15px;
    flex-grow: 1; 
    line-height: 1.6;
}

.news-card .btn {
   
    background-color: #5e35ff;
    color: #1a1a1a;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto; 
    width: 100%; 
    box-sizing: border-box; 
}

.news-card .btn:hover {
    background-color: #5e35ff;
    box-shadow: 0 0 10px #7c4dff;
}



@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .news-content h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .latest-news {
        padding: 40px 0;
    }
    .news-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .news-card img {
        height: 180px;
    }
    .news-content h3 {
        font-size: 1.1em;
    }
    .excerpt {
        font-size: 0.9em;
    }
}

.site-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 50px 0 20px;
    border-top: 2px solid #5e35ff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h3 {
    color: #7c4dff;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-col ul li a:hover {
    color: #5e35ff;
}

.newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8em;
    color: #666;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.best-products {
  padding: 60px 20px;
  background: #0f1117;
  color: #fff;
}

.best-products .section-header {
  text-align: center;
  margin-bottom: 35px;
}

.best-products .section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.best-products .section-header p {
  color: #bbb;
  font-size: 0.95rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #1a1d24;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.product-card p {
  color: #c9c9c9;
  font-size: 0.92rem;
  line-height: 1.7;
}

.product-card .price {
  display: block;
  margin: 12px 0;
  color: #22c55e;
  font-weight: bold;
  font-size: 1rem;
}

.product-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #4f46e5;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.product-btn:hover {
  background: #3730a3;
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.auth-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #101010, #0a0a0a);
}

.auth-card {
  max-width: 600px;
  margin: 0 auto;
  background: #151515;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.auth-card h2 {
  color: #7c4dff;
  margin-bottom: 10px;
}

.auth-card p {
  color: #bbb;
  margin-bottom: 20px;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #0f0f0f;
  color: #fff;
  outline: none;
}

.auth-form input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px #3730a3;
}

.auth-note {
  margin-top: 18px;
  font-size: 0.95rem;
}

.auth-note a {
  color: #7c4dff;
  text-decoration: none;
}

.auth-note a:hover {
  text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0f0f0f;
  color: #fff;
  outline: none;
  font-family: 'Vazirmatn', sans-serif;
  box-sizing: border-box; 
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5e35ff;
  box-shadow: 0 0 0 3px #4f46e5;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  width: auto;
  padding: 12px 30px;
}


@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info, .contact-form {
    padding: 25px;
  }
  .contact-section h2 {
    font-size: 1.8rem;
  }

}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px; 
    top: 25px;
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

 
    .nav-links {
        display: none; 
        width: 100%;
    }
}

.faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; 
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #7c4dff;
  font-size: 2.2rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #151515; 
  overflow: hidden; 
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  text-align: right;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif; 
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 20px; 
  color: #bbb;
}

.faq-item.active .faq-answer {
  max-height: 200px; 
  padding: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}


@media (max-width: 768px) {
  .faq-section h2 {
    font-size: 1.8rem;
  }
  .faq-question {
    font-size: 1rem;
  }
}

.categories {
    padding: 50px 20px;
    text-align: center;
}

.category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 30px;
    margin-top: 30px;
}

.category-item {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: scale(1.1); 
}


.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 3px solid #eee; 
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item span {
    font-weight: bold;
    font-size: 1rem;
}


@media (max-width: 900px) {
    .category-grid {
        gap: 20px; 
    }
    
    .circle {
        width: 100px;
        height: 100px;
    }
}


@media (max-width: 600px) {
    .category-grid {
        gap: 15px;
    }
    
    .category-item {
        width: 40%; 
        margin-bottom: 10px;
    }
    
    .circle {
        width: 90px;
        height: 90px;
    }
    
    .category-item span {
        font-size: 0.9rem; 
    }
}

