/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #222;
  font-size: 18px;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.nav-right a {
  margin-left: 20px;
}

.nav-home {
  font-weight: 600;
  font-size: 1rem;
}

/* Bio section */
.bio-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bio-text { flex: 1; min-width: 220px; }
.bio-text h1 { margin: 0 0 6px; font-size: 2.6rem; }
.bio-text .tagline { margin: 0 0 16px; color: #555; font-size: 1.05rem; }
.bio-text .contact-info { margin: 8px 0 0; font-size: 1rem; line-height: 2; color: #444; }
.bio-text .contact-info a { color: #444; }
.bio-photo {
  width: 260px;
  height: 260px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 16px 0 28px;
}

/* Project rows */
.project-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
  background: #eaecf4;
  border-radius: 8px;
  padding: 28px;
  position: relative;
}

/* Stretched link: title anchor covers the whole card */
.project-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep GitHub external link clickable above the overlay */
.project-info a[target="_blank"] {
  position: relative;
  z-index: 2;
}
.project-media {
  flex: 0 0 38%;
  width: 38%;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.project-info { flex: 1; min-width: 0; }
.project-info p { margin: 0 0 10px; font-size: 1rem; line-height: 1.65; }
.project-info strong { font-size: 1.1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tag {
  display: inline-block;
  background: #fff;
  color: #333;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Project page */
.project-page {
  max-width: 100%;
}

.project-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.25;
  color: #111;
}

.project-page h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 64px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  color: #111;
}

.project-page h3 {
  font-size: 2rem;
  font-weight: 600;
  margin: 48px 0 12px;
  color: #222;
}

.project-page p {
  line-height: 1.8;
  margin: 0 0 14px;
  color: #333;
}

.project-page ul,
.project-page ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.project-page li {
  line-height: 1.75;
  margin-bottom: 5px;
  color: #333;
}

.project-page hr {
  border: none;
  border-top: 1px solid #e4e4e4;
  margin: 36px 0;
}

.project-page strong {
  font-weight: 600;
  color: #111;
}

.tag--page {
  background: #eaecf4;
  color: #333;
}

.project-page .project-tags {
  margin-bottom: 28px;
}

.project-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #555;
}

.project-back:hover {
  color: #111;
  text-decoration: none;
}

.video {
  width: 100%;
  aspect-ratio: 16 / 11.7;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 16px 0;
  display: block;
}

.project-github{
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.9;
}

.project-github:hover{
  opacity: 1;
  transform: translateY(-1px);
}
