/* ================================================================
   HERMES UI THEME — Ashesh Kaji Portfolio
   Dark terminal-chic aesthetic with glowing accents
   ================================================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --bg-deep: #08090d;
  --bg-primary: #0d1117;
  --bg-card: #131820;
  --bg-card-hover: #1a1f2b;
  --bg-input: #0a0d14;
  
  --border-subtle: #1e2430;
  --border-accent: #2a3142;
  
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  
  --accent-teal: #00d4aa;
  --accent-teal-glow: rgba(0, 212, 170, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.15);
  --accent-blue: #58a6ff;
  --accent-amber: #d2991d;
  --accent-red: #f85149;
  
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--border-subtle);
  --shadow-glow-teal: 0 0 20px var(--accent-teal-glow);
  --shadow-glow-purple: 0 0 20px var(--accent-purple-glow);
  
  --transition-fast: 150ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1100px;
  --nav-height: 56px;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- SELECTION --- */
::selection {
  background: var(--accent-teal);
  color: var(--bg-deep);
}

/* --- LINKS --- */
a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: #00f0c0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-teal);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--text-secondary); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-teal);
  transition: width var(--transition-smooth);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(0, 212, 170, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-name .dot {
  color: var(--accent-teal);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  min-height: 28px;
}

.hero-subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-teal);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent-teal);
  color: var(--bg-deep);
  border: none;
  box-shadow: var(--shadow-glow-teal);
}

.btn-primary:hover {
  background: #00f0c0;
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  border-color: var(--accent-teal);
  background: var(--accent-teal-glow);
  transform: translateY(-1px);
}

.btn-purple {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-glow-purple);
}

.btn-purple:hover {
  background: #9d6fff;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent-teal);
  margin-top: 16px;
  border-radius: 2px;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-teal);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow-teal);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-teal);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ================================================================
   EXPERIENCE TIMELINE
   ================================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 8px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-teal-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 15px;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 650px;
}

.timeline-desc ul {
  list-style: none;
  padding: 0;
}

.timeline-desc li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.timeline-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 700;
}

/* ================================================================
   EDUCATION
   ================================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.edu-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.edu-degree {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 15px;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edu-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   PROJECTS
   ================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.project-icon.python { background: rgba(53, 114, 239, 0.15); }
.project-icon.rust { background: rgba(222, 165, 132, 0.15); }
.project-icon.js { background: rgba(247, 223, 30, 0.15); }
.project-icon.ml { background: rgba(139, 92, 246, 0.15); }

.project-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-name a { color: inherit; }
.project-name a:hover { color: var(--accent-teal); }

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.project-lang {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.project-stars {
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-date {
  color: var(--text-muted);
}

.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-topic {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 212, 170, 0.15);
}

.project-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ================================================================
   SKILLS
   ================================================================ */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: default;
  transition: all var(--transition-smooth);
}

.skill-tag:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: var(--accent-teal-glow);
  transform: translateY(-1px);
}

.skill-tag.purple:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: var(--accent-purple-glow);
}

/* ================================================================
   ASK ME ANYTHING (PRISML)
   ================================================================ */
.ask-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ask-container {
  max-width: 800px;
  margin: 0 auto;
}

.ask-info {
  text-align: center;
  margin-bottom: 32px;
}

.ask-info p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ask-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ask-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

.ask-badge.teal {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.15);
  color: var(--accent-teal);
}

.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.chat-status-dot.online { background: var(--accent-teal); box-shadow: 0 0 8px var(--accent-teal); }
.chat-status-dot.loading { background: var(--accent-amber); animation: pulse 1.5s infinite; }
.chat-status-dot.error { background: var(--accent-red); }

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

.chat-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.chat-model-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.chat-messages {
  height: 260px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-deep);
}

.chat-message {
  display: flex;
  gap: 10px;
  animation: fadeInUp 0.3s ease;
}

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

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chat-avatar.user {
  background: var(--accent-purple);
  color: white;
}

.chat-avatar.assistant {
  background: var(--accent-teal);
  color: var(--bg-deep);
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-bubble.user {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
}

.chat-bubble.assistant {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.chat-bubble.assistant p { margin-bottom: 8px; }
.chat-bubble.assistant p:last-child { margin-bottom: 0; }
.chat-bubble.assistant code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-teal);
}

.chat-bubble.system {
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  max-width: 100%;
  padding: 8px;
  border: none;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  background: var(--bg-card);
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
  resize: none;
}

.chat-input:focus {
  border-color: var(--accent-teal);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  background: var(--accent-teal);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chat-send:hover:not(:disabled) {
  background: #00f0c0;
}

.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-loading-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.chat-loading-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: loadingBounce 1.4s infinite;
}

.chat-loading-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-loading-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  transition: width 0.2s ease;
}

.chat-diagnostics {
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.015);
}

.agent-test-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-card);
}

.agent-test {
  border: 1px solid rgba(0, 212, 170, 0.25);
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent-teal);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.agent-test:hover:not(:disabled) {
  border-color: var(--accent-teal);
  background: var(--accent-teal-glow);
}

.agent-test:disabled {
  opacity: 0.45;
  cursor: wait;
}

.chat-bubble.system-error,
.chat-message.system-error .chat-bubble {
  background: rgba(255, 91, 91, 0.08);
  border: 1px solid rgba(255, 91, 91, 0.25);
  color: #ffb4b4;
}

/* ================================================================
   OPENROUTER FALLBACK
   ================================================================ */
.openrouter-fallback {
  display: none;
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 10px;
}
.openrouter-fallback:not([hidden]) {
  display: flex;
}
.or-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.or-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.or-dot.connected { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.or-dot.connecting { background: var(--accent-amber); animation: pulse 1.5s infinite; }
.or-dot.error { background: var(--accent-red); }
.or-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.or-key-input {
  flex: 1;
  min-width: 0;
}
.or-key-input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}
.or-connect-btn {
  white-space: nowrap;
}
.or-model-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.or-label {
  color: var(--text-muted);
}
.or-model-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
}
.or-model-select:focus {
  border-color: var(--accent-purple);
}
.or-disconnect-btn {
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  transition: all var(--transition-fast);
}
.or-disconnect-btn:hover {
  background: rgba(255, 91, 91, 0.1);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .hero-inner { width: min(100%, calc(100vw - 32px)); }
  .hero-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.45;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-cta .btn {
    width: min(100%, 300px);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
    gap: 16px;
  }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  
  .hero-name { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  
  .chat-messages { height: 160px; }
  .chat-bubble { max-width: 90%; }
  .chat-input-area {
    flex-direction: column;
  }
  .chat-input,
  .chat-send {
    width: 100%;
  }
  .chat-send {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; }
  .section { padding: 60px 16px; }
  .footer-links { flex-direction: column; gap: 12px; }
}

/* ================================================================
   UTILITY
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}
