/* ===== RESET ===== */
:root {
  --bg: #f4f2ed;
  --card: #ffffff;
  --border: #e6e0d4;
  --muted: #6f7684;
  --text: #1f242c;
  --accent: #5e739c;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; background: none; border: 0; }

/* ===== LAYOUT ===== */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.left {
  padding: 32px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #fbf9f4 0%, #f1ece2 100%);
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: center;
  align-items: center;
}
.right {
  padding: 40px 48px;
  background: var(--card);
}

.stack > * { margin-block: 12px; }
.muted { color: var(--muted); font-size: 0.95rem; }

.profile-card { text-align: center; }
.pfp { width: 148px; height: 148px; border-radius: 32px; object-fit: cover; margin: 0 auto 12px; box-shadow: 0 20px 40px rgba(20, 20, 20, 0.15); }
.name { font-size: 1.6rem; font-weight: 700; }

.hidden { display: none; }

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.pill:hover,
.pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}
.nav-pill { cursor: pointer; }
.nav-pill.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 18px rgba(94, 115, 156, 0.22);
}

/* Primary nav */
.nav-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin: 12px 0;
}

.nav-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}

.nav-card-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.nav-note {
  font-size: 0.85rem;
  color: #9a8c71;
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 8px 0;
}

.primary-nav-inline {
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.primary-nav-inline .primary-nav-btn {
  flex: 0 0 90px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.primary-nav-btn {
  width: 100%;
  max-width: 240px;
  text-align: center;
}

.nav-projects {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.nav-child {
  width: 100%;
  max-width: 260px;
  text-align: center;
  justify-content: center;
}

.nav-projects .nav-child {
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Projects */
.proj-header { font-size: 1.1rem; font-weight: 700; margin-top: 16px; }
.proj-sub { font-size: 0.9rem; color: #555; margin-bottom: 12px; }
.proj-list { list-style: none; padding: 0; margin: 0; margin-left: 12px; }
.proj-list li { margin: 8px 0; }

.proj-btn { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; cursor: pointer; transition: filter .15s ease, transform .02s ease; }
.proj-btn:active { transform: translateY(1px); }

.btn-green { background: #B7C9A8; border-color: #8f9e82; color: #1e1e1e; }
.btn-green:hover { filter: brightness(0.97); }

.btn-blue { background: #c8e3fe; border-color: #a6bed6; color: #1e1e1e; }
.btn-blue:hover { filter: brightness(0.97); }

.btn-normal { background: #e7e7e6; border-color: #c2c2c2; color: #1e1e1e; }
.btn-normal:hover { filter: brightness(0.97); }

.btn-terracotta { background: linear-gradient(135deg, #e07a5f, #f2a27f); border-color: transparent; color: #fff; }
.btn-terracotta:hover { filter: brightness(0.97); }

.btn-primary-blue {
  background: linear-gradient(135deg, #596da8, #435385);
  border-color: transparent;
  color: #ffffff;
}
.btn-primary-blue:hover { filter: brightness(1.04); }

.btn-project-blue {
  background: linear-gradient(135deg, #394561, #2e3953);
  border-color: transparent;
  color: #f1f4fb;
}
.btn-project-blue:hover { filter: brightness(1.02); }

.proj-btn.selected { filter: brightness(0.9); border-color: #999; }

.iframe-wrap { width: 100%; aspect-ratio: 16/9; border: 1px solid #eee; margin-top: 16px; }
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Mobile */
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
    border-radius: 0;
  }
  .left {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .right {
    padding: 32px 20px 48px;
  }
}

.socials { margin: 0 auto; margin-top: 8px; display: flex; gap: 12px; justify-content: center; }
.socials a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.contact {
  text-align: center;
  margin: 12px auto 18px;
}
.socials a svg { transition: transform 0.2s ease; }
.socials a:hover svg { transform: scale(1.1); }

.img-inline { max-width: 50%; height: auto; display: block; margin: 1rem auto; }

.proj-group { margin-top: 24px; margin-bottom: 32px; }
.proj-group .proj-header { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: #333; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.proj-block + .proj-block { margin-top: 12px; }

.proj-title-bar { display: flex; align-items: center; gap: 8px; }
.proj-title-bar a svg { transition: transform 0.15s ease; }
.proj-title-bar a:hover svg { transform: scale(1.1); }

#p-github.hidden {
  display: none;
}

.proj-title-bar {
  display: flex;
  align-items: center; /* ensures vertical alignment with text */
  gap: 10px; /* space between title and icon */
}

#p-github svg {
  width: 35px;  /* slightly bigger */
  height: 35px; /* keep aspect ratio square */
  vertical-align: middle;
  fill: #444D84;
  transition: transform 0.2s ease, fill 0.2s ease;
}

#p-github:hover svg {
  transform: scale(1.25);
  fill: #3a4173; /* darker hover shade */
}

.proj-header-with-github {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.proj-github-link {
  display: inline-flex;
  align-items: center;
  transform: translateY(4px);
}

.proj-github-link svg {
  transition: transform 0.2s ease;
}

.proj-github-link:hover svg {
  transform: scale(1.25);
  fill: #181717; /* optional darker hover color */
}

.icon-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.icon-left {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.icon-block p {
  margin: 0;
  line-height: 1.5;
  color: #333;
}

@media (max-width: 600px) {
  .icon-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

.architecture-diagram {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0;
  width: 100%;
}
.architecture-diagram text {
  font-family: "Inter", system-ui, sans-serif;
}

.architecture-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.architecture-diagram .architecture-graphic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.architecture-list {
  padding-left: calc(28px + 12px);
  margin-left: 0;
}
.dashboard-gallery {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.dashboard-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  width: 100%;
}

.dashboard-caption {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}

h3 {
  margin-top: 12px;
}

p, li {
  color: #2e3540;
}

ul {
  padding-left: 22px;
}

.experience-list,
.education-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
  margin: 12px 0;
}

.experience-item,
.education-item {
  margin: 0;
}

.experience-detail {
  margin: 4px 0 0;
  color: #2e3540;
}

.education-detail {
  margin: 4px 0 0;
  color: #2e3540;
}
