.foto-met-rand {
  background: white;
  padding: 20px;
  border: 12px solid black;
  border-radius: 29px;
  position: relative;
  top: 250px;
}



.kind-en-man-op-strand {
  width: 100%;
  display: block;
  border-radius: 29px;
  filter: blur(6px);

}


.project-goededoel-logo {
  position: absolute;
  top: 35%;
  left: 20%;
  height: 30%;
}



.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 18px;
  box-sizing: border-box;
  min-height: 72px;
}


.home-page {

    /* ===== EDIT THESE VALUES TO MOVE THE ARM JOINT (attachment point) =====
       The arm (pickaxe) is positioned relative to the character box. Change the
       values below to place the joint where the arm should attach to the body.

       Important variables:
       - --pickaxe-offset-left        (percent)  => horizontal offset inside the character box
                                          0% = left edge of character, 100% = right edge
       - --pickaxe-offset-top         (percent)  => vertical offset inside the character box
                                          0% = top of character box, 100% = bottom
       - --pickaxe-offset-left-flip   (percent)  => optional override used when character faces left
                                          if omitted, the code mirrors --pickaxe-offset-left automatically
       - --pickaxe-pivot-x / --pickaxe-pivot-y (percent) => pivot point inside the pickaxe image
                                          these define the rotation joint (0%..100% inside the image)

       Units & tips:
       - Offsets are percentages of the character image box. Example: 50% horizontally
         centers the pickaxe over the character's middle.
       - Pivot values are percentages inside the pickaxe image (use devtools to tweak).
       - To fine-tune flipped placement, set --pickaxe-offset-left-flip; otherwise the
         flipped position is computed automatically as (100% - --pickaxe-offset-left).

       Example starting values (change and reload to see effects):
         --pickaxe-offset-left: 58%;
         --pickaxe-offset-top: 8%;
         --pickaxe-offset-left-flip: 12%;
         --pickaxe-pivot-x: 22%;
         --pickaxe-pivot-y: 38%;
    ======================================================================== */

    /* pickaxe appearance and attachment (edit these to move the joint) */
    --pickaxe-size: 140%;    /* accepted values: px or % - tweak this to scale the arm */
    --pickaxe-offset-left: -23%;
    --pickaxe-offset-top: -77%;
    --pickaxe-offset-left-flip: -23%; /* optional flipped override (percent) */
    --pickaxe-pivot-x: 22%; /* transform-origin x (percent of element) */
    --pickaxe-pivot-y: 30%; /* transform-origin y (percent of element) */

    /* character placement inside the home-page (edit this to change start position) */
    --char-left: 42%;
  --char-bottom: 71%;
    --swing-min: -8;       /* minimum swing angle in degrees (numeric, no unit) */
    --swing-max: 18;        /* maximum swing angle in degrees (numeric, no unit) */
    --swing-duration: 1.6s; /* animation duration (include unit) */

  position: relative; /* make home-page the positioning context */
  background-image: url("images/home-page.png");
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* pickaxe swings around a pivot point behind the arm. Use the CSS variables above to tune. */
.pickaxe {
  position: absolute;
  /* by default pickaxe positioned relative to its nearest positioned ancestor (character) */
  width: var(--pickaxe-size);
  height: auto;
  /* pivot point is set relative to the element (use percentages to move pivot behind the arm) */
  transform-origin: var(--pickaxe-pivot-x) var(--pickaxe-pivot-y);
  /* flip multiplier used inside animation so we can mirror without conflicting transforms */
  --flip: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  animation: pickaxeSwing var(--swing-duration) ease-in-out infinite;
  /* default: paused; only run when actor is at the start position */
  animation-play-state: paused;
}

/* when actor is moving, pause the pickaxe animation */
.actor.moving .pickaxe,
.character.moving .pickaxe {
  animation-play-state: paused;
}

/* play pickaxe swing only when the actor is exactly at the start location */
.actor.at-start .pickaxe,
.character.at-start .pickaxe {
  animation-play-state: running;
}

/* actor element - positioned inside home-page (groups character image + pickaxe) */
.actor,
.character {
  position: absolute;
  /* use CSS variable with fallback so simple left values work and JS can update it */
  left: var(--char-left, 50%);
  bottom: var(--char-bottom);
  transform: translateX(-50%);
  display: block;
  width: 12%; /* default actor width - edit this in code via .home-page variables */
  z-index: 5;
  /* pickaxe offsets inherit from .home-page variables (edit those values in .home-page) */
}

.character-img {
  width: 100%;
  height: auto;
  display: block;
}

/* pickaxe positioned relative to the actor/character container so it follows exactly */
.actor .pickaxe,
.character .pickaxe {
  position: absolute;
  left: var(--pickaxe-offset-left);
  top: var(--pickaxe-offset-top);
  width: calc(var(--pickaxe-size) );
  height: auto;
  transform-origin: var(--pickaxe-pivot-x) var(--pickaxe-pivot-y);
  z-index: 6;
}

.actor.facing-left,
.character.facing-left {
  /* Flip the whole actor/character container (keeps pickaxe aligned). */
  transform: translateX(-50%) scaleX(-1);
}

.actor.facing-left .pickaxe,
.character.facing-left .pickaxe {
  /* Ensure the pickaxe animation still flips correctly */
  --flip: 1;
  /* allow separate left offset when facing left (percent) - edit this in .home-page */
  left: var(--pickaxe-offset-left-flip, var(--pickaxe-offset-left));
}

.actor.facing-left .character-img,
.character.facing-left .character-img {
  /* no separate image flip needed when the whole container flips */
  transform: none;
}

@keyframes pickaxeSwing {
  /* Start at the top position (swing-max), rotate down to swing-min at 50%, then back up. */
  0%   { transform: scaleX(var(--flip)) rotate(calc(var(--swing-max) * 1deg)); }
  25%  { transform: scaleX(var(--flip)) rotate(calc((var(--swing-max) * 0.75 + var(--swing-min) * 0.25) * 1deg)); }
  50%  { transform: scaleX(var(--flip)) rotate(calc(var(--swing-min) * 1deg)); }
  75%  { transform: scaleX(var(--flip)) rotate(calc((var(--swing-max) * 0.25 + var(--swing-min) * 0.75) * 1deg)); }
  100% { transform: scaleX(var(--flip)) rotate(calc(var(--swing-max) * 1deg)); }
}



body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: black;
}


