/* ===== Basic===== */
:root {
  --black: #0d0d0d;
  --yellow: #ffd600;
  --orange: #ff9f00;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'VazirFF';
  src: url('/Font/Vazir.woff2') format('woff2'),
       url('/Font/Vazir.woff') format('woff'),
       url('/Font/Vazir.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


.btn-primary {
    --bs-btn-color: var(--black);
    --bs-btn-bg: var(--yellow);
    --bs-btn-border-color: var(--yellow);
    --bs-btn-hover-color: var(--black);
    --bs-btn-hover-bg: var(--orange);
    --bs-btn-hover-border-color: var(--orange);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--black);
    --bs-btn-active-bg: var(--orange);
    --bs-btn-active-border-color: var(--orange);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--black);
    --bs-btn-disabled-bg: var(--yellow);
    --bs-btn-disabled-border-color: var(--yellow);
}

body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: 'VazirFF', sans-serif !important;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== Loading ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid var(--yellow);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Navbar ===== */
.navbar {
  background: transparent;
  transition: background 0.4s ease;
  padding: 0.75rem 1rem;
  z-index: 999;
}

.navbar.scrolled {
  background: var(--black);
}

.navbar-brand,
.nav-link {
  color: var(--yellow) !important;
  font-weight: 700;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--orange) !important;
}

.navbar-brand img {
  max-height: 40px;
}

.lang-switch-btn {
  position: relative;
  overflow: hidden;
  padding: 6px 18px;
  border: 2px solid var(--yellow);
  border-radius: 50px;
  background-color: transparent;
  color: var(--yellow);
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  z-index: 1;
}

.lang-switch-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--yellow);
  z-index: -1;
  transition: width 0.4s ease;
}

.lang-switch-btn:hover::before {
  width: 100%;
}

.lang-switch-btn:hover {
  color: var(--black);
  border-color: var(--yellow);
}



/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 900;
  animation: glow 5s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 10px var(--yellow));
  }
  100% {
    filter: drop-shadow(0 0 10px var(--orange));
  }
}

.btn-primary {
  background: var(--yellow);
  border: none;
  color: #000;
  font-weight: 700;
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
  font-size: 2rem;
}

/* ===== Stats ===== */
.stats-box {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 30px 20px;
  transition: transform 0.3s;
}

.stats-box:hover {
  transform: translateY(-10px);
}

.stats-number {
  font-size: 2.5rem;
  color: var(--yellow);
  font-weight: bold;
  margin-bottom: 10px;
}

/* ===== Games Slider ===== */
.swiper {
  width: 101%;
  padding-bottom: 60px;
  direction: rtl;
}

.swiper-slide {
  background: #1c1c1c;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 25px var(--yellow);
}

.game-thumb {
  overflow: hidden;
  height: 250px;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-thumb img {
  transform: scale(1.05);
}

.game-description {
  color: #ccc;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1.6;
  max-height: calc(1.6em * 3);
  margin-bottom: 0;
}

.game-hr {
  color: var(--yellow) ;
  border: 1px var(--yellow) solid;
}

.game-meta {
  list-style: none;
  padding-right: 0;
}
.game-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.swiper-slide .btn {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.rating i {
  font-size: 1rem;
  color: gold;
  margin-right: 1px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
}
.swiper-pagination-bullet-active {
  background: var(--yellow) !important;
}


/* ===== Team Card ===== */
.team-card {
  background: #151515;
  padding: 2rem 1rem;
  border-radius: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 2px #222, 0 0 25px rgba(255, 214, 0, 0.08);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 12px var(--yellow), 0 0 35px rgba(255, 214, 0, 0.3);
}

.avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle at top, var(--yellow), var(--orange));
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: 1.1rem;
  font-weight: bold;
}

.role {
  font-size: 0.9rem;
  color: #ccc;
}

/* ==== FAQ Section ==== */
.faq-section {
  background-color: #0d0d0d;
  color: #fff;
  padding: 100px 20px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0 15px rgba(255, 214, 0, 0.2);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 20px 25px;
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--yellow);
  transition: transform 0.3s ease;
}

/* Open  */
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 25px;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  font-size: 1rem;
  color: #ddd;
  line-height: 1.7;
}

/* Show Text  */
.faq-answer.show {
  max-height: 500px;
  opacity: 1;
  padding: 15px 25px 25px;
}


/* ==== Contact Section ==== */
.contact-section {
  background: #0d0d0d;
  padding: 50px 20px;
  color: #fff;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #1a1a1a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 214, 0, 0.08);
}

.contact-form .form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-form .form-control {
  padding: 14px 18px;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control::placeholder {
  color: #ccc;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 10px rgba(255, 159, 0, 0.4);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-submit:hover {
  background: var(--orange);
  color: #fff;
}


/* ===== Modern Footer ===== */
.modern-footer {
  background: linear-gradient(145deg, #0f0f0f, #1c1c1c);
  color: #eee;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
  background: linear-gradient(45deg, #ffc107, #ffeb3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-top: 10px;
}

.footer-links a {
  color: #ffc107;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links a:hover::after {
  width: 100%;
}

.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.social-link {
  color: var(--yellow);
  font-size: 1.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-link:hover {
  color: var(--orange);
  transform: translateY(-3px);
}

.copyright {
  color: var(--yellow);
  font-size: 0.9rem;
  margin: 0;
}
