/* ===== CodeGameSleep — Neon Dark Theme Starter ===== */
:root {
  --bg: #0b0b0d;
  --surface: #111114;
  --edge: #1b1b20;
  --text: #e6e6f0;
  --muted: #9aa0b3;

  /* Syntax-like accents */
  --code: #5aa0ff;   /* blue */
  --game: #3ddc97;   /* green */
  --sleep: #b875f7;  /* purple */

  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --edge: #e1e4e8;
  --text: #1a1a1a;
  --muted: #5a6270;

  /* Keep accent colors vibrant in light mode */
  --code: #0066cc;
  --game: #00a86b;
  --sleep: #8b5cf6;

  --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { 
  height: 100%;
  scroll-behavior: smooth;
}
body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Background decorative elements */
body::before,
body::after {
  content: '';
  position: fixed;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--code);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  white-space: pre;
  overflow: hidden;
  text-shadow: 0 0 10px currentColor;
  filter: blur(0.3px);
}
body::before {
  content: 'function gameLoop() {\n  while(true) {\n    code();\n    game();\n    sleep();\n  }\n}\n\n// "GG WP"\n// "GLHF"\n\nconst build = () => {\n  deploy();\n  celebrate();\n};\n\nif (motivated) {\n  createEpicStuff();\n}\n\n/* Victory Royale */\n/* Achievement */\n\nlet skills = [\n  "Python",\n  "Swift", \n  "JavaScript",\n  "React",\n  "Node.js",\n  "CSS",\n  "HTML"\n];\n\n// Level Up!\n// Press Start\n\nfor (let i = 0; i < ∞; i++) {\n  improve();\n  grind();\n}\n\n"Achievement"\n"Unlocked 🏆"\n\nconst passion =\n  code + games;\n\nimport success\nfrom hardwork;\n\n// Epic Win\n// Boss Fight\n\nclass Developer {\n  constructor() {\n    this.skills = [];\n    this.level = 1;\n  }\n  levelUp() {\n    this.level++;\n  }\n}';
  top: 80px;
  left: -160px;
  width: 220px;
  transform: rotate(-12deg);
}
body::after {
  content: '# Player Ready\n# Mission Start\n\ndef main():\n    while alive:\n        learn()\n        build()\n        ship()\n        repeat()\n\n"Press Start"\n"New Game+"\n\n// Mission Complete\n// Victory Royale\n\nconst dream = \n  passion * effort;\n\nif coding:\n    print("✓")\n    print("GG")\n\n/* High Score */\n/* Combo x10 */\n\nfunc levelUp() {\n  skills++;\n  confidence++;\n  experience++;\n}\n\n// "GLHF"\n// "GGWP"\n// "Clutch"\n\nimport React from\n  "awesome";\nimport { win } from\n  "hardwork";\n\nlet journey = {\n  start: "now",\n  end: "never",\n  goal: "legend"\n};\n\n"New Game+"\n"Respawn"\n\nwhile learning {\n  keep_going();\n  never_quit();\n}\n\n// Epic Win\n// Legendary\n\nconst grind =\n  hustle + focus;';
  top: 80px;
  right: -160px;
  width: 220px;
  transform: rotate(12deg);
}

[data-theme="light"]::before,
[data-theme="light"]::after {
  opacity: 0.18;
  color: var(--sleep);
}

/* Animated floating code lines */
@keyframes float {
  0%, 100% { 
    transform: translateY(0) rotate(-12deg);
    opacity: 0.25;
  }
  50% { 
    transform: translateY(-30px) rotate(-12deg);
    opacity: 0.35;
  }
}
@keyframes floatRight {
  0%, 100% { 
    transform: translateY(0) rotate(12deg);
    opacity: 0.25;
  }
  50% { 
    transform: translateY(-30px) rotate(12deg);
    opacity: 0.35;
  }
}
body::before {
  animation: float 25s ease-in-out infinite;
}
body::after {
  animation: floatRight 30s ease-in-out infinite;
}

/* Main content wrapper to ensure it's above background */
main {
  position: relative;
  z-index: 1;
}

/* Geometric decorative elements */
main::before {
  content: '';
  position: fixed;
  top: 30%;
  left: -20px;
  width: 160px;
  height: 160px;
  border: 3px solid var(--code);
  opacity: 0.25;
  border-radius: 20px;
  transform: rotate(45deg);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
  box-shadow: 0 0 30px var(--code), inset 0 0 30px var(--code);
}
main::after {
  content: '';
  position: fixed;
  bottom: 20%;
  right: -20px;
  width: 130px;
  height: 130px;
  border: 3px solid var(--sleep);
  opacity: 0.25;
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 10s ease-in-out infinite reverse;
  box-shadow: 0 0 30px var(--sleep), inset 0 0 30px var(--sleep);
}

