/* ===== Index-Specific Styles ===== */
/* CSS Variables are now defined in shared/css/cyberpunk-base.css */

/* ===== Index-Specific Base Styles ===== */
/* Base styles are now defined in shared/css/cyberpunk-base.css */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 40% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* Overlay for accessibility, does not cover footer */
#page-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100vw;
  background: rgba(18, 24, 38, 0.68);
  pointer-events: none;
  z-index: 0;
  transition: height 0.3s cubic-bezier(.4,0,.2,1);
}

/* Remove old body::after overlay code for clarity */
body::after { display: none !important; }

@media (max-width: 900px) {
  body::after {
    height: calc(100vh - 420px);
  }
}
@media (max-width: 600px) {
  body::after {
    height: calc(100vh - 520px);
  }
}
.hero::before, .background-grid, #particle-canvas {
  opacity: 0.13 !important; /* reduce grid/canvas contrast */
  filter: brightness(0.7) !important;
}
.glass-card, .feature-card, .btn-cyber, .btn-outline-cyber {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.btn-cyber, .btn-outline-cyber {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gradient-text, .cyberpunk-text, .section-header h2 {
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.cyberpunk-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue), var(--electric-blue), var(--cyber-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}

.glow-text {
  text-shadow: var(--neon-text-shadow);
}

.tech-font {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 500;
}

.display-text {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 1rem;
  word-spacing: 0.08em;
}

/* ===== Animations ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

/* ===== Glass Morphism & Neon Effects ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.glass::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientRotate 4s linear infinite;
}

.glass:hover::before {
  opacity: 0.7;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.8s ease;
}

.glass-card:hover::before {
  left: 100%;
}

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

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transition: width 0.1s ease;
  box-shadow: var(--primary-glow);
}

/* ===== Particle Canvas ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: linear-gradient(135deg, rgba(8, 15, 30, 0.95) 0%, rgba(12, 20, 40, 0.92) 50%, rgba(18, 28, 50, 0.95) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 2px solid rgba(0, 212, 255, 0.5);
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2), 0 8px 40px rgba(0, 0, 0, 0.25);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
  animation: borderGlow 3s ease-in-out infinite;
}

.navbar.scrolled {
  background: linear-gradient(135deg, rgba(6, 12, 25, 0.98) 0%, rgba(10, 18, 35, 0.96) 50%, rgba(15, 25, 45, 0.98) 100%);
  padding: 0.75rem 0;
  border-bottom-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 12px 50px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: var(--primary-glow);
  animation: gradientShift 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand i {
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px var(--primary));
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  transition: width 0.4s ease;
  box-shadow: 0 0 10px currentColor;
}

.navbar-brand:hover::after {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.nav-link i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--glass-bg);
  transform: translateY(-3px);
  border-color: var(--glass-border);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
  text-shadow: 0 0 10px currentColor;
}

.nav-link:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px currentColor);
}

.nav-link.active {
  color: var(--primary);
  background: var(--glass-bg);
  border-color: var(--primary);
  box-shadow: var(--primary-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: var(--glass-bg);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
  box-shadow: var(--primary-glow);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== User Dropdown Menu ===== */
.user-dropdown {
  position: relative;
}

.user-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: rgba(24, 32, 54, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #e0f7fa;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
  text-decoration: none;
}

.user-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  color: #fff;
}

.user-dropdown .dropdown-item[href*="profile"]:hover {
  background: rgba(31, 212, 123, 0.15);
  color: #1fd47b;
}

.user-dropdown .dropdown-item[href*="logout"]:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.user-dropdown .dropdown-item i {
  width: 16px;
  transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover i {
  transform: scale(1.1);
}

/* ===== Buttons ===== */
.btn-cyber {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.025em;
  box-shadow: var(--card-shadow);
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

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

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-cyber:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-outline-cyber {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.btn-outline-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-outline-cyber:hover::before {
  width: 100%;
}

.btn-outline-cyber:hover {
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.btn-outline-cyber:active {
  transform: translateY(-2px) scale(1.02);
}

/* Button Icons */
.btn-cyber i, .btn-outline-cyber i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-cyber:hover i, .btn-outline-cyber:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
    var(--bg-primary);
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%2300ffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
  z-index: 1;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 2rem;
  line-height: 0.9;
  position: relative;
}

.hero-content .lead {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

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

.floating-element:nth-child(1) { 
  top: 5%; 
  left: 15%; 
  animation-delay: 0s; 
}
.floating-element:nth-child(2) { 
  top: 15%; 
  right: 10%; 
  animation-delay: 1.5s; 
}
.floating-element:nth-child(3) { 
  bottom: 25%; 
  left: 5%; 
  animation-delay: 3s; 
}
.floating-element:nth-child(4) { 
  bottom: 10%; 
  right: 15%; 
  animation-delay: 4.5s; 
}

.hero-center-element {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 3px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: centerPulse 4s ease-in-out infinite;
  box-shadow: 
    0 0 50px var(--primary-glow),
    inset 0 0 50px rgba(0, 255, 255, 0.1);
}

.hero-center-element::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  z-index: -1;
  animation: gradientRotate 3s linear infinite;
}

.inner-ring {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 30px var(--secondary-glow),
    inset 0 0 30px rgba(255, 0, 255, 0.1);
}

.code-symbol {
  font-size: 4rem;
  color: var(--primary);
  text-shadow: var(--neon-text-shadow);
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  25% { 
    transform: translateY(-25px) rotate(5deg); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  50% { 
    transform: translateY(0px) rotate(0deg); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  75% { 
    transform: translateY(-15px) rotate(-5deg); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  }
}

@keyframes centerPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 50px var(--primary-glow);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 0 80px var(--primary-glow);
  }
}

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

/* ===== Section Styles ===== */
.section {
  padding: 80px 2rem; /* Reduced from 100px for consistency */
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.code-section {
  background: var(--bg-secondary);
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ===== Roadmap Cards ===== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.roadmap-card {
  padding: 2rem;
  position: relative;
}

.roadmap-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roadmap-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.roadmap-icon.beginner { 
  background: linear-gradient(45deg, var(--secondary), #10B981); 
}
.roadmap-icon.intermediate { 
  background: linear-gradient(45deg, var(--primary), var(--primary-dark)); 
}
.roadmap-icon.advanced { 
  background: linear-gradient(45deg, var(--accent), var(--accent-dark)); 
}

.roadmap-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.roadmap-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.roadmap-list {
  list-style: none;
  margin-top: 1.5rem;
}

.roadmap-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.roadmap-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.roadmap-list li:last-child {
  border-bottom: none;
}

/* ===== Code Editor Section ===== */
.code-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.code-editor-wrapper {
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  position: relative;
}

.editor-header {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.editor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.editor-dot.red { background: #EF4444; }
.editor-dot.yellow { background: #F59E0B; }
.editor-dot.green { background: #10B981; }

.editor-title {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.run-button {
  margin: 1rem 1.5rem;
  background: linear-gradient(45deg, var(--secondary), #10B981);
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.run-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.output-panel {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
}

.output-header {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.output-content {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  min-height: 200px;
  white-space: pre-wrap;
  color: var(--secondary);
}

/* ===== Quiz Section ===== */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.quiz-card {
  padding: 2rem;
  position: relative;
}

.quiz-difficulty {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.quiz-difficulty.easy {
  background: rgba(16, 185, 129, 0.2);
  color: var(--secondary);
}

.quiz-difficulty.medium {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary);
}

.quiz-difficulty.hard {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
}

.quiz-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.quiz-progress {
  background: var(--bg-secondary);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ===== Resources Section ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.resource-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-header {
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.resource-header.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.resource-header.bg-success { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.resource-header.bg-info { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.resource-header.bg-warning { background: linear-gradient(135deg, #F59E0B, #D97706); }
.resource-header.bg-danger { background: linear-gradient(135deg, #EF4444, #DC2626); }
.resource-header.bg-secondary { background: linear-gradient(135deg, #6B7280, #4B5563); }

.resource-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.resource-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.resource-body p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.resource-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.resource-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.resource-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.resource-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.resource-link:hover {
  color: var(--primary);
}

.resource-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

/* ===== Testimonials Section ===== */
.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 3rem;
  text-align: center;
  position: relative;
  min-height: 400px;
}

.quote-mark {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-shadow: var(--primary-glow);
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-style: italic;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bg-primary);
  box-shadow: var(--primary-glow);
}

.author-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

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

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glass-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  background: var(--primary);
  box-shadow: var(--primary-glow);
  transform: scale(1.2);
}

.testimonial-dots .dot:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

/* ===== Contact Section ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  position: relative;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--primary-glow);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--glass-border);
  position: relative;
  padding: 4rem 2rem 2rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
  animation: borderGlow 3s ease-in-out infinite;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-shadow: var(--primary-glow);
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
  text-shadow: 0 0 10px currentColor;
}

.footer-links a i {
  width: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.footer-links a:hover i {
  color: var(--accent);
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  color: var(--bg-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--primary-glow);
  filter: brightness(1.2);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* ===== Animation Classes ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Spotlight Sections ===== */
.spotlight-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.spotlight-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.spotlight-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.spotlight-text li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.spotlight-text li i {
  color: var(--secondary);
  margin-right: 0.8rem;
}

.spotlight-preview {
  padding: 1.5rem;
  background: rgba(30,41,59,0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
}

.preview-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-header div {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.preview-header div div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.preview-header div div:nth-child(1) { background: #EF4444; }
.preview-header div div:nth-child(2) { background: #F59E0B; }
.preview-header div div:nth-child(3) { background: #10B981; }

.preview-content {
  background: #1E293B;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.roadmap-progress {
  margin-bottom: 1.5rem;
}

.progress-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-item div {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.progress-item.completed div {
  background: var(--secondary);
}

.progress-item.current div {
  background: var(--primary);
}

.progress-item.pending div {
  background: var(--bg-tertiary);
  border: 2px solid var(--text-muted);
}

.progress-item i {
  color: white;
  font-size: 0.8rem;
}

/* ===== Responsive Spotlight Sections ===== */
@media (max-width: 968px) {
  .spotlight-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .spotlight-preview {
    order: -1;
  }
}

@media (max-width: 768px) {
  .spotlight-text h3 {
    font-size: 1.3rem;
  }
  
  .spotlight-preview {
    padding: 1rem;
  }
  
  .preview-content {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .spotlight-content {
    gap: 1.5rem;
  }
  
  .spotlight-text li {
    font-size: 0.9rem;
  }
  
  .progress-item {
    font-size: 0.9rem;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .hero-container {
    gap: 3rem;
  }
  
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
    height: 300px;
  }
  
  .hero-center-element {
    width: 280px;
    height: 280px;
  }
  
  .inner-ring {
    width: 200px;
    height: 200px;
  }
  
  .floating-element {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .code-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Navigation responsive styles handled in cyberpunk-base.css */
  
  
  .section {
    padding: 60px 1rem;
  }
  
  .hero {
    padding: 80px 1rem 40px;
  }
  
  .display-text {
    font-size: clamp(1.8rem, 7vw, 3rem);
    text-align: center;
    margin: 0 auto;
    padding: 0 0.5rem;
    line-height: 1.2;
    word-spacing: 0.05em;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 90px 1rem 50px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cyber, .btn-outline-cyber {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .floating-element {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .hero-center-element {
    width: 240px;
    height: 240px;
  }
  
  .inner-ring {
    width: 160px;
    height: 160px;
  }
  
  .code-symbol {
    font-size: 3rem;
  }
  
  .section {
    padding: 50px 1rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem 1rem;
    min-height: auto;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
}

/* ===== High DPI & Retina Displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-center-element::before {
    background-size: 200% 200%;
  }
  
  .glass::before {
    background-size: 200% 200%;
  }
}

/* ===== Print Styles ===== */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar, .back-to-top, #particle-canvas {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}


/* ===== Join Now Button Hide When Logged In ===== */
.join-now-btn.hidden {
  display: none !important;
}

