/* Robotics lab vibe: dark text on light background with neon accents */
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #52616b;
  --accent: #16c0c9;
  --accent-2: #1f7aff;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, #f1fbfd, #f6f7fb 32%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(246, 247, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .brand { font-weight: 700; letter-spacing: 0.02em; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a { margin-left: 0; color: var(--muted); font-weight: 600; }

main { padding: 24px 32px 80px; max-width: 1200px; margin: 0 auto; }
.section { margin-top: 72px; }
.section-header h2 { margin: 6px 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--muted); margin: 0; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-text h1 { margin: 8px 0 12px; font-size: 42px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; }
.btn.ghost { background: var(--panel); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.meta { color: var(--muted); display: flex; gap: 8px; align-items: center; }

.hero-visual { display: flex; justify-content: center; }
.hero-visual {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.hero-card {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, #e1f8ff, #ffffff 50%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 8px solid #fff; z-index: 2; }
.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed #cdeaf5;
  animation: spin 14s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12); }
.card .impact { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #0f3b8a;
  font-weight: 600;
  font-size: 12px;
}
.card-actions { display: flex; gap: 12px; }
.card-actions a { font-weight: 600; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-item h3 { margin: 0; }
.timeline-item .org { color: var(--muted); }
.timeline-item ul { margin: 8px 0 0; padding-left: 16px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.skill-col {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 6px 10px;
  background: #eef2ff;
  color: #1e2a4a;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
}

.pubs { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pub-list { display: grid; gap: 10px; margin: 0 0 16px; }
.pub { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.pub h4 { margin: 0 0 4px; }
.pub .venue { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.hidden { display: none; }
.theme-toggle.floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 20;
}
.patents ul { margin: 8px 0 0; padding-left: 18px; }

.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 32px;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer a { color: #a5f3fc; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-meta { color: #94a3b8; display: flex; gap: 8px; flex-wrap: wrap; }

html.theme-dark {
  --bg: #0b0f14;
  --panel: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --border: #1f2937;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body.theme-dark {
  background: radial-gradient(circle at 20% 20%, #0f172a, #0b0f14 40%), var(--bg);
}

html.theme-dark .nav {
  background: rgba(11, 15, 20, 0.9);
}

html.theme-dark .hero-card {
  background: radial-gradient(circle at 20% 20%, #0f172a, #0b0f14 60%);
}

html.theme-dark .hero-img {
  border-color: #0b0f14;
}

html.theme-dark .chip {
  background: #1f2937;
  color: #e2e8f0;
}

html.theme-dark .footer {
  background: #0b0f14;
}

@media (max-width: 700px) {
  .nav { flex-wrap: wrap; gap: 8px; }
  .timeline-item { grid-template-columns: 1fr; }
  .hero { padding: 20px; }
}