@keyframes pulse {
  0%, 100% { 
    transform: rotate(45deg) scale(1);
    opacity: 0.25;
    box-shadow: 0 0 30px currentColor, inset 0 0 30px currentColor;
  }
  50% { 
    transform: rotate(45deg) scale(1.15);
    opacity: 0.4;
    box-shadow: 0 0 50px currentColor, inset 0 0 50px currentColor;
  }
}

[data-theme="light"] main::before,
[data-theme="light"] main::after {
  opacity: 0.2;
}

/* Additional decorative gaming quotes */
@media (min-width: 1200px) {
  body {
    background-image: 
      linear-gradient(90deg, var(--edge) 1px, transparent 1px),
      linear-gradient(0deg, var(--edge) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: -1px -1px;
  }
  [data-theme="light"] body {
    background-image: 
      linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px),
      linear-gradient(0deg, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
  }
  
  /* Add extra floating elements for large screens */
  body {
    position: relative;
  }
  body::before,
  body::after {
    font-size: 0.85rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(17,17,20,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.9);
}

/* Side decorative quotes */
.site-header::before,
.site-header::after {
  content: '';
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--code);
  opacity: 0.35;
  pointer-events: none;
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-weight: 700;
  z-index: 0;
  text-shadow: 0 0 15px currentColor;
  animation: glow 3s ease-in-out infinite;
}
.site-header::before {
  content: '{ CODE • GAME • SLEEP }';
  left: 15px;
}
.site-header::after {
  content: '{ THE LOOP NEVER ENDS }';
  right: 15px;
}
[data-theme="light"] .site-header::before,
[data-theme="light"] .site-header::after {
  opacity: 0.28;
  color: var(--sleep);
}

@keyframes glow {
  0%, 100% { 
    opacity: 0.35;
    text-shadow: 0 0 15px currentColor;
  }
  50% { 
    opacity: 0.5;
    text-shadow: 0 0 25px currentColor, 0 0 35px currentColor;
  }
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 0.65rem; 
  text-decoration: none; 
  color: var(--text);
  transition: transform 0.2s ease;
}
.brand:hover {
  transform: scale(1.02);
}
.logo { 
  height: 36px; 
  width: 36px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.brand:hover .logo {
  transform: rotate(-5deg);
}
.brand-text { 
  font-weight: 700; 
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav { display: flex; gap: 1rem; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, transform .15s ease;
  position: relative;
}
.nav a:hover { 
  color: var(--text); 
  background: var(--edge); 
  transform: translateY(-1px); 
}
.nav a.active {
  color: var(--code);
  background: rgba(90,160,255,0.1);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--code);
  border-radius: 50%;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--edge);
  transform: scale(1.05);
}
.theme-toggle svg {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
  color: var(--text);
}
.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--text);
}
[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

/* Hero */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 62vh;
  padding: 5rem 1.25rem 3.5rem;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(138,115,255,0.18) 0%, rgba(138,115,255,0) 70%),
    radial-gradient(45% 35% at 25% 10%, rgba(90,160,255,0.18) 0%, rgba(90,160,255,0) 65%),
    radial-gradient(35% 30% at 75% 12%, rgba(61,220,151,0.20) 0%, rgba(61,220,151,0) 65%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '// PLAYER ONE READY\n// GAME ON\n>>> import success\n>>> from victory\n{ level: ∞ }\n{ xp: 9999 }\nprint("Hello, World!")\nprint("Let\'s Code!")\n<GamerTag />\n<ProPlayer />\nfunc main() { ... }\nfunc win() { ... }\n// GG EZ\n// NO SCOPE\nconst win = true;\nconst epic = 100;\n// CLUTCH\n// ACE';
  position: absolute;
  top: 15%;
  left: 3%;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--code);
  opacity: 0.28;
  white-space: pre;
  line-height: 2;
  pointer-events: none;
  animation: fadeSlide 15s ease-in-out infinite;
  text-shadow: 0 0 20px currentColor;
}
.hero::after {
  content: 'Achievement 🏆\nUnlocked!\n// VICTORY ROYALE\n// LEGENDARY\nlet grind = hustle;\nlet skill = practice;\n>>> Level Up!\n>>> Rank Up!\n{ respawn: true }\n{ immortal: true }\n"Press Start"\n"New Game+"\nif (tryAgain) {\n  win();\n  celebrate();\n}\n// GGWP\n// MVP\n// BEAST MODE';
  position: absolute;
  bottom: 15%;
  right: 3%;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--sleep);
  opacity: 0.28;
  white-space: pre;
  line-height: 2;
  pointer-events: none;
  animation: fadeSlide 18s ease-in-out infinite reverse;
  text-shadow: 0 0 20px currentColor;
}

