/* CSS Variables - Professional Cyberpunk Theme */
:root {
  /* Primary Colors */
  --accent-primary: #00c896;
  --accent-secondary: #ff4fa3;
  
  /* Backgrounds */
  --bg-dark: #0c0f12;
  --bg-soft: #12161b;
  --bg-card: #1a1f25;
  
  /* Text */
  --text-primary: #e9edf1;
  --text-muted: #9aa6b2;
  
  /* Effects */
  --ring-color: rgba(0, 200, 150, 0.4);
  --shadow-accent: rgba(0, 200, 150, 0.5);
  --shadow-secondary: rgba(255, 79, 163, 0.3);
  
  /* Borders */
  --border-primary: #2a3038;
  --border-accent: rgba(0, 200, 150, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  
  /* Legacy support - map old variables to new ones */
  --bg-primary: var(--bg-dark);
  --bg-secondary: var(--bg-soft);
  --bg-tertiary: var(--bg-card);
  --neon-cyan: var(--accent-primary);
  --neon-pink: var(--accent-secondary);
  --neon-green: #00c896;
  --border: var(--border-primary);
  --text-secondary: var(--text-muted);
  --accent: #ffa726;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}


/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--text-primary);
  font-weight: 700;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--accent-primary);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 2s infinite linear alternate-reverse;
  color: var(--accent-secondary);
  z-index: -2;
}

@keyframes glitch-1 {
  0% { clip-path: inset(40% 0 61% 0); }
  5% { clip-path: inset(92% 0 1% 0); }
  10% { clip-path: inset(43% 0 1% 0); }
  15% { clip-path: inset(25% 0 58% 0); }
  20% { clip-path: inset(54% 0 7% 0); }
  25% { clip-path: inset(58% 0 43% 0); }
  30% { clip-path: inset(54% 0 65% 0); }
  35% { clip-path: inset(27% 0 40% 0); }
  40% { clip-path: inset(43% 0 1% 0); }
  45% { clip-path: inset(40% 0 61% 0); }
  50% { clip-path: inset(92% 0 1% 0); }
  55% { clip-path: inset(43% 0 1% 0); }
  60% { clip-path: inset(25% 0 58% 0); }
  65% { clip-path: inset(54% 0 7% 0); }
  70% { clip-path: inset(58% 0 43% 0); }
  75% { clip-path: inset(54% 0 65% 0); }
  80% { clip-path: inset(27% 0 40% 0); }
  85% { clip-path: inset(43% 0 1% 0); }
  90% { clip-path: inset(40% 0 61% 0); }
  95% { clip-path: inset(92% 0 1% 0); }
  100% { clip-path: inset(43% 0 1% 0); }
}

@keyframes glitch-2 {
  0% { clip-path: inset(25% 0 58% 0); }
  5% { clip-path: inset(54% 0 7% 0); }
  10% { clip-path: inset(58% 0 43% 0); }
  15% { clip-path: inset(54% 0 65% 0); }
  20% { clip-path: inset(27% 0 40% 0); }
  25% { clip-path: inset(43% 0 1% 0); }
  30% { clip-path: inset(40% 0 61% 0); }
  35% { clip-path: inset(92% 0 1% 0); }
  40% { clip-path: inset(43% 0 1% 0); }
  45% { clip-path: inset(25% 0 58% 0); }
  50% { clip-path: inset(54% 0 7% 0); }
  55% { clip-path: inset(58% 0 43% 0); }
  60% { clip-path: inset(54% 0 65% 0); }
  65% { clip-path: inset(27% 0 40% 0); }
  70% { clip-path: inset(43% 0 1% 0); }
  75% { clip-path: inset(40% 0 61% 0); }
  80% { clip-path: inset(92% 0 1% 0); }
  85% { clip-path: inset(43% 0 1% 0); }
  90% { clip-path: inset(25% 0 58% 0); }
  95% { clip-path: inset(54% 0 7% 0); }
  100% { clip-path: inset(58% 0 43% 0); }
}

/* Clean Text Effect - No Glow */
.neon-text {
  color: var(--accent-primary);
  font-weight: 600;
  /* text-shadow: 
    0 0 5px var(--shadow-accent),
    0 0 10px var(--shadow-accent),
    0 0 15px var(--shadow-accent),
    0 0 20px var(--shadow-accent); */
}

/* Neon Button */
.neon-button {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ring-color), transparent);
  transition: left 0.5s;
}

.neon-button:hover::before {
  left: 100%;
}

