/* ═══════════════════════════════════════════════════════════════
   SHAHIN.AI — ML ENGINEER PORTFOLIO
   Dark AI Lab Theme: Black + Neon Blue/Green + Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d1117;
  --bg-tertiary: #111827;
  --bg-card: rgba(13, 17, 23, 0.7);

  --neon-blue: #00d4ff;
  --neon-green: #00ff88;
  --neon-purple: #a855f7;
  --neon-pink: #ff006e;
  --neon-orange: #ff8c00;
  --neon-cyan: #06f9e4;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--neon-blue);

  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(0, 212, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  --gradient-accent: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-blue) var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 3px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--neon-blue);
  color: var(--bg-primary);
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: var(--transition);
}

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Neural Canvas Background ─────────────────────────────────── */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Boot Screen ──────────────────────────────────────────────── */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-content {
  text-align: center;
  font-family: var(--font-mono);
}

.boot-logo {
  font-size: 3rem;
  margin-bottom: 2rem;
  animation: bootPulse 1.5s ease-in-out infinite;
}

@keyframes bootPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.boot-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.boot-line {
  font-size: 0.85rem;
  color: var(--neon-green);
  opacity: 0;
  transform: translateX(-20px);
  animation: bootLineIn 0.4s forwards;
}

@keyframes bootLineIn {
  to { opacity: 1; transform: translateX(0); }
}

.boot-progress {
  width: 300px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.boot-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: bootProgress 2.5s ease-in-out forwards;
}

@keyframes bootProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.nav-logo { font-size: 1.3rem; }

.nav-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.accent { color: var(--neon-blue); }

.nav-version {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--neon-blue);
  border-radius: 1px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-green);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--neon-green);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--neon-green); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--neon-green); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* ── Mobile Nav ───────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.08);
}

/* ── System Status Bar ────────────────────────────────────────── */
.system-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  z-index: 999;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.system-bar-inner {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  animation: scrollBar 30s linear infinite;
  padding: 0 1rem;
}

.system-bar-inner strong {
  color: var(--neon-green);
}

