/* GitHub-profile inspired CV page */

/* Hide site header banner on the CV page only — this stylesheet is only loaded here */
.header { display: none !important; }

html { scroll-behavior: smooth; }

.gh-profile {
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 32px auto 64px;
  padding: 0 24px;
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

/* ---------- Sidebar ---------- */
.gh-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.gh-avatar-wrap {
  width: 100%;
  max-width: 296px;
}

.gh-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #d0d7de;
  display: block;
  object-fit: cover;
  background: #f6f8fa;
}

.gh-identity {
  margin-top: 16px;
}

.gh-name {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #1f2328;
}

.gh-handle {
  font-size: 20px;
  font-weight: 300;
  color: #59636e;
  margin: 4px 0 0;
}

.gh-bio {
  font-size: 16px;
  line-height: 1.5;
  margin: 16px 0;
  color: #1f2328;
}

.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 5px 16px;
  border: 1px solid rgba(31, 35, 40, 0.15);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: #f6f8fa;
  color: #1f2328;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}
.gh-btn:hover { background: #eef1f4; text-decoration: none; }

.gh-btn-primary {
  background: #1f883d;
  color: #fff;
  border-color: rgba(31, 35, 40, 0.15);
}
.gh-btn-primary:hover { background: #1a7f37; color: #fff; }

.gh-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 14px;
  color: #1f2328;
}
.gh-meta li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gh-meta li i {
  width: 16px;
  color: #59636e;
  text-align: center;
}
.gh-meta a { color: #0969da; text-decoration: none; }
.gh-meta a:hover { text-decoration: underline; }

.gh-section-divider {
  height: 1px;
  background: #d0d7de;
  margin: 20px 0;
}

.gh-side-heading {
  font-size: 14px;
  font-weight: 600;
  color: #1f2328;
  margin: 0 0 8px;
  text-transform: none;
}

.gh-achievements {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #1f2328;
}
.gh-achievements li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.gh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.gh-badge-purple { background: #8250df; }
.gh-badge-blue   { background: #0969da; }
.gh-badge-yellow { background: #bf8700; }

.gh-languages {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gh-languages li {
  background: #ddf4ff;
  color: #0969da;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(9, 105, 218, 0.15);
}

/* ---------- Main ---------- */
.gh-main { min-width: 0; }

.gh-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #d0d7de;
  margin-bottom: 24px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding-top: 8px;
}
.gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: #1f2328;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s;
}
.gh-tab:hover { background: #f6f8fa; }
.gh-tab:focus { outline: none; box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.3); }
.gh-tab-active {
  font-weight: 600;
  border-bottom-color: #fd8c73;
}
.gh-tab-active:hover { background: transparent; }

.gh-panel {
  scroll-margin-top: 72px;
  margin-bottom: 8px;
}
.gh-count {
  background: #eaeef2;
  color: #1f2328;
  font-size: 12px;
  padding: 0 6px;
  border-radius: 999px;
  line-height: 18px;
}

.gh-readme {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  margin-bottom: 32px;
  background: #fff;
}
.gh-readme-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #d0d7de;
  font-size: 14px;
  color: #1f2328;
  background: #f6f8fa;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.gh-readme-path strong { font-weight: 600; }
.gh-readme-body { padding: 24px; font-size: 16px; line-height: 1.5; }
.gh-readme-body h2 {
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 8px;
  margin-top: 0;
  font-size: 24px;
}
.gh-readme-list { padding-left: 20px; }
.gh-readme-list li { margin: 6px 0; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.gh-section-heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1f2328;
}
.gh-section-sub {
  font-weight: 400;
  color: #59636e;
  font-size: 14px;
}

.gh-pinned { margin-bottom: 32px; }
.gh-pin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gh-pin {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.gh-pin header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}
.gh-pin header i { color: #59636e; }
.gh-pin-title { font-weight: 600; color: #0969da; }
.gh-pin-title a { color: #0969da; text-decoration: none; }
.gh-pin-title a:hover { text-decoration: underline; }
.gh-pin-vis {
  margin-left: auto;
  font-size: 12px;
  padding: 0 7px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  color: #59636e;
  line-height: 18px;
}
.gh-pin-desc {
  font-size: 13px;
  color: #59636e;
  margin: 0 0 12px;
  line-height: 1.5;
  flex: 1;
}
.gh-pin footer {
  font-size: 12px;
  color: #59636e;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gh-lang-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.gh-pin-meta { display: inline-flex; align-items: center; gap: 4px; }
.gh-pin-role { font-style: italic; }

.gh-contrib-note {
  font-size: 13px;
  color: #59636e;
  margin: 12px 0 0;
}

/* Skills */
.gh-skills-block { margin-bottom: 32px; }
.gh-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-skill {
  font-size: 12px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  color: #1f2328;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Contribution graph */
.gh-activity { margin-bottom: 32px; }
.gh-activity-sub { font-size: 13px; color: #59636e; margin: 0 0 12px; }
.gh-graph-wrap {
  padding: 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  overflow-x: auto;
}
.gh-graph-svg {
  width: 100%;
  height: auto;
  min-width: 600px;
  display: block;
}

.gh-graph-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #59636e;
  margin: 8px 0 0;
  justify-content: flex-end;
}
.gh-cell { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.gh-cell-0 { background: #ebedf0; }
.gh-cell-1 { background: #9be9a8; }
.gh-cell-2 { background: #40c463; }
.gh-cell-3 { background: #30a14e; }
.gh-cell-4 { background: #216e39; }

/* Education */
.gh-education { margin-bottom: 32px; }
.gh-edu-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  align-items: flex-start;
}
.gh-edu-icon {
  width: 40px;
  height: 40px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #59636e;
  flex-shrink: 0;
}
.gh-edu-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1f2328;
}
.gh-edu-item p {
  font-size: 14px;
  margin: 0 0 4px;
  color: #1f2328;
}
.gh-edu-dates {
  font-size: 12px;
  color: #59636e;
}

/* Resume CTA */
.gh-resume-cta {
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
  flex-wrap: wrap;
}
.gh-resume-cta .gh-btn { width: auto; }

/* Responsive */
@media (max-width: 900px) {
  .gh-profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gh-sidebar { position: static; }
  .gh-avatar-wrap { max-width: 200px; }
  .gh-pin-grid { grid-template-columns: 1fr; }
}
