@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --ink: #101113;
  --muted: #65676b;
  --champagne: #d8c7ad;
  --line: rgba(20, 22, 25, 0.11);
  --panel: rgba(255, 255, 255, 0.74);
  --shadow: 0 12px 34px rgba(20, 23, 27, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  background: #8e969c;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      115deg,
      #555b61 0%,
      #bfc5ca 12%,
      #f8fafb 24%,
      #91999f 36%,
      #ffffff 48%,
      #a5adb3 61%,
      #e8ecee 74%,
      #676e74 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 3px,
      rgba(255, 255, 255, 0.38) 4px 5px
    );
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1140px, calc(100% - 32px));
  margin: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.top a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.photo-placeholder {
  display: grid;
  width: 130px;
  height: 150px;
  place-content: center;
  gap: 6px;
  color: #3f4145;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #9d9fa2, #e9e9e8 45%, #a5a7aa);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
}

.photo-placeholder span {
  font-size: 2.5rem;
}

.name {
  margin-bottom: 6px;
  font: 800 clamp(1.7rem, 4vw, 2.25rem) / 1.1 Manrope, sans-serif;
}

.verified {
  display: inline-flex;
  width: 19px;
  height: 19px;
  margin-left: 6px;
  vertical-align: middle;
}

.verified svg {
  width: 100%;
  height: 100%;
  fill: url("#silver");
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.verified svg path:first-child {
  fill: #aeb4b9;
}

.verified .check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location,
.subtitle {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.btn {
  padding: 10px 14px;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.btn-dark {
  color: white;
  background: var(--ink);
}

.btn[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  background: #e5e5e4;
}

.grid,
.skills {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}

.card {
  padding: 23px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(20, 23, 27, 0.07);
  backdrop-filter: blur(9px);
}

h2 {
  margin-bottom: 17px;
  font: 800 1.18rem Manrope, sans-serif;
}

.card p {
  color: #4f5155;
  font-size: 0.88rem;
  line-height: 1.65;
}

.timeline {
  padding-left: 18px;
  border-left: 1px solid #b9bbbd;
}

.event {
  position: relative;
  padding: 0 0 23px 18px;
}

.event::before {
  position: absolute;
  top: 3px;
  left: -24px;
  width: 10px;
  height: 10px;
  content: "";
  background: #9ea0a3;
  border: 2px solid #f8f8f7;
  border-radius: 50%;
}

.event b {
  display: block;
  font-size: 0.86rem;
}

.event span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.year {
  float: right;
  color: var(--muted);
  font-size: 0.7rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.tags b {
  width: 100%;
  font-size: 0.8rem;
}

.tag {
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  background: linear-gradient(135deg, #e0e1e1, #f8f8f7, #d2d2d1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.mini-list,
.goals {
  display: grid;
  gap: 10px;
}

.mini,
.goal {
  padding: 13px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mini small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.9fr;
  gap: 18px;
  margin: 18px 0;
}

.subhead {
  margin-bottom: 10px;
  font: 800 0.9rem Manrope, sans-serif;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  margin-top: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.43);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: white;
  font-size: 0.66rem;
  background: var(--ink);
  border-radius: 4px;
}

.copied {
  min-height: 16px;
  margin-top: 8px;
  color: #0e6d50;
  font-size: 0.74rem;
}

.gallery {
  margin-bottom: 38px;
}

.gallery-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-slot {
  display: grid;
  aspect-ratio: 1.18;
  place-items: center;
  padding: 8px;
  color: #46494d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(135deg, #75787c, #dadbdc 38%, #929599 70%, #efebe5);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.footer {
  padding: 20px;
  color: #595b5f;
  font-size: 0.74rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.chat-toggle {
  position: fixed;
  right: 23px;
  bottom: 22px;
  z-index: 10;
  width: 58px;
  height: 58px;
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
  background: linear-gradient(135deg, #1c1e20, #707378);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
}

.chat {
  position: fixed;
  right: 23px;
  bottom: 93px;
  z-index: 9;
  display: none;
  width: min(350px, calc(100vw - 30px));
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
}

.chat.open {
  display: block;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid #e1e1e1;
}

.avatar {
  width: 33px;
  height: 33px;
  background: linear-gradient(135deg, #6f7275, #e3e3e3);
  border-radius: 50%;
}

.status {
  color: #168551;
  font-size: 0.68rem;
}

.close {
  margin-left: auto;
  font-size: 1.2rem;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 250px;
  padding: 14px;
  overflow: auto;
  background: white;
}

.bubble {
  max-width: 83%;
  padding: 10px 11px;
  font-size: 0.78rem;
  line-height: 1.45;
  background: #f0f1f2;
  border-radius: 10px 10px 10px 2px;
}

.bubble.user {
  align-self: end;
  color: white;
  background: #1d72d2;
  border-radius: 10px 10px 2px 10px;
}

.chat-form {
  display: flex;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid #e1e1e1;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 9px;
  border: 1px solid #98999b;
  border-radius: 6px;
}

.chat-form button {
  padding: 0 11px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .hero,
  .grid,
  .skills,
  .bottom {
    grid-template-columns: 1fr;
  }

  .hero {
    justify-items: center;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .gallery-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    padding: 19px;
  }
}
.btn:hover,
.link-row:hover,
.chat-form button:hover {
  color: #111111;
  background: linear-gradient(
    135deg,
    #777b80 0%,
    #f8f9fa 22%,
    #aeb2b6 42%,
    #ffffff 55%,
    #8b9095 78%,
    #e9ebed 100%
  );
  border-color: #ffffff;
  box-shadow:
    0 5px 15px rgba(30, 35, 40, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-dark:hover {
  color: #111111;
  background: linear-gradient(
    135deg,
    #777b80 0%,
    #f8f9fa 22%,
    #aeb2b6 42%,
    #ffffff 55%,
    #8b9095 78%,
    #e9ebed 100%
  );
  border-color: #ffffff;
}
.profile-photo {
  width: 130px;
  height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.project-open {
  display: block;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.projects-workspace {
  margin: 30px 0 40px;
  padding: 32px;
  color: var(--ink);
background: var(--panel);
border: 1px solid rgba(255, 255, 255, 0.8);
backdrop-filter: blur(9px);
  border-radius: 22px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.workspace-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.workspace-heading h2 {
  margin-bottom: 5px;
  color: var(--ink);
}

.workspace-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

.project-windows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.vscode-window {
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid #4a4d52;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.vscode-bar {
  display: flex;
  gap: 12px;
  padding: 11px 14px;
  color: #d6d8dc;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  background: #303136;
  border-bottom: 1px solid #45474d;
}

.dots {
  color: #f3a54c;
  letter-spacing: 2px;
}

.code-area {
  min-height: 155px;
  padding: 18px 12px;
  overflow-x: auto;
  color: #d4d4d4;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.8;
  white-space: nowrap;
}

.line-number {
  display: inline-block;
  width: 25px;
  color: #777b83;
  text-align: right;
  user-select: none;
}

.purple { color: #c586c0; }
.green { color: #6a9955; }
.yellow { color: #dcdcaa; }
.blue { color: #569cd6; }

.project-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #252526;
  border-top: 1px solid #3d3e42;
}

.project-footer h3 {
  margin: 0 0 3px;
  color: white;
  font-size: 0.9rem;
}

.project-footer p {
  margin: 0;
  color: #aaaeb5;
  font-size: 0.72rem;
}

.run-project {
  padding: 9px 11px;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #787e85, #f5f7f8, #949ba2);
  border: 1px solid white;
  border-radius: 7px;
}

.run-project:hover {
  background: linear-gradient(135deg, #a0a6ab, #ffffff, #737a80);
}

@media (max-width: 850px) {
  .project-windows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .projects-workspace {
    padding: 20px;
  }
}
.mini:hover {
  color: #111111;
  background: linear-gradient(
    135deg,
    #777b80 0%,
    #f8f9fa 22%,
    #aeb2b6 42%,
    #ffffff 55%,
    #8b9095 78%,
    #e9ebed 100%
  );
  border-color: #ffffff;
  box-shadow:
    0 5px 15px rgba(30, 35, 40, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  transition: 0.2s ease;
}
.btn.resume-highlight {
  color: #111111;
  background: linear-gradient(
    135deg,
    #777b80 0%,
    #f8f9fa 22%,
    #aeb2b6 42%,
    #ffffff 55%,
    #8b9095 78%,
    #e9ebed 100%
  );
  border-color: #ffffff;
  box-shadow:
    0 5px 15px rgba(30, 35, 40, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}
/* Makes Resume, Projects, and Gallery look like centered buttons */
.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mini small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.gallery-polaroids {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(900px, 100%);
  margin: 0 auto;
  justify-items: center;
}

.polaroid {
  width: 100%;
  margin: 0;
  padding: 12px 12px 20px;
  background: #fdfdfc;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.polaroid:first-child {
  transform: rotate(-2deg);
}

.polaroid:last-child {
  transform: rotate(2deg);
}

.polaroid:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.polaroid figcaption {
  padding-top: 14px;
  color: #222;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

@media (max-width: 650px) {
  .gallery-polaroids {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }
}
/* Restores the top navigation position */
header.shell.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

header.shell.top a {
  padding-bottom: 3px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}