@keyframes scrollBar {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  min-height: 100vh;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Glass Card ───────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

/* ── Terminal ─────────────────────────────────────────────────── */
.terminal-window {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt {
  color: var(--neon-green);
  font-weight: 600;
}

.command, .command-static {
  color: var(--text-primary);
}

.cursor {
  color: var(--neon-green);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.terminal-output {
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

.terminal-output .output-line {
  opacity: 0;
  transform: translateY(5px);
  animation: lineAppear 0.3s forwards;
}

@keyframes lineAppear {
  to { opacity: 1; transform: translateY(0); }
}

.terminal-json {
  color: var(--neon-cyan);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* ═══════════════════ HERO SECTION ═══════════════════ */
.hero-section {
  padding-top: 8rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-terminal {
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Model Card */
.model-card {
  text-align: center;
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.model-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  letter-spacing: 1px;
}

.model-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.model-name {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.model-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.model-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--neon-blue);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.model-meta {
  text-align: left;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.meta-key {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.meta-val {
  color: var(--text-primary);
  font-weight: 500;
}

.status-available {
  color: var(--neon-green);
  animation: statusPulse 2s ease-in-out infinite;
}

/* ═══════════════════ ARCHITECTURE SECTION ═══════════════════ */
.architecture-grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.nn-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

#nnDiagram {
  max-width: 100%;
  height: auto;
}

.arch-table-wrap {
  overflow-x: auto;
}

.arch-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.arch-table thead th {
  text-align: left;
  padding: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--glass-border);
}

.arch-row {
  opacity: 0;
  transform: translateX(-20px);
}

.arch-row.visible {
  animation: rowSlideIn 0.5s forwards;
}

@keyframes rowSlideIn {
  to { opacity: 1; transform: translateX(0); }
}

.arch-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.layer-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.layer-badge.input {
  background: rgba(0, 212, 255, 0.15);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.layer-badge.hidden {
  background: rgba(168, 85, 247, 0.15);
  color: var(--neon-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.layer-badge.optim {
  background: rgba(255, 140, 0, 0.15);
  color: var(--neon-orange);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

.layer-badge.output {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.arch-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.arch-info-card {
  text-align: center;
  padding: 1.5rem;
}

.arch-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  color: var(--neon-blue);
  font-weight: 700;
}

.arch-info-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.arch-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.arch-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════ EXPERIMENTS SECTION ═══════════════════ */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.experiment-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.experiment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.experiment-card:hover::before {
  opacity: 1;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.exp-status.deployed {
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.exp-status.training {
  color: var(--neon-orange);
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

.exp-status.research {
  color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.exp-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exp-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Metric Bars */
.exp-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.metric {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.metric-fill.animated {
  width: var(--target-width);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-blue);
  text-align: right;
}

/* Experiment Details */
.exp-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.detail span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.exp-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.exp-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* ═══════════════════ TRAINING SECTION ═══════════════════ */
.training-terminal {
  margin-bottom: 3rem;
}

.training-logs {
  max-height: 500px;
  overflow-y: auto;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(10px);
}

.log-entry.visible {
  animation: logAppear 0.5s forwards;
}

@keyframes logAppear {
  to { opacity: 1; transform: translateY(0); }
}

.log-time {
  color: var(--text-muted);
  min-width: 60px;
}

.log-icon {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-weight: 600;
}

.log-event {
  color: var(--text-primary);
  font-weight: 600;
}

.log-detail {
  color: var(--text-secondary);
  flex: 1;
}

.log-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.log-status.init {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.1);
}

.log-status.progress {
  color: var(--neon-orange);
  background: rgba(255, 140, 0, 0.1);
}

.log-status.success {
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
}

.log-status.scaling {
  color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.1);
}

.log-status.live {
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.15);
  animation: statusPulse 2s ease-in-out infinite;
}

.blink-entry .log-event {
  animation: textBlink 1.5s ease-in-out infinite;
}

@keyframes textBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Training Chart */
.training-chart-container {
  padding: 1.5rem;
}

.chart-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

#lossChart {
  width: 100% !important;
  height: auto !important;
  max-height: 300px;
}

/* ═══════════════════ EMBEDDINGS SECTION ═══════════════════ */
.embeddings-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  align-items: start;
}

.radar-container {
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

#radarChart {
  max-width: 100%;
  height: auto;
}

.skill-clusters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.cluster {
  padding: 1.25rem;
}

.cluster-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cluster-icon {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--neon-blue);
  font-weight: 700;
}

.cluster-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.cluster-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.cluster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 212, 255, 0.12);
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--neon-blue);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

/* ═══════════════════ DEMOS SECTION ═══════════════════ */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.demo-card {
  padding: 1.5rem;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.demo-icon {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-weight: 700;
}

.demo-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.demo-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.demo-badge.live {
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  animation: statusPulse 2s ease-in-out infinite;
}

.demo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.demo-interface {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.demo-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}

.demo-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.demo-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  resize: vertical;
  transition: var(--transition);
}

.demo-textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.demo-input-sm {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}

.demo-input-sm:focus {
  border-color: var(--neon-blue);
}

.demo-result {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  min-height: 60px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.result-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.result-sentiment {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sentiment-emoji {
  font-size: 2rem;
}

.sentiment-info {
  flex: 1;
}

.sentiment-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sentiment-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.sentiment-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.sentiment-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.sentiment-confidence {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Predictor inputs */
.predictor-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pred-field label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

/* Chat Window */
.chat-window {
  height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-bubble {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 80%;
  line-height: 1.5;
}

.chat-message.user .chat-bubble {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.2);
}

/* Resume Result */
.resume-result-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resume-verdict {
  font-size: 1rem;
  font-weight: 700;
}

.resume-score-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.resume-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.resume-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.resume-keyword {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.resume-keyword.found {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.resume-keyword.missing {
  background: rgba(255, 0, 110, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 0, 110, 0.2);
  text-decoration: line-through;
  opacity: 0.6;
}

/* House Price Result */
.house-result-content {
  text-align: center;
}

.house-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-green);
  font-family: var(--font-mono);
}

.house-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ═══════════════════ WRITING SECTION ═══════════════════ */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.writing-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.writing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.writing-card:hover::before {
  opacity: 1;
}

.writing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.writing-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  letter-spacing: 0.5px;
}

.writing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.writing-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.writing-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ═══════════════════ CONTACT SECTION ═══════════════════ */

/* Contact Channels */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  background: none;
  font-family: inherit;
}

.contact-channel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}

.contact-channel-card:hover::before {
  transform: scaleX(1);
}

.contact-channel-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.12);
}

.channel-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-channel-card:hover .channel-icon-wrap {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.cv-icon-wrap {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.15);
}

.contact-channel-card:hover .cv-icon-wrap {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.channel-icon {
  width: 24px;
  height: 24px;
  color: var(--neon-blue);
}

.cv-icon-wrap .channel-icon {
  color: var(--neon-purple);
}

.contact-channel-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
}

.channel-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-blue);
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
}

.contact-channel-card:hover .channel-cta {
  opacity: 1;
  transform: translateY(0);
}

#openCvBtn .channel-cta {
  color: var(--neon-purple);
}

/* Response Bar */
.response-bar {
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
}

.response-bar-inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.response-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.response-item strong {
  color: var(--text-primary);
}

/* Form improvements */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-terminal {
  height: fit-content;
}

.terminal-output-static {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.25rem 0 0.75rem 1.5rem;
}

.terminal-output-static.highlight-text {
  color: var(--neon-green);
  font-weight: 600;
}

.contact-form-wrap {
  padding: 2rem;
}

.contact-form-wrap h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

select.form-input option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.contact-submit-btn .btn-arrow {
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.contact-submit-btn.sending {
  pointer-events: none;
}

.contact-submit-btn.sent {
  background: rgba(0, 255, 136, 0.2) !important;
  color: var(--neon-green) !important;
  border-color: rgba(0, 255, 136, 0.4);
}

/* ═══════════════════ CV MODAL ═══════════════════ */
.cv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cv-modal.open {
  opacity: 1;
  visibility: visible;
}

.cv-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.cv-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 88vh;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.08);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-modal.open .cv-modal-content {
  transform: scale(1) translateY(0);
}

.cv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.cv-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-modal-title-group h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cv-modal-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--neon-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-download-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cv-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cv-close-btn:hover {
  color: var(--neon-pink);
  border-color: rgba(255, 0, 110, 0.3);
  background: rgba(255, 0, 110, 0.08);
}

.cv-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.cv-embed {
  width: 100%;
  height: 100%;
  border: none;
  background: #1a1a2e;
}

.cv-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.cv-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: opacity 0.4s ease;
}

.cv-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.cv-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 212, 255, 0.15);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: cvSpin 0.8s linear infinite;
}

