@font-face {
  font-family: Lalezar;
  src:
    url("../Fonts/Lalezar-Font/OTF/Lalezar-Regular.otf") format("opentype"),
    url("../Fonts/Lalezar-Font/TTF/Lalezar-Regular.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Lalezar;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f5fa;
  color: #111;
  overflow-x: hidden;
  transition: 0.35s;
}

body.dark {
  background: #09090b;
  color: white;
}

/* Glow */

.glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  -webkit-filter: blur(120px);
  filter: blur(120px);
  z-index: -1;
}

.glow1 {
  top: -150px;
  right: -100px;
  background: rgba(139, 92, 246, 0.22);
}

.glow2 {
  bottom: -150px;
  left: -100px;
  background: rgba(217, 70, 239, 0.18);
}

/* Navbar */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  transition: all linear 0.3s;
  z-index: 999;
}

.nav-container {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all linear 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.dark .nav-container {
  background: rgba(24, 24, 27, 0.75);
  border: 1px solid #27272a;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 35px;
  transition: all linear 0.3s;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 0%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  transition: 0.3s;
  transition: all linear 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn,
.menu-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.75);
  transition: all linear 0.3s;
}

body.dark .theme-btn,
body.dark .menu-btn {
  background: #18181b;
  color: white;
}

.menu-btn {
  display: none;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 8%;
}

.hero-content {
  max-width: 850px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f3e8ff;
  color: #7c3aed;
  padding: 12px 22px;
  border-radius: 999px;
  margin-bottom: 30px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  line-height: 2;
  color: #666;
  margin-bottom: 40px;
}

body.dark .hero p {
  color: #aaa;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 16px 32px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.primary-btn {
  background: linear-gradient(to right, #7c3aed, #d946ef);
  color: white;
}

.secondary-btn {
  border: 1px solid #ddd;
  color: #111;
}

body.dark .secondary-btn {
  color: white;
  border: 1px solid #27272a;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-6px);
}

/* Sections */

section {
  padding: 90px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.section-title p {
  color: #666;
}

body.dark .section-title p {
  color: #aaa;
}

/* Server */

.server-card {
  max-width: 750px;
  margin: auto;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  padding: 20px;
  display: flex;
  gap: 15px;
  border: 1px solid #eee;
}

body.dark .server-card {
  background: #18181b;
  border: 1px solid #27272a;
}

.server-card input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: inherit;
}

.server-card button {
  border: none;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  color: white;
  padding: 15px 28px;
  border-radius: 16px;
  cursor: pointer;
}

.hidden {
  display: none;
}

#copy-btn {
  transition: 0.3s;
}

#copy-btn:active {
  transform: scale(0.95);
}

/* Tutorial */

.tutorial-box {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-box {
  min-height: 420px;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .video-box {
  background: #18181b;
  border: 1px solid #27272a;
}

.download-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-card {
  text-decoration: none;
  color: white;
  padding: 18px 30px;
  border-radius: 18px;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  transition: 0.3s;
}

.download-card:hover {
  transform: translateY(-6px);
}

/* Rules */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.rule-item {
  padding: 35px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eee;
  text-align: center;
}

body.dark .rule-item {
  background: #18181b;
  border: 1px solid #27272a;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 35px;
  padding: 40px;
  text-align: center;
  border: 1px solid #eee;
}

body.dark .team-card {
  background: #18181b;
  border: 1px solid #27272a;
}

.team-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
  margin-bottom: 25px;
}

.team-card h3 {
  margin-bottom: 10px;
}

.team-card span {
  color: #7c3aed;
}

/* Social */

.social-section {
  background: linear-gradient(to right, #7c3aed, #d946ef);
}

.white h2,
.white p {
  color: white;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.social-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.social-card:hover {
  transform: translateY(-8px);
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  margin: auto auto 20px;
  background: rgba(255, 255, 255, 0.15);
}

.social-card span {
  display: block;
  margin-top: 12px;
  opacity: 0.7;
}

/* Footer */

.footer {
  padding: 80px 8% 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom span {
  color: #7c3aed;
}

/* Responsive */

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 110%;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 24px;
    padding: 25px;
    flex-direction: column;
    display: none;
  }

  body.dark .nav-links {
    background: #18181b;
  }

  .nav-links.show {
    display: flex;
  }

  .hero h1 {
    font-size: 3.3rem;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 180px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .server-card {
    flex-direction: column;
  }
}

/* Sperator */

section {
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(124, 58, 237, 0.2),
    transparent
  );
}

/* Dark sep */

body.dark section::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(168, 85, 247, 0.25),
    transparent
  );
}

