* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #fafafa;
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
header {
  margin-bottom: 56px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-text {
  flex: 1;
  min-width: 0;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.tagline {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.intro {
  color: #444;
  max-width: 480px;
  margin-bottom: 20px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.7;
}

.gh-dropdown {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.gh-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  min-width: 160px;
  z-index: 10;
}

.gh-menu.open {
  display: flex;
}

.gh-menu a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.gh-menu a:hover {
  background: #eff6ff;
  opacity: 1;
}

.gh-menu small {
  color: #94a3b8;
  font-weight: 400;
}

/* ===== Sections ===== */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 20px;
}

/* ===== Work Items ===== */
.item {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
  cursor: default;
}

.item:hover {
  border-color: #93c5fd;
}

.item-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.item-head strong {
  font-size: 1rem;
  font-weight: 600;
}

.role {
  font-size: 0.85rem;
  color: #666;
}

.date {
  font-size: 0.8rem;
  color: #aaa;
  margin-left: auto;
}

.item p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: #eff6ff;
  color: #2563eb;
}

.stack-tags {
  gap: 8px;
}

.stack-tags span {
  padding: 5px 14px;
  font-size: 0.8rem;
}

/* ===== Certs ===== */
.cert-section {
  padding: 0;
}

.cert-intro {
  font-size: 0.88rem;
  color: #4b6a8a;
  margin: -6px 0 14px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cert-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.cert-image-link {
  display: inline-flex;
  line-height: 0;
}

.cert-image {
  width: 260px;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert-card:hover .cert-image {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.2);
}


/* ===== Beyond Code ===== */
.beyond-section {
  padding: 0;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.beyond-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.beyond-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.beyond-card--photo {
  position: relative;
  aspect-ratio: 1;
}


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

.beyond-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 2px;
}

.beyond-overlay strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.beyond-overlay span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}


/* ===== Footer ===== */
footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

footer p {
  font-size: 0.8rem;
  color: #aaa;
}

footer a {
  color: #aaa;
  text-decoration: none;
}

footer a:hover {
  color: #2563eb;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 720px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cert-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1;
  }

  .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .beyond-overlay {
    padding: 16px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 520px) {
  body {
    padding: 40px 18px 40px;
    font-size: 14px;
  }

  /* Header: centered, photo on top */
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
    order: -1;
  }

  .intro {
    max-width: 100%;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }


  h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .gh-menu {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Work cards */
  .item {
    padding: 16px 18px;
  }

  .item-head {
    gap: 6px;
  }

  .item-head strong {
    font-size: 0.95rem;
  }

  .date {
    margin-left: 0;
    flex-basis: 100%;
  }

  .item p {
    font-size: 0.85rem;
  }

  /* Tags */
  .tags span {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .stack-tags span {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  /* Certs: single column, full width badges */
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cert-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1;
  }

  /* Beyond Code */
  .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .beyond-overlay {
    padding: 14px;
  }

  .beyond-overlay strong {
    font-size: 0.92rem;
  }

  .beyond-overlay span {
    font-size: 0.75rem;
  }

  /* Section spacing */
  section {
    margin-bottom: 36px;
  }

  h2 {
    font-size: 0.7rem;
    margin-bottom: 14px;
  }

  /* Footer */
  footer {
    margin-top: 36px;
  }

  footer p {
    font-size: 0.75rem;
  }
}