.projecten-tekstbalk {
  position: relative;
  color: rgb(0, 0, 0);
  font-size: 80px;
  text-align: center;
  bottom: 200px;

}


.foto-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
  top: 200px;
}

.mobile-controls {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 40;
}
.mobile-btn {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 22px;
}

/* hide mobile controls on non-touch / larger screens */
@media (hover: hover) and (pointer: fine) {
  .mobile-controls { display: none; }
}


/* Page layout using flexbox: header (.home-page), main (.site-main), footer (.site-footer) */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto; /* take remaining vertical space between header and footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.main-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

.main-box {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

/* Keep the project image box visually contained with the existing border rules */
.box-image .foto-met-rand {
  margin: auto;
  max-width: 540px;
  max-height: auto;
}

/* Footer styling (empty placeholder) */
.site-footer {
  height: 80px;
  background: transparent;
}

/* Responsive: stack the three boxes vertically on narrow viewports */
@media (max-width: 80px) {
  .main-row { flex-direction: column; gap: 18px; }
  .main-box { width: 80%; }
  .projecten-tekstbalk, .contact-tekstbalk { text-align: center; }
  .foto-container { width: 100%; height: auto; top: 0; margin-top: 0; }
}

/* === Sem van Loo Bottom Section Styles === */

/* Adjustable vertical position of all boxes */
:root {
  --bottom-offset: 160px; /* Change to move all boxes higher/lower */
}

.sem-bottom-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: var(--bottom-offset) auto 80px;
  flex-wrap: wrap;
  text-align: center;
}

/* === BOX STYLING === */
.sem-box {
  width: var(--box-width, 280px); /* default width */
  min-height: var(--box-height, 220px); /* default height */
  border: 3px solid #000; /* <-- NOTE: Change the border color/size here */
  border-radius: 1px;
  padding: 15px;
  background-color: rgba(194, 194, 194, 0.9); /* <-- NOTE: Change background color/transparency here */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* <-- NOTE: Change shadow here */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Individual boxes width & height */
.box-left {
  --box-width: 280px;
  --box-height: 220px;
}

.box-middle {
  --box-width: 280px;  /* change width if needed */
  --box-height: 220px; /* change height if needed */
  background-color: transparent; /* invisible */
  border: none; /* remove border for spacing */
  box-shadow: none; /* remove shadow */
  border: 3px solid #000; /* keep border color for spacing */
  background-color: rgba(194, 194, 194, 0.9); 
}

.box-right {
  --box-width: 280px;
  --box-height: 220px;
}

/* Images & headings */
.sem-box img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.sem-box h2 {
  margin: 0 0 10px 0;
  /* make headings larger and centered across devices */
  text-align: center;
  font-size: clamp(20px, 4.5vw, 34px);
}

/* clickable Skills link style */
.skills-link {
  color: inherit; /* use current text color */
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  font-weight: 700;
}
.skills-link:hover,
.skills-link:focus {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.skills-link:active {
  transform: translateY(0) scale(0.99);
}

/* Contact info */
.sem-contact-info {
  margin-top: auto;
  text-align: left;
  width: 100%;
}

.sem-contact-info p {
  margin: 15px 15px;
}

/* Custom boxes */
.sem-custom-white {
  background-color: rgba(172, 172, 172, 0.9); 
}

.sem-custom-black {
  background-color: rgba(0, 0, 0, 0.6); 
  color: rgb(139, 139, 139);
}

/* Responsive: stack vertically on small screens */
@media (max-width: 90%) {
  .sem-bottom-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Skills grid inside the middle box: 2x2 small logos placed bottom-right */
.sem-box.box-middle {
  /* center content vertically and horizontally inside the middle box */
  justify-content: center; /* override .sem-box default space-between */
  align-items: center;
  position: relative;
  padding: 12px;
}

/* Centered 2x2 skills/logo grid that uses most of the box width */
.skills-grid {
  position: static; /* flow with document, centered by parent */
  width: 88%;
  max-width: 360px; /* avoid growing too large on big screens */
  margin: 8px auto 0; /* small gap under the Skills heading */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  place-items: center; /* center each image inside its cell */
}

.skills-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Make the logos larger so they use most of the block on medium screens */
@media (min-width: 420px) {
  .skills-grid img { width: 72px; height: 72px; }
}

@media (min-width: 900px) {
  .skills-grid img { width: 92px; height: 92px; }
}

/* Slight adjustments on very small screens */
@media (max-width: 420px) {
  .skills-grid img { width: 36px; height: 36px; }
  .skills-grid { gap: 8px; }
}

/* Hover/focus effects for skills logos */
.skills-grid img {
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, filter 220ms ease;
  cursor: pointer;
}

.skills-grid img:hover,
.skills-grid img:focus {
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
  filter: brightness(1.05);
  outline: none;
}

/* Accessible focus ring for keyboard users */
.skills-grid img:focus {
  box-shadow: 0 0 0 3px rgba(66,153,225,0.28), 0 10px 18px rgba(0,0,0,0.12);
}
