/* ============================================
   PREMIUM EDUZONE STYLESHEET
   A modern, polished design system
   ============================================ */

/* ================= CSS VARIABLES ================= */
:root {
  /* Primary Colors */
  --primary: #0d3b66;
  --primary-dark: #0a2d4f;
  --primary-light: #1e5a8f;
  
  /* Accent Colors */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  
  /* Secondary Colors */
  --emerald: #10b981;
  --emerald-light: #34d399;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0d3b66 0%, #1e5a8f 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-hero: linear-gradient(135deg, #0d3b66 0%, #1e3a5f 50%, #2d4a6f 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  --gradient-cta: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 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-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ================= GOOGLE FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ================= RESET & BASE ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

/* ================= UTILITY CLASSES ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-emerald { color: var(--emerald); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-500); }

.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary); }
.bg-gradient { background: var(--gradient-primary); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ================= ENHANCED NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: all var(--transition-bounce);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--emerald));
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  position: relative;
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-fast);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-cta {
  margin-left: var(--spacing-lg);
}

.nav-cta .btn {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transition: all var(--transition-base);
}

.nav-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--gray-100);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn::before {
  content: '';
  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;
}

.btn:hover::before {
  left: 100%;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

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

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

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.5);
}

.btn-emerald {
  background: var(--gradient-emerald);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ================= ENHANCED HERO SECTION WITH IMAGE BACKGROUND ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.85) 0%, rgba(30, 58, 95, 0.8) 30%, rgba(45, 74, 111, 0.75) 70%, rgba(58, 90, 127, 0.7) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Fallback if hero image is not available */
.hero.no-hero-image {
  background: linear-gradient(135deg, #0d3b66 0%, #1e3a5f 30%, #2d4a6f 70%, #3a5a7f 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: shimmer 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-2xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--emerald-light);
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.6s ease forwards;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.hero-badge::before {
  content: '✨';
  font-size: 1rem;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero h2 span {
  background: linear-gradient(135deg, #818cf8 0%, #34d399 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-stat {
  text-align: center;
  position: relative;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
}

.hero-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.hero-stat-value::after {
  content: '+';
  color: var(--emerald-light);
  font-size: 1.5rem;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Floating Elements */
.hero-decoration {
  position: absolute;
  border-radius: var(--radius-xl);
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.hero-decoration-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.hero-decoration-2 {
  width: 200px;
  height: 200px;
  background: var(--emerald);
  bottom: 20%;
  left: 5%;
  animation-delay: 1s;
  filter: blur(30px);
}

.hero-decoration-3 {
  width: 150px;
  height: 150px;
  background: var(--accent-light);
  top: 30%;
  left: 10%;
  animation-delay: 2s;
  filter: blur(20px);
}

/* ================= ENHANCED SECTIONS ================= */
.section {
  padding: var(--spacing-4xl) 0;
  position: relative;
}

.section-light {
  background: var(--gray-50);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-gradient {
  background: var(--gradient-primary);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.section-header .section-title::after {
  width: 60px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-top: var(--spacing-lg);
}

.section .section-title {
  color: var(--white);
}

.section .section-title::after {
  background: var(--gradient-emerald);
}

.section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Decorative elements for sections */
.section-decoration {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

.section-decoration-1 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 10%;
  right: 5%;
  filter: blur(40px);
}

.section-decoration-2 {
  width: 150px;
  height: 150px;
  background: var(--emerald);
  bottom: 10%;
  left: 5%;
  filter: blur(30px);
}

/* ================= CARDS ================= */
.card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= ENHANCED IMAGE SLOTS FOR GAMES ================= */
.card .img-placeholder,
.game-cover-image,
.skill-cover-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
}

.card .img-placeholder::before,
.game-cover-image::before,
.skill-cover-image::before {
  content: 'Add Cover Image';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.card .img-placeholder img,
.game-cover-image img,
.skill-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.card:hover .img-placeholder,
.card:hover .game-cover-image,
.card:hover .skill-cover-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Image upload/placeholder styling */
.image-upload-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: var(--spacing-sm);
  font-style: italic;
}

.image-upload-hint a {
  color: var(--accent);
  text-decoration: underline;
}

/* Game card specific enhancements */
.game-card {
  position: relative;
  overflow: hidden;
}

.game-card .game-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--gradient-emerald);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
}

.game-card .game-play-btn {
  position: absolute;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  z-index: 3;
}

.game-card .game-play-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.card-horizontal {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.card-horizontal .card-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--emerald);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ================= GRID LAYOUTS ================= */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ================= PRICING CARDS ================= */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--gray-200);
}

.pricing-card h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: var(--spacing-sm);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--primary);
}

.pricing-price span {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--gray-500);
}

.pricing-features {
  margin-bottom: var(--spacing-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  color: var(--gray-600);
}

.pricing-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--emerald);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ================= CTA SECTION ================= */
.cta {
  background: var(--gradient-accent);
  padding: var(--spacing-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--spacing-lg);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  display: inline-block;
}

.footer-brand p {
  line-height: 1.7;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--spacing-xl);
  text-align: center;
  font-size: 0.9rem;
}

