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

:root {
  --ink: #24213d;
  --muted: #69657b;
  --cream: #fff9ef;
  --paper: #ffffff;
  --orange: #ff8359;
  --orange-dark: #e9623c;
  --yellow: #ffd66b;
  --violet: #7c62d5;
  --mint: #70cbb8;
  --line: rgba(36, 33, 61, 0.12);
  --shadow: 0 18px 45px rgba(74, 53, 35, 0.1);
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 214, 107, 0.2), transparent 22rem),
    radial-gradient(circle at 96% 35%, rgba(124, 98, 213, 0.1), transparent 24rem),
    var(--cream);
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 15px 12px 16px 11px;
  color: white;
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 1.45rem/1 "Fredoka", sans-serif;
  transform: rotate(-3deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font: 700 1.16rem/1.1 "Fredoka", sans-serif;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-badge {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: 420px;
  margin-top: 14px;
  padding: clamp(44px, 7vw, 78px);
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(36, 33, 61, 0.08);
  border-radius: 38px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.88), rgba(255, 242, 219, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: -45px;
  left: 47%;
  width: 110px;
  height: 110px;
  border: 24px solid rgba(255, 214, 107, 0.35);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fredoka", sans-serif;
}

h1 {
  max-width: 710px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 em {
  position: relative;
  color: var(--violet);
  font-style: normal;
  white-space: nowrap;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  transform: rotate(-1deg);
}

.hero-description {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-art {
  position: relative;
  min-height: 280px;
}

.gamepad {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 225px;
  height: 140px;
  border: 4px solid var(--ink);
  border-radius: 54px 54px 72px 72px;
  background: var(--orange);
  box-shadow: 13px 15px 0 rgba(36, 33, 61, 0.14);
  transform: translate(-50%, -50%) rotate(8deg);
}

.gamepad-cross {
  position: absolute;
  top: 35px;
  left: 38px;
  color: var(--ink);
  font: 700 4.1rem/1 "Fredoka", sans-serif;
}

.gamepad-button {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.button-one {
  top: 41px;
  right: 42px;
}

.button-two {
  top: 73px;
  right: 72px;
  background: var(--mint);
}

.orbit {
  position: absolute;
  border: 3px dashed rgba(124, 98, 213, 0.36);
  border-radius: 50%;
}

.orbit-one {
  inset: 7px -60px 7px 5px;
  transform: rotate(-14deg);
}

.orbit-two {
  inset: 40px -7px 40px -60px;
  transform: rotate(18deg);
}

.spark {
  position: absolute;
  color: var(--violet);
  font-size: 2.1rem;
}

.spark-one {
  top: 18px;
  right: 20px;
}

.spark-two {
  bottom: 18px;
  left: 14px;
  color: var(--orange);
  font-size: 1.35rem;
}

.projects-section {
  padding: 90px 0 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

.project-count {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 30px 0 38px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: 160ms ease;
}

.filter-pill:hover {
  border-color: var(--orange);
  color: var(--ink);
  transform: translateY(-2px);
}

.filter-pill.is-active {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--orange);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(74, 53, 35, 0.07);
  transition: 180ms ease;
}

.project-card:hover {
  box-shadow: 0 20px 35px rgba(74, 53, 35, 0.13);
  transform: translateY(-6px) rotate(-0.3deg);
}

.project-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-media {
  height: 220px;
  padding: 14px;
  background: #ffebe4;
}

.theme-violet .project-media {
  background: #eee9ff;
}

.theme-mint .project-media {
  background: #e0f7f1;
}

.theme-yellow .project-media {
  background: #fff4ca;
}

.project-media img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.project-content {
  display: flex;
  min-height: 245px;
  padding: 25px;
  flex-direction: column;
}

.project-category {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff0ea;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 17px 0 9px;
  font-size: 1.45rem;
}

.project-content p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.project-action {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.project-action span {
  font-size: 1.3rem;
  transition: transform 160ms ease;
}

.project-card:hover .project-action span {
  transform: translateX(5px);
}

.empty-state {
  padding: 60px 24px;
  border: 2px dashed rgba(36, 33, 61, 0.15);
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.38);
}

.empty-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 23px;
  background: var(--yellow);
  font-size: 2rem;
  transform: rotate(-5deg);
}

.empty-state h3 {
  margin-bottom: 9px;
  font-size: 1.6rem;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  display: flex;
  padding: 29px 0 34px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

footer span {
  color: var(--orange);
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

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

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .header-badge {
    display: none;
  }

  .hero {
    padding: 45px 26px;
    border-radius: 25px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .projects-section {
    padding: 70px 0 80px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  footer span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
