/* Lofi paper UI floating over the Three.js arcade */
:root {
  --ink: #26232a;
  --paper: #fffdf5;
  --red: #ff5d5d;
  --green: #3fbf4f;
  --gold: #ffcf3f;
  --blue: #4f8fff;
  --shadow: 6px 6px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--ink);
  background: #b8e6e0;
  overflow-x: hidden;
}

#world {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#journey {
  position: relative;
  z-index: 1;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12vh 5vw;
}

/* paper panel */
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  width: min(640px, 92vw);
  position: relative;
}
.card::before { /* paper tape */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 90px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 207, 63, 0.85);
  border: 2px solid var(--ink);
  border-radius: 3px;
}
/* alternating tilt, like pinned-up paper */
section:nth-of-type(odd) .card { transform: rotate(-1.2deg); }
section:nth-of-type(even) .card { transform: rotate(1.2deg); }

h1, h2 {
  font-family: "Bungee", "Fredoka", sans-serif;
  line-height: 1.15;
}

h2 { margin-bottom: 0.9rem; }

/* hero */
.hero { text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}
.kicker {
  display: inline-block;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.sub { font-size: 1.15rem; font-weight: 500; margin-top: 0.6rem; }
.hint {
  margin-top: 1.4rem;
  font-weight: 600;
  animation: bob 1.2s ease-in-out infinite;
}
@keyframes bob {
  50% { transform: translateY(6px); }
}
.card p + p { margin-top: 0.7rem; }

/* experience cards */
.meta { font-weight: 600; color: #6b6474; margin: 0.3rem 0 0.9rem; }
.card ul { list-style: none; }
.card li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.card li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink);
}

/* projects */
.card.wide { width: min(880px, 94vw); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.panel {
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  background: #fff;
  padding: 1.1rem 1.2rem;
}
.panel h3 { font-family: "Bungee", sans-serif; font-size: 1.05rem; margin-bottom: 0.5rem; }
.chips { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips span {
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.chips.big span { font-size: 1rem; padding: 0.25rem 0.9rem; }
.chips.big span:nth-child(4n+1) { background: var(--gold); }
.chips.big span:nth-child(4n+2) { background: #8fd6ff; }
.chips.big span:nth-child(4n+3) { background: #9df09d; }
.chips.big span:nth-child(4n+4) { background: #ffb0b0; }

/* contact buttons */
.links { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.links a {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.5rem 1.2rem;
  transition: transform 0.1s, box-shadow 0.1s;
}
.links a:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.links a:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

@media (max-width: 560px) {
  .bubble { right: 12px; bottom: 100px; max-width: 200px; font-size: 0.85rem; }
}

/* guide speech bubble */
.bubble {
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 2;
  max-width: 250px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.7rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.bubble::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -14px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) translateY(-4px);
}
