.resume-site {
  min-height: 100vh;
}

.resume-page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 44px), 1180px);
  margin-inline: auto;
  padding: 124px 0 96px;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: start;
  gap: 24px;
}

.resume-column {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.resume-contact {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.resume-contact a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid rgba(109, 132, 255, .3);
  border-radius: 999px;
  color: #f8faff;
  background: linear-gradient(135deg, #1734ca, #0e23ad);
  box-shadow: 0 11px 24px rgba(28, 48, 173, .24), inset 0 1px rgba(255, 255, 255, .2);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.resume-contact a:hover {
  filter: brightness(1.08);
  box-shadow: 0 15px 32px rgba(28, 48, 173, .34), 0 0 0 4px rgba(59, 93, 246, .09);
  transform: translateY(-3px);
}

.resume-card {
  --resume-card-bg: linear-gradient(145deg, rgba(22, 34, 66, .9), rgba(8, 15, 32, .95));
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(144, 165, 229, .17);
  border-radius: 24px;
  background: var(--resume-card-bg);
  box-shadow: 0 24px 62px rgba(0, 0, 0, .25);
  isolation: isolate;
}

.resume-card::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: '';
  opacity: .7;
  background:
    radial-gradient(circle at 92% 4%, rgba(78, 109, 255, .11), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 42%);
  pointer-events: none;
}

.resume-card::after,
.course-card::after,
.resume-project::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(104, 139, 255, .18), transparent 34%);
  pointer-events: none;
  transition: opacity .28s ease;
}

.resume-card:hover::after,
.course-card:hover::after,
.resume-project:hover::after,
.resume-card.is-touch-active::after,
.course-card.is-touch-active::after,
.resume-project.is-touch-active::after {
  opacity: 1;
}

.resume-intro {
  min-height: 166px;
  display: grid;
  place-content: center;
  text-align: center;
}

.resume-wave {
  position: absolute;
  top: 21px;
  right: 50%;
  font-size: 23px;
  transform: translateX(50%);
  animation: resumeWave 2.4s ease-in-out infinite;
  transform-origin: 70% 80%;
}