.neon-button:hover {
  color: var(--text-primary);
  background: var(--accent-primary);
  /* box-shadow: 
    0 0 5px var(--shadow-accent),
    0 0 10px var(--shadow-accent),
    0 0 20px var(--shadow-accent); */
  text-shadow: none;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(12, 15, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  z-index: 1000;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-avatar {
  position: relative;
}

.nav-profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  transition: all 0.3s ease;
  object-fit: cover;
}

.nav-profile-img:hover {
  transform: scale(1.1);
  border-color: var(--accent-secondary);
}

.nav-logo {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
  /* filter: drop-shadow(0 0 5px var(--shadow-accent)); */
}

.nav-logo:hover {
  transform: scale(1.1) rotate(5deg);
  /* filter: drop-shadow(0 0 10px var(--shadow-accent)); */
}

/* Logo animation on hover */
.nav-avatar:hover .nav-logo {
  animation: logoGlitch 0.3s ease-in-out;
}

@keyframes logoGlitch {
  0%, 100% { transform: scale(1.1) rotate(5deg); }
  25% { transform: scale(1.05) rotate(-2deg); }
  50% { transform: scale(1.15) rotate(3deg); }
  75% { transform: scale(1.08) rotate(-1deg); }
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Mode Toggle */
.nav-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.mode-btn {
  background: none;
  border: 1px solid var(--border-primary);
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mode-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 8px var(--shadow-accent);
}

.mode-btn.active {
  background: var(--accent-primary);
  color: var(--bg-dark);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--shadow-accent);
}

.mode-btn.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.6;
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

.mode-separator {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 20px;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 200, 150, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 79, 163, 0.08) 0%, transparent 50%),
    var(--bg-dark);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  position: relative;
  z-index: 12;
}

.hero-title span:not(:last-child)::after {
  content: '';
  margin: 0 0.2em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 12;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 12;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-terminal {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 15;
}

/* Terminal Window */
.terminal-window {
  background: var(--bg-soft);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-accent);
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary);
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca3f; }

.terminal-content {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 8px;
}

.prompt { color: var(--neon-green); }
.comment { color: var(--text-muted); }
.keyword { color: var(--accent-secondary); }
.variable { color: var(--accent-primary); }
.string { color: #ffa726; }

.cursor-blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* About main layout - two columns */
.about-main-layout {
  display: block;
}

.about-left {
}

.about-right {
  flex: 0 0 240px; /* Fixed width for neural network */
}

/* Neural Network - 20% smaller */
.neural-network {
  width: 100%;
  height: 160px; /* 20% smaller than 200px */
  z-index: 20;
  pointer-events: auto;
  position: relative;
}

.network-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.network-node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.network-node:hover .node-circle {
  r: 8;
  filter: drop-shadow(0 0 8px currentColor);
}

.network-node.active .node-circle {
  r: 10;
  filter: drop-shadow(0 0 12px currentColor);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.node-circle {
  r: 6;
  transition: all 0.3s ease;
}

.node-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  font-weight: 600;
}

.connection-line {
  stroke-width: 1;
  opacity: 0.4;
  transition: all 0.3s ease;
  stroke-dasharray: 5,5;
  animation: dash-flow 3s linear infinite;
}

.connection-line.active {
  stroke-width: 2;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px currentColor);
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -10;
  }
}

@keyframes pulse-glow {
  0% { 
    filter: drop-shadow(0 0 12px currentColor);
    transform: scale(1);
  }
  100% { 
    filter: drop-shadow(0 0 20px currentColor);
    transform: scale(1.1);
  }
}

.network-legend {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

.legend-title {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.legend-subtitle {
  font-size: 10px;
  color: var(--text-muted);
}

/* Dev Mode Colors */
[data-portfolio-mode="dev"] .network-node .node-circle {
  fill: var(--accent-primary);
  stroke: var(--accent-primary);
}

[data-portfolio-mode="dev"] .network-node .node-text {
  fill: var(--text-primary);
}

[data-portfolio-mode="dev"] .connection-line {
  stroke: var(--accent-primary);
}

/* Marketing Mode Colors */
[data-portfolio-mode="marketing"] .network-node .node-circle {
  fill: var(--accent-secondary);
  stroke: var(--accent-secondary);
}

[data-portfolio-mode="marketing"] .network-node .node-text {
  fill: var(--text-primary);
}

[data-portfolio-mode="marketing"] .connection-line {
  stroke: var(--accent-secondary);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--bg-soft);
}

.about-eyebrow {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--accent-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.profile-photo {
  position: relative;
  flex-shrink: 0;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.profile-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: subtract;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.profile-photo:hover .profile-img {
  transform: scale(1.05);
}

.profile-photo:hover .profile-ring {
  opacity: 0.8;
}

.profile-text {
  flex: 1;
}

.profile-text h2 {
  margin-top: 0;
  text-align: left;
}

.profile-text .lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.about-cta-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-primary);
}

.cta-primary:hover {
  background: transparent;
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--accent-primary);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Profile section responsive */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .profile-text h2 {
    text-align: center;
  }
  
  .profile-img {
    width: 100px;
    height: 100px;
  }
  
  .about-cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cta-primary,
  .cta-secondary {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 40px rgba(0, 200, 150, 0.1);
}

.bento-card.large {
  grid-column: 1;
}

.bento-card h2,
.bento-card h3 {
  margin-bottom: 1rem;
}

.about-main-card {
  padding-bottom: 0 !important;
}

.about-main-card .work-button {
  margin-top: 20px;
  margin-bottom: 10px !important; /* Fixed from 40px */
}


/* Removed duplicate tech-stack rule - using override at bottom of file */

.tech-tag {
  background: rgba(0, 200, 150, 0.12);
  color: var(--accent-primary);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-accent);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(0, 200, 150, 0.2);
  transform: scale(1.05);
}

