@font-face {
  font-family: Pofak;
  src: url("../fonts/Vazir.ttf");
}

:root {
  --primary: rgba(16, 14, 72, 1);
  --secondary: rgba(14, 53, 92, 1);
  --dark: #111111;
  --text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Pofak, sans-serif;
  border: none;
}

body,
html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: #000;
  background-image: radial-gradient(
    circle farthest-corner at 50% 52.5%,
    rgba(14, 53, 92, 1) 0%,
    rgba(16, 14, 72, 1) 90%
  );
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 75px;
  padding: 0 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(1px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  box-shadow: none;
}

header.scrolled {
  top: 10px;
  margin: 0 20px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(0, 191, 255, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.logo h2 {
  color: white;
  font-size: 1.3rem;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;

  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;

  width: 0;
  height: 2px;

  left: 50%;
  bottom: -5px;

  background: var(--secondary);

  transition: 0.3s;
}

nav a:hover {
  color: rgb(207, 201, 201);
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

.header-btn {
  padding: 10px 20px;

  border-radius: 10px;

  color: white;
  text-decoration: none;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  transition: 0.3s;
}

.header-btn:hover {
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
}

@media (max-width: 900px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: var(--primary);
    padding: 20px;
    border-radius: 15px;
  }

  nav.active {
    display: flex;
  }

  .menu-btn {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 30px;
  }
}
/* =========================
   Header Actions
========================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* =========================
   Language Button
========================= */

.language-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  color: white;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;

  padding: 10px 18px;

  cursor: pointer;

  font-size: 15px;

  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);

  box-shadow: 0 0 15px rgba(0, 191, 255, 0.15);
}

/* =========================
   Mega Menu
========================= */

.lang-menu {
  position: absolute;

  top: 60px;
  left: 50%;

  transform: translateX(-50%) translateY(10px);

  width: 280px;

  background: rgba(20, 20, 20, 0.95);

  backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 191, 255, 0.15);

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease;

  overflow: hidden;

  z-index: 9999;
}

.language-selector:hover .lang-menu {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}

/* =========================
   Menu Items
========================= */

.lang-item {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 18px 20px;

  text-decoration: none;

  color: white;

  transition: all 0.3s ease;
}

.lang-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-item:hover {
  background: rgba(0, 191, 255, 0.1);
}

.lang-item span {
  font-size: 30px;
}

.lang-item h4 {
  margin: 0;

  font-size: 1rem;

  color: white;
}

.lang-item p {
  margin-top: 4px;

  color: #aaa;

  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-lang-divider {
  display: none;
}

.nav-lang-item {
  display: none;
}

@media (max-width: 900px) {
  .nav-lang-divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
  }

  .nav-lang-item {
    display: block;
    opacity: 0.8;
  }
}

@media (max-width: 900px) {
  .language-selector {
    display: none;
  }
}

.HeroSection {
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  background: radial-gradient(
    circle at top right,
    rgba(0, 150, 255, 0.2),
    transparent 40%
  );
}

.HeroContent {
  max-width: 550px;
}

.HeroContent h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.1;
}

.HeroContent p {
  font-size: 1.2rem;
  color: #bdbdbd;
  margin-bottom: 30px;
  line-height: 1.7;
}

.HeroButtons {
  display: flex;
  gap: 15px;
}

.HeroButtons a {
  text-decoration: none;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: #00aaff;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #444;
  color: white;
}

.btn-secondary:hover {
  background: #222;
}

.HeroImage img {
  width: min(500px, 100%);
  max-width: 100%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .HeroSection {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding: 100px 20px;
  }

  .HeroContent h1 {
    font-size: 2.7rem;
  }

  .HeroImage img {
    width: 300px;
  }

  .HeroButtons {
    justify-content: center;
  }
}