.resume-intro p {
  margin: 20px 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.resume-intro h1 {
  margin-bottom: 7px;
  color: #f2f6ff;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 900;
}

.resume-intro h2 {
  margin: 0;
  color: #708dff;
  font-size: clamp(21px, 3vw, 33px);
  font-weight: 900;
}

.resume-section-title {
  margin-bottom: 22px;
  color: #edf2ff;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.course-grid,
.resume-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.course-card,
.resume-project {
  --lift: 0px;
  position: relative;
  min-width: 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(132, 156, 225, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .038);
  transform: perspective(850px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
  touch-action: pan-y;
  isolation: isolate;
}

.course-card:hover,
.resume-project:hover,
.course-card.is-touch-active,
.resume-project.is-touch-active {
  --lift: -6px;
  border-color: rgba(92, 134, 255, .42);
  box-shadow: 0 18px 35px rgba(3, 10, 31, .18);
}

.course-card--accent,
.resume-project--accent {
  color: #fff;
  border-color: rgba(122, 150, 255, .32);
  background: linear-gradient(145deg, #1534c7, #1326b1 62%, #0d1e95);
  box-shadow: 0 18px 38px rgba(20, 45, 183, .24);
}

.course-card--accent::before,
.resume-project--accent::before {
  position: absolute;
  inset: 0;
  content: '';
  opacity: .7;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255,255,255,.13) 45%, transparent 72%),
    radial-gradient(circle at 80% 12%, rgba(110, 163, 255, .24), transparent 38%);
  transform: translateX(-110%);
  animation: resumeAccentSheen 6s ease-in-out infinite;
  pointer-events: none;
}

.course-card h3,
.resume-project h3 {
  position: relative;
  z-index: 2;
  margin: 18px 0 15px;
  color: #eaf0ff;
  font-size: 17px;
  font-weight: 900;
}

.course-card p,
.resume-project p {
  position: relative;
  z-index: 2;
  margin-bottom: 21px;
  color: #aeb9d2;
  font-size: 10.5px;
  line-height: 1.9;
}

.course-card small,
.resume-project small,
.resume-project time {
  position: relative;
  z-index: 2;
  color: #8392bd;
  font-family: Arial, sans-serif;
  font-size: 8.5px;
}

.course-card small,
.resume-project small {
  margin-top: auto;
  align-self: flex-end;
}

.course-card--accent h3,
.course-card--accent p,
.course-card--accent small,
.resume-project--accent h3,
.resume-project--accent p,
.resume-project--accent small,
.resume-project--accent time {
  color: #fff;
}

.course-card--accent p,
.course-card--accent small,
.resume-project--accent p,
.resume-project--accent small,
.resume-project--accent time {
  color: rgba(255, 255, 255, .72);
}

.resume-project {
  min-height: 205px;
}

.resume-project time {
  display: block;
  text-align: end;
}

.resume-linkedin {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #cbd5ee;
  font-family: Arial, sans-serif;
  font-size: 12px;
  transition: color .22s ease, transform .22s ease;
}

.resume-linkedin:hover {
  color: #fff;
  transform: translateX(3px);
}

.resume-linkedin__mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #0a78bd;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.resume-about__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 18px;
}

.resume-about img {
  width: 112px;
  height: 162px;
  border-radius: 17px;
  object-fit: cover;
  object-position: center 27%;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s ease;
}

.resume-about:hover img {
  filter: saturate(1.06);
  transform: translateY(-4px) scale(1.018);
}

.resume-about h2 {
  margin-bottom: 10px;
  color: #edf3ff;
  font-size: 18px;
  font-weight: 900;
}

.resume-about p,
.resume-tools-copy {
  margin: 0;
  color: #aeb8d0;
  font-size: 11.5px;
  line-height: 2.05;
  text-align: justify;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(134, 155, 219, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.tool-icon {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #171e3f, #090f22);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease;
}

.tool-icon:hover {
  box-shadow: 0 10px 22px rgba(10, 19, 55, .22), inset 0 1px rgba(255,255,255,.1);
  transform: translateY(-3px) scale(1.04);
}

.tool-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-icon--ps { color: #91bfff; background: #101a48; }
.tool-icon--git { color: #f3f3f3; }
.tool-icon--csharp { color: #f4f1ff; background: linear-gradient(145deg, #211a47, #101128); }
.tool-icon--html { color: #fff; background: linear-gradient(145deg, #173eb5, #0d247f); }
.tool-icon--css { color: #fff; background: linear-gradient(145deg, #1d43c7, #102b8d); }

.resume-tools-copy {
  margin-top: 21px;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.resume-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(132, 153, 216, .09);
  border-radius: 999px;
  color: #aebbe0;
  background: rgba(255, 255, 255, .05);
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.resume-tags span:hover {
  transform: translateY(-3px);
}

.resume-tags span.is-active {
  color: #fff;
  border-color: rgba(109, 137, 255, .34);
  background: linear-gradient(135deg, #1b38ca, #1028ad);
  box-shadow: 0 10px 22px rgba(19, 44, 180, .2);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 48px 48px 48px 55px;
  gap: 10px;
}

.interest-grid span {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(132, 153, 216, .08);
  border-radius: 12px;
  color: #aeb9d4;
  background: rgba(255, 255, 255, .045);
  font-family: Arial, sans-serif;
  font-size: 13px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.interest-grid span:hover {
  box-shadow: 0 13px 26px rgba(3, 10, 31, .15);
  transform: translateY(-3px);
}

.interest-grid span.is-active {
  color: #fff;
  border-color: rgba(100, 132, 255, .3);
  background: linear-gradient(145deg, #1735c8, #1027af);
}

.interest-grid span i {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 25px;
  height: 11px;
  border-radius: 999px;
  background: rgba(113, 140, 255, .82);
  transform: translateY(-50%);
}

.interest-grid span i::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: '';
  background: #fff;
  transform: translateY(-50%);
}

.interest-grid__photography { grid-column: 1 / 3; grid-row: 1; }
.interest-grid__browsing { grid-column: 3 / 5; grid-row: 1 / 3; align-items: flex-start !important; padding-top: 15px !important; }
.interest-grid__films { grid-column: 1; grid-row: 2; }
.interest-grid__game { grid-column: 2; grid-row: 2; }
.interest-grid__travel { grid-column: 1 / 3; grid-row: 3; }
.interest-grid__music { grid-column: 3 / 5; grid-row: 3; }
.interest-grid__design { grid-column: 1 / 5; grid-row: 4; }

.resume-card.reveal,
.resume-contact.reveal {
  --reveal-y: 34px;
}

@keyframes resumeWave {
  0%, 100% { transform: translateX(50%) rotate(-7deg); }
  50% { transform: translateX(50%) rotate(15deg); }
}

@keyframes resumeAccentSheen {
  0%, 58%, 100% { transform: translateX(-115%); }
  72% { transform: translateX(115%); }
}

html[data-theme='light'] .resume-card {
  --resume-card-bg: linear-gradient(145deg, rgba(244, 244, 248, .97), rgba(238, 239, 245, .97));
  border-color: rgba(35, 56, 166, .08);
  box-shadow: 0 21px 52px rgba(58, 78, 124, .09);
}

html[data-theme='light'] .resume-card::before {
  opacity: .85;
  background:
    radial-gradient(circle at 92% 4%, rgba(38, 73, 207, .07), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.72), transparent 44%);
}

html[data-theme='light'] .resume-intro h1,
html[data-theme='light'] .resume-section-title,
html[data-theme='light'] .resume-about h2,
html[data-theme='light'] .course-card h3,
html[data-theme='light'] .resume-project h3 {
  color: #102064;
}

html[data-theme='light'] .resume-intro h2 {
  color: #1736c7;
}

html[data-theme='light'] .resume-intro p,
html[data-theme='light'] .resume-about p,
html[data-theme='light'] .resume-tools-copy,
html[data-theme='light'] .course-card p,
html[data-theme='light'] .resume-project p {
  color: #23335e;
}

html[data-theme='light'] .course-card,
html[data-theme='light'] .resume-project,
html[data-theme='light'] .tool-row,
html[data-theme='light'] .resume-tags span,
html[data-theme='light'] .interest-grid span {
  border-color: rgba(35, 56, 166, .08);
  color: #142457;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 27px rgba(60, 75, 120, .045);
}

html[data-theme='light'] .course-card small,
html[data-theme='light'] .resume-project small,
html[data-theme='light'] .resume-project time {
  color: #8290be;
}

html[data-theme='light'] .course-card--accent,
html[data-theme='light'] .resume-project--accent,
html[data-theme='light'] .resume-tags span.is-active,
html[data-theme='light'] .interest-grid span.is-active {
  color: #fff;
  border-color: rgba(65, 88, 205, .3);
  background: linear-gradient(145deg, #1735c8, #1027ae);
  box-shadow: 0 16px 34px rgba(22, 48, 183, .18);
}

html[data-theme='light'] .course-card--accent h3,
html[data-theme='light'] .resume-project--accent h3,
html[data-theme='light'] .course-card--accent p,
html[data-theme='light'] .resume-project--accent p,
html[data-theme='light'] .course-card--accent small,
html[data-theme='light'] .resume-project--accent small,
html[data-theme='light'] .resume-project--accent time,
html[data-theme='light'] .resume-tags span.is-active,
html[data-theme='light'] .interest-grid span.is-active {
  color: #fff;
}

html[data-theme='light'] .course-card--accent p,
html[data-theme='light'] .resume-project--accent p,
html[data-theme='light'] .course-card--accent small,
html[data-theme='light'] .resume-project--accent small,
html[data-theme='light'] .resume-project--accent time {
  color: rgba(255, 255, 255, .73);
}

html[data-theme='light'] .resume-linkedin {
  color: #202c50;
}

html[data-theme='light'] .resume-linkedin:hover {
  color: #1027ae;
}

html[data-theme='light'] .tool-row {
  background: #fff;
}

html[data-theme='light'] .tool-icon {
  color: #fff;
  background: linear-gradient(145deg, #171e3f, #090f22);
  box-shadow: none;
}

html[data-theme='light'] .resume-contact a {
  color: #fff;
}

@media (max-width: 1040px) {
  .resume-page {
    width: min(calc(100% - 32px), 980px);
  }

  .resume-contact {
    gap: 9px;
  }

  .resume-contact a {
    padding-inline: 13px;
    font-size: 10.5px;
  }

  .resume-card {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .resume-column--main {
    order: 1;
  }

  .resume-column--side {
    order: 2;
  }

  .resume-contact {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .resume-page {
    width: calc(100% - 22px);
    padding: 102px 0 68px;
  }

  .resume-column {
    gap: 15px;
  }

  .resume-grid {
    gap: 15px;
  }

  .resume-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resume-contact a {
    width: 100%;
    min-height: 42px;
    font-size: 11.5px;
    text-align: center;
  }

  .resume-card {
    padding: 19px;
    border-radius: 19px;
  }

  .resume-intro {
    min-height: 175px;
  }

  .course-grid,
  .resume-projects {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-card,
  .resume-project {
    min-height: 185px;
  }

  .resume-about__body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .resume-about img {
    width: min(100%, 180px);
    height: 220px;
    margin-inline: auto;
    order: -1;
  }

  .resume-about p {
    text-align: justify;
  }

  .resume-linkedin {
    width: 100%;
    justify-content: center;
    overflow-wrap: anywhere;
  }

  .tool-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .interest-grid {
    grid-template-rows: 46px 46px 46px 53px;
    gap: 8px;
  }

  .interest-grid span {
    padding-inline: 10px;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .resume-tags {
    gap: 7px;
  }

  .resume-tags span {
    padding: 6px 9px;
    font-size: 10.5px;
  }

  .interest-grid span i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card--accent::before,
  .resume-project--accent::before,
  .resume-wave {
    animation: none !important;
  }
}

/* Use the supplied resume tool artwork without changing the existing tool-row layout. */
.tool-icon--asset {
  padding: 3px;
}

.tool-icon--asset img {
  border-radius: 6px;
  object-fit: contain;
}