/* Now Building Card */
.now-building-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

.now-building-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.now-building-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Building Sections */
.building-section {
  margin-bottom: 2rem;
}

.building-section:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  border-bottom: 1px solid var(--border-accent);
  padding-bottom: 0.5rem;
  position: relative;
}

.section-subtitle::before {
  content: '>';
  color: var(--accent-primary);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Update item states */
.update-item.empty {
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
}

.update-item.loading {
  color: var(--accent-primary);
  position: relative;
}

.update-item.loading::after {
  content: '...';
  animation: dotPulse 1.5s infinite;
}

.update-item.error {
  color: var(--accent-secondary);
}

@keyframes dotPulse {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.live-updates {
  margin-bottom: 2rem;
  padding: 0;
  max-height: 140px; /* Reduced from 280px to accommodate two sections */
  overflow-y: auto;
  position: relative;
  
  /* Custom scrollbar for cyberpunk theme */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-soft);
}

/* Adjust live-updates in building sections */
.building-section .live-updates {
  margin-bottom: 1rem;
}

/* Project labels in now building section */
.project-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  margin-left: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  opacity: 0.9;
  border: 1px solid transparent;
}

/* Colorful project label variations */
.project-label.sunny-route {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border-color: rgba(255, 165, 0, 0.3);
}

.project-label.quizzie {
  background: rgba(138, 43, 226, 0.15);
  color: #ba55d3;
  border-color: rgba(138, 43, 226, 0.3);
}

.project-label.mealprepper {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.project-label.nearme {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.project-label.personal-site {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
}

/* Default project label */
.project-label:not([class*="sunny-route"]):not([class*="quizzie"]):not([class*="mealprepper"]):not([class*="nearme"]):not([class*="personal-site"]) {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
}

/* Section intro styling - centered */
.section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 1rem auto 2rem auto;
  max-width: 600px;
  line-height: 1.6;
}

.live-updates::-webkit-scrollbar {
  width: 6px;
}

.live-updates::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

.live-updates::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

.live-updates::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Fade effect for overflow indication */
.live-updates::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.live-updates.has-scroll::after {
  opacity: 1;
}

.update-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
}

.update-date {
  color: var(--accent-primary);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 70px;
}

.update-text {
  color: var(--text-primary);
  flex: 1;
}

.update-text.working-on {
  color: var(--accent-secondary);
  font-weight: 600;
}

.update-item.loading,
.update-item.error {
  justify-content: center;
  font-style: italic;
  opacity: 0.7;
}

.highlight-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-primary);
  padding-top: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 150, 0.1);
  border-radius: 8px;
  border: 1px solid var(--border-accent);
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.highlight-content strong {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.highlight-content span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Services Section */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 40px var(--shadow-secondary);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 2rem;
}

.service-list li::before {
  content: '▶';
  color: var(--neon-green);
  position: absolute;
  left: 0.5rem;
}

/* Projects Section */
.projects {
  padding: 100px 0;
  background: var(--bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card.featured-project {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 200, 150, 0.05) 100%);
  border: 1px solid var(--border-accent);
}

.project-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
}

.project-card:hover .project-glow {
  opacity: 0.6;
}

