:root {
  /* 🎨 ألوان */
  --primary: #E63950;
  --primary-light: #5A84FF;
  --primary-dark: #E63950;
  --secondary: var(--primary);
  --secondary-light: var(--primary);
  --secondary-dark: #7B38D8;
  --text-color: #ffffff;  
  --accent: #FF4757;
  --accent-light: #FF6B77;
  --accent-dark: #D8293A;

  /* محايد */
  --dark: #121212;
  --dark-200: #1E1E1E;
  --dark-300: #252525;
  --dark-400: #2C2C2C;
  --dark-500: #383838;
  --light: #FFFFFF;
  --light-200: #F2F2F2;
  --light-300: #E0E0E0;
  --light-400: #BDBDBD;
  --light-500: #9E9E9E;

  /* أحجام النص */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* تباعد */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* أخرى */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 9999px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Tajawal', 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============= RTL ============= */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}
[dir="rtl"] .feature-card,
[dir="rtl"] .staff-card {
  text-align: right;
}

/* ============= Header & Nav ============= */
header {
  background-color: var(--dark);
  padding: 0 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  box-shadow: 0 2px 20px rgba(230, 57, 80 ,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-dark);
}

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

.nav-links a {
  color: var(--light);
  font-size: var(--text-md);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.menu-btn {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ============= Buttons ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: var(--text-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}
.btn i {
  margin-inline-end: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  box-shadow: 0 4px 10px rgba(230, 57, 80 ,0.3);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 57, 80 ,0.5);
}

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

.btn-discord {
  background-color: #5865F2;
  color: var(--light);
}
.btn-discord:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
}

/* ============= Discord Circle Btn ============= */
.discord-btn {
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.discord-btn i {
  color: white;
  font-size: 24px;
  transition: transform 0.3s ease;
}
.discord-btn:hover {
  transform: translateY(-3px);
}
.discord-btn:hover i {
  transform: scale(1.1);
}
.discord-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}
.discord-btn:active::after {
  transform: scale(2);
  opacity: 0;
}

/* ============= Section ============= */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
section {
  padding: var(--space-3xl) 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--border-radius-full);
}
.section-header p {
  color: var(--light-500);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ============= Footer ============= */
footer {
  background: var(--dark-);
  color: var(--light);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}
.social-links {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.social-links a {
  color: var(--light);
  font-size: 24px;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--primary);
}

/* ============= Glitch Effect ============= */
.glitch {
  position: relative;
  font-size: var(--text-6xl);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--light);
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--primary);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--secondary);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}
/* keyframes زي ما عندك */

/* ============= Responsive ============= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: 0;
    background: var(--dark-400);
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
}