:root {
  --primary: #c77dff;
  --primary-dark: #9d4edd;
  --bg: #0a0a12;
  --card-bg: #15151f;
  --text: #f5f0ff;
  --text-muted: #b39ddb;
  --border: #2e1a47;
  --shadow: 0 4px 20px rgba(157, 78, 221, 0.3);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background-color: rgba(10, 10, 18, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
  white-space: nowrap;
}

.logo-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav a:hover {
  color: var(--primary);
  background-color: rgba(199, 125, 255, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
  margin-left: 1rem;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.menu-toggle:hover {
  background-color: rgba(199, 125, 255, 0.1);
  color: var(--primary);
}

.hero {
  text-align: center;
  padding: 5rem 0;
  position: relative;
  background: linear-gradient(rgba(10, 10, 18, 0.7), rgba(27, 17, 40, 0.7)),
              url('https://i.ibb.co/LXbkKw0X/header-2160x600-f30cf72e-2cee-45b0-90f7-53b36d2b33e6-1200x.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback for when hero background image fails to load */
.hero::before {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 18, 0.7), rgba(27, 17, 40, 0.7));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  min-width: 160px;
  text-align: center;
}

.btn.primary {
  background-color: var(--primary);
  color: var(--bg);
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background-color: rgba(199, 125, 255, 0.1);
}

section {
  padding: 4rem 0;
}

section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary);
}

/* Mobile menu toggle styling */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 0;
    display: none;
    z-index: 99;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 1rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 4px;
    text-align: left;
    transition: var(--transition);
  }

  .nav a:hover {
    background-color: rgba(199, 125, 255, 0.15);
    color: var(--primary);
    transform: translateX(5px);
  }

  .hero {
    min-height: 60vh;
    padding: 3rem 0 2rem;
  }
  
  .rules-grid {
    grid-template-columns: 1fr;
  }
  
  .concepts-grid {
    grid-template-columns: 1fr;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .rules-list {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .connect-code {
    font-size: 0.85rem;
    padding: 0.8rem 3rem 0.8rem 0.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    min-width: 140px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
  }
  
  .rule-card,
  .concept-card,
  .job-card,
  .stat-card,
  .feature-card {
    transition: none;
  }
  
  .rule-card:hover,
  .concept-card:hover,
  .job-card:hover,
  .stat-card:hover,
  .feature-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn.primary:hover {
    background-color: var(--primary-dark);
  }
  
  .rule-card,
  .concept-card,
  .job-card,
  .stat-card,
  .feature-card {
    will-change: auto;
  }
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rule-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  will-change: transform;
}

.rule-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.rule-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.basic-concepts {
  margin: 2rem 0;
}

.basic-concepts h3 {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.concept-card {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  will-change: transform;
  min-width: 0;
}

.concept-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.concept-card h4 {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.concept-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.server-rules {
  margin-top: 2rem;
}

.rules-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  color: var(--primary);
  text-align: center;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.rules-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.detailed-rules {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.rules-category {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(199, 125, 255, 0.2);
}

.rules-category:last-child {
  border-bottom: none;
}

.rules-category h3 {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  display: inline-block;
  border-bottom: 2px solid var(--primary);
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
  justify-content: center;
}

.rule-item {
  background: rgba(199, 125, 255, 0.1);
  padding: 0.8rem;
  border-radius: 4px;
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
  line-height: 1.5;
  min-width: 0;
}

.rules-description {
  margin: 0.8rem 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.rules-note {
  font-style: italic;
  color: var(--primary);
  margin: 0.8rem 0;
  text-align: center;
  font-weight: 600;
}

.rules-warning {
  color: #ff6b6b;
  margin: 0.8rem 0;
  font-weight: 600;
  text-align: center;
}

.robbery-rules {
  margin-top: 1.5rem;
}

.robbery-type {
  background: rgba(21, 21, 31, 0.6);
  padding: 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.robbery-type h4 {
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(199, 125, 255, 0.3);
}

.robbery-type p {
  margin: 0.8rem 0;
  line-height: 1.6;
}

.requirements {
  margin: 1rem 0;
  padding-left: 1rem;
}

.requirement {
  background: rgba(46, 26, 71, 0.4);
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  border-left: 2px solid var(--primary);
  font-size: 0.9rem;
}

.special-rules {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.special-rule {
  background: rgba(255, 107, 107, 0.15);
  padding: 0.8rem;
  margin: 0.8rem 0;
  border-radius: 4px;
  border-left: 3px solid #ff6b6b;
  font-weight: 500;
  line-height: 1.5;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.job-card {
  background: var(--card-bg);
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  will-change: transform;
  min-width: 0;
}

.job-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.job-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.job-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.connect {
  background: var(--card-bg);
  text-align: center;
  padding: 2rem 1rem;
}

.connect-code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 3.5rem 1rem 1rem; 
  margin: 1.5rem auto;
  max-width: 100%;
  width: 100%;
  min-width: 280px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1rem;
  color: var(--primary);
  border: 1px solid rgba(46, 26, 71, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect-code-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 600px;
}

.copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bg);
  transition: var(--transition);
  z-index: 1; 
}

.copy-btn svg {
  width: 20px;
  height: 20px;
}

.copy-btn:hover {
  background: var(--primary-dark);
}

.discord-cta {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.5rem 0 1rem;
  text-align: center;
  color: var(--text-muted);
}

.discord-cta a {
  margin-left: 0.5rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.stats {
  text-align: center;
  padding: 3rem 0;
}

.stats h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  background: var(--card-bg);
  padding: 2rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  will-change: transform;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.stat-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

.features {
  padding: 4rem 0;
  background: var(--bg);
}

.features h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  will-change: transform;
  min-width: 0;
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
}

.community {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(to bottom, #0a0a12, #1b1128);
}

.community h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.community p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
  padding: 4rem 0;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(199, 125, 255, 0.4);
  border: none;
}

.back-to-top a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(199, 125, 255, 0.6);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

footer {
  background: var(--card-bg);
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.social-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 4px;
  margin: 0 0.25rem;
  transition: var(--transition);
  width: 48px;
  height: 48px;
}

.social-btn:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.social-btn i,
.social-btn svg {
  width: 24px !important;
  height: 24px !important;
  font-size: 24px;
  min-width: 24px;
  min-height: 24px;
}



@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo,
  .footer-links {
    align-items: center;
  }
  
  .social-buttons {
    justify-content: center;
  }
  
  .social-btn {
    margin: 0 0.25rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .rule-card,
  .concept-card,
  .job-card,
  .stat-card,
  .feature-card {
    transition: none;
  }
  
  .rule-card:hover,
  .concept-card:hover,
  .job-card:hover,
  .stat-card:hover,
  .feature-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .social-btn:hover {
    transform: none;
  }
  
  .back-to-top a:hover {
    transform: none;
  }
}
