:root {
  --teal: #1b4d5c;
  --background-color: var(--white);
  --teal-light: #2a7a92;
  --amber: #e8a030;
  --amber-light: #f7c860;
  --coral: #d94f3d;
  --cream: #f7f0e3;
  --cream-dark: #ede3ce;
  --charcoal: #2a2a2a;
  --green: #3b8c4a;
  --purple: #6b4c9a;
  --white: #fff;
  --path-color: #c8a86b;
  --dot-size: 18px;
}

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

body {
  background-color: var(--cream);
  font-family: "Nunito", sans-serif;
  color: var(--charcoal);
  overflow-x: hidden;
}

.header {
  background: var(--teal);
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

.header-text {
  text-align: center;
}

.svg-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 320px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.svg-container {
  background: var(--white);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--charcoal);
  height: 100%;
  /**width: 100%;*/
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.svg-container svg {
  height: 100%;
  width: auto;
  max-width: 200px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  transition: filter 0.3s ease;
  transform: rotate(-7deg);
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .header-text {
    text-align: center;
  }

  .svg-container-wrapper {
    height: 220px;
    order: -1;
  }
}

.header-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.header h1 {
  font-family: "Fredoka One", cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.header h1 span {
  color: var(--amber);
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.header-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.header-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.header-flag {
  font-size: 1.4rem;
  margin: 0 0.2rem;
}

.header-bio {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.board-path-top {
  background: var(--teal);
  display: flex;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.path-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.path-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 3px solid var(--amber-light);
}

.path-dot.filled {
  background: var(--amber);
}

.path-dot.empty {
  background: transparent;
}

.section-intro {
  background: var(--teal);
  padding: 0 2rem 2.5rem;
}

.skills-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.skill-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(232, 160, 48, 0.5);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.skill-chip-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.skill-chip-text {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.skill-chip-label {
  color: var(--amber-light);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.wave-divider {
  width: 100%;
  display: block;
  background: var(--teal);
}

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  position: relative;
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  font-weight: 900;
  border: 3px solid var(--charcoal);
}

.cat-physical {
  background: var(--amber);
}

.cat-digital {
  background: var(--coral);
  color: white;
}

.cat-games {
  background: var(--green);
  color: white;
}

.category-title {
  font-family: "Fredoka One", cursive;
  font-size: 1.8rem;
  color: var(--teal);
  line-height: 1;
}

.category-line {
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--path-color) 0 8px,
    transparent 8px 14px
  );
  border-radius: 2px;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  border: 3px solid var(--charcoal);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card-accent {
  height: 6px;
  width: 100%;
}

.acc-amber {
  background: var(--amber);
}

.acc-coral {
  background: var(--coral);
}

.acc-teal {
  background: var(--teal);
}

.acc-green {
  background: var(--green);
}

.acc-purple {
  background: var(--purple);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.25rem;
}

.project-card-new {
  background: var(--white);
  border-radius: 16px;
  border: 3px solid var(--charcoal);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
  max-width: 30rem;
}

.project-card-new:hover {
  transform: translateY(-3px);
}

.card-hero {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--cream-dark);
}

.card-hero-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 2px dashed var(--cream);
}

.card-hero-pirate {
  background: #fde8e6;
}

.card-hero-slot {
  background: #d6f0dc;
}

.card-hero-travel {
  background: #fef0cc;
}

.card-hero-kogebog {
  background: #e8f8f0;
}

.card-hero-casita {
  background: #fef9f0;
}

.card-hero-chair {
  background: #d5edf3;
}

.card-hero-bjorn {
  background: #1b2a3b;
  color: rgba(255, 255, 255, 0.5);
}

.card-hero-monsterator {
  background: #2a1a3e;
  color: rgba(255, 255, 255, 0.5);
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  color: var(--charcoal);
  line-height: 1.2;
}

.card-num {
  font-family: "Fredoka One", cursive;
  font-size: 2rem;
  color: var(--cream-dark);
  line-height: 1;
  flex-shrink: 0;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #555;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.open-modal-btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
}

.open-modal-btn:hover {
  background: var(--coral);
  transform: scale(1.04);
}

/* Modal and carousel */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  border: 3px solid var(--charcoal);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

.modal-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem 0;
  z-index: 10;
  background: var(--white);
}

.modal-close-btn {
  background: var(--charcoal);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--coral);
}

.modal-content {
  padding: 0 1.75rem 2rem;
}

.modal-title {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.modal-accent {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.modal-accent-amber {
  background: var(--amber);
}

.modal-accent-coral {
  background: var(--coral);
}

.modal-accent-green {
  background: var(--green);
}

.modal-accent-orange {
  background: #e87830;
}

.modal-accent-purple {
  background: var(--purple);
}

.modal-accent-teal {
  background: var(--teal);
}

.modal-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.5rem;
}

.modal-desc p {
  margin-bottom: 0.85rem;
}

.modal-links {
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;

  & li {
    list-style: none;
    margin-bottom: 0.5rem;
  }

  & li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    width: fit-content;
    padding-bottom: 1px;
  }

  & li img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }
}

.project-meta-modal {
  margin-bottom: 0.6rem;
}

.slot-rules-list {
  padding-left: 1.2rem;
  line-height: 1.9;
  font-size: 0.88rem;
  color: #444;
}

.project-link-modal {
  margin-bottom: 1.25rem;
}

.carousel {
  position: relative;
  background: var(--cream-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.carousel-slide .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #aaa;
  border: none;
  border-radius: 0;
  background: transparent;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--teal);
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0 0.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--teal);
}