@keyframes fadeSlide {
  0%, 100% { 
    opacity: 0.28;
    transform: translateY(0);
  }
  50% { 
    opacity: 0.42;
    transform: translateY(-15px);
  }
}

[data-theme="light"] .hero::before,
[data-theme="light"] .hero::after {
  opacity: 0.22;
}
@keyframes fadeSlide {
  0%, 100% { 
    opacity: 0.18;
    transform: translateY(0);
  }
  50% { 
    opacity: 0.28;
    transform: translateY(-10px);
  }
}
[data-theme="light"] .hero::before {
  animation: fadeSlideLightLeft 15s ease-in-out infinite;
}
[data-theme="light"] .hero::after {
  animation: fadeSlideLightRight 18s ease-in-out infinite;
}
@keyframes fadeSlideLightLeft {
  0%, 100% { 
    opacity: 0.22;
    transform: translateY(0);
  }
  50% { 
    opacity: 0.35;
    transform: translateY(-15px);
  }
}
@keyframes fadeSlideLightRight {
  0%, 100% { 
    opacity: 0.22;
    transform: translateY(0);
  }
  50% { 
    opacity: 0.35;
    transform: translateY(-15px);
  }
}

[data-theme="light"] .hero {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(139,92,246,0.12) 0%, rgba(139,92,246,0) 70%),
    radial-gradient(45% 35% at 25% 10%, rgba(0,102,204,0.10) 0%, rgba(0,102,204,0) 65%),
    radial-gradient(35% 30% at 75% 12%, rgba(0,168,107,0.12) 0%, rgba(0,168,107,0) 65%);
}

.hero h1 {
  font-size: clamp(2.4rem, 3.5vw + 1.5rem, 4.25rem);
  margin: 0 0 0.35rem;
  font-weight: 850;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 2;
}
.hero .code { color: var(--code); }
.hero .game { color: var(--game); }
.hero .sleep { color: var(--sleep); }

.icon-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.icon-wrapper:hover {
  transform: translateY(-5px);
}

.hero-icon {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px currentColor);
}

.code-icon {
  color: var(--code);
  animation: pulse-code 3s ease-in-out infinite;
}
.game-icon {
  color: var(--game);
  animation: pulse-game 3.5s ease-in-out infinite;
}
.sleep-icon {
  color: var(--sleep);
  animation: pulse-sleep 4s ease-in-out infinite;
}

.icon-wrapper:hover .hero-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 20px currentColor);
}

.divider {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--edge), transparent);
  opacity: 0.5;
}

@keyframes pulse-code {
  0%, 100% { 
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px currentColor);
  }
  50% { 
    opacity: 1;
    filter: drop-shadow(0 6px 20px currentColor);
  }
}
@keyframes pulse-game {
  0%, 100% { 
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px currentColor);
  }
  50% { 
    opacity: 1;
    filter: drop-shadow(0 6px 20px currentColor);
  }
}
@keyframes pulse-sleep {
  0%, 100% { 
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px currentColor);
  }
  50% { 
    opacity: 1;
    filter: drop-shadow(0 6px 20px currentColor);
  }
}

.tagline {
  color: var(--muted);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}