.project-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-status-wrapper {
  display: flex;
  align-items: center;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.building {
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.project-status.planning {
  background: rgba(0, 200, 150, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.project-status.building .status-dot {
  background: var(--accent);
}

.project-status.planning .status-dot {
  background: var(--accent-primary);
}

.project-status.success {
  color: var(--neon-green);
}

.project-status.success .status-dot {
  background: var(--neon-green);
}

.project-status.live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.project-status.live .status-dot {
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

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

.project-metrics {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.metric {
  text-align: center;
}

.metric-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-tag.highlight {
  background: rgba(0, 200, 150, 0.2);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  font-weight: 600;
}

.tech-tag.accent {
  background: rgba(255, 79, 163, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(255, 79, 163, 0.3);
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.project-link.primary {
  background: var(--accent-primary);
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
}

.project-link.primary:hover {
  background: transparent;
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.project-link.secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.project-link.secondary:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.link-icon {
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* Blog Section */
.blog {
  padding: 100px 0;
  background: var(--bg-soft);
}

.blog-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-blog {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 200, 150, 0.2);
  position: relative;
  overflow: hidden;
}

.terminal-blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.terminal-blog .terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-primary);
  background: rgba(0, 200, 150, 0.05);
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-left: auto;
}

.terminal-content {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}


.blog-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(42, 48, 56, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.blog-item:hover {
  background: rgba(0, 200, 150, 0.05);
  margin: 0 -20px 1rem -20px;
  padding: 0.75rem 20px;
  border-radius: 6px;
}

.blog-item.loading {
  cursor: default;
  opacity: 0.7;
}

.blog-item.loading:hover {
  background: transparent;
  margin: 0 0 1rem 0;
  padding: 0.75rem 0;
}

.blog-prompt {
  color: var(--neon-green);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 20px;
}

.blog-date {
  color: var(--accent-primary);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 80px;
  font-size: 0.8rem;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-title {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.blog-category {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-category.build-log {
  background: rgba(0, 200, 150, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 200, 150, 0.3);
}

.blog-category.learning {
  background: rgba(0, 200, 150, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
}

.blog-category.tutorial {
  background: rgba(255, 79, 163, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(255, 79, 163, 0.3);
}

.blog-category.launch {
  background: rgba(255, 167, 38, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.blog-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: rgba(155, 166, 178, 0.1);
  border-radius: 10px;
}

.terminal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-primary);
  background: rgba(0, 200, 150, 0.03);
}

.terminal-command {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.command-prompt {
  color: var(--neon-green);
  font-weight: 600;
}

.command-text {
  color: var(--text-muted);
  flex: 1;
}

.view-all-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.75rem;
}

.view-all-link:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Blog Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 15, 18, 0.95);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  z-index: 10001;
}

.terminal-blog-reader {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 200, 150, 0.3),
    0 0 40px rgba(0, 200, 150, 0.15);
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(50px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .terminal-blog-reader {
  transform: scale(1) translateY(0);
}

.terminal-blog-reader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.9;
}

.terminal-blog-reader .terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-primary);
  background: rgba(0, 200, 150, 0.05);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--accent-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
}

.modal-close:hover {
  background: rgba(255, 79, 163, 0.1);
  color: var(--text-primary);
  transform: translateY(-50%) scale(1.1);
}

.modal-content {
  padding: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 60vh;
  overflow-y: auto;
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-soft);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

.loading-blog {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.loading-blog .blog-prompt {
  color: var(--neon-green);
  font-weight: 600;
}

.loading-text {
  color: var(--text-primary);
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-primary);
  background: rgba(0, 200, 150, 0.03);
}

.terminal-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-info .command-prompt {
  color: var(--neon-green);
  font-weight: 600;
}

/* Blog content styling when loaded */
.blog-post-content {
  color: var(--text-primary);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  color: var(--accent-primary);
  margin: 1.5rem 0 1rem 0;
  font-weight: 700;
}

.blog-post-content h1 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-accent);
  padding-bottom: 0.5rem;
}

.blog-post-content h2 {
  font-size: 1.25rem;
}

.blog-post-content h3 {
  font-size: 1.1rem;
}

.blog-post-content p {
  margin: 1rem 0;
  line-height: 1.7;
}

.blog-post-content code {
  background: rgba(0, 200, 150, 0.1);
  color: var(--accent-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.blog-post-content pre {
  background: var(--bg-soft);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.blog-post-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modal-container {
    padding: 1rem;
  }
  
  .terminal-blog-reader {
    max-height: 95vh;
  }
  
  .modal-content {
    padding: 1.5rem;
    font-size: 0.85rem;
    max-height: 70vh;
  }
}

/* Contact Section */
.contact {
  padding: 100px 0;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--ring-color);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--bg-dark);
  padding: 0 8px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.submit-btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-primary);
  padding: 2rem 0;
}

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

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

/* Terminal Typing Effect */
.terminal-typing {
  font-family: 'JetBrains Mono', monospace;
}

.terminal-typing .char {
  opacity: 0;
  animation: typeChar 0.1s forwards;
}

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

/* Blog Content Styling Inside Modal */
.blog-content-loaded {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.blog-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-accent);
  margin-bottom: 20px;
}

.blog-command {
  color: var(--text-muted);
  margin-left: 10px;
}

.blog-body {
  padding: 0 10px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.blog-body::-webkit-scrollbar {
  width: 6px;
}

.blog-body::-webkit-scrollbar-track {
  background: transparent;
}

.blog-body::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

.blog-heading {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.2em;
  margin: 20px 0 10px 0;
  text-shadow: 0 0 10px var(--accent-primary);
}

.blog-heading:first-child {
  margin-top: 0;
}

.blog-paragraph {
  margin: 15px 0;
  color: var(--text-primary);
  line-height: 1.7;
}

.blog-list-item,
.blog-numbered-item {
  margin: 8px 0;
  color: var(--text-primary);
  padding-left: 10px;
}

.blog-list-item::before {
  content: "";
  color: var(--accent-secondary);
  font-weight: bold;
  margin-right: 5px;
}

.blog-code {
  margin: 20px 0;
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  background: rgba(0, 200, 150, 0.1);
  overflow: hidden;
}

.blog-code .code-header {
  background: var(--border-accent);
  padding: 8px 15px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-accent);
}

.blog-code pre {
  margin: 0;
  padding: 15px;
  overflow-x: auto;
}

.blog-code code {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.blog-quote {
  border-left: 3px solid var(--accent-secondary);
  background: rgba(255, 79, 163, 0.1);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-primary);
}

.blog-divider {
  text-align: center;
  margin: 30px 0;
  color: var(--border-accent);
  font-size: 18px;
  letter-spacing: 5px;
}

.blog-image {
  margin: 25px 0;
  text-align: center;
}

.blog-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.blog-image img:hover {
  transform: scale(1.02);
}

.blog-image-caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.blog-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-accent);
}

.blog-status {
  color: var(--text-muted);
  margin-left: 10px;
}

.blog-error {
  padding: 20px;
  text-align: center;
}

.error-text {
  color: var(--accent-secondary);
  font-weight: bold;
  margin-left: 10px;
}

.error-details {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 79, 163, 0.1);
  border-radius: 4px;
}

/* Loading animation for blog content */
.loading-blog {
  text-align: center;
  padding: 40px 20px;
}

.loading-text {
  margin-left: 10px;
  color: var(--text-muted);
}

/* Blog modal cursor blink */
.modal-content .cursor-blink {
  animation: blink 1s infinite;
  margin-left: 5px;
}

/* Recent Project Pitches Feed */
.recent-pitches-card {
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.1), rgba(15, 23, 42, 0.8));
}