.project-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .project-inner {
    grid-template-columns: 280px 1fr;
  }

  .project-inner.reverse {
    grid-template-columns: 1fr 280px;
  }

  .project-inner.reverse .project-images {
    order: 2;
  }

  .project-inner.reverse .project-info {
    order: 1;
  }
}

.project-images {
  background: var(--cream-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 0.75rem;
  align-content: flex-start;
  min-height: 200px;
}

.project-images img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: cover;
  /* border: 2px solid rgba(0, 0, 0, 0.1); */
}

.img-full {
  width: 100%;
  height: 160px;
}

.img-half {
  width: calc(50% - 2px);
  height: 110px;
}

.img-third {
  width: calc(33.3% - 2px);
  height: 90px;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-number {
  font-family: "Fredoka One", cursive;
  font-size: 2.5rem;
  color: var(--cream-dark);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .project-number {
    right: initial;
    left: calc(280px + 1rem);
  }

  .reverse .project-number {
    left: initial;
    right: 1.25rem;
  }
}

.project-title {
  font-family: "Fredoka One", cursive;
  font-size: 1.4rem;
  color: var(--charcoal);
  line-height: 1.2;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1.5px solid;
}

.tag-amber {
  color: #7a5000;
  background: #fef0cc;
  border-color: var(--amber);
}

.tag-coral {
  color: #7a1a10;
  background: #fdeae8;
  border-color: var(--coral);
}

.tag-teal {
  color: #0a2e38;
  background: #d5edf3;
  border-color: var(--teal-light);
}

.tag-green {
  color: #1a4020;
  background: #d6f0dc;
  border-color: var(--green);
}

.tag-purple {
  color: #2e1a4a;
  background: #e8defc;
  border-color: var(--purple);
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
}

.project-skills {
  margin-top: auto;
}

.skills-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.35rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  color: var(--teal);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  width: fit-content;
  padding-bottom: 1px;
}

.project-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.project-link-arrow {
  font-size: 1rem;
}

.connector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.25rem 0;
}

.connector-path {
  width: 4px;
  height: 30px;
  background: repeating-linear-gradient(
    180deg,
    var(--path-color) 0 5px,
    transparent 5px 9px
  );
}

.connector-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--path-color);
  border: 3px solid var(--charcoal);
}

.skills-match {
  background: var(--teal);
  border-radius: 16px;
  border: 3px solid var(--charcoal);
  padding: 2rem;
  margin-top: 3rem;
}

.skills-match h2 {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.skills-match p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.match-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(232, 160, 48, 0.4);
  border-radius: 10px;
  padding: 1rem;
}

.match-job-req {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.match-evidence {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.4;
}

.match-projects {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.match-proj-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.footer {
  background: var(--charcoal);
  padding: 2.5rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-name {
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  color: var(--amber);
  display: block;
  margin-bottom: 0.25rem;
}

.img-placeholder {
  background: var(--cream-dark);
  border-radius: 8px;
  /* border: 2px dashed var(--path-color); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--path-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media print {
  .sr-only {
    position: static;
    width: auto;
    height: auto;
    clip: none;
  }

  body {
    background: white;
  }

  .project-card:hover {
    transform: none;
  }
}

#Layer_1 path {
  fill: var(--body-color);
}

#Layer_1 path.cls-8 {
  fill: #2d2926;
  fill: var(--body-color);
}

#Layer_1 .cls-12 {
  fill: white;
  fill: var(--background-color);
}

#Layer_1 #skin {
  fill: var(--background-color);
}

#Layer_1 .eyeball {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

#Layer_1 circle.cls-9 {
  fill: transparent;
}

#Layer_1 .dinamic-bg {
  fill: var(--background-color);
}

#Layer_1 .hide {
  opacity: 0;
}

.eyeball-rotate-right {
  transform: rotate(306.3deg);
}

.eyeball-rotate-left {
  transform: rotate(294.527deg);
}

.section-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.section-intro-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-align: center;
}

.category-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.project-desc-spaced {
  margin-top: 0.5rem;
}

.img-height-220 {
  height: 220px;
}

.img-height-140 {
  height: 140px;
}

.img-height-130 {
  height: 130px;
}

.img-height-120 {
  height: 120px;
}

.img-height-110 {
  height: 110px;
}

.img-height-100 {
  height: 100px;
}

.img-height-80 {
  height: 80px;
}

.category-icon-book {
  background: #e87830;
  color: white;
}

.acc-orange {
  background: #e87830;
}

.project-images-stack {
  flex-direction: column;
  gap: 4px;
}

.project-images-row {
  display: flex;
  gap: 4px;
  width: 100%;
}

.placeholder-flex {
  flex: 1;
}

.placeholder-tone-green {
  height: 120px;
  background: #e8f8f0;
  border-color: #3b8c4a;
  color: #3b8c4a;
  font-size: 0.7rem;
}

.placeholder-tone-yellow {
  height: 120px;
  background: #fff8e0;
  border-color: #e8a030;
  color: #7a5000;
  font-size: 0.7rem;
}

.placeholder-tone-amber {
  height: 100px;
  background: #fef0cc;
  border-color: #e8a030;
  color: #7a5000;
  font-size: 0.7rem;
}

.placeholder-tone-orange {
  height: 100px;
  background: #fef0cc;
  border-color: #c87020;
  color: #7a3800;
  font-size: 0.7rem;
}

.img-hidden {
  display: none;
}

.project-images-bjorn {
  background: #1b2a3b;
  justify-content: center;
  align-items: center;
}

.project-images-monster {
  background: #2a1a3e;
  justify-content: center;
  align-items: center;
}

.project-preview {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 1rem;
}

.project-preview-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.project-preview-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.project-preview-subtitle {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.footer-note {
  margin-top: 0.75rem;
  opacity: 0.5;
  font-size: 0.75rem;
}
