:root {
  --sky: #dff5ff;
  --cream: #fff7de;
  --peach: #ffd7bb;
  --melon: #ff9f89;
  --teal: #00a3a8;
  --ink: #173247;
  --card-shadow: 0 22px 55px rgba(21, 59, 86, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #fff9cf 0 14%, transparent 15%),
    radial-gradient(circle at 80% 10%, #ffd6c6 0 16%, transparent 17%),
    linear-gradient(165deg, var(--sky), var(--cream) 45%, #ffe9db);
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 999px;
  opacity: 0.3;
  animation: drift 8s ease-in-out infinite alternate;
}

.blob-a {
  width: 300px;
  height: 300px;
  background: #99e5ff;
  top: -80px;
  left: -70px;
}

.blob-b {
  width: 220px;
  height: 220px;
  background: #ffb8a5;
  right: -60px;
  top: 180px;
  animation-delay: 1.1s;
}

.blob-c {
  width: 260px;
  height: 260px;
  background: #b6f7cf;
  left: 55%;
  bottom: -100px;
  animation-delay: 2.2s;
}

.card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  padding: 2rem clamp(1rem, 3vw, 2.6rem) 2.4rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(5px);
  animation: rise-in 700ms ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: #eaf7ff;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1 {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  margin: 0.7rem 0 0.35rem;
  color: #102a3c;
}

.summary {
  max-width: 62ch;
  margin: 0 0 1.45rem;
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  line-height: 1.55;
  animation: rise-in 760ms ease both;
  animation-delay: 130ms;
}

.content {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
  gap: 1.35rem clamp(1rem, 2vw, 2rem);
  align-items: center;
}

.portrait {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid #ffffff;
  box-shadow: 0 18px 30px rgba(18, 47, 74, 0.18);
  animation: rise-in 840ms ease both;
  animation-delay: 220ms;
}

.portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.details {
  background: linear-gradient(135deg, #fff1da, #ffe4d3);
  border-radius: 24px;
  padding: 1rem 1.1rem 1rem 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  animation: rise-in 920ms ease both;
  animation-delay: 290ms;
}

.details h2 {
  margin: 0.1rem 0 0.8rem;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
}

.details ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.details li {
  line-height: 1.45;
  font-size: 1.02rem;
}

.projects {
  margin-top: 1.4rem;
  padding: 1.1rem 1rem;
  border-radius: 22px;
  background: linear-gradient(140deg, #e9fbff, #eef6ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  animation: rise-in 1020ms ease both;
  animation-delay: 360ms;
}

.projects h2 {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
}

.projects-note {
  margin: 0.45rem 0 0.8rem;
}

.projects-note code {
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95em;
}

.projects-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
}

.project-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d7edff;
  box-shadow: 0 6px 14px rgba(16, 74, 116, 0.08);
}

.project-link {
  color: #10456a;
  text-decoration: none;
  font-weight: 700;
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
}

.placeholder {
  color: #34566f;
  font-weight: 600;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -16px, 0) scale(1.05);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body {
    padding: 1rem 0.75rem 1.2rem;
  }

  .card {
    padding: 1.2rem 0.9rem 1.35rem;
    border-radius: 24px;
  }

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

  .details {
    padding: 0.95rem 0.95rem 1rem;
  }

  .projects {
    margin-top: 1rem;
    padding: 0.9rem 0.8rem;
  }
}
