header {
    padding: 25px;
    transform: translate(0);
    width: 100%;
    box-sizing: border-box;
}
header nav {
    gap: 0 !important;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}
header nav #back-btn-header {
    position: relative;
    background-color: transparent;
    color: var(--primary-color);
}
header nav #back-btn-header::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 140%;
    height: 10px;
    background-image: repeating-linear-gradient(-45deg,
            var(--primary-color),
            var(--primary-color) 3px,
            transparent 1px,
            transparent 6px);
    background-repeat: repeat;
    transform: translateX(-50%);
    transition: all 0.3s linear;
}
header nav #back-btn-header:hover::after {
    animation: backBtnAfter 0.8s linear infinite;
}
@keyframes backBtnAfter {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 17px 0; /* of 6px, afhankelijk van je patroon */
    }
}


body.project-page main {
    position: relative;
    width: 100%;
    padding: 85px 185px 100px 185px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

body.project-page main h3 {
    font-size: 6rem;
    line-height: normal;
    color: var(--primary-color);
}
body.project-page main p {
    font-size: 1rem;
    line-height: normal;
    color: var(--primary-color);
    max-width: 650px;
    margin-bottom: 50px;
}
body.project-page img {
    width: 60%;
    max-height: 350px;
    object-fit: cover;
    align-self: end;
    margin-bottom: 100px;
    box-shadow: 0 0 35px var(--grid-color);
}
body.project-page img.full-width {
    width: 100%;
    align-self: center;
}
body.project-page img.left-aligned {
    align-self: start;
}

.lables {
    position: absolute;
    top: 85px;
    right: 185px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    width: fit-content;
}
.lables::before {
        content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--primary-color) 50%, transparent 50%),
        linear-gradient(to bottom, var(--primary-color) 50%, transparent 50%),
        linear-gradient(to right, var(--primary-color) 50%, transparent 50%),
        linear-gradient(to bottom, var(--primary-color) 50%, transparent 50%);
    background-size:
        15px 1px,
        1px 15px,
        15px 1px,
        1px 15px;
    background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
    background-position:
        0 0,
        100% 0,
        0 100%,
        0 0;
}

.lables li {
    font-family: Outfit, sans-serif;
    color: var(--primary-color);
    font-weight: 200;
}
.lables li span {
    font-weight: bold;
    text-transform: uppercase;
}


footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 80vw, 1200px);
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--primary-color);
    box-sizing: border-box;
    box-shadow: 0 -10px 60px 0 rgba(44, 82, 229, 0.30);
}

footer .left {
    display: flex;
    gap: 25px;
    height: 100%;
}

footer .left img {
    width: 250px;
    height: 100%;
    object-fit: cover;
    margin: 0;
}
footer .left h3 {
    font-size: 1.5rem;
    line-height: normal;
}
footer .left h4 {
    font-size: 0.75rem;
    line-height: normal;
}

footer .right {
    display: flex;
    gap: 25px;
    height: 100%;
    box-sizing: border-box;
}
footer .right a {
    position: relative;
    display: flex;
    gap: 10px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: bold;
    background-color: var(--white);
    align-items: center;
    padding: 10px 32px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

footer .right a:hover svg {
    transition: .4s ease;
    transform: translate(60px, -60px);
}
footer .right a svg:nth-child(2) {
    position: absolute;
    right: 32px;
    transform: translate(-60px, 60px);
}

footer .right a:hover svg:nth-child(2) {
    transform: translate(0, 0);
}


/* Fixed bar container */
.next-project-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  border-top: 1px solid #000;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 50;

  /* hidden by default */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.4s ease;
}

/* show state */
.next-project-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.next-project-left {
  flex: 0 0 auto;
}

.next-project-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* "Scroll down ↓" */
.next-project-scroll-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.next-project-arrow {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.next-project-bar:hover .next-project-arrow {
  transform: translateY(2px);
}

/* Progress bar */
.next-project-progress {
  width: 140px;
  height: 4px;
  border: 1px solid #000;
  box-sizing: border-box;
  overflow: hidden;
}

.next-project-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #000;
  transition: width 0.15s linear;
}

/* Optional: make whole bar clickable */
.next-project-hit-area {
  position: absolute;
  inset: 0;
  z-index: 1;
}
