:root {
      --bg: #fff8ec;
      --cream: #fffdf7;
      --ink: #1f2330;
      --muted: #62697a;
      --pink: #ff7eb6;
      --blue: #72d8ff;
      --yellow: #ffd166;
      --green: #8de969;
      --purple: #b99cff;
      --orange: #ff9f5a;
      --shadow: 0 22px 55px rgba(31, 35, 48, 0.12);
      --radius: 28px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Trebuchet MS", Arial, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 15%, rgba(255, 126, 182, 0.25), transparent 24%),
        radial-gradient(circle at 90% 10%, rgba(114, 216, 255, 0.28), transparent 26%),
        radial-gradient(circle at 50% 90%, rgba(255, 209, 102, 0.28), transparent 28%),
        var(--bg);
      line-height: 1.6;
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page {
      position: relative;
      min-height: 100vh;
      padding: 24px;
    }

    .floating-shapes span {
      position: fixed;
      z-index: 0;
      opacity: 0.6;
      animation: floaty 6s ease-in-out infinite;
      pointer-events: none;
    }

    .shape-1 {
      top: 13%;
      left: 5%;
      width: 34px;
      height: 34px;
      background: var(--pink);
      border-radius: 50%;
    }

    .shape-2 {
      top: 35%;
      right: 7%;
      width: 42px;
      height: 42px;
      background: var(--yellow);
      border-radius: 12px;
      animation-delay: 0.8s !important;
    }

    .shape-3 {
      bottom: 18%;
      left: 9%;
      width: 0;
      height: 0;
      border-left: 25px solid transparent;
      border-right: 25px solid transparent;
      border-bottom: 44px solid var(--blue);
      animation-delay: 1.4s !important;
    }

    .shape-4 {
      bottom: 9%;
      right: 18%;
      width: 38px;
      height: 38px;
      background: var(--green);
      border-radius: 50% 50% 12px 50%;
      animation-delay: 2s !important;
    }

    .container {
      position: relative;
      z-index: 1;
      width: min(1180px, 100%);
      margin: 0 auto;
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 18px 22px;
      margin-bottom: 54px;
      background: rgba(255, 253, 247, 0.75);
      border: 3px solid rgba(31, 35, 48, 0.08);
      border-radius: 999px;
      backdrop-filter: blur(14px);
      box-shadow: var(--shadow);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    .logo-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      background: var(--yellow);
      border: 3px solid var(--ink);
      border-radius: 14px;
      box-shadow: 4px 4px 0 var(--ink);
      animation: wiggle 2.4s ease-in-out infinite;
      position: relative;
    }

    .logo-icon img {
      position: absolute;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .nav-links a {
      padding: 9px 14px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      border-radius: 999px;
      transition: 0.25s ease;
    }

    .nav-links a:hover {
      color: var(--ink);
      background: var(--yellow);
      transform: translateY(-2px) rotate(-1deg);
    }

    .menu-toggle {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .menu-button {
      display: none;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      flex: 0 0 46px;
      background: var(--yellow);
      border: 3px solid var(--ink);
      border-radius: 16px;
      box-shadow: 4px 4px 0 var(--ink);
      cursor: pointer;
      transition: 0.25s ease;
    }

    .menu-button:hover {
      transform: translateY(-2px) rotate(2deg);
    }

    .menu-button span,
    .menu-button span::before,
    .menu-button span::after {
      content: "";
      display: block;
      width: 22px;
      height: 3px;
      background: var(--ink);
      border-radius: 999px;
      transition: 0.25s ease;
    }

    .menu-button span {
      position: relative;
    }

    .menu-button span::before,
    .menu-button span::after {
      position: absolute;
      left: 0;
    }

    .menu-button span::before {
      top: -8px;
    }

    .menu-button span::after {
      top: 8px;
    }

    .hero {
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: 34px;
      align-items: center;
      padding-bottom: 70px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      margin-bottom: 20px;
      background: var(--cream);
      border: 3px solid var(--ink);
      border-radius: 999px;
      font-size: 14px;
      font-weight: 900;
      box-shadow: 5px 5px 0 var(--ink);
      animation: bounceIn 0.8s ease both;
    }

    h1 {
      max-width: 780px;
      font-size: clamp(42px, 8vw, 88px);
      line-height: 0.95;
      letter-spacing: -0.08em;
      margin-bottom: 22px;
    }

    .highlight {
      display: inline-block;
      position: relative;
      color: var(--pink);
      text-shadow: 3px 3px 0 var(--ink);
      animation: softPop 3s ease-in-out infinite;
    }

    .hero p {
      max-width: 680px;
      color: var(--muted);
      font-size: 19px;
      margin-bottom: 30px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 22px;
      border: 3px solid var(--ink);
      border-radius: 18px;
      font-weight: 900;
      box-shadow: 6px 6px 0 var(--ink);
      transition: 0.22s ease;
    }

    .btn:hover {
      transform: translate(4px, 4px) rotate(-1deg);
      box-shadow: 2px 2px 0 var(--ink);
    }

    .btn-primary {
      background: var(--green);
    }

    .btn-secondary {
      background: var(--cream);
    }

    .hero-card {
      position: relative;
      padding: 28px;
      background: var(--cream);
      border: 4px solid var(--ink);
      border-radius: 34px;
      box-shadow: 12px 12px 0 var(--ink);
      transform: rotate(2deg);
      animation: cardFloat 4s ease-in-out infinite;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: -18px auto auto -18px;
      width: 72px;
      height: 72px;
      background: var(--blue);
      border: 4px solid var(--ink);
      border-radius: 24px;
      z-index: -1;
      animation: spinSlow 10s linear infinite;
    }

    .hero-face {
      display: grid;
      place-items: center;
      width: 180px;
      height: 180px;
      margin: 0 auto 24px;
      background: var(--yellow);
      border: 4px solid var(--ink);
      border-radius: 48% 52% 45% 55%;
      font-size: 76px;
      box-shadow: inset -12px -12px 0 rgba(31, 35, 48, 0.08);
      animation: blob 5s ease-in-out infinite;
    }

    .code-bubble {
      padding: 18px;
      background: #1f2330;
      color: #fff;
      border-radius: 20px;
      font-family: Consolas, monospace;
      font-size: 14px;
      overflow: hidden;
    }

    .code-bubble span {
      color: var(--yellow);
    }

    section {
      margin-bottom: 74px;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 24px;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 8px;
      color: var(--pink);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    h2 {
      font-size: clamp(32px, 5vw, 54px);
      line-height: 1;
      letter-spacing: -0.06em;
    }

    .section-head p {
      max-width: 390px;
      color: var(--muted);
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .card {
      position: relative;
      padding: 24px;
      background: var(--cream);
      border: 3px solid var(--ink);
      border-radius: var(--radius);
      box-shadow: 7px 7px 0 var(--ink);
      transition: 0.25s ease;
      overflow: hidden;
    }

    .card:hover {
      transform: translateY(-8px) rotate(-1deg);
      box-shadow: 11px 13px 0 var(--ink);
    }

    .card::after {
      content: "";
      position: absolute;
      width: 90px;
      height: 90px;
      right: -32px;
      top: -32px;
      background: rgba(255, 126, 182, 0.22);
      border-radius: 50%;
    }

    .icon {
      display: grid;
      place-items: center;
      width: 56px;
      height: 56px;
      margin-bottom: 16px;
      background: var(--yellow);
      border: 3px solid var(--ink);
      border-radius: 18px;
      font-size: 26px;
      box-shadow: 4px 4px 0 var(--ink);
    }

    .card:nth-child(2n) .icon { background: var(--blue); }
    .card:nth-child(3n) .icon { background: var(--green); }
    .card:nth-child(4n) .icon { background: var(--purple); }

    .card h3 {
      margin-bottom: 10px;
      font-size: 22px;
      letter-spacing: -0.03em;
    }

    .card p {
      color: var(--muted);
      font-size: 15px;
    }

    .skills-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .pill {
      padding: 11px 15px;
      background: var(--cream);
      border: 3px solid var(--ink);
      border-radius: 999px;
      font-weight: 900;
      box-shadow: 4px 4px 0 var(--ink);
      transition: 0.2s ease;
    }

    .pill:hover {
      transform: translateY(-4px) rotate(2deg);
      background: var(--yellow);
    }

    .projects {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .project-card {
      padding: 26px;
      min-height: 270px;
      background: var(--cream);
      border: 3px solid var(--ink);
      border-radius: 32px;
      box-shadow: 8px 8px 0 var(--ink);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: 0.25s ease;
    }

    .project-card:hover {
      transform: rotate(1deg) scale(1.015);
    }

    .project-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 18px;
    }

    .project-emoji {
      font-size: 48px;
      animation: wiggle 2.2s ease-in-out infinite;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }

    .tag {
      padding: 7px 10px;
      background: #fff;
      border: 2px solid var(--ink);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
    }

    .timeline {
      position: relative;
      display: grid;
      gap: 16px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 88px 1fr;
      gap: 18px;
      align-items: start;
      padding: 18px;
      background: var(--cream);
      border: 3px solid var(--ink);
      border-radius: 24px;
      box-shadow: 6px 6px 0 var(--ink);
    }

    .step {
      display: grid;
      place-items: center;
      height: 58px;
      background: var(--orange);
      border: 3px solid var(--ink);
      border-radius: 18px;
      font-weight: 900;
    }

    .timeline-item h3 {
      margin-bottom: 4px;
    }

    .timeline-item p {
      color: var(--muted);
    }

    .contact {
      padding: 38px;
      text-align: center;
      background: linear-gradient(135deg, var(--pink), var(--yellow));
      border: 4px solid var(--ink);
      border-radius: 38px;
      box-shadow: 12px 12px 0 var(--ink);
    }

    .contact h2 {
      margin-bottom: 12px;
    }

    .contact p {
      max-width: 650px;
      margin: 0 auto 24px;
      color: rgba(31, 35, 48, 0.8);
      font-size: 18px;
    }

    footer {
      padding: 30px 0 10px;
      color: var(--muted);
      text-align: center;
      font-weight: 800;
    }

    @keyframes floaty {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-22px) rotate(12deg); }
    }

    @keyframes wiggle {
      0%, 100% { transform: rotate(0deg); }
      25% { transform: rotate(-6deg); }
      75% { transform: rotate(6deg); }
    }

    @keyframes bounceIn {
      0% { transform: scale(0.7); opacity: 0; }
      70% { transform: scale(1.08); opacity: 1; }
      100% { transform: scale(1); }
    }

    @keyframes softPop {
      0%, 100% { transform: scale(1) rotate(0deg); }
      50% { transform: scale(1.04) rotate(-1deg); }
    }

    @keyframes cardFloat {
      0%, 100% { transform: translateY(0) rotate(2deg); }
      50% { transform: translateY(-16px) rotate(-1deg); }
    }

    @keyframes spinSlow {
      to { transform: rotate(360deg); }
    }

    @keyframes blob {
      0%, 100% { border-radius: 48% 52% 45% 55%; }
      50% { border-radius: 56% 44% 58% 42%; }
    }

    @media (max-width: 900px) {
      .navbar {
        align-items: center;
        border-radius: 28px;
        flex-wrap: wrap;
        gap: 14px;
      }

      .logo {
        min-width: 0;
      }

      .logo span:last-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .menu-button {
        display: inline-flex;
        margin-left: auto;
      }

      .nav-links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
      }

      .nav-links a {
        width: 100%;
        padding: 13px 16px;
        background: #fff;
        border: 2px solid rgba(31, 35, 48, 0.08);
      }

      .menu-toggle:checked ~ .menu-button span {
        background: transparent;
      }

      .menu-toggle:checked ~ .menu-button span::before {
        top: 0;
        transform: rotate(45deg);
      }

      .menu-toggle:checked ~ .menu-button span::after {
        top: 0;
        transform: rotate(-45deg);
      }

      .menu-toggle:checked ~ .nav-links {
        max-height: 380px;
        opacity: 1;
        padding-top: 8px;
        pointer-events: auto;
      }

      .hero,
      .grid,
      .projects {
        grid-template-columns: 1fr;
      }

      .hero-card {
        transform: none;
      }

      .section-head {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 560px) {
      .page {
        padding: 14px;
      }

      .hero {
        padding-bottom: 48px;
      }

      .hero p,
      .contact p {
        font-size: 16px;
      }

      .timeline-item {
        grid-template-columns: 1fr;
      }

      .hero-card,
      .contact {
        box-shadow: 7px 7px 0 var(--ink);
      }
    }

/* Sample Work Section */
.sample-work-section {
  scroll-margin-top: 120px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 34px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: workCardEnter 0.8s ease both;
}

.work-card:nth-child(2) { animation-delay: .08s; }
.work-card:nth-child(3) { animation-delay: .16s; }
.work-card:nth-child(4) { animation-delay: .24s; }
.work-card:nth-child(5) { animation-delay: .32s; }
.work-card:nth-child(6) { animation-delay: .4s; }
.work-card:nth-child(7) { animation-delay: .48s; }

.work-card:hover {
  transform: translateY(-9px) rotate(-1deg);
  box-shadow: 13px 15px 0 var(--ink);
}

.work-card:nth-child(even):hover {
  transform: translateY(-9px) rotate(1deg);
}

.work-image {
  position: relative;
  display: block;
  min-height: 230px;
  padding: 48px 22px 22px;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 20% 22%, rgba(255,255,255,.7), transparent 16%),
    linear-gradient(135deg, var(--yellow), var(--pink));
}

.work-card--restoration .work-image { background: linear-gradient(135deg, var(--green), var(--blue)); }
.work-card--cloudy .work-image { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.work-card--auto .work-image { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.work-card--code .work-image { background: linear-gradient(135deg, var(--ink), var(--purple)); }
.work-card--kaspers .work-image { background: linear-gradient(135deg, var(--green), var(--yellow)); }
.work-card--fms .work-image { background: linear-gradient(135deg, var(--pink), var(--orange)); }

.work-image::before,
.work-image::after {
  content: "";
  position: absolute;
  border: 3px solid var(--ink);
  pointer-events: none;
}

.work-image::before {
  width: 74px;
  height: 74px;
  right: 26px;
  top: 58px;
  background: rgba(255,255,255,.45);
  border-radius: 24px;
  animation: floaty 5s ease-in-out infinite;
}

.work-image::after {
  width: 36px;
  height: 36px;
  left: 26px;
  bottom: 30px;
  background: rgba(255,255,255,.55);
  border-radius: 50%;
  animation: spinSlow 8s linear infinite;
}

.browser-dots {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  gap: 7px;
  z-index: 3;
}

.browser-dots i {
  display: block;
  width: 13px;
  height: 13px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.work-screen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 22px;
  background: rgba(255, 253, 247, .82);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 8px 8px 0 rgba(31,35,48,.22);
  transform: rotate(-2deg);
  transition: transform .35s ease, box-shadow .35s ease;
  backdrop-filter: blur(8px);
}

.work-card:hover .work-screen {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  box-shadow: 11px 13px 0 rgba(31,35,48,.28);
}

.screen-badge {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  margin-bottom: 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.screen-title {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 900;
}

.screen-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-width: 260px;
}

.screen-lines i {
  display: block;
  height: 9px;
  background: rgba(31,35,48,.16);
  border-radius: 999px;
}

.screen-lines i:nth-child(1) { width: 100%; }
.screen-lines i:nth-child(2) { width: 75%; }
.screen-lines i:nth-child(3) { width: 52%; }

.work-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.work-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-content h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1;
  letter-spacing: -.05em;
}

.work-content h3 a {
  transition: color .25s ease;
}

.work-content h3 a:hover {
  color: var(--pink);
}

.work-content p {
  color: var(--muted);
  font-size: 15px;
}

.work-content .tags {
  margin-top: auto;
  padding-top: 20px;
}

@keyframes workCardEnter {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-2deg) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-image {
    min-height: 210px;
  }
}

@media (max-width: 560px) {
  .work-card {
    border-radius: 26px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .work-card:hover,
  .work-card:nth-child(even):hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .work-image {
    min-height: 190px;
    padding: 44px 16px 16px;
  }

  .work-screen {
    min-height: 140px;
    padding: 18px;
    transform: none;
  }

  .work-content {
    padding: 20px;
  }
}
