/* =========================================== */
/*     GAME PORTAL - MODERN PREMIUM THEME      */
/* =========================================== */

/* 1. CSS VARIABLES - Modern Design Tokens */
:root {
  /* Modern Color Palette */
  --color-primary: #6366f1;         /* Indigo 500 */
  --color-primary-dark: #4f46e5;    /* Indigo 600 */
  --color-primary-light: #818cf8;   /* Indigo 400 */
  --color-secondary: #ec4899;       /* Pink 500 */
  --color-accent: #10b981;          /* Emerald 500 */
  --color-warning: #f59e0b;         /* Amber 500 */
  --color-error: #ef4444;           /* Red 500 */
  --color-purple: #8b5cf6;          /* Violet 500 */
  --color-pink: #d946ef;            /* Fuchsia 500 */
  --color-orange: #f97316;          /* Orange 500 */

  /* Dark Background Colors - Clean Slate/Indigo */
  --color-bg-primary: #0f172a;      /* Slate 900 */
  --color-bg-secondary: #1e293b;    /* Slate 800 */
  --color-bg-tertiary: #334155;     /* Slate 700 */
  --color-bg-card: #1e293b;         /* Slate 800 */
  
  /* Text Colors */
  --color-text-primary: #f8fafc;    /* Slate 50 */
  --color-text-secondary: #94a3b8;  /* Slate 400 */
  --color-text-muted: #64748b;      /* Slate 500 */
  --color-border: #334155;          /* Slate 700 */

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --gradient-cyber: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); /* Kept for compatibility but softened */
  
  /* Glow Effects - Subtle/Removed */
  --glow-cyan: 0 4px 20px rgba(99, 102, 241, 0.4); /* Re-mapped to Indigo */
  --glow-magenta: 0 4px 20px rgba(236, 72, 153, 0.4); /* Re-mapped to Pink */
  --glow-green: 0 4px 20px rgba(16, 185, 129, 0.4); /* Re-mapped to Emerald */
  --glow-mixed: 0 4px 20px rgba(99, 102, 241, 0.3);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius - Modern Rounded */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows - Clean Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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 10px 30px -10px rgba(99, 102, 241, 0.5); /* Re-mapped to Indigo */
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-width: 1280px; /* Wider container */
  --container-padding: 24px;
  --header-height: 72px;
}

/* 2. BASE STYLES - Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 25%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle Grid Background Pattern (Optional, much cleaner) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}
.main-content{
    margin-top: 70px;
}
/* 3. LAYOUT COMPONENTS */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-padding);
}

/* 4. HEADER STYLES - Modern Glass */
.header {
  background: rgba(15, 23, 42, 0.85); /* Slate 900 with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.header::after {
  display: none; /* Remove neon line */
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-md);
}

/* 5. HERO SECTION - Modern Clean */
.hero {
  text-align: center;
  padding: 140px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0; /* Header is fixed */
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    conic-gradient(from 0deg at 50% 50%, rgba(99, 102, 241, 0.1) 0deg, transparent 60deg, transparent 300deg, rgba(236, 72, 153, 0.1) 360deg);
  filter: blur(60px);
  opacity: 0.6;
}

.hero::after {
  display: none; /* Remove moving grid */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #f8fafc 20%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: none; /* Remove neon glow */
  animation: none; /* Remove flicker */
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 1;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
  filter: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* 6. WELCOME SECTION */
.section-welcome {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-primary);
  text-align: center;
  position: relative;
}

.welcome-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.welcome-card {
  background: var(--color-bg-secondary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-normal);
  text-align: left;
}

.welcome-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.welcome-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  display: inline-flex;
  padding: 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
}

.welcome-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  font-weight: 700;
}

.welcome-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 6. FOOTER STYLES - Clean Modern */
.footer {
  background: var(--color-bg-secondary);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  position: relative;
}

.footer::before {
  display: none; /* Remove neon line */
}

.footer-links {
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-normal);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--color-primary);
  text-shadow: none;
  transform: translateY(-1px);
}

.footer-separator {
  color: var(--color-border);
  font-size: var(--font-size-sm);
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* 7. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.back-to-top.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* 8. RESPONSIVE DESIGN */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --header-height: 64px;
  }
  
  .container {
    padding: 0 var(--container-padding);
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.875rem 1rem;
  }

  /* Welcome Section */
  .section-welcome {
    padding: 40px 0;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .welcome-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
}