.highlight-word {
  color: #e24b4a;
  font-weight: bold;
  display: inline-block;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.highlight-word.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.gamesContainer {
  margin-top: 50px;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  gap: 30px;
}

.gamesSection {
  background: var(--primary);
  padding: 80px 5%;
}

.gamesSection > h1 {
  color: white;
  text-align: center;
  font-size: 3rem;
}

.gamesSection > hr {
  width: 120px;
  margin: 20px auto 50px;
  border: none;
  height: 4px;
  background: #00bfff;
  border-radius: 20px;
  box-shadow: 0 0 20px #00bfff;
}

.card {
  background-color: var(--secondary);
  color: white;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  gap: 10px;
  width: 320px;
  transition: transform 0.5s;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
}

.card h1 {
  color: white;
  font-size: 1.5rem;
  padding: 20px 20px 10px;
}

.card h3 {
  color: #00bfff;
  padding: 0 20px;
  font-size: 1rem;
}

.card p {
  color: #c7d3e0;
  padding: 15px 20px 25px;
  line-height: 1.7;
}

.card:hover {
  box-shadow: 0 0 20px var(--secondary);
  transform: translateY(-8px) scale(1.03);
}

.teamSection {
  background: var(--secondary);
  padding: 80px 5%;
}

.teamSection > h1 {
  color: white;
  text-align: center;
  font-size: 3rem;
}

.teamSection > hr {
  width: 120px;
  margin: 20px auto 50px;
  border: none;
  height: 4px;
  background: #00bfff;
  border-radius: 20px;
  box-shadow: 0 0 20px #00bfff;
}

.teamContainer {
  margin-top: 50px;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  gap: 30px;
}

.teamCard {
  width: 280px;

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;

  padding: 30px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;

  transition: 0.3s ease;
}

.teamCard:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.2);
}

.teamCard img {
  width: 140px;
  height: 140px;

  object-fit: cover;
  border-radius: 50%;

  border: 4px solid #00bfff;

  margin-bottom: 20px;
}

.teamCard h1 {
  padding: 0;
  margin-bottom: 10px;

  font-size: 1.5rem;
  color: white;
}

.teamCard h3 {
  padding: 0;

  color: #00bfff;
  margin-bottom: 15px;
}

.teamCard p {
  padding: 0;

  text-align: center;
  color: #c7d3e0;
  line-height: 1.6;
}

.aboutSection {
  background: var(--primary);
  padding: 80px 5%;
}

.aboutSection > h1 {
  color: white;
  text-align: center;
  font-size: 3rem;
}

.aboutSection > hr {
  width: 120px;
  margin: 20px auto 50px;
  border: none;
  height: 4px;
  background: #00bfff;
  border-radius: 20px;
  box-shadow: 0 0 20px #00bfff;
}

.aboutContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.aboutStats {
  display: grid;
  grid-template-columns: repeat(2, 170px);
  gap: 20px;
}

.statCard {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;

  padding: 30px 20px;

  text-align: center;

  transition: 0.3s;
}

.statCard:hover {
  transform: translateY(-8px);

  box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.statCard h2 {
  color: #00bfff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.statCard p {
  color: white;
  font-size: 1rem;
}

.aboutBox {
  max-width: 600px;

  background: var(--secondary);

  padding: 35px;

  border-radius: 20px;

  color: #c7d3e0;

  line-height: 2;
}

.aboutBox h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.aboutBox p {
  font-size: 1rem;
}

/* Responsive */

@media (max-width: 900px) {
  .aboutStats {
    grid-template-columns: 1fr 1fr;
  }

  .aboutBox {
    width: 100%;
  }
}

.footer {
  background: #050b16;
  padding: 60px 5% 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand img {
  width: 70px;
  margin-bottom: 15px;
}

.footer-brand h2 {
  color: white;
  margin-bottom: 15px;
}

.footer-brand span {
  color: #00bfff;
}

.footer-brand p {
  color: #c7d3e0;
  line-height: 1.8;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h3,
.footer-social h3 {
  color: white;
  margin-bottom: 10px;
}

.footer-links a,
.footer-social a {
  color: #c7d3e0;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #00bfff;
}

.footer-bottom {
  text-align: center;
  color: #777;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  padding: 14px 28px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;

  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #00bfff;
}
.toast.error {
  background: #e24b4a;
}
.toast.warning {
  background: #f0a500;
}
