:root {
  --bg: #0c0f14;
  --panel: #0f141b;
  --border: #1c242f;
  --text: #d7e3f0;
  --muted: #a5afbd;
  --accent: #39ff14;
  --accent-2: #c084fc;
  --accent-3: #22d3ee;
  --card: #0d1118;
  --terminal: #0b1016;
  --gold: #fbbf24;
  --radius: 18px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(140% 120% at 12% 18%, rgba(57, 255, 20, 0.05), transparent 40%),
    radial-gradient(120% 110% at 78% 6%, rgba(192, 132, 252, 0.08), transparent 38%),
    radial-gradient(110% 120% at 55% 92%, rgba(34, 211, 238, 0.05), transparent 45%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 32px;
}

.viewport-chrome {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

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

.frame {
  border: 1px solid #202a35;
  background: linear-gradient(135deg, rgba(255,255,255,0.012), rgba(255,255,255,0));
  border-radius: 18px;
  padding: 16px 18px 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.4);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 14px;
  border-bottom: 1px solid var(--border);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tab {
  background: #111824;
  border: 1px solid #1f2733;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tab .icon {
  margin-right: 6px;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 12px;
  gap: 6px;
}

.tab:hover {
  border-color: rgba(57, 255, 20, 0.5);
  background: #131c25;
  box-shadow:
    0 0 10px rgba(57, 255, 20, 0.12),
    0 0 0 1px rgba(57, 255, 20, 0.1);
}

.tab.active {
  background: #12201f;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow:
    0 0 22px rgba(57, 255, 20, 0.4),
    0 0 8px rgba(57, 255, 20, 0.25),
    0 0 0 1px rgba(57, 255, 20, 0.2);
}

.tab.active:hover {
  box-shadow:
    0 0 22px rgba(57, 255, 20, 0.4),
    0 0 8px rgba(57, 255, 20, 0.25),
    0 0 0 1px rgba(57, 255, 20, 0.2);
}

.source-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  padding: 16px 6px 0;
  align-items: start;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-areas:
    "avatar meta"
    "bio bio"
    "bio bio"
    "terminal terminal"
    "social social";
  gap: 12px 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.avatar {
  grid-area: avatar;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2b6ce3;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-meta {
  grid-area: meta;
  align-self: center;
}

.name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.role {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 600;
}

.location {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bio {
  grid-area: bio;
  margin: 0;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.terminal {
  grid-area: terminal;
  background: var(--terminal);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px #0f1520;
}

.terminal .prompt {
  color: #fbc02d;
  margin-bottom: 8px;
}

.terminal .line {
  color: #9cc9ff;
  margin: 4px 0;
}

.social {
  grid-area: social;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0e1621;
  border: 1px solid #1f2733;
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

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

.details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.panel-title {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.about-summary {
  margin: 0 0 10px;
  line-height: 1.55;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 18px;
}

.about-line {
  margin: 2px 0 6px;
  color: var(--text);
}

.subsection {
  margin-top: 12px;
}

.subsection-title {
  color: var(--accent-2);
  font-weight: 700;
  margin: 4px 0 10px;
  letter-spacing: 0.03em;
}

.mini-card {
  border: 1px solid #2f3340;
  border-radius: 12px;
  padding: 12px 14px;
  background: #11161f;
  box-shadow: inset 0 0 0 1px #0b0f15;
  margin-bottom: 10px;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mini-role {
  font-weight: 700;
  color: #fbc02d;
  text-shadow: 0 0 8px rgba(251, 192, 45, 0.4);
}

.mini-card .mini-head span {
  color: #fbc02d;
}

.mini-card .mini-dates {
  color: rgba(251, 192, 45, 0.78);
}

.mini-dates {
  color: var(--muted);
  font-size: 12px;
}

.mini-body {
  margin: 0;
  line-height: 1.45;
}

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

.muted {
  color: var(--muted);
}

.contrib-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contrib-card {
  border: 1px solid #2a303c;
  border-radius: 14px;
  background: #0f141c;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.contrib-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contrib-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.contrib-desc {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.pill-link {
  color: var(--accent-2);
  text-decoration: none;
  border: 1px solid #3b2a4a;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.small {
  font-size: 12px;
}

.cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cv-header .panel-title {
  margin-bottom: 0;
}

.cv-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1118;
  width: 100%;
}

.cv-embed iframe {
  width: 100%;
  height: 80vh;
  border: none;
  display: block;
}

.projects-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 10px;
  position: relative;
}

.filter-toggle,
.sort-select {
  background: #111824;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.05em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sort-select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a5afbd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort-select option {
  background: #0f141c;
  color: var(--text);
}

.filter-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 5;
  background: #0f141c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 12px;
  min-width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-tag-pill {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  color: var(--text);
  font-size: 12px;
}

.projects-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.proj-tabs {
  display: flex;
  gap: 14px;
}

.proj-tab {
  background: none;
  border: none;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.proj-tab.active {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.proj-tab:hover:not(.active) {
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.hidden {
  display: none;
}

.project-card {
  border: 1px solid #2a303c;
  border-radius: 14px;
  background: #0f141c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.008);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project-card.muted {
  opacity: 0.72;
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #222c37;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-media--interior {
  background-image: linear-gradient(135deg, rgba(192,132,252,0.25), rgba(34,211,238,0.25)), linear-gradient(90deg, #101620, #0e1219);
}

.project-media--bim {
  background-image: linear-gradient(135deg, rgba(255,215,64,0.25), rgba(34,211,238,0.25)), linear-gradient(90deg, #0e141d, #0d1119);
}

.project-media--checkin {
  background-image: linear-gradient(180deg, rgba(34,211,238,0.2), rgba(57,255,20,0.15)), linear-gradient(90deg, #0f1620, #0c1118);
}

.project-media--makeplan {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(34,211,238,0.08)), linear-gradient(90deg, #0e141d, #0c1116);
}

.project-media--aqua {
  background-image: linear-gradient(135deg, rgba(34,211,238,0.25), rgba(96,165,250,0.18)), linear-gradient(90deg, #0e141d, #0c1118);
}

.project-media--dron {
  background-image: linear-gradient(135deg, rgba(57,255,20,0.18), rgba(34,211,238,0.15)), linear-gradient(90deg, #0e141d, #0d121a);
}

.project-media--perch {
  background-image: linear-gradient(135deg, rgba(192,132,252,0.2), rgba(255,215,64,0.15)), linear-gradient(90deg, #0d1118, #0b0f15);
}

.project-media--phoenix {
  background-image: linear-gradient(135deg, rgba(255,215,64,0.22), rgba(255,255,255,0.08)), linear-gradient(90deg, #101621, #0c1016);
}

.project-media--ignite {
  background-image: linear-gradient(135deg, rgba(255,64,64,0.2), rgba(255,215,64,0.16)), linear-gradient(90deg, #0e131b, #0d1016);
}

.project-media--hook {
  background-image: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(34,211,238,0.18)), linear-gradient(90deg, #0f141d, #0c1116);
}

.project-media--jump {
  background-image: linear-gradient(135deg, rgba(57,255,20,0.14), rgba(192,132,252,0.14)), linear-gradient(90deg, #0e141d, #0c1116);
}

.project-media--antenna {
  background-image: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(255,215,64,0.14)), linear-gradient(90deg, #0e131b, #0c1116);
}

.project-media--rover-edl {
  background-image: linear-gradient(135deg, rgba(255,64,64,0.18), rgba(255,215,64,0.18)), linear-gradient(90deg, #0e141d, #0c1118);
}

.project-media--bungee {
  background-image: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(192,132,252,0.16)), linear-gradient(90deg, #0e141d, #0c1118);
}

.project-media--marbles {
  background-image: linear-gradient(135deg, rgba(57,255,20,0.16), rgba(255,215,64,0.16)), linear-gradient(90deg, #0e141d, #0d121a);
}

.project-media--connections {
  background-image: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(192,132,252,0.18)), linear-gradient(90deg, #0e131b, #0c1116);
}

.project-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-title-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fbc02d;
}

.launch {
  color: var(--gold);
  font-size: 16px;
}

.project-desc {
  margin: 0;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.01em;
}

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

.project-link-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.project-link-badge:hover {
  border-color: var(--accent);
  background: rgba(57, 255, 20, 0.12);
}

.project-link-pdf {
  color: var(--accent-2);
  border-color: rgba(192, 132, 252, 0.25);
  background: rgba(192, 132, 252, 0.06);
}

.project-link-pdf:hover {
  border-color: var(--accent-2);
  background: rgba(192, 132, 252, 0.12);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(251, 192, 45, 0.7);
  background: linear-gradient(145deg, rgba(251, 192, 45, 0.08), rgba(57, 255, 20, 0.04)) #0f141c;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(251, 192, 45, 0.35),
    0 0 28px rgba(251, 192, 45, 0.35),
    0 0 10px rgba(251, 192, 45, 0.2);
}

.project-card:hover .project-media {
  filter: brightness(1.08);
}

.project-card:hover .project-title-row h3 {
  color: #fbc02d;
}

@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "avatar"
      "meta"
      "bio"
      "terminal"
      "social";
  }

  .profile-meta {
    margin-left: 4px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px 10px 24px;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1 1 auto;
    text-align: left;
  }

  .social a {
    width: 42px;
    height: 42px;
  }
}
