/*Main styles*/
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "arimo", sans-serif;
  background-color: #4f3b3c;
}

main {
  color: #efe6d8;
  padding: 1.5em;
  max-width: 1200px; /* bepaalt de maximale breedte */
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: #efe6d8;
}

p {
  font-size: 20px;
  line-height: 1.6;
}

canvas {
  border: 1px solid #000;
  margin-top: 20px;
}

h1 {
  color: black;
  font-family: "Bebas Neue", sans-serif;
  color: #efe6d8;
  font-size: 5em;
  text-align: left;
  letter-spacing: 0.1em;
  margin: 0;
  padding: 0;
}

h2 {
  font-family: "Arimo", sans-serif;
  font-size: 2em;
}

.highlight {
  color: #f88d42;
  margin-top: 0;
  text-align: end;
}

img {
  max-width: 700px; /* of een waarde die voor jou prettig leest */
  width: 100%;
  height: auto;
}

nav {
  background-color: #3d3030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em;
  height: 5em;
}

nav a {
  color: #efe6d8;
  margin-left: 1em;
  margin-right: 3em;
}

.nav-links:hover {
  font-weight: bold;
  color: #f88d42;
  border-bottom: #efe6d8 4px solid;
  padding-bottom: 6px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}

.logo {
  width: 5em;
}

.banner-img {
  width: 100vw;
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

#personalPhoto {
  width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-top: 1em;
}

/* Project pages */
.front-img {
  width: 100%;
  height: auto;
  margin-top: 1em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-grid {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  border-bottom: #f88d42 4px solid;
  padding-bottom: 1.5em;
}

/* Project tiles opmaak */
.projecten > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
  margin-top: 2em;
}

.projecten .project {
  background-color: #3d3030;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 350px;
  display: flex;
  flex-direction: column;
}

.projecten .project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.projecten .project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.projecten .project h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5em;
  margin: 0.5em;
  color: #efe6d8;
  letter-spacing: 0.1em;
}

.tag {
  display: inline-block;
  background-color: #f88d42;
  color: #3d3030;
  font-weight: bold;
  padding: 0.5em;
  margin: 0.5em;
  border-radius: 4px;
  font-size: 1em;
}

.top-of-page {
  height: 400px;
  width: 100%;
  background-image: url("../photos/Leen_wagen.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
}

.top-of-page h1 {
  padding: 0.5em;
}

.container-right {
  display: flex;
  flex-direction: row;
  gap: 2em;
}

.container-right img {
  min-width: 50%;
  height: auto;
}

/* Brainstorm section layout */
.process-section {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
  margin-bottom: 2em;
}

.process-section article {
  flex: 1;
}

.body-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.bottom-img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 2em auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background-color: #3d3030;
  color: #efe6d8;
  display: flex;
  justify-content: space-between; /* verdeelt links en rechts */
  align-items: center; /* centreert verticaal */
  padding: 1em 2em;
  margin-top: 2em;
}

footer article {
  display: flex;
  align-items: center;
  gap: 1em; /* moderne manier voor spacing */
  margin-right: 1em;
}

.link-footer {
  display: flex;
  flex-direction: column; /* tekst boven, LinkedIn onder */
  gap: 0.5em;
  color: #efe6d8;
}

.icon-logo {
  width: 2em;
  margin-right: 0.5em;
}

.link-footer a {
  color: #efe6d8;
  text-decoration: none;
}

.link-footer a:hover {
  text-decoration: underline;
}

/* Skill cirkle */

.skills-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4em;
  margin-top: 3em;
}

.skill-circle-section {
  text-align: center;
}

.skill-circle-section h3 {
  margin-bottom: 1em;
  font-size: 1.8em;
}

