:root {
  --background: #0A0A0A;
  --bg-color: #0A0A0A;
  --accent-color: #de2c44;
  --accent-hover: #E63950;
  --card-bg: rgba(0,0,0,0.1);
  --glow-color: #ce1e36;
}

body {
  background-color: var(--background);
  color: var(--text-color);
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(15, 15, 15, 0.8)),
    url('../E5.webp') center/40% no-repeat;
  display: flex;
  background-attachment: fixed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  box-sizing: initial;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px var(--glow-color);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--light);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: var(--light);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 10px;
  }
  100% {
    opacity: 0;
    top: 28px;
  }
}

.scroll-indicator p {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--light-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navbar */
.nav-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--card-bg);
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-links.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

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

@media (min-width: 769px) {
  .menu-btn {
    display: none;
  }
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s;
}

.primary-btn, .secondary-btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--accent-color);
  color: #fff;
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--glow-color);
}

/* Submenu */
.hasmenu {
  position: relative;
}

.hasmenu .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border-radius: 8px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
}

.hasmenu .submenu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.hasmenu .submenu li a:hover {
  background: var(--accent-hover);
}

/* لما يفتح بالـ JS */
.hasmenu .submenu.show {
  display: flex;
}

/* موبايل: نخلي القائمة الفرعية تحت العنصر */
@media (max-width: 768px) {
  .hasmenu .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-right: 1rem;
  }

  .hasmenu .submenu li a {
    padding: 8px 0;
    font-size: 14px;
  }
}

/* Features */
.features {
  padding: 6rem 2rem;
  background-color: var(--bg-color);
}

.features h2 {
  font-size: 2.5rem;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 4rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--accent-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.feature-item h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--text-color);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  header { padding: 1rem 2rem; }
  .logo { font-size: 1.5rem; }
  .nav-links { display: flex; gap: 1.5rem; }
  .hero { padding: 2rem; }
  .hero h1 { font-size: 4rem; }
  .hero p { font-size: 1.5rem; }
  .hero-buttons { flex-direction: row; }
  .primary-btn, .secondary-btn { width: auto; padding: 1rem 2.5rem; }
  .features { padding: 6rem 2rem; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Special Buttons */
.whit-btn {
  background: linear-gradient(135deg, #de2c44 0%, #ce1e36 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 12px rgba(230, 57, 80 ,0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* FiveM Button */
.fivem-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.fivem-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(230, 57, 80 ,0.4);
  gap: 25px;
}

.fivem-btn:hover .fivem-icon {
  transform: rotate(15deg);
}

.fivem-btn:active {
  transform: scale(0.95);
}

.staff-section {
  background-color: var(--dark-200);
  position: relative;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.staff-card {
  background-color: var(--dark-300);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 12px rgba(230, 57, 80 ,0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.staff-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  background-color: var(--dark-400);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--light);
}

.staff-role {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.staff-role.owner {
  background-color: var(--accent);
  color: var(--light);
}

.staff-role.admin {
  background-color: var(--primary);
  color: var(--light);
}

.staff-role.mod {
  background-color: var(--secondary);
  color: var(--light);
}

.staff-role.dev {
  background-color: #4CAF50;
  color: var(--light);
}

.staff-card p {
  color: var(--light-400);
  font-size: var(--text-md);
  margin-bottom: var(--space-md);
}

.staff-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.staff-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--dark-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-400);
  transition: all 0.3s ease;
}

.staff-socials a:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
}

.gallery-section {
  background-color: var(--dark);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  height: 200px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  color: var(--light);
  font-weight: 500;
  font-size: var(--text-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.connect-section {
  background-color: var(--dark-200);
  position: relative;
}

.connect-card {
  background-color: var(--dark-300);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(45deg, rgba(52, 102, 234, 0.05), rgba(151, 71, 255, 0.05));
}

.connect-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.connect-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--light);
}

.connect-header p {
  color: var(--light-400);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.connect-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.connect-method {
  text-align: center;
}

.connect-method h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.connect-method p {
  color: var(--light-400);
  font-size: var(--text-md);
  margin-bottom: var(--space-md);
}

.server-ip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background-color: var(--dark-400);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
}

.server-ip span {
  font-family: monospace;
  color: var(--light);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--light-400);
  cursor: pointer;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .rule-card {
    flex-direction: column;
  }
  
  .rule-number {
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
  
  .connect-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rules-tabs {
    flex-direction: column;
    width: 100%;
  }
  
  .tab-btn {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }