/* ==========================================================================
   XAIN.SITE - Modern Vibe Coding Portfolio & Cloud Hub Stylesheet
   Color Concept: Calm, Sophisticated, High-Tech Minimalist
   ========================================================================== */

:root {
  /* Common Palette */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   Dark Theme (Default: Deep Calm Slate & Indigo)
   ========================================================================== */
[data-theme="dark"] {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1624;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(24, 35, 58, 0.85);
  --bg-input: #141d2f;
  --bg-glass: rgba(15, 22, 36, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-active: rgba(99, 102, 241, 0.5);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #38bdf8;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --accent-warning: #f59e0b;
  
  --hero-canvas-node: rgba(99, 102, 241, 0.6);
  --hero-canvas-line: rgba(56, 189, 248, 0.15);
  --hero-glow-1: rgba(99, 102, 241, 0.15);
  --hero-glow-2: rgba(56, 189, 248, 0.12);
  
  --terminal-bg: #090d15;
  --terminal-header: #111726;
  --terminal-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Light Theme (Calm Slate, Warm Pearl, Crisp Indigo)
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-input: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.8);
  
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-active: rgba(79, 70, 229, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-secondary: #0284c7;
  --accent-emerald: #059669;
  --accent-purple: #9333ea;
  --accent-warning: #d97706;
  
  --hero-canvas-node: rgba(79, 70, 229, 0.45);
  --hero-canvas-line: rgba(2, 132, 199, 0.12);
  --hero-glow-1: rgba(79, 70, 229, 0.08);
  --hero-glow-2: rgba(2, 132, 199, 0.08);
  
  --terminal-bg: #0f172a;
  --terminal-header: #1e293b;
  --terminal-border: rgba(0, 0, 0, 0.15);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Lucide Icon Adjustments */
i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-icon {
  width: 20px;
  height: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-dot {
  color: var(--accent-secondary);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

/* Theme Toggle Icons */
[data-theme="dark"] .sun-icon {
  display: inline-flex;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: inline-flex;
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.mobile-menu-btn {
  display: none;
}

.menu-close-icon {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.8rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Hero Section with Dot & Line Canvas
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  pointer-events: none; /* Let canvas receive mouse hover through text if needed, child buttons re-enable */
}

.hero-content > * {
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.badge-icon {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.hero-meta-ticker {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ticker-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-secondary);
}

.ticker-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ==========================================================================
   Section Layout Standards
   ========================================================================== */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 0.9rem;
}

.tag-icon {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Server Dashboard (4 Cards)
   ========================================================================== */
.dashboard-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.dash-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--border-active), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.dash-card:hover::before {
  opacity: 1;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.dash-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-icon-box.status-online {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.dash-icon-box.status-security {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-secondary);
}

.dash-icon-box.status-resource {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-warning);
}

.dash-icon-box.status-pipeline {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
}

.dash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dash-status-pill.online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}
.dash-status-pill.secure {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-secondary);
}
.dash-status-pill.resource {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-warning);
}
.dash-status-pill.pipeline {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
}

.dash-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dash-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}

.dash-card-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.dash-card-value .unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dash-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.metric-key {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.metric-mini-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.metric-val {
  font-weight: 600;
  color: var(--text-primary);
}

.metric-val.highlight {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
}

/* Progress Group in Matrix Card */
.dash-progress-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.progress-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.cpu-fill { background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary)); }
.mem-fill { background: linear-gradient(90deg, var(--accent-primary), var(--accent-purple)); }
.disk-fill { background: linear-gradient(90deg, var(--accent-emerald), var(--accent-secondary)); }

.dash-card-footer {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.note-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Projects & Features Directory
   ========================================================================== */
.projects-section {
  background: var(--bg-primary);
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.filter-icon {
  width: 14px;
  height: 14px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}

/* Compact Feature Card - Sleek Monochrome Style */
.feature-card-compact {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.feature-card-compact:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Monochrome Icon Box */
.feature-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.feature-card-compact:hover .feature-icon-box {
  transform: scale(1.05);
}

.feature-big-icon {
  width: 32px;
  height: 32px;
}

.box-dashed {
  background: transparent;
  border: 2px dashed var(--border-medium);
  color: var(--text-muted);
}

.feature-info {
  margin-bottom: 1.6rem;
  width: 100%;
}

/* Monochrome Status Tag */
.feature-status-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.feature-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Simple Monochrome Prominent Action Button */
.btn-prominent {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-sizing: border-box;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-prominent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  opacity: 0.92;
}

/* 150% Scaled Button Icon */
.btn-prominent i[data-lucide],
.btn-arrow-icon {
  width: 24px !important;
  height: 24px !important;
  transition: transform var(--transition-fast);
}

.btn-prominent:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* Hero Button Icons also scaled 150% */
.btn .btn-icon {
  width: 24px !important;
  height: 24px !important;
}

.feature-card-add {
  border: 2px dashed var(--border-medium);
  background: transparent;
  justify-content: center;
  min-height: 250px;
}

.feature-card-add {
  border: 2px dashed var(--border-medium);
  background: transparent;
  justify-content: center;
  min-height: 250px;
}

.badge-indigo { background: rgba(99, 102, 241, 0.12); color: var(--accent-primary); }
.badge-cyan { background: rgba(56, 189, 248, 0.12); color: var(--accent-secondary); }
.badge-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); }
.badge-zinc { background: rgba(148, 163, 184, 0.12); color: var(--text-secondary); }

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.project-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.btn-link:hover {
  color: var(--accent-secondary);
  transform: translateX(2px);
}

.link-icon {
  width: 16px;
  height: 16px;
}

.version-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Upcoming Card Slot */
.project-card-upcoming {
  border: 2px dashed var(--border-medium);
  background: transparent;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 320px;
}

.upcoming-inner {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upcoming-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.upcoming-icon {
  width: 28px;
  height: 28px;
}

.upcoming-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upcoming-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin-bottom: 1.2rem;
}

.upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.badge-icon-mini {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   Terminal / System Logs Section
   ========================================================================== */
.terminal-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.terminal-window {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  padding: 0.75rem 1.2rem;
  background: var(--terminal-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.dot-red { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.dot-yellow { width: 11px; height: 11px; border-radius: 50%; background: #f59e0b; }
.dot-green { width: 11px; height: 11px; border-radius: 50%; background: #10b981; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.terminal-icon-mini {
  width: 14px;
  height: 14px;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
}

.live-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-glow 1.5s infinite;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.6;
}

.log-line {
  word-break: break-all;
}

.text-muted { color: #64748b; }
.text-info { color: #38bdf8; }
.text-success { color: #34d399; }
.text-primary { color: #818cf8; }
.text-warning { color: #fbbf24; }

.active-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: #f8fafc;
}

.prompt-user {
  color: #34d399;
  font-weight: 700;
}

.cursor-blink {
  color: #38bdf8;
  animation: blink 1s infinite;
}

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

/* ==========================================================================
   Global Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   Animations & Responsiveness
   ========================================================================== */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-status-badge {
    display: none;
  }
  .hero-meta-ticker {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }
  .ticker-divider {
    display: none;
  }
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
}