.recent-pitches-feed {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 1rem;
}

.pitch-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 48, 56, 0.3);
  font-size: 0.85rem;
}

.pitch-item:last-child {
  border-bottom: none;
}

.pitch-date {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  flex-shrink: 0;
  min-width: 60px;
}

.pitch-text {
  flex: 1;
  color: var(--text-primary);
  line-height: 1.3;
}

.pitch-status {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  font-weight: 600;
}

.pitch-status.new {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.pitch-status.reviewing {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.pitch-status.lets-chat {
  background: rgba(0, 200, 150, 0.2);
  color: var(--accent-primary);
}

.pitch-status.building {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-secondary);
}

.pitch-status.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Blog Post Page Styling */
.blog-post-view main {
  display: none;
}

.blog-post-page {
  min-height: 100vh;
  background: var(--bg-dark);
  padding-top: 80px;
}

.blog-post-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.blog-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--accent-secondary);
}

.breadcrumb-separator {
  margin: 0 10px;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
}

.blog-post-article {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
}

.blog-post-header {
  padding: 40px 40px 30px;
  border-bottom: 1px solid var(--border-primary);
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-meta-separator {
  color: var(--text-muted);
}

.blog-post-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-top: 15px;
}

.blog-post-content {
  margin: 0 !important;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border-primary);
}

.blog-post-footer {
  padding: 30px 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-primary);
}

.blog-post-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog-post-share {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.share-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.share-btn.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
}

.share-btn.copy:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

/* Blog title link styling for timeline */
.blog-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title-link:hover {
  color: var(--accent-primary);
}

/* Secondary button variant */
.neon-button.secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-primary);
}

.neon-button.secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Responsive adjustments for blog posts */
@media (max-width: 768px) {
  .blog-post-wrapper {
    padding: 15px;
  }
  
  .blog-post-header {
    padding: 30px 20px 20px;
  }
  
  .blog-post-title {
    font-size: 2rem;
  }
  
  .blog-post-footer {
    padding: 20px;
  }
  
  .blog-post-actions {
    flex-direction: column;
  }
  
  .share-buttons {
    justify-content: center;
  }
}

/* Responsive Design */

/* Large Desktop - Prevent content from getting too wide */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-content {
    max-width: 900px;
  }
  
  .terminal-window {
    max-width: 600px;
  }
}

/* Desktop refinements */
@media (min-width: 1025px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet - Medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-card.large {
    grid-column: span 2;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
  }
  
  .terminal-window {
    max-width: 450px;
  }
}