.cta-row { 
  display: inline-flex; 
  gap: 0.8rem; 
  position: relative;
  z-index: 2;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn.primary { 
  background: linear-gradient(135deg, var(--code), var(--sleep)); 
  color: #0b0b0d; 
  border-color: transparent;
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(90,160,255,0.4);
}
.btn.ghost { 
  background: transparent; 
  color: var(--text); 
}
.btn.ghost:hover {
  background: rgba(90,160,255,0.1);
  border-color: var(--code);
  transform: translateY(-3px);
}
[data-theme="light"] .btn.ghost:hover {
  background: rgba(0,102,204,0.08);
}

/* Sections */
main section { padding: 3rem 1.25rem; max-width: 1100px; margin: 0 auto; }
main h2 { font-size: 1.75rem; margin-top: 0; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--code);
  box-shadow: 0 8px 25px rgba(90,160,255,0.2);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--code), var(--sleep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  color: var(--text);
  border-color: var(--code);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: linear-gradient(90deg, var(--code), var(--sleep));
  color: #0b0b0d;
  border-color: transparent;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--code), var(--game), var(--sleep));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--code);
  box-shadow: 0 12px 40px rgba(90,160,255,0.15), 0 0 0 1px rgba(90,160,255,0.3);
}
.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(90,160,255,0.15);
  color: var(--code);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tag.python {
  background: rgba(90,160,255,0.15);
  color: var(--code);
}
.tag.swift {
  background: rgba(255,149,0,0.15);
  color: #ff9500;
}
.tag.js {
  background: rgba(247,223,30,0.15);
  color: #f7df1e;
}
.card p {
  color: var(--muted);
  margin: 0.5rem 0 1rem;
  line-height: 1.6;
}
.card-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--code);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.card-link:hover {
  color: var(--game);
  transform: translateX(3px);
}
.card-link svg {
  opacity: 0.8;
}

/* Contact */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0.25rem 0; }
.contact a { color: var(--code); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* Gaming Clips Section */
.gaming-clips {
  background: var(--surface);
  padding: 4rem 1.25rem;
  margin: 2rem auto;
  border-radius: 20px;
  border: 1px solid var(--edge);
}
.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.clip-card {
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.clip-card:hover {
  transform: translateY(-5px);
  border-color: var(--game);
  box-shadow: 0 12px 30px rgba(61,220,151,0.2);
}

.clip-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--edge), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.clip-thumbnail::before {
  content: '🎮';
  font-size: 4rem;
  opacity: 0.3;
  position: absolute;
}
.play-icon {
  position: absolute;
  font-size: 3rem;
  color: var(--game);
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 2;
}
.clip-card:hover .play-icon {
  transform: scale(1.2);
  opacity: 1;
}
.clip-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
}
.clip-duration {
  background: rgba(0,0,0,0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
}

.clip-info {
  padding: 1rem;
}
.clip-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}
.clip-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.clip-game {
  color: var(--game);
  font-weight: 600;
}
.clip-views {
  opacity: 0.8;
}
.clip-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag.gaming {
  background: rgba(61,220,151,0.15);
  color: var(--game);
}

/* Submit Clip Section */
.submit-clip-section {
  margin-top: 3rem;
}
.submit-card {
  background: var(--bg);
  border: 2px solid var(--edge);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  transition: border-color 0.3s ease;
}
.submit-card:hover {
  border-color: var(--code);
}
.submit-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--text);
}
.submit-card > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.clip-submit-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--code);
  box-shadow: 0 0 0 3px rgba(90,160,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--game);
}
.checkbox-label:hover {
  color: var(--text);
}

.submit-btn {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-success {
  text-align: center;
  padding: 2rem;
  background: rgba(61,220,151,0.1);
  border: 2px solid var(--game);
  border-radius: 12px;
}
.success-icon {
  width: 60px;
  height: 60px;
  background: var(--game);
  color: var(--bg);
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}
.submit-success h4 {
  margin: 0 0 0.5rem;
  color: var(--game);
  font-size: 1.5rem;
}
.submit-success p {
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--edge);
  background: #0e0e11;
  text-align: center;
  padding: 1.25rem;
  color: var(--muted);
}
[data-theme="light"] .site-footer {
  background: #f0f1f3;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--code);
  border: 2px solid var(--edge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(90,160,255,0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(90,160,255,0.5);
  background: var(--game);
}
.back-to-top svg {
  color: #0b0b0d;
}

/* Responsive */
@media (max-width: 720px) {
  .nav { gap: 0.5rem; }
  .brand-text { display: none; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .cta-row { flex-direction: column; width: 100%; }
  .btn { width: 100%; text-align: center; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .card-header { flex-direction: column; align-items: flex-start; }
  
  /* Icon trio responsive */
  .icon-trio { gap: 1rem; }
  .hero-icon { height: 45px; }
  .divider { height: 30px; }
  
  /* Gaming clips responsive */
  .clips-grid { grid-template-columns: 1fr; }
  .submit-card { padding: 1.5rem; }
  .clip-meta { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  
  /* Hide decorative elements on mobile */
  body::before,
  body::after,
  .site-header::before,
  .site-header::after,
  main::before,
  main::after,
  .hero::before,
  .hero::after {
    display: none;
  }
}
