/* ══════════════════════════════════════════════════════════════════════════════
   CIUDAD DE PLATA — Estética futurista de terminal
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta ciudad de plata */
  --silver-100: #f8f9fa;
  --silver-200: #e9ecef;
  --silver-300: #dee2e6;
  --silver-400: #ced4da;
  --silver-500: #adb5bd;
  --silver-600: #6c757d;
  --silver-700: #495057;
  --silver-800: #343a40;
  --silver-900: #212529;
  --silver-950: #0d0f12;
  
  /* Acento rojo */
  --red: #dc2626;
  --red-glow: rgba(220, 38, 38, 0.4);
  --red-soft: rgba(220, 38, 38, 0.1);
  
  /* Liquid Glass iOS */
  --glass-blur: 20px;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Tema claro */
  --bg: var(--silver-100);
  --bg-alt: var(--silver-200);
  --surface: #ffffff;
  --text: var(--silver-900);
  --text-secondary: var(--silver-600);
  --text-muted: var(--silver-500);
  --border: var(--silver-300);
  --accent: var(--red);
  --accent-glow: var(--red-glow);
  --accent-soft: var(--red-soft);
  
  /* Terminal colors */
  --terminal-bg: var(--silver-950);
  --terminal-text: var(--silver-300);
  --terminal-prompt: var(--red);
  --terminal-cursor: var(--red);
  
  /* Tipografías */
  --font-mono: 'Consolas', 'Monaco', 'Lucida Console', monospace;
  --font-code: 'Consolas', monospace;
  
  /* Espaciado */
  --header-h: 72px;
  
  /* Transiciones */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glitch: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  --bg: var(--silver-950);
  --bg-alt: var(--silver-900);
  --surface: var(--silver-800);
  --text: var(--silver-200);
  --text-secondary: var(--silver-400);
  --text-muted: var(--silver-500);
  --border: var(--silver-700);
  --glass-bg: rgba(13, 15, 18, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-alt);
}
body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { 
  background: var(--accent); 
  border-radius: 0;
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

a { color: inherit; text-decoration: none; }
button { 
  font-family: inherit; 
  cursor: pointer; 
  background: none; 
  border: none; 
}
img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMACIONES COMPLEJAS
   ════════════════════════════════════════════════════════════════════════════ */

/* Typing cursor */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Glitch effect */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitchText {
  0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 0); }
  20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, 0); }
  40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px, 0); }
  60% { clip-path: inset(25% 0 58% 0); transform: translate(0); }
  80% { clip-path: inset(54% 0 7% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(58% 0 43% 0); transform: translate(-2px, 0); }
}

/* Scanlines */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Terminal typing */
@keyframes typeIn {
  from { width: 0; }
  to { width: 100%; }
}

/* Fade in from code */
@keyframes codeReveal {
  0% { 
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Matrix rain effect */
@keyframes matrixFall {
  0% { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); }
}

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

/* Flicker */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41.99% { opacity: 1; }
  42% { opacity: 0; }
  43% { opacity: 0; }
  43.01% { opacity: 1; }
  47.99% { opacity: 1; }
  48% { opacity: 0; }
  49% { opacity: 0; }
  49.01% { opacity: 1; }
}

/* Code reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .header.scrolled {
  background: rgba(13, 15, 18, 0.95);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
  position: relative;
}
.logo::before {
  content: '> ';
  color: var(--accent);
}
.logo::after {
  content: '_';
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: none; gap: 28px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link::before {
  content: './';
  color: var(--text-muted);
  margin-right: 2px;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::before { color: var(--accent); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::before { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.theme-toggle:hover { 
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

/* GitHub button */
.btn-github {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--terminal-bg);
  color: var(--silver-200);
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}
@media (min-width: 640px) { .btn-github { display: flex; } }
.btn-github:hover { 
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-github svg { width: 16px; height: 16px; }

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 999;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .nav-link {
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn:hover::before { transform: translateX(100%); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-terminal {
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border: 1px solid var(--silver-700);
}
.btn-terminal::after {
  content: '_';
  animation: blink 1s step-end infinite;
}
.btn-terminal:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

/* Scanline overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Grid background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-title .name {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title .name:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Glitch layers */
.hero-title .name::before,
.hero-title .name::after {
  content: 'Josh';
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.hero-title .name:hover::before {
  animation: glitchText 0.3s ease-in-out;
  color: #0ff;
  opacity: 0.7;
  left: 2px;
}
.hero-title .name:hover::after {
  animation: glitchText 0.3s ease-in-out reverse;
  color: #f0f;
  opacity: 0.7;
  left: -2px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-subtitle code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 14px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Terminal badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--silver-700);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.badge::before {
  content: '$';
  color: var(--accent);
}
.badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.badge svg { 
  width: 14px; 
  height: 14px; 
  color: var(--silver-500);
}

/* ════════════════════════════════════════════════════════════════════════════
   TERMINAL CARD
   ════════════════════════════════════════════════════════════════════════════ */

.terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--silver-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-code);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--silver-800);
  border-bottom: 1px solid var(--silver-700);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--silver-500);
}
.terminal-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--terminal-text);
}
.terminal-line {
  margin-bottom: 8px;
}
.terminal-prompt {
  color: var(--accent);
}
.terminal-command {
  color: var(--silver-200);
}
.terminal-output {
  color: var(--silver-400);
  padding-left: 20px;
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════════════════════ */

.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  margin-bottom: 60px;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: '// ';
  color: var(--text-muted);
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════════════════════ */

.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: height 0.4s var(--ease-out-expo);
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terminal-bg);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-title::before {
  content: '$ ';
  color: var(--accent);
}
.service-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════════════════════ */