/* Responsive Now Building heights - adjusted for two sections */
@media (min-width: 1200px) {
  .live-updates {
    max-height: 160px; /* Extra space on large screens */
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .live-updates {
    max-height: 130px; /* Slightly smaller on tablets */
  }
}

@media (max-width: 768px) {
  .live-updates {
    max-height: 110px; /* Compact on mobile */
  }
}

/* Mobile - Small screens */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .nav-brand {
    gap: 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .nav-links {
    gap: 0.8rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  .neon-button {
    padding: 8px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .nav-mode-toggle {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .mode-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .hero {
    padding: calc(var(--navbar-height, 80px) + 40px) 15px 20px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1.5rem;
  }
  
  .about-main-card .tech-stack {
    margin-left: 0 !important;
    justify-content: center;
    padding: 1rem 0;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  
  .stat-item {
    text-align: center;
    flex: 0 1 auto;
    min-width: 90px;
  }
  
  .stat-number {
    font-size: 1.2rem;
    display: block;
  }
  
  .stat-label {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  
  .hero-terminal {
    margin-top: 2rem;
  }
  
  .about-main-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-right {
    flex: none;
    align-self: center;
  }
  
  .neural-network {
    height: 120px; /* Even smaller on mobile */
    width: 200px;
  }
}

/* Hide on very small screens */
@media (max-width: 480px) {
  .neural-network {
    display: none; /* Hide on very small mobile for better performance */
  }
  
  .terminal-window {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .terminal-content {
    padding: 15px;
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .bento-card.large {
    grid-column: span 1;
  }
  
  .bento-card,
  .service-card,
  .project-card {
    padding: 1.5rem;
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .tech-stack {
    justify-content: center;
  }
  
  .project-links {
    justify-content: center;
  }
}

/* Reveal Animations */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.reveal-fade-up.revealed,
.reveal-slide-left.revealed,
.reveal-slide-right.revealed {
  opacity: 1;
  transform: translate(0);
}

/* Stagger animation delays */
.reveal-fade-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-fade-up:nth-child(2) { transition-delay: 0.2s; }
.reveal-fade-up:nth-child(3) { transition-delay: 0.3s; }
.reveal-fade-up:nth-child(4) { transition-delay: 0.4s; }

/* Extra small mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 0.75rem;
  }
  
  .hero {
    padding: calc(var(--navbar-height, 70px) + 50px) 10px 20px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-stats {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .stat-item {
    min-width: 90px;
  }
  
  .stat-number {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .terminal-window {
    margin: 0 5px;
  }
  
  .terminal-content {
    padding: 12px;
    font-size: 0.7rem;
  }
  
  .bento-card,
  .service-card,
  .project-card {
    padding: 1.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 10px;
  }
}

/* Neural Uplink Card Styles */
.neural-uplink-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.uplink-terminal {
  background: var(--bg-soft);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.uplink-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, var(--accent-primary) 50%, transparent 51%);
  opacity: 0.05;
  pointer-events: none;
  animation: glitch-lines 3s infinite;
}

@keyframes glitch-lines {
  0%, 100% { transform: translateX(0); opacity: 0.05; }
  50% { transform: translateX(2px); opacity: 0.1; }
}

.terminal-content {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 200px;
}

/* Startup Animation */
.uplink-startup {
  margin-bottom: 20px;
}

.startup-line {
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.startup-text {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Blog Page Styles */
.blog-page {
  padding: 80px 0;
  min-height: 100vh;
  background: var(--bg-primary);
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.back-to-home-btn {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.75rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
  top: 0;
}

.back-to-home-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.terminal-blog-full {
  background: var(--bg-soft);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.blog-content {
  flex: 1;
  margin-left: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.blog-date {
  color: var(--accent-primary);
}

.blog-category {
  color: var(--accent-secondary);
}

.blog-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.blog-read-more {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Inline blog content for expanded timeline */
.blog-content-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  flex: 1;
}

.blog-date {
  color: var(--accent-primary);
  font-size: 0.75rem;
}

.blog-title-inline {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.blog-excerpt-inline {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.blog-read-more-inline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.35rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.blog-read-more-inline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* Terminal ASCII Signature - Below Form */
.terminal-ascii-signature {
  margin-top: 2rem;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
}

.terminal-portrait-img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.terminal-portrait-img:hover {
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
  transform: scale(1.02);
}

/* Winking animation - closed eye overlay */
.terminal-portrait-img::after {
  content: '';
  position: absolute;
  top: 28%;
  right: 35%;
  width: 12px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: wink 10s infinite;
  animation-delay: 3s;
}

@keyframes wink {
  0%, 98% { opacity: 0; }
  1%, 2% { opacity: 1; }
}

.terminal-portrait {
  font-family: 'JetBrains Mono', monospace;
  font-size: 5px;
  line-height: 0.6;
  color: var(--accent-primary);
  margin: 0;
  opacity: 0;
  letter-spacing: 0.05px;
  text-align: center;
  position: relative;
  transition: all 0.5s ease;
}

/* Matrix Rain Overlay */
.matrix-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  line-height: 8px;
  color: var(--accent-primary);
  overflow: hidden;
}

.matrix-rain {
  position: absolute;
  top: -20px;
  animation: matrix-fall 1.5s linear;
  opacity: 0.8;
  text-shadow: 0 0 5px var(--accent-primary);
}

@keyframes matrix-fall {
  0% {
    top: -20px;
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    top: 100px;
    opacity: 0;
  }
}

/* Glitch Materialization Effect */
.glitch-materializing {
  opacity: 1;
  animation: glitch-materialize 2s ease-in-out;
}

@keyframes glitch-materialize {
  0% {
    opacity: 0;
    filter: blur(2px);
  }
  10% {
    opacity: 0.3;
    filter: blur(1px) contrast(150%);
    text-shadow: 
      -1px 0 red,
      1px 0 cyan,
      0 0 10px var(--accent-primary);
  }
  20% {
    opacity: 0.6;
    filter: blur(0px) contrast(120%);
    transform: translateX(-1px);
  }
  30% {
    opacity: 0.8;
    transform: translateX(1px);
    text-shadow: 
      -2px 0 red,
      2px 0 cyan;
  }
  40% {
    opacity: 0.4;
    filter: brightness(150%) contrast(180%);
    transform: translateX(0);
  }
  50% {
    opacity: 0.9;
    filter: brightness(120%) contrast(140%);
  }
  60% {
    opacity: 0.7;
    text-shadow: 
      -1px 0 red,
      1px 0 cyan,
      0 0 15px var(--accent-primary);
  }
  70% {
    opacity: 1;
    filter: brightness(110%) contrast(110%);
    transform: translateX(-0.5px);
  }
  80% {
    transform: translateX(0.5px);
  }
  90% {
    opacity: 1;
    filter: brightness(100%) contrast(100%);
    transform: translateX(0);
    text-shadow: 0 0 5px var(--accent-primary);
  }
  100% {
    opacity: 0.7;
    filter: none;
    text-shadow: none;
  }
}

/* Scan line effect overlay */
.terminal-ascii::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
  opacity: 0;
  animation: scan-line 2s ease-in-out;
}

@keyframes scan-line {
  0% {
    opacity: 0;
    top: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    top: 100%;
  }
}

/* Responsive Terminal Layout */
@media (max-width: 768px) {
  .terminal-columns {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .terminal-portrait {
    font-size: 4px;
    line-height: 0.75;
    letter-spacing: 0.3px;
  }
  
  .terminal-ascii {
    padding: 10px;
  }
}

.prompt {
  color: var(--accent-primary);
  margin-right: 8px;
  font-weight: bold;
}

.startup-text {
  color: var(--text-primary);
  animation: typewriter 1s steps(40, end);
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* ASCII Art */
.ascii-portrait {
  text-align: center;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 1.5s forwards;
}

.ascii-art {
  color: var(--accent-secondary);
  font-size: 10px;
  line-height: 0.9;
  margin: 0;
  text-shadow: 0 0 10px rgba(198, 120, 221, 0.5);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(198, 120, 221, 0.5);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 20px rgba(198, 120, 221, 0.8);
    transform: scale(1.02);
  }
}

/* Neural Form */
.neural-form {
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out 2s forwards;
}

.neural-field {
  margin-bottom: 20px;
}

.field-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.field-name {
  color: var(--text-primary);
  font-weight: 500;
  margin-left: 5px;
}

.neural-input,
.neural-select,
.neural-textarea {
  width: calc(100% - 24px);
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  margin-left: 24px; /* Align with prompt */
  box-sizing: border-box;
}

.neural-input:focus,
.neural-select:focus,
.neural-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.2);
  background: var(--bg-soft);
}

.neural-textarea {
  min-height: 100px;
  resize: vertical;
}

.neural-select {
  cursor: pointer;
}

.neural-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Neural Button */
.neural-submit {
  margin-top: 30px;
}

.submit-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submit-text {
  color: var(--text-primary);
}

.neural-button {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.neural-button:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
  transform: translateY(-2px);
}

.neural-button:active {
  transform: translateY(0);
}

.button-brackets {
  opacity: 0.7;
}

.neural-button:hover .button-brackets {
  opacity: 1;
  animation: bracket-pulse 0.5s ease;
}

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

/* Status Messages */
.uplink-status {
  margin-top: 20px;
  opacity: 0;
}

.uplink-status.show {
  opacity: 1;
  animation: fadeIn 0.5s ease-in-out;
}

.status-line {
  margin-bottom: 8px;
}

.status-text {
  color: var(--text-primary);
}

.status-text.success {
  color: var(--accent-primary);
  animation: glow 1s ease-in-out;
}

.status-text.error {
  color: #ff6b6b;
  animation: error-flash 0.5s ease-in-out;
}

@keyframes glow {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 10px var(--accent-primary); }
}

@keyframes error-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .terminal-content {
    padding: 15px;
    font-size: 13px;
  }
  
  .ascii-art {
    font-size: 8px;
  }
  
  .neural-input,
  .neural-select,
  .neural-textarea {
    width: calc(100% - 20px);
    margin-left: 20px;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .neural-button {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ascii-art {
    font-size: 7px;
  }
  
  .neural-input,
  .neural-select,
  .neural-textarea {
    width: calc(100% - 16px);
    margin-left: 16px;
  }
  
  .submit-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .neural-button {
    margin-left: 16px;
  }
}

/* Neural form starts hidden, will be shown after animation */
.neural-form {
  display: none;
  opacity: 0;
}

/* Social Cards in Footer */
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.social-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.social-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.2);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-card:hover .social-icon {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* SVG icons styling */
.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* X card specific styling */
.x-card:hover {
  border-color: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.x-card:hover .social-icon {
  color: #1da1f2;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-handle {
  font-size: 14px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.social-card:hover .social-handle {
  color: var(--accent-primary);
}

/* Specific social card colors */
.email-card:hover {
  border-color: #4fc3f7;
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
}

.email-card:hover .social-icon {
  background: #4fc3f7;
  border-color: #4fc3f7;
}

.email-card:hover .social-handle {
  color: #4fc3f7;
}

.twitter-card:hover {
  border-color: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.twitter-card:hover .social-icon {
  background: #1da1f2;
  border-color: #1da1f2;
}

.twitter-card:hover .social-handle {
  color: #1da1f2;
}

.linkedin-card:hover {
  border-color: #0077b5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2);
}

.linkedin-card:hover .social-icon {
  background: #0077b5;
  border-color: #0077b5;
}

.linkedin-card:hover .social-handle {
  color: #0077b5;
}

/* Footer Info */
.footer-info {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-accent);
}

.copyright {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

/* Responsive Design for Social Cards */
@media (max-width: 768px) {
  .social-cards {
    gap: 1rem;
  }
  
  .social-card {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .social-handle {
    font-size: 13px;
  }
  
  .social-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .social-cards {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .social-card {
    width: 100%;
    max-width: 280px;
    justify-content: flex-start;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ASCII Art Signature */
.ascii-signature {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: center;
  opacity: 0.8;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 157, 0.02) 50%, transparent 100%);
}

.ascii-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 0.9;
  color: #00ff9d;
  margin: 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
  filter: contrast(1.2) brightness(1.1);
  letter-spacing: 0.5px;
  position: relative;
  animation: subtle-glow 4s ease-in-out infinite alternate;
}

.ascii-art::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 255, 157, 0.1) 20%, 
    rgba(0, 255, 157, 0.05) 80%, 
    transparent 100%
  );
  pointer-events: none;
  border-radius: 4px;
}

@keyframes subtle-glow {
  0% {
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    filter: contrast(1.2) brightness(1.1);
  }
  100% {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5), 0 0 30px rgba(0, 255, 157, 0.2);
    filter: contrast(1.3) brightness(1.2);
  }
}

@keyframes glitch {
  0% { transform: translate(0,0); }
  20% { transform: translate(-1px,1px); }
  40% { transform: translate(2px,-1px); }
  60% { transform: translate(-1px,1px); }
  100% { transform: translate(0,0); }
}

/* Responsive ASCII */
@media (max-width: 1200px) {
  .ascii-art {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 768px) {
  .ascii-art {
    font-size: 8px;
    letter-spacing: 0.2px;
    line-height: 0.85;
  }
  
  .ascii-signature {
    margin-top: 2rem;
    padding: 1rem 0 2rem;
  }
}

@media (max-width: 480px) {
  .ascii-art {
    font-size: 6px;
    letter-spacing: 0.1px;
    line-height: 0.8;
  }
  
  .ascii-signature {
    padding: 1rem;
    margin-top: 1.5rem;
  }
}

/* ============================================
   PROJECT LANDING PAGE STYLES
   ============================================ */

/* Project Page Body */
.project-page {
  background: var(--bg-dark);
  overflow-x: hidden;
}

/* Project Navigation */
.project-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 15, 18, 0.95);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.nav-back-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-back-link:hover {
  color: var(--accent-primary);
  transform: translateX(-5px);
}

.nav-back-link .logo {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Project Hero Section */
.project-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 200, 150, 0.1) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat-item {
  text-align: left;
}

.hero-stats .stat-number {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow-accent);
}

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

.cta-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 5px 20px var(--ring-color);
}

.cta-icon {
  font-size: 1rem;
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  z-index: 1;
}

.project-preview {
  position: relative;
}

.preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-primary);
}

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

.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #28ca42; }

.window-title {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.preview-content {
  padding: 40px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0 auto 16px;
}

.placeholder-text {
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Problem/Solution Section */
.problem-solution {
  padding: 100px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.problem-card, .solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before, .solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

.problem-card:hover, .solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 40px rgba(0, 200, 150, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.card-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-soft);
}

.features-grid {
  margin-top: 60px;
}

.feature-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 30px rgba(0, 200, 150, 0.1);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tech Stack Section */
.tech-stack {
  padding: 100px 0;
}

.tech-grid {
  margin-top: 40px;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.tech-item:hover::before {
  left: 0;
}

.tech-item:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Case Study Section */
.case-study {
  padding: 100px 0;
  background: var(--bg-soft);
}

.case-study-content {
  max-width: 800px;
  margin: 60px auto 0;
}

.case-study-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.case-study-text h3 {
  color: var(--text-primary);
  margin: 40px 0 20px;
  font-size: 1.4rem;
}

.case-study-text p {
  margin-bottom: 24px;
}

/* Project CTA Section */
.project-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.project-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 200, 150, 0.05) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Project Footer */
.project-footer {
  border-top: 1px solid var(--border-primary);
  background: var(--bg-soft);
}

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

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

/* Enhanced Glitch Effects for Projects */
.glitch-active {
  animation: glitch 0.3s ease-in-out;
}

@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); }
}

/* Pulse animation for badges */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive Design for Project Pages */
@media (max-width: 1200px) {
  .hero-visual {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .project-hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .cta-primary, .cta-secondary {
    justify-content: center;
    width: 100%;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .problem-card, .solution-card {
    padding: 30px;
  }
  
  .features, .tech-stack, .case-study, .project-cta {
    padding: 60px 0;
  }
  
  .feature-items {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 20px;
  }
  
  .problem-card, .solution-card, .feature-item {
    padding: 20px;
  }
  
  .hero-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .card-icon, .placeholder-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .tech-item {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ---- Final spacing fixes for bento cards ---- */
.about-main-card .about-content { 
  gap: .75rem;
  display: flex;
  flex-direction: column;
}

.about-main-card .about-main-layout {
  display: flex;
  flex-direction: column;
}

.about-main-card .about-cta-buttons {
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.about-main-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  margin-left: calc(120px + 2rem);
  justify-content: flex-start;
  padding: 1rem 0 2rem 0;
}

.about-main-card .profile-section { 
  margin-bottom: 0;
}

/* Fix Now Building card spacing */
.now-building-card {
  padding-bottom: 1rem !important;
}

.now-building-card .live-updates {
  margin-bottom: 0 !important;
}

