:root {
  --bg: #fafafa;
  --black: #121212;
  --dark: #242424;
  --gray: #363636;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #000;
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 1012px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 0 32px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 152px;
  height: 152px;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 280ms ease;
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  .avatar:hover {
    transform: scale(1.04) rotate(-2deg);
  }
}

.profile-info {
  width: 177px;
  height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h1 {
  font-size: 26px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.role {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
}

.icon-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  display: block;
}

.intro {
  height: 152px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.intro p {
  width: 258px;
  font-size: 14px;
  text-align: right;
}

.cv-btn {
  height: 30px;
  width: 162px;
  border: 1px solid #000;
  border-radius: 1000px;
  background: transparent;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cv-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 14px;
}

.cv-btn span {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  transition: color 180ms ease;
}

.cv-btn img {
  transition: filter 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cv-btn:hover {
    background: #121212;
    border-color: #121212;
  }

  .cv-btn:hover span {
    color: #fff;
  }

  .cv-btn:hover img {
    filter: brightness(0) invert(1);
  }
}

.section h2 {
  font-size: 20px;
  font-weight: 500;
}

.hero-note {
  padding: 24px 0;
}

.hero-note-line {
  height: 1px;
  background: #000;
}

.hero-note p {
  margin-top: 9px;
  font-size: 14px;
}

.about {
  padding: 24px 0 48px;
}

.about p {
  margin-top: 16px;
  font-size: 16px;
}

.projects {
  padding-bottom: 24px;
}

.project-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.project-card {
  width: 496px;
}

.project-image-wrap {
  width: 100%;
  height: 497px;
  border-radius: 15px;
  overflow: hidden;
}

.project-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.project-image.shiftboard {
  object-position: 57% 50%;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-image {
    transform: scale(1.04);
  }
}

.project-meta {
  padding: 16px 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-meta h3,
.cert-info h3,
.talk-col h3,
.education-content h3 {
  font-size: 16px;
  font-weight: 500;
}

.tags {
  display: flex;
  gap: 12px;
}

.tags span {
  border: 1px solid #000;
  border-radius: 1000px;
  height: 25px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.education {
  padding: 24px 0;
}

.education-row,
.lets-talk {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.left-rail {
  width: 1px;
  align-self: stretch;
  min-height: 100px;
  background: #000;
}

.left-rail.short {
  min-height: 45px;
}

.education-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.education-main {
  width: 528px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--gray);
}

.location-row img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
}

.location-icon {
  width: 14px !important;
  height: 16px !important;
  flex: 0 0 14px !important;
}

.school {
  margin-top: 4px;
  font-size: 14px;
}

.edu-desc {
  font-size: 16px;
}

.year {
  font-size: 14px;
  color: var(--gray);
}

.certificates {
  padding: 24px 0;
}

.cert-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.google-logo {
  width: 35px;
  height: 35px;
}

.cert-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cert-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-info h3 {
  max-width: 495px;
}

.cert-text span,
.cred-link {
  font-size: 14px;
}

.cred-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.cred-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  transition: transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cred-link:hover {
    opacity: 0.75;
  }

  .cred-link:hover img {
    transform: translateX(2px) translateY(-1px);
  }
}

.lets-talk {
  padding: 24px 0;
}

.talk-grid {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.talk-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.small-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
}

.small-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  display: block;
}

.twitter-icon {
  width: 18px !important;
  height: 16px !important;
  flex: 0 0 18px !important;
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-linkedin-link img {
  transform: translateY(-2px);
}

.linkedin-social-link img {
  transform: translateY(-2px);
}

.footer {
  padding: 24px 0;
}

.footer-line {
  height: 1px;
  background: #000;
}

.footer p {
  margin-top: 9px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .page {
    width: 785px;
  }

  .header,
  .about,
  .education,
  .certificates,
  .lets-talk,
  .footer,
  .projects {
    padding-left: 0;
    padding-right: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: 785px;
  }

  .project-image {
    height: 100%;
  }

  .project-image-wrap {
    height: 785px;
  }

  .education-main {
    width: 614px;
  }

  .cert-info h3 {
    max-width: 495px;
  }
}

@media (max-width: 820px) {
  body {
    background: #fff;
  }

  .page {
    width: 370px;
  }

  .header {
    padding: 80px 0 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .intro {
    height: auto;
    align-items: center;
    gap: 16px;
    width: 349px;
  }

  .intro p {
    width: 100%;
    text-align: left;
  }

  .about {
    padding-top: 24px;
  }

  .projects {
    padding-bottom: 24px;
  }

  .project-card {
    width: 370px;
  }

  .project-image {
    width: 100%;
    height: 100%;
  }

  .project-image-wrap {
    width: 370px;
    height: 370px;
  }

  .education-row {
    align-items: flex-start;
  }

  .education-content {
    width: 360px;
  }

  .education-main {
    width: 275px;
  }

  .left-rail {
    min-height: 117px;
  }

  .certificates h2 {
    margin-bottom: 10px;
  }

  .cert-info h3 {
    max-width: 316px;
  }

  .cert-info {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title title"
      "org link";
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }

  .cert-text {
    display: contents;
  }

  .cert-text h3 {
    grid-area: title;
  }

  .cert-org {
    grid-area: org;
  }

  .cred-link {
    grid-area: link;
  }

  .lets-talk {
    display: block;
  }

  .lets-talk .left-rail {
    display: none;
  }

  .talk-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .socials {
    flex-wrap: wrap;
  }
}
