/* ============================================
   IDEA ARCADE - LIQUID GLASS DESIGN SYSTEM
   ============================================ */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Color Palette - Arcade Theme */
  --bg-dark: #0f0f23;
  --bg-darker: #08080f;
  --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a0b2e 100%);
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-pink: #ff00ea;
  --neon-purple: #b537ff;
  --neon-green: #39ff14;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Shadow Depths */
  --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.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3);
  --shadow-neon-pink: 0 0 20px rgba(255, 0, 234, 0.5), 0 0 40px rgba(255, 0, 234, 0.3);
  
  /* Animation Easing */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  
  /* Border Radius - Universal Roundness */
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Z-Index Layers */
  --z-base: 1;
  --z-nav: 100;
  --z-modal: 1000;
  --z-tooltip: 2000;
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background Gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.8);
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

a:hover {
  color: var(--neon-pink);
}

/* ============================================
   GLASSMORPHIC UTILITIES
   ============================================ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  transition: all 0.4s var(--ease-bounce);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.glass-button {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-md) var(--space-xl);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  display: inline-block;
}

.glass-button:hover {
  background: var(--glass-bg-hover);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: scale(1.05);
}

.glass-input {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-md);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all 0.3s var(--ease-smooth);
  width: 100%;
}

.glass-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

/* ============================================
   UNIVERSAL ROUNDNESS
   ============================================ */

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.fade-in {
  animation: fadeIn 0.6s var(--ease-smooth) forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s var(--ease-bounce) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scale-in {
  animation: scaleIn 0.4s var(--ease-bounce) forwards;
  opacity: 0;
  transform: scale(0.9);
}

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

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile First: Base styles are for 320px+ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  :root {
    --text-5xl: 4rem;
    --text-6xl: 5rem;
  }
  
  .container {
    padding: 0 var(--space-xl);
  }
  
  .grid-cols-2-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .grid-cols-3-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-2xl);
}

/* ============================================
   NEON ACCENT UTILITIES
   ============================================ */

.neon-border-cyan {
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.neon-border-pink {
  border: 2px solid var(--neon-pink);
  box-shadow: var(--shadow-neon-pink);
}

.text-neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.text-neon-pink {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

/* ============================================
   FALLBACK FOR UNSUPPORTED BROWSERS
   ============================================ */

@supports not (backdrop-filter: blur(20px)) {
  .glass-card,
  .glass-button,
  .glass-input {
    background: rgba(26, 11, 46, 0.9);
  }
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.glass-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  z-index: var(--z-nav);
  transition: all 0.3s var(--ease-smooth);
}

.nav-wrapper {
  padding: var(--space-lg) 0;
}

.nav-logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.3s var(--ease-bounce);
}

.nav-logo:hover {
  transform: scale(1.05);
  color: var(--neon-cyan);
}

.logo-text {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-2xl);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--neon-cyan);
  background: var(--glass-bg);
}

.nav-link.active {
  color: var(--neon-cyan);
  background: var(--glass-bg);
  box-shadow: var(--shadow-neon-cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: calc(var(--z-nav) + 1);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: all 0.3s var(--ease-smooth);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s var(--ease-smooth);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: var(--space-3xl) var(--space-xl);
    transition: right 0.4s var(--ease-smooth);
    box-shadow: var(--shadow-xl);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.glass-footer {
  margin-top: var(--space-3xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-heading {
  font-size: var(--text-lg);
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.footer-description,
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s var(--ease-smooth);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--neon-cyan);
  padding-left: var(--space-sm);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  margin: 0;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  text-align: center;
  z-index: var(--z-base);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #ffffff, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: var(--space-xl);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--glass-bg);
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--neon-cyan), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-bounce), height 0.6s var(--ease-bounce);
  opacity: 0.3;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-neon-pink), var(--shadow-xl);
  border-color: var(--neon-pink);
}

.cta-icon {
  font-size: var(--text-2xl);
  animation: bounce 2s ease-in-out infinite;
}

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

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

.floating-orb {
  position: absolute;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-xl);
}

.orb-1 {
  width: 200px;
  height: 200px;
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  animation-delay: 0s;
  top: 10%;
  left: 10%;
}

.orb-2 {
  width: 150px;
  height: 150px;
  border: 2px solid var(--neon-pink);
  box-shadow: var(--shadow-neon-pink);
  animation-delay: 2s;
  top: 50%;
  right: 10%;
}

.orb-3 {
  width: 100px;
  height: 100px;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 20px rgba(181, 55, 255, 0.5);
  animation-delay: 4s;
  bottom: 10%;
  left: 50%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(-50px) rotate(0deg);
  }
  75% {
    transform: translateY(-30px) rotate(-5deg);
  }
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-description {
    margin-left: 0;
  }
}

/* ============================================
   CONCEPT PREVIEW SECTION
   ============================================ */

.concept-preview {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preview-card {
  text-align: center;
  padding: var(--space-2xl);
  transition: all 0.4s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-bounce);
}

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

.preview-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
}

.preview-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  animation: iconFloat 3s ease-in-out infinite;
}

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

.preview-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.preview-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ============================================
   ARCADE PAGE
   ============================================ */

