:root {
  --ink: #515151;
  --blue: #c7ddfb;
  --desktop-bg: linear-gradient(180deg, #a0bbf3 17%, #dfeef2 69%, #fdf8df 87%);
  --panel-bg: linear-gradient(180deg, #D1E5FF 0%, #cbdffc 100%);
  --panel-border: #707174;
  --panel-header-bg: #a4a4a6;
  --panel-header-border: #666;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Pridi, serif;
  color: var(--ink)
}

body {
  overflow: hidden
}

.desktop {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--desktop-bg);
  transition: background .4s ease
}

/* ---------- boot screen ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(180deg, #a0bbf3 17%, #dfeef2 69%, #fdf8df 87%);
  transition: opacity .5s ease;
}
.boot.hide { opacity: 0; pointer-events: none }
.boot-mark {
  font-family: Pridi, serif;
  font-size: 1.6rem;
  color: #595959;
  letter-spacing: .02em;
}
.boot-bar {
  width: 180px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff80;
  overflow: hidden;
}
.boot-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: #FFF8CC;
  border-radius: 999px;
  transition: width 1s ease;
}

/* ---------- floating particles canvas ---------- */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- ambient floating shapes ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none }
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .35;
  background: #fff;
  animation: drift 22s ease-in-out infinite;
}
.c1 { width: 220px; height: 220px; top: 8%; left: -5%; animation-duration: 26s }
.c2 { width: 160px; height: 160px; top: 60%; right: -4%; animation-duration: 32s; animation-delay: -6s; background: #FFF8CC }
.c3 { width: 130px; height: 130px; bottom: 4%; left: 30%; animation-duration: 20s; animation-delay: -3s }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) }
  50% { transform: translate(30px, -20px) }
}

/* ---------- status line ---------- */
.status {
  font-size: .95rem;
  color: #909090;
  min-height: 1.2em;
  transition: opacity .3s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: -20px 0 24px;
}

