/* =========================================== */
/*     GAME PORTAL - NEON CYBER THEME          */
/* =========================================== */

/* 1. CSS VARIABLES - Neon Cyber Design Tokens */
:root {
  /* Neon Color Palette */
  --color-primary: #00f5ff;         /* Cyan neon */
  --color-primary-dark: #00c4cc;    
  --color-primary-light: #7df9ff;
  --color-secondary: #ff00ff;        /* Magenta neon */
  --color-accent: #39ff14;           /* Green neon */
  --color-warning: #ffff00;          /* Yellow neon */
  --color-error: #ff3131;            /* Red neon */
  --color-purple: #bf00ff;           /* Purple neon */
  --color-pink: #ff6ec7;             /* Pink neon */
  --color-orange: #ff9500;           /* Orange neon */

  /* Dark Background Colors */
  --color-bg-primary: #0a0a0f;       /* Deep dark */
  --color-bg-secondary: #12121a;     /* Slightly lighter */
  --color-bg-tertiary: #1a1a2e;      /* Card backgrounds */
  --color-bg-card: #16162a;          /* Card surface */
  
  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b4b4c4;
  --color-text-muted: #6b6b7b;
  --color-border: #2a2a3e;

  /* Neon Gradients */
  --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #ff00ff 100%);
  --gradient-secondary: linear-gradient(135deg, #39ff14 0%, #00f5ff 100%);
  --gradient-accent: linear-gradient(135deg, #ff6ec7 0%, #bf00ff 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  --gradient-cyber: linear-gradient(135deg, #ff00ff 0%, #00f5ff 50%, #39ff14 100%);
  
  /* Neon Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
  --glow-green: 0 0 20px rgba(57, 255, 20, 0.5), 0 0 40px rgba(57, 255, 20, 0.3);
  --glow-mixed: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 40px rgba(255, 0, 255, 0.3);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows with Neon Glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.8);
  --shadow-neon: 0 0 30px rgba(0, 245, 255, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 20px;
  --header-height: 80px;
}

/* 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(ellipse at 20% 80%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(57, 255, 20, 0.03) 0%, transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Cyber Grid Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}
.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 - Neon Cyber */
.header {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
  transition: all var(--transition-normal);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.25);
}

/* 5. HERO SECTION - Neon Cyber */
.hero {
  text-align: center;
  padding: 120px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--header-height);
  background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #1a1a2e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 0, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(0, 245, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.1) 0%, transparent 50%);
  animation: pulse-glow 6s ease-in-out infinite;
}

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

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  from {transform: translate(0, 0); }
  to {transform: translate(30px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
  animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
  0%, 100% {filter: brightness(1); }
  50% {filter: brightness(1.2); }
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.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.8rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

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

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

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

.welcome-card {
  background: var(--color-bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.welcome-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}

.welcome-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  display: block;
}

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

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

/* 6. FOOTER STYLES - Neon Cyber */
.footer {
  background: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: white;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-mixed);
}

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

.footer-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-normal);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.footer-link:hover {
  color: var(--color-secondary);
  text-shadow: var(--glow-magenta);
  transform: translateY(-1px);
}

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

.footer p {
  color: var(--color-text-secondary);
}

/* 7. BACK TO TOP BUTTON - Neon Cyber */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  background: var(--color-bg-tertiary);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--glow-cyan);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.back-to-top:hover {
  background: var(--color-primary);
  color: var(--color-bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.6), 0 0 60px rgba(0, 245, 255, 0.4);
}

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

/* 8. RESPONSIVE DESIGN */
@media (max-width: 768px) {
  :root {
    --container-padding: 15px;
    --header-height: 60px;
  }
  
  .container {
    padding: 0 var(--container-padding);
  }
  
  .hero {
    padding: 20px 0;
    margin-top: var(--header-height);
  }
  
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .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.8rem 1rem;
  }

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

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

  .welcome-card {
    padding: 15px;
  }

  .welcome-card i {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .welcome-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .welcome-card p {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: 20px 0;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 10px;
  }
  
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .footer {
    padding: var(--spacing-xl) 0;
  }
}