.testimonials { background: var(--bg); }

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: var(--terminal-bg);
  border: 1px solid var(--silver-700);
  border-radius: var(--radius-lg);
  position: relative;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.testimonial-card::before {
  content: '/**';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  color: var(--silver-600);
  font-family: var(--font-code);
}
.testimonial-card::after {
  content: '*/';
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--silver-600);
  font-family: var(--font-code);
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.9;
  color: var(--silver-300);
  font-style: italic;
  margin-bottom: 28px;
  padding: 0 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 20px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-avatar--amber {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}
.testimonial-avatar--slate {
  background: linear-gradient(135deg, #475569, #0f172a);
}
.testimonial-name {
  font-weight: 600;
  color: var(--silver-200);
  margin-bottom: 4px;
}
.testimonial-role {
  font-size: 13px;
  color: var(--silver-500);
}

.testimonial-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease-out-expo);
}
.testimonial-slider .testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}
.testimonial-nav button {
  pointer-events: all;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.testimonial-nav button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.testimonial-nav svg {
    width: 20px;
    height: 20px;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .testimonial-wrapper {
    max-width: 100%;
  }
  .testimonial-nav {
    display: none;
  }
  .testimonial-card {
    padding: 32px 24px;
  }
  .testimonial-quote {
    padding: 0 50px;
  }
}


/* ════════════════════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════════════════════ */

.about { background: var(--bg-alt); }

.about-content {
  max-width: 700px;
}
.about-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.about-text strong {
  color: var(--text);
  font-weight: 600;
}
.about-text code {
  background: var(--terminal-bg);
  color: var(--accent);
  padding: 2px 8px;
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════════════════ */

.contact { background: var(--bg); }

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-discord {
  display: block;
  padding: 40px;
  background: var(--terminal-bg);
  border: 1px solid var(--silver-700);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}
.contact-discord:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}
.discord-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5865F2;
  color: white;
  border-radius: 16px;
}
.discord-icon svg { width: 32px; height: 32px; }
.contact-discord h3 {
  font-size: 20px;
  color: var(--silver-200);
  margin-bottom: 8px;
}
.contact-discord p {
  font-size: 14px;
  color: var(--silver-500);
  margin-bottom: 24px;
}
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #5865F2;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out-expo);
}
.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
}
.timezone {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.timezone svg { width: 16px; height: 16px; }
.float-animation { animation: float 4s ease-in-out infinite; }

.contact-shell {
  margin-top: 48px;
}

.contact-terminal {
  max-width: 560px;
  margin: 0 auto 24px;
  text-align: left;
}

.contact-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

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

.contact-discord-wide {
  max-width: none;
  margin: 0;
}

@media (min-width: 768px) {
  .contact-discord-wide {
    grid-column: span 2;
  }
}

.contact-card {
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: left;
}

.contact-card-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-card-title::before {
  content: '## ';
  color: var(--accent);
}

.contact-card p {
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.contact-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   PROJECTS PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.projects-hero {
  padding: calc(var(--header-h) + 80px) 0 60px;
  background: var(--bg-alt);
  position: relative;
}
.projects-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}
.projects-hero-content { position: relative; z-index: 1; }
.projects-hero h1 {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.projects-hero h1::before {
  content: '> ';
  color: var(--accent);
}
.projects-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 550px;
}

.projects-page { padding-bottom: 80px; }
.projects-category { margin: 60px 0 32px; }
.category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 600;
}
.category-title::before {
  content: '##';
  color: var(--accent);
}
.category-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terminal-bg);
  border-radius: var(--radius-md);
}
.category-icon svg { 
  width: 20px; 
  height: 20px;
}
.category-icon-stroke svg {
  stroke: var(--accent);
  fill: none;
}
.category-icon-fill svg {
  fill: var(--accent);
  stroke: none;
}
.category-description {
  margin-top: 8px;
  margin-left: 60px;
  font-size: 13px;
  color: var(--text-secondary);
}
.category-description::before {
  content: '// ';
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card { position: relative; }
.project-card-inner {
  height: 100%;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}
.project-card:hover .project-card-inner {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.project-card-featured { grid-column: span 1; }
@media (min-width: 768px) { .project-card-featured { grid-column: span 2; } }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terminal-bg);
  color: var(--accent);
  border-radius: var(--radius-md);
}
.project-icon svg { width: 22px; height: 22px; }
.project-icon-img {
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.project-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.status-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
}
.status-active { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-open { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-private { background: var(--accent-soft); color: var(--accent); }
.status-abandoned { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

.project-title { 
  font-size: 18px; 
  font-weight: 600; 
  margin-bottom: 12px; 
}
.project-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-features {
  flex-grow: 1;
  margin-bottom: 20px;
}
.project-features li {
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.project-features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tech-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--terminal-bg);
  color: var(--silver-400);
  border-radius: var(--radius-sm);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.project-link svg { width: 14px; height: 14px; }

.project-quote {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.project-quote blockquote {
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}
.project-quote blockquote::before { content: '"'; color: var(--accent); }
.project-quote blockquote::after { content: '"'; color: var(--accent); }
.project-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-style: normal;
}

/* Bots showcase */
.bots-showcase {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
@media (min-width: 768px) {
  .bots-showcase { grid-template-columns: repeat(2, 1fr); }
}
.bot-card {
  padding: 20px;
  background: var(--terminal-bg);
  border: 1px solid var(--silver-700);
  transition: all 0.3s var(--ease-out-expo);
}
.bot-card:hover {
  border-color: var(--accent);
}
.bot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.bot-tag::before {
  content: '@';
}
.bot-description {
  font-size: 12px;
  color: var(--silver-400);
  line-height: 1.6;
  margin-bottom: 12px;
}
.bot-features {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bot-features li {
  position: relative;
  padding-left: 16px;
  font-size: 11px;
  color: var(--silver-500);
  margin-bottom: 6px;
  line-height: 1.5;
}
.bot-features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.projects-cta {
  margin-top: 80px;
  padding: 60px;
  background: var(--terminal-bg);
  border: 1px solid var(--silver-700);
  text-align: center;
}
.projects-cta h3 {
  font-size: 24px;
  color: var(--silver-200);
  margin-bottom: 16px;
}
.projects-cta h3::before {
  content: '> ';
  color: var(--accent);
}
.projects-cta p {
  color: var(--silver-400);
  margin-bottom: 32px;
  font-size: 14px;
}

/* ════════════════════════════════════════════════════════════════════════════
   POETRY PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.poetry-hero {
  padding: calc(var(--header-h) + 80px) 0 60px;
  background: var(--bg-alt);
  position: relative;
}
.poetry-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}
.poetry-hero-content { position: relative; z-index: 1; }
.poetry-hero h1 {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.poetry-hero h1::before {
  content: '> ';
  color: var(--accent);
}
.poetry-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 550px;
}

.poetry-page { padding: 80px 0; }

.poetry-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .poetry-layout { 
    grid-template-columns: 1fr 280px; 
    gap: 64px;
  }
}

.poetry-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.poetry-index {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  height: fit-content;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.poetry-index-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.poetry-index-title::before {
  content: '// ';
}
.poetry-index-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poetry-index-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.2s;
}
.poetry-index-item a::before {
  content: '>';
  color: var(--text-muted);
  transition: color 0.2s;
}
.poetry-index-item a:hover {
  color: var(--accent);
}
.poetry-index-item a:hover::before {
  color: var(--accent);
}
.poetry-index-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Deprecated grid - keeping for backwards compatibility */
.poetry-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .poetry-grid { grid-template-columns: repeat(2, 1fr); }
}

.poem-card {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}
.poem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: width 0.4s var(--ease-out-expo);
}
.poem-card:hover::before { width: 100%; }
.poem-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.poem-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.poem-title::before {
  content: '# ';
  color: var(--accent);
}

.poem-content {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: 20px;
}

.poem-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.poem-meta::before {
  content: '// ';
  color: var(--accent);
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */

.footer {
  padding: 60px 0 40px;
  background: var(--terminal-bg);
  border-top: 1px solid var(--silver-700);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  font-weight: 600;
  font-size: 16px;
  color: var(--silver-200);
}
.footer-brand::before {
  content: '> ';
  color: var(--accent);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-link {
  font-size: 13px;
  color: var(--silver-400);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-link.is-active { color: var(--accent); }
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--silver-700);
}
.footer-legal a {
  font-size: 12px;
  color: var(--silver-500);
}
.footer-legal a:hover { color: var(--accent); }
.footer-copyright {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--silver-600);
}

/* ════════════════════════════════════════════════════════════════════════════
   LEGAL PAGES
   ════════════════════════════════════════════════════════════════════════════ */

.legal-page {
  padding: calc(var(--header-h) + 60px) 20px 80px;
}
.legal-content {
  max-width: 700px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.legal-content h1::before {
  content: '> ';
  color: var(--accent);
}
.legal-content .last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 20px;
  margin: 40px 0 16px;
}
.legal-content h2::before {
  content: '## ';
  color: var(--accent);
}
.legal-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}
.legal-content li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-content a {
  color: var(--accent);
}
.legal-content a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════════════════ */

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }

/* Responsive */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: calc(var(--header-h) + 20px) 0 60px; }
  .hero-title { font-size: 32px; }
  .projects-cta { padding: 40px 24px; }
  .terminal-body { padding: 16px; font-size: 12px; }
}