@keyframes cvSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0 4rem;
  background: rgba(10, 10, 15, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--neon-blue);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════ SCROLL ANIMATIONS ═══════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .architecture-grid {
    grid-template-columns: 1fr;
  }
  .nn-visual { display: none; }
  .embeddings-grid {
    grid-template-columns: 1fr;
  }
  .radar-container {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-channels {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-status { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .section-title { font-size: 1.8rem; }

  .hero-section { padding-top: 6rem; }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .model-stats { gap: 1rem; }
  .stat-value { font-size: 1.4rem; }

  .experiments-grid {
    grid-template-columns: 1fr;
  }

  .writing-grid {
    grid-template-columns: 1fr;
  }

  .demos-grid {
    grid-template-columns: 1fr;
  }

  .arch-cards {
    grid-template-columns: 1fr;
  }

  .skill-clusters {
    grid-template-columns: 1fr;
  }

  .log-entry {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .log-detail {
    width: 100%;
    padding-left: 2.5rem;
    font-size: 0.75rem;
  }

  .system-bar { display: none; }

  .predictor-inputs {
    grid-template-columns: 1fr;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .response-bar-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .cv-modal-content {
    width: 95%;
    height: 80vh;
  }

  .cv-modal-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .cv-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section-title { font-size: 1.5rem; }
  .model-name { font-size: 1.6rem; }
  .metric {
    grid-template-columns: 70px 1fr 40px;
  }
}
