@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Chewy&display=swap");

:root {
  --bg: #000000;
  --paper: #ffffff;
  --text: #1d1a20;
  --muted: #4f4a55;
  --brand: #777bf3;
  --brand-2: #608a90;
  --brand-3: #ffd166;
  --line: #1d1a2022;
  --shadow: 0 18px 34px #1d1a201c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Fredoka", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 2%, #ffe0ec 0%, var(--bg) 36%),
    radial-gradient(circle at 85% 92%, #d6f7ff 0%, transparent 35%),
    linear-gradient(140deg, #fff4cf 0%, #fff8e8 70%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#ffffff55 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: -2;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.45;
  z-index: -1;
}

.orb-one {
  width: 300px;
  height: 300px;
  background: #ff9f9f;
  top: -90px;
  right: -70px;
}

.orb-two {
  width: 260px;
  height: 260px;
  background: #7be0ff;
  bottom: -90px;
  left: -50px;
}

.orb-three {
  width: 240px;
  height: 240px;
  background: #ffe084;
  top: 36%;
  left: -90px;
}

.site-header,
main,
.site-footer {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Chewy", cursive;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.menu-btn {
  display: none;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--brand);
}

main {
  padding-top: 2rem;
}

.hero {
  padding: 3rem 1.5rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-2);
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Chewy", cursive;
  margin: 0;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.02;
  max-width: 12ch;
}

h1 span {
  color: var(--brand);
}

.hero-copy {
  color: var(--muted);
  max-width: 55ch;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
  cursor: pointer;
}

.btn-solid {
  background: var(--brand);
  color: #fff;
  border: 2px solid #ff4e4e;
}

.btn-ghost {
  border: 2px solid var(--line);
  color: var(--text);
  background: #fff;
}

.meme-line {
  margin: 1rem 0 0;
  font-weight: 600;
  color: #8a3f99;
}

.panel {
  margin-top: 1.1rem;
  padding: 1.4rem;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.panel p {
  color: var(--muted);
}

.chip-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip-list li {
  border: 2px dashed var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #fff;
  font-weight: 600;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.section-head a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
}

.projects-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #00000010;
}

.project-card p {
  margin: 0.5rem 0;
}

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

.contact-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}

.meow-count {
  margin: 0.35rem 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 700ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 170ms;
}

.reveal:nth-child(4) {
  animation-delay: 250ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 56px;
    right: 0;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    min-width: 160px;
  }

  .nav.open {
    display: flex;
  }
}