.arcade-page {
  padding: var(--space-3xl) 0;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl) 0;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Level Grid */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.level-card {
  position: relative;
  padding: var(--space-2xl);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.4s var(--ease-bounce);
  border: 2px solid var(--glass-border);
}

.level-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan), var(--shadow-xl);
}

.level-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  pointer-events: none;
}

.level-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  animation: iconFloat 3s ease-in-out infinite;
}

.level-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.level-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.level-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.difficulty,
.status {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.difficulty {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.difficulty.beginner {
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.difficulty.intermediate {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.difficulty.advanced {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.difficulty.expert {
  color: var(--neon-purple);
  border-color: var(--neon-purple);
}

.status {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.status.unlocked {
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.status.locked {
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Keyboard Focus for Cards */
.level-card:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .level-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .level-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   TUTORIAL PAGE (HOW IT WORKS)
   ============================================ */

.tutorial-page {
  padding: var(--space-3xl) 0;
  min-height: 100vh;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl) 0;
}

.step {
  position: relative;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  transition: all 0.4s var(--ease-bounce);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 3px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--neon-cyan);
  margin-bottom: var(--space-lg);
}

.step-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  animation: iconFloat 3s ease-in-out infinite;
}

.step-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.step-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.step-connector {
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  margin: 0 auto;
  border-radius: var(--radius-full);
  opacity: 0.5;
}

/* Benefits Section */
.benefits {
  padding: var(--space-3xl) 0;
}

.benefits .section-title {
  margin-bottom: var(--space-3xl);
}

.benefits-grid {
  margin-bottom: var(--space-3xl);
}

.benefit-card {
  text-align: center;
  padding: var(--space-2xl);
  transition: all 0.4s var(--ease-bounce);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-pink);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.benefit-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.benefit-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  font-size: var(--text-base);
}

/* CTA Section */
.cta-section {
  padding: var(--space-3xl) 0;
}

.cta-content {
  text-align: center;
  padding: var(--space-3xl);
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.cta-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.cta-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop Layout for Steps */
@media (min-width: 1024px) {
  .steps-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .step {
    flex: 1;
  }
  
  .step-connector {
    width: 60px;
    height: 3px;
    align-self: center;
    margin-top: 80px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page {
  padding: var(--space-3xl) 0;
  min-height: 100vh;
}

/* Mission Section */
.mission {
  text-align: center;
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-3xl);
}

.mission-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mission-statement {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
}

/* Story Section */
.story {
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-3xl);
}

.section-heading {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xl);
  text-align: center;
  color: #ffffff;
}

.story-content {
  max-width: 700px;
  margin: 0 auto;
}

.story-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

.story-content strong {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Values Section */
.values {
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-3xl);
}

.values-grid {
  margin-top: var(--space-2xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
  transition: all 0.4s var(--ease-bounce);
  border: 2px solid var(--glass-border);
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.value-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.value-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.value-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* Contact Section */
.contact {
  padding: var(--space-3xl) 0;
}

.contact-content {
  text-align: center;
  padding: var(--space-3xl);
  border: 2px solid var(--neon-pink);
  box-shadow: var(--shadow-neon-pink);
}

.contact-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.contact-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-lg);
  border: 2px solid var(--neon-pink);
  box-shadow: var(--shadow-neon-pink);
}

.contact-link:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-neon-cyan);
  border-color: var(--neon-cyan);
}

.contact-icon {
  font-size: var(--text-2xl);
}

.contact-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: var(--space-lg);
}

/* ============================================
   ADVANCED INTERACTIONS & POLISH
   ============================================ */

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

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 4px solid var(--glass-border);
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-pink);
  animation: spin 1s linear infinite;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  z-index: calc(var(--z-nav) + 1);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* Button Ripple Effect */
.glass-button {
  position: relative;
  overflow: hidden;
}

.glass-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.glass-button:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
  transition: 0s;
}

/* Performance Optimizations */
.hero-visual,
.floating-orb,
.preview-icon,
.level-icon,
.step-icon {
  will-change: transform;
}

.glass-card,
.level-card,
.preview-card {
  contain: layout style paint;
}

/* Enhanced Focus Indicators */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 240, 255, 0.2);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-orb,
  .preview-icon,
  .level-icon,
  .step-icon,
  .cta-icon {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .glass-nav,
  .glass-footer,
  .loading-screen,
  .scroll-progress {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .glass-card,
  .level-card,
  .preview-card {
    border: 1px solid #000;
    background: white;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
  }
  
  .glass-card,
  .level-card,
  .preview-card {
    border-width: 2px;
  }
}

/* Smooth Page Transitions */
body.loaded {
  animation: pageLoad 0.5s var(--ease-smooth);
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Card Hover Glow Effect */
.glass-card::before,
.level-card::before,
.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.1),
    transparent 50%
  );
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.glass-card:hover::before,
.level-card:hover::before,
.preview-card:hover::before {
  opacity: 1;
}

/* Accessibility: Skip Link Styling */
.sr-only:focus {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  width: auto;
  height: auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--neon-cyan);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: var(--radius-2xl);
  z-index: 9999;
  clip: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}