/* ================= ENHANCED DASHBOARD HEADERS ================= */
.dashboard-body {
  background: var(--gray-50);
  min-height: 100vh;
}

.dashboard-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--spacing-lg) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-xl);
  border-bottom: 3px solid var(--accent);
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--emerald), var(--accent));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header h2 {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.dashboard-header h2::before {
  content: '🎯';
  font-size: 1.2rem;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.dashboard-header .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
}

.dashboard-header .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.dashboard-user-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.dashboard-container {
  padding: var(--spacing-2xl) 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.dashboard-section:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.dashboard-section h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.dashboard-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.dashboard-section p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

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

/* Dashboard Cards */
.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.dashboard-card:hover {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.dashboard-card:hover::before {
  transform: scaleX(1);
}

.dashboard-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-base);
}

.dashboard-card:hover img {
  transform: scale(1.05);
}

.dashboard-card h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--gray-900);
}

.dashboard-card p {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  color: var(--gray-600);
}

/* ================= AUTH STYLES ================= */
.auth-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: 
    linear-gradient(135deg, rgba(13, 59, 102, 0.95) 0%, rgba(30, 58, 143, 0.95) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: cover, 50px 50px;
  padding: var(--spacing-xl);
}

.auth-container {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 450px;
  animation: scaleIn 0.5s ease forwards;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-header h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
  color: var(--gray-900);
}

.auth-header p {
  color: var(--gray-500);
}

.auth-role-selection {
  margin-bottom: var(--spacing-xl);
}

.auth-role-selection p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.role-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.role-btn {
  flex: 1;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.role-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.role-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.auth-form .btn {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 1rem;
  margin-top: var(--spacing-sm);
}

.auth-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ================= FEATURES SECTION ================= */
.features {
  padding: var(--spacing-4xl) 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: var(--gray-50);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  border-radius: var(--radius-xl);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.feature-item p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ================= ABOUT SECTION ================= */
.about-section {
  padding: var(--spacing-4xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--gradient-accent);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.3;
}

/* ================= TESTIMONIALS ================= */
.testimonials {
  background: var(--gray-50);
  padding: var(--spacing-4xl) 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.testimonial-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ================= NEWSLETTER ================= */
.newsletter {
  background: var(--gradient-primary);
  padding: var(--spacing-3xl) 0;
}

.newsletter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-2xl);
}

.newsletter-content h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
}

.newsletter-form input {
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  width: 300px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: var(--spacing-md) var(--spacing-xl);
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-form input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    gap: var(--spacing-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .role-buttons {
    flex-direction: column;
  }
  
  .dashboard-container {
    padding: var(--spacing-lg);
  }
  
  .dashboard-section {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: var(--spacing-3xl);
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: var(--spacing-3xl) 0;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}

/* ================= SCROLLBAR STYLING ================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ================= SELECTION STYLING ================= */
::selection {
  background: var(--accent);
  color: var(--white);
}

/* ================= FOCUS STYLES ================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ================= PRINT STYLES ================= */
@media print {
  .navbar,
  .hero-buttons,
  .cta,
  .footer {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