/* ---------- context menu ---------- */
.context-menu {
  position: fixed;
  z-index: 200;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 4px 10px #0004;
  display: flex;
  flex-direction: column;
  padding: 6px;
  min-width: 200px;
  animation: show .12s ease-out;
}
.context-menu button {
  background: none;
  border: 0;
  text-align: left;
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.context-menu button:hover { background: #ffffff55 }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #333a54;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  opacity: 0;
  transition: all .3s ease;
  z-index: 300;
  box-shadow: 0 4px 10px #0004;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }

button {
  font: inherit
}

.sound {
    position: absolute;
    top: 15px;
    left: 24px;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 5;
}

.sound img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.home {
  position: absolute;
  width: min(879px, calc(100vw - 40px));
  aspect-ratio: 879/611;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.browser-frame {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 3px #0003);
}

.home-content {
  position: absolute;
  inset: 30% 7% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

h1 {
  margin: 0;
  color: #595959;
  font-family: Pridi;
  font-size: clamp(5rem, 6vw, 5.3rem);
  font-style: normal;
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

h1 em {
  color: #FFF8CC;
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #636566;
  font-family: Pridi;
  font-size: inherit;
  font-style: normal;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: -0.03em;
}

.home-content>p {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  margin: 14px 0 41px;
  color: #909090;
  line-height: 1;
  text-shadow: 0 4px 2.5px rgba(0, 0, 0, 0.06);
  font-family: Pridi;
  letter-spacing: -0.9px;
  font-family: Pridi;
  font-style: normal;
  font-weight: 300;
}

.launchers {
  display: flex;
  gap: 30px;
  align-items: start
}

.launchers button {
  padding: 0;
  border: 0;
  background: none;
  color: #818181;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 300;
  text-shadow: 0 2px 1.6px rgba(0, 0, 0, 0.23);
  transition: transform .2s;
}

.launchers button:hover {
  transform: translateY(-6px)
}

.launchers button:hover img {
  animation: wiggle .4s ease-in-out
}



@keyframes wiggle {
  0%, 100% { transform: rotate(0) }
  25% { transform: rotate(-6deg) }
  75% { transform: rotate(6deg) }
}

.launchers img {
  width: 74px;
  height: 68px;
  object-fit: contain;
  transition: transform .2s;
}

.panel {
  display: none;
  position: absolute;
  overflow: hidden;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 4px 5px #0006;
  font-family: "Plus Jakarta Sans", serif;
  transition: background .4s ease, border-color .4s ease;
}

.panel.open {
  display: block;
  animation: show .2s ease-out
}

.panel.minimized { display: none }

@keyframes show {
  from {
    opacity: 0;
    transform: scale(.95)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.panel header {
  height: 40px;
  padding: 2px 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel-header-bg);
  border-bottom: 2px solid var(--panel-header-border);
  color: #6b6c6e;
  font-size: 18px;
  cursor: grab;
  user-select: none;
  font-family: "Plus Jakarta Sans";
  transition: background .4s ease, border-color .4s ease;
}

.panel header:active {
  cursor: grabbing
}

.panel header span { 
  margin-left: 10px; 
  margin-right: auto;
  font-weight: 600; 
}

.panel header button {
  background: none;
  border: 0;
  margin-bottom: 4px;
  color: #6b6c6e;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s;
}

.panel header button:hover { transform: scale(1.15) }

/* ---------- resize handle ---------- */
.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  touch-action: none;
}
.resize-handle::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b6c6e88;
  border-bottom: 2px solid #6b6c6e88;
}
@media(max-width:720px) { .resize-handle { display: none } }

.panel-content {
  height: calc(100% - 30px);
  padding: 34px 43px;
  overflow: auto
}

.about {
  left: 4vw;
  top: 5vh;
  width: min(610px, calc(100vw - 34px));
  height: min(600px, calc(100vh - 50px))
}

.profile-tab {
  left: 8vw;
  top: 8vh;
  width: min(560px, calc(100vw - 34px));
  height: min(600px, calc(100vh - 50px))
}

.experience {
  left: 4vw;
  top: 5vh;
  width: min(630px, calc(100vw - 34px));
  height: min(700px, calc(100vh - 50px))
}

.projects {
  right: 4vw;
  top: 5vh;
  width: min(800px, calc(100vw - 34px));
  height: min(800px, calc(100vh - 50px))
}

.contact {
  right: 5vw;
  top: 5vh;
  width: min(600px, calc(100vw - 34px));
  height: min(500px, calc(100vh - 50px))
}

h2 {
  font-size: 25px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #6b85af;
}

h3 {
  font-size: 16px;
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif
}

p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 5px
}

hr {
  border: 0;
  border-top: 1px solid #a9c6ed;
  margin: 36px -5px 28px
}

.highlight {
  color: #6b85af;
  font-weight: 600
}

.profile {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px
}

.avatar {
  width:140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  background: linear-gradient(135deg, #f7fbff, #7aa3b4);
  border: 1px solid #eef7ff;
}

.profile h2 {
  margin: 0;
  font-size: 36px
}

.profile p {
  margin: 0;
  font-size: 16px
}

ul {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  line-height: 2;
  margin: 7px 0;
  padding-left: 20px
}

.panel-content h3 {
  margin: 0 0 8px;
  font-family: Pridi, serif;
  font-size: 22px;      /* bump up from 16px if you want it larger, like your screenshot */
  font-weight: 500;
  color: #6b85af;
}

.entry {
  border-left: 4px solid #5e6e8d2c;
  padding: 0.5rem 0 0.5rem 1rem;
  margin-bottom: 1rem;
}

.entry .degree {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: #515151;
  margin: 0;
}

.entry .entry-note {
  font-size: 13px;
  line-height: 1.4;
  color: #909090;
  margin: 4px 0 0;
  text-align: left;
}

.panel article {
  padding: 14px 0 26px;
  border-bottom: 1px solid #a9c6ed;
  margin-bottom: 20px
}

.panel article:last-child {
  border: 0
}

.job-title {
  display: flex;
  gap: 25px;
  align-items: center;
}

.job-title img {
  font-style: normal;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: white;
  border-radius: 5px
}

.job-title i.orange {
  background: #ff8805
}

.job-title i.purple {
  background: #4a259d;
  color: white
}

.job-title span {
  display: block
}

.job-title small,
.project small {
  color: #5e80b8;
  font-family: "Plus Jakarta Sans", sans-serif
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start
}

.project.solo {
  display: block
}

.project-image {
  width: 100%;
  aspect-ratio: 1.32;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 2px solid #6e7180;
  font-size: 68px;
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.project-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px #0004;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}

.tag {
  background: #7e9dcf;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  padding: 3px 11px;
  border-radius: 999px;
}

.cat {
  background: linear-gradient(135deg, #955f3e, #f2aa62 55%, #4f4d48)
}

.screen {
  background: linear-gradient(135deg, #fff, #e2effc);
  font-size: 58px
}

.project p {
  margin: 9px 0
}

.project a {
  background: #7e9dcf;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  padding: 7px 30px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  display: inline-block
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 10px;
  text-align: center
}

.contacts a {
  text-decoration: none;
  color: #617289;
  font-family: Arial, sans-serif;
  font-size: 20px
}

.contacts b {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #5d7bb0;
  color: #d2e5ff;
  font-size: 40px;
  display: grid;
  place-items: center;
  margin: auto auto 3px
}

.contacts small {
  display: block;
  font-size: 15px;
  color: #72829b
}

.note {
  text-align: center;
  font-size: 11px;
  margin-top: 29px
}

.taskbar {
  display: none
}

@media(max-width:720px) {
  body {
    overflow: auto
  }

  .desktop {
    min-height: 100dvh;
    overflow: auto;
    padding: 42px 12px 76px
  }

  .home {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    transform: none
  }

  .home-content {
    inset: 28% 5% 7%
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 3.2rem)
  }

  .home-content>p {
    font-size: .94rem;
    margin: 10px 0 23px
  }

  .launchers {
    width: 100%;
    gap: 3px;
    justify-content: space-around
  }

  .launchers img {
    width: 47px;
    height: 44px
  }

  .launchers button {
    font-size: 11px
  }

  .panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 46px !important;
    width: calc(100vw - 20px) !important;
    height: calc(100dvh - 118px) !important;
    max-height: none
  }

  .panel-content {
    padding: 24px 20px
  }

  hr {
    margin-left: -20px;
    margin-right: -20px
  }

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

  .contacts {
    grid-template-columns: repeat(2, 1fr)
  }

  .taskbar {
    display: flex;
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 62px;
    padding: 8px;
    gap: 6px;
    background: #343b45;
    overflow: auto
  }

  .taskbar button {
    background: #bfd7fa;
    border: 1px solid #7a8da9;
    border-radius: 4px;
    white-space: nowrap;
    color: #465a72;
    padding: 7px 10px;
    font-size: 12px
  }

  .taskbar button.minimized {
    background: transparent;
    color: #bfd7fa;
  }
}

/* Experience panel: match the Figma typeface, inset content, and list spacing. */
.experience .panel-content,
.experience .panel-content * { font-family: "Plus Jakarta Sans", sans-serif; }
.experience h2 { margin: 0 0 45px 34px; font-size: 30px; font-weight: 400; letter-spacing: -1.2px; }
.experience .job-title,
.experience ul { margin-left: 34px; }
.experience .job-title { gap: 34px; }
.experience .job-title img { width: 77px; height: 77px; object-fit: contain; }
.experience h3 { font-size: 17px; font-weight: 700; }
.experience .job-title span { font-size: 16px; font-weight: 400; }
.experience .job-title small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: #5f7aa9; }
.experience ul { font-size: 14px; line-height: 2.15; }
.experience article { padding: 0 0 37px; margin: 0 0 32px; }
.experience .panel-content > article:last-child { margin-bottom: 0; }
@media(max-width:720px) {
  .experience h2, .experience .job-title, .experience ul { margin-left: 0; }
  .experience h2 { font-size: 26px; margin-bottom: 30px; }
  .experience ul { font-size: 13px; }
}

/* Contact panel: reproduce the centred 3-then-2 icon layout from Figma. */
.contact .panel-content,
.contact .panel-content * { font-family: "Plus Jakarta Sans", sans-serif; }
.contact .panel-content { padding: 55px 60px 24px; }
.contact .contacts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px 0;
  padding: 0;
}
.contact .contacts a { grid-column: span 2; color: #595959; font-size: 16px; font-weight: 400; }
.contact .contacts a:nth-child(4) { grid-column: 2 / span 2; }
.contact .contacts a:nth-child(5) { grid-column: 4 / span 2; }
.contact .contacts b {
  width: 65px;
  height: 65px;
  margin: 0 auto 5px;
  background: #5f7aa9;
  color: #d8e7fc;
  font-size: 35px;
}
.contact .contacts small { margin-top: 1px; color: #7da2b9; font-size: 11px; }
.contact .note { max-width: 540px; margin: 37px auto 0; color: #66788d; font-size: 13px; line-height: 1.7; }
@media(max-width:720px) {
  .contact .panel-content { padding: 34px 20px 20px; }
  .contact .contacts { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .contact .contacts a,
  .contact .contacts a:nth-child(4),
  .contact .contacts a:nth-child(5) { grid-column: auto; }
  .contact .contacts b { width: 55px; height: 55px; font-size: 35px; }
  .contact .note { margin-top: 27px; }
}

/* ---------- playlist widget (about > interests) ---------- */
.playlist {
  --pl-record: 320px;          /* record diameter */
  --pl-card: #5873a0;          /* card blue, a shade deeper than the headings */
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(var(--pl-record) + 20px);
  margin: 10px 0 15px;            /* record's flat edge lines up with the text above */
  overflow: hidden;
}
 
/* the half record */
.pl-record {
  position: absolute;
  top: 50%;
  left: calc(var(--pl-record) / -2);
  width: var(--pl-record);
  height: var(--pl-record);
  margin-top: calc(var(--pl-record) / -2);
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, #ffffff00 0 10%, #ffffff1c 16%, #ffffff00 24% 60%, #ffffff14 66%, #ffffff00 74%),
    repeating-radial-gradient(circle, #2b2e36 0 2px, #353943 2px 3px);
  box-shadow: 0 4px 8px #0005, inset 0 0 0 6px #23262d;
}
.pl-label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pl-label, #a0bbf3);
  transition: background .3s ease;
  animation: pl-spin 6s linear infinite;
}
/* small off-centre mark so you can see it turn */
.pl-label::before {
  content: "";
  position: absolute;
  top: 18%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffffffb0;
}
.pl-label::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--panel-bg, #d1e5ff);
  box-shadow: inset 0 1px 2px #0006;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }
 
/* songs */
.pl-side {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 10px 24px 10px calc(var(--pl-record) / 2 * .55);
}

.pl-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  justify-items: start;
}
.pl-card {
  width: max-content;
  min-width: min(270px, 100%);
  max-width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 10px;
  background: var(--pl-card);
  color: #fff;
  box-shadow: 0 2px 4px #0003;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.3;
  transition: transform .15s ease;
}
.pl-card:hover { transform: translateX(4px); }
.pl-art {
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 2px solid #d1e5ff;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffffd9;
}
.pl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-text { min-width: 0; }
.pl-name, .pl-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name { font-size: 15px; font-weight: 700; }
.pl-artist { font-size: 12.5px; color: #dbe6fb; }
 
@media (max-width: 720px) {
  .playlist { --pl-record: 240px; }
  .pl-side { padding-right: 14px; padding-left: calc(var(--pl-record) / 2 * .55); }
  .pl-heading { font-size: 24px; }
  .pl-card { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-label { animation: none; }
  .pl-card { transition: none; }
}