section {
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(124, 58, 237, 0.35),
    rgba(217, 70, 239, 0.35),
    transparent
  );

  opacity: 0.6;
}

/* Dark */
body.dark section::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(168, 85, 247, 0.35),
    rgba(236, 72, 153, 0.25),
    transparent
  );
  opacity: 0.8;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar Base */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Thumb (Light Mode) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #7c3aed, #d946ef);
  border-radius: 999px;
}

/* Hover */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #8b5cf6, #ec4899);
}

body.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #a855f7, #ec4899);
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #c084fc, #f472b6);
}

/* Rule Hover Effect */

.rule-item {
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* back ground effect */
.rule-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15),
    rgba(217, 70, 239, 0.12)
  );
  opacity: 0;
  transition: 0.35s ease;
}

/* main hover */
.rule-item:hover {
  transform: translateY(-8px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.35);
}

/* effect active */
.rule-item:hover::before {
  opacity: 1;
}

.video-wrapper {
  width: 100%;
  max-width: 900px;
  margin: auto;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

/* برای iframe */
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* برای video */
.video-wrapper video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.rule-item {
  transition: 0.3s;
}

.rule-item:hover {
  transform: translateY(-8px);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.bi {
  display: inline-block;
  align-content: center;
  justify-content: center;
  font-size: 2rem;
}

.social-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.team-card {
  transition: 0.35s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.25);
}

#server,
#tutorial,
#rules,
#team,
#shop,
#social {
  scroll-margin-top: 135px;
}

.logo img {
  width: 55px;
  height: 55px;
  -o-object-fit: contain;
  object-fit: contain;
}

/* SHOP */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.shop-card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eee;
  border-radius: 30px;
  padding: 22px;
  overflow: hidden;
  transition: 0.35s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.dark .shop-card {
  background: #18181b;
  border: 1px solid #27272a;
}

.shop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.22);
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12),
    rgba(217, 70, 239, 0.06)
  );
  opacity: 0;
  transition: 0.35s;
}

.shop-card:hover::before {
  opacity: 1;
}

.shop-img {
  width: 100%;
  /* aspect-ratio: 16 / 9; */
  /* object-fit: cover; */
  -o-object-position: center;
  object-position: center;
  border-radius: 22px;
  margin-bottom: 22px;
  display: block;
}

.shop-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.legendary {
  background: linear-gradient(to right, #f59e0b, #f97316);
}

.shop-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.shop-card span {
  color: #a855f7;
  display: block;
  margin-bottom: 20px;
}

.shop-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.shop-card ul li {
  opacity: 0.85;
  line-height: 1.8;
}

.shop-price {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 20px;
  justify-self: center;
  color: #7c3aed;
}

.buy-btn {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 18px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  margin-top: auto;
  transition: 0.3s;
  z-index: 3;
}

.buy-btn:hover {
  transform: scale(1.02);
}

/* MOBILE */

@media (max-width: 700px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-card {
    padding: 18px;
  }

  .shop-img {
    height: 200px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .shop-img {
    height: 180px;
  }
}

.kit-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.kit-items li {
  background: rgba(124, 58, 237, 0.08);
  padding: 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.kit-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
  min-height: 140px;
  font-family: sans-serif;
  display: inline-block;
  direction: ltr;
}

.kit-items li {
  font-family: sans-serif;
  display: inline-block;
}

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-price {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  align-self: center;
  color: #7c3aed;
}

#normal {
  color: white;
}

#advance {
  color: rgb(42, 86, 209);
}

#legend {
  color: rgb(182, 33, 33);
}

#bax {
  color: rgb(11, 179, 11);
}

.shop-sec {
  color: #7c3aed;
}

.Devix {
  cursor: pointer;
  z-index: 3;
  color: rgb(167, 33, 177);
}

#metal {
  color: gray;
}

#wood {
  color: rgb(202, 136, 81);
}

#safe {
  color: #5f5f7c;
}

.teamspeak-ip {
  margin-top: 2.5rem;
}

.teamspeak-btn {
  text-decoration: none;
  color: white;
  padding: 18px 30px;
  border-radius: 18px;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  transition: 0.3s;
  text-align: center;
}