@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables - Modern Color Palette */
:root {
  --primary: #00d4ff;
  --secondary: #6b46c1;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --dark: #0f0f23;
  --dark-light: #1a1a2e;
  --dark-medium: #16213e;
  --light: #ffffff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  
  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--error) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.4);
  --shadow-neon-hover: 0 0 30px rgba(0, 212, 255, 0.6);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Modern Background with Animated Gradients */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107, 70, 193, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  animation: backgroundMove 20s ease-in-out infinite;
  z-index: -2;
}

@keyframes backgroundMove {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(20px) translateY(-20px); }
  50% { transform: translateX(-20px) translateY(20px); }
  75% { transform: translateX(20px) translateY(20px); }
}

/* Particles Background */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.particles-bg::before {
  top: -10px;
  left: 10%;
  animation-delay: -5s;
}

.particles-bg::after {
  top: -10px;
  left: 80%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh) translateX(100px); opacity: 0; }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.loader-circle {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(0, 212, 255, 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(15, 15, 35, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.nav-logo i {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all var(--transition-normal);
  border-radius: 10px;
  margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2001;
  box-shadow: var(--shadow-neon);
  transition: all var(--transition-normal);
}

.menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-neon-hover);
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 25px;
  background: white;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }

.menu-toggle.active span:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.menu-toggle.active span:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-medium) 100%);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.mobile-logo i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-items {
  list-style: none;
  padding: 20px 0;
}

.mobile-menu-items li {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease;
}

.mobile-menu.active .mobile-menu-items li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-items li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-items li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-items li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-items li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-items li:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu-items li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  color: var(--light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
}

.mobile-menu-items li a:hover {
  background: rgba(0, 212, 255, 0.1);
  border-left-color: var(--primary);
  color: var(--primary);
  padding-right: 40px;
}

.mobile-menu-items li a i {
  width: 20px;
  font-size: 1.2rem;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.content {
  padding-top: 70px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge i {
  font-size: 1rem;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.title-line {
  display: block;
  position: relative;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: slideIn 1s ease-out 1s both;
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  animation: countUp 2s ease-out 1.5s both;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 5px;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 500px;
}

.floating-elements {
  position: relative;
  width: 400px;
  height: 400px;
}

.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 20%;
  animation-delay: -2s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  position: relative;
}

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

/* Member Card */
.member-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.member-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(0, 212, 255, 0.3);
}

.member-card:hover::before {
  opacity: 0.05;
}

.member-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: var(--gradient-primary);
  padding: 4px;
  transition: all var(--transition-normal);
}

.member-card:hover .member-avatar img {
  transform: scale(1.1) rotate(5deg);
}

.member-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--dark);
}

.member-status.online {
  background: var(--success);
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.member-info {
  margin-bottom: 20px;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--light);
}

.member-role {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 15px;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.skill-tag {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1.2rem;
}

.social-link.discord:hover {
  background: #5865f2;
  border-color: #5865f2;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-primary);
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-neon);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-neon-hover);
}

.cta-button .button-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover .button-bg {
  left: 100%;
}

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

/* AOS Animation Overrides */
[data-aos] {
  transition-duration: 0.8s !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  
  .hero-visual {
    margin-top: 40px;
  }
  
  .floating-elements {
    width: 300px;
    height: 300px;
  }
  
  .hero-stats {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .content {
    padding-top: 0;
  }
  
  .hero {
    min-height: calc(100vh - 60px);
    padding: 20px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .floating-elements {
    width: 250px;
    height: 250px;
  }
  
  .floating-element {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .mobile-menu {
    width: 100vw;
    right: -100vw;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .member-card {
    padding: 20px;
  }
  
  .member-avatar {
    width: 100px;
    height: 100px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .team-section,
  .cta-section {
    padding: 60px 0;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #ffffff;
    --dark: #0f0f23;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .member-card {
    border-width: 2px;
  }
  
  .nav-link {
    border: 1px solid transparent;
  }
  
  .nav-link:hover,
  .nav-link.active {
    border-color: var(--primary);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .menu-toggle,
  .mobile-menu,
  .floating-elements,
  .particles-bg,
  .loading-screen {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .member-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}

/* اه تعبت وللله 😭😭😭😭 */