/* XL cirkel zoals in de test-HTML */
.skill-circle {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
  border-radius: 50%;
  background: #3d3030;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

/* Glow hard skills (oranje) */
.skill-circle-section.hard .skill-circle {
  box-shadow: 0 0 30px rgba(248, 141, 66, 0.35),
    inset 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Glow soft skills (#7C7F65) */
.skill-circle-section.soft .skill-circle {
  box-shadow: 0 0 30px rgba(124, 127, 101, 0.35),
    inset 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Tekst in het midden */
.center-text {
  position: absolute;
  z-index: 10;
  color: #efe6d8;
  font-size: 16px;
  width: 220px;
  text-align: center;
  pointer-events: none;
  line-height: 1.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.center-text.fade {
  opacity: 0;
  transform: translateY(5px);
}

/* Wrapper voor een bolletje (positie rondom de cirkel) */
.dot-wrapper {
  position: absolute;
  width: 100px;
  height: 100px;
}

/* posities */
.dot-wrapper.top {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.dot-wrapper.right {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.dot-wrapper.bottom {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.dot-wrapper.left {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

/* bolletjes zelf */
.skill-dot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #4f3b3c;
  color: #efe6d8;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  text-align: center;
  padding: 0.5em;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* hover hard skills */
.skill-circle-section.hard .skill-dot:hover {
  animation: pulse 0.6s ease-out forwards;
  background-color: #f88d42;
  box-shadow: 0 0 12px rgba(248, 141, 66, 0.6);
}

/* hover soft skills */
.skill-circle-section.soft .skill-dot:hover {
  animation: pulse 0.6s ease-out forwards;
  background-color: #7c7f65;
  box-shadow: 0 0 12px rgba(124, 127, 101, 0.6);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ------------------------------ */
/* TIMELINE OPLEIDINGEN */
/* ------------------------------ */

.timeline {
  position: relative;
  margin: 3em auto;
  padding: 0;
  width: 100%;
}

.timeline ul {
  padding: 0;
}

.timeline ul li {
  list-style: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: #efe6d8; /* lichte lijn */
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) rotate(45deg);
  width: 18px;
  height: 18px;
  background: #f88d42; /* oranje diamant */
  z-index: 2;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 350px;
  padding: 20px;
  background: #3d3030;
  color: #efe6d8;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
  opacity: 0;
  visibility: hidden;
}

.timeline ul li div time {
  position: absolute;
  top: -15px;
  left: 0;
  background: #f88d42;
  color: #3d3030;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
}

.timeline ul li:nth-of-type(odd) > div {
  left: 40px;
}

.timeline ul li:nth-of-type(even) > div {
  left: -390px;
}

/* Animatie wanneer zichtbaar */
.timeline ul li.in-view div {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.timeline ul li:nth-of-type(odd) div {
  transform: translateX(60px);
}

.timeline ul li:nth-of-type(even) div {
  transform: translateX(-60px);
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */

/* naast elkaar op desktop, onder elkaar vanaf tablet */
@media (max-width: 900px) {
  .timeline ul li div {
    width: 260px;
  }
  .timeline ul li:nth-of-type(even) > div {
    left: -300px;
  }
}

/* grid layout for medium screens */
@media (max-width: 1024px) {
  img {
    width: 100%;
    height: auto;
  }

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

  .projecten .project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
  }

  footer article {
    margin-right: 0;
  }

  .skills-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 3em;
  }
}

/* responsive layout for small screens */
@media (max-width: 700px) {
  nav a {
    margin-right: 0.2em;
  }

  img {
    width: 100%;
    height: auto;
  }

  .projecten > div {
    grid-template-columns: 1fr;
  }

  .container-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .container-right img {
    max-width: 100%;
    height: auto;
  }

  .project-grid {
    flex-direction: column;
    gap: 0;
  }

  .process-section {
    flex-direction: column;
  }

  footer {
    padding: 1.5em 1em;
  }

  footer article {
    flex-direction: column;
    gap: 0.5em;
  }

  .link-footer {
    align-items: center;
  }

  .icon-logo {
    margin-right: 0;
  }

  /* TIMELINE small screens */
  .timeline ul li {
    margin-left: 20px; /* positie van de verticale lijn */
  }

  /* OVERSCHRIJFT ALLE POSITIES (odd + even) */
  .timeline ul li:nth-of-type(odd) > div,
  .timeline ul li:nth-of-type(even) > div {
    width: calc(100vw - 40px); /* 20px lijn + 60px afstand */
    left: 30px !important; /* kaartje staat 60px rechts van de lijn */
  }

  /* OVERSCHRIJFT DE SLIDE-RICHTING (geen X‑verschuiving meer) */
  .timeline ul li div {
    transform: translateX(0); /* basispositie */
  }

  .timeline ul li.in-view div {
    transform: translateY(0); /* enkel verticale animatie als je wil */
  }
}
