/* Thema-kleuren configuratie */
@media (prefers-color-scheme: light) {
  :root {
    --text: #1a1a1a;
    --background: #f2f2f2;
    --primary: #63a0cf;
    --primarytransparent: rgba(99, 160, 207, 0.8);
    --secondary: #a9b9c6;
    --accent: #869aac;
  }
  #home-page {
    background-image: linear-gradient(
      to bottom,
      var(--primary),
      var(--primary),
      var(--primary),
      #72a5cd,
      #7faacb,
      #8caeca,
      #99b3c8,
      #9bb2c5,
      #9eb2c2,
      #a0b1bf,
      #99abba,
      #93a5b5,
      #8ca0b1,
      var(--accent)
    );
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #fff;
    --background: #222222;
    --primary: #306d9c;
    --primarytransparent: rgba(48, 109, 156, 0.8);
    --secondary: #394956;
    --accent: #536779;
  }
  #home-page {
    background-image: linear-gradient(
      to bottom,
      var(--primary),
      var(--primary),
      var(--primary),
      #33668e,
      #356081,
      #375974,
      #385267,
      #3b5164,
      #3d5162,
      #3f505f,
      #445665,
      #495b6c,
      #4e6172,
      var(--accent)
    );
  }
}

#home-page {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0px;
}

.mdi path {
  fill: var(--text);
}

body {
  color: var(--text);
  background-color: var(--background);
  font-family: Arial, sans-serif;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  transition: all 500ms ease 0s;
}

main {
  margin: 1rem;
}

a {
  text-decoration: none;
  position: relative;
  color: var(--text);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 5%;
  background-color: var(--primary); /* Standaard blauwe kleur */
  position: sticky;
  top: 0;
  transition: background-color 300ms ease, backdrop-filter 300ms ease,
    padding 300ms ease;
  z-index: 1000; /* Voeg deze regel toe */
}

header.scroll {
  background-color: var(--primarytransparent);
  backdrop-filter: blur(10px); /* Blur effect */
  padding: 15px 2.5%; /* Kleinere padding bij scrollen */
}

header nav {
  text-align: center; /* Centreert de nav-elementen */
}

header nav ul li,
a {
  text-decoration: none;
  font-weight: 625;
}

.logo {
  cursor: pointer;
}

.language img {
  padding: 8px;
}

.logo,
.language {
  width: clamp(100px, 12vw, 200px);
  height: auto;
  display: flex;
  justify-content: center; /* Horizontaal centreren */
  align-items: center; /* Verticaal centreren */
}

.navlinks {
  list-style: none;
  display: flex; /* Maakt een flexbox van de lijst */
  justify-content: center; /* Centreert de items horizontaal */
  gap: 40px; /* Voegt consistente ruimte tussen items toe */
  padding-left: 0px;
}

.navlinks li {
  display: inline-block;
}

.navlinks li a {
  transition: all 300ms ease 0s;
  font-size: clamp(0.875rem, 2vw, 1.1rem);
}

.navlinks li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: currentColor;
  transition: width 0.3s ease;
}

header.scroll .navlinks li a::after {
  height: 1.7px;
}

.navlinks li a:hover::after {
  width: 100%;
}

a.fa-icon {
  all: unset;
  display: none;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  max-width: 400px;
}

.profile-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  margin: 0;
}

#profile-icon {
  width: 16px;
  height: 16px;
}

.project-card {
  background-color: var(--primary);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 1.2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  /* Voeg transitie toe voor soepele animatie */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
.project-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px); /* Licht zwevend effect */
}

.project-card svg {
  min-width: 40px;
  min-height: 40px;
}

.content-about {
  flex-grow: 1;
}

#about-page {
  display: grid;
  padding: 0 3rem;
  /* Verticale spacement tussen alle elementen */
  gap: 2rem;
}

#about {
  max-width: clamp(300px, 30%, 600px);
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem;
}

.title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.description {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.tech-stack {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Added height for a tags */
#skills a {
  display: inline-block;
  height: 100%;
}

#skills a img {
  padding: 0.3rem; /* Ruimte rond het icoon */
  border-radius: 2px; /* Border-radius standaard */
  transition: background-color 0.3s ease, border-radius 0.3s ease,
    transform 0.3s ease; /* Voeg transitie toe voor soepele animatie */
  height: 2.5rem;
}

#skills a img:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Grijze achtergrond bij hover */
  border-radius: 8px; /* Border-radius bij hover */
  transform: translateY(-2px); /* Licht zwevend effect */
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.news-item {
  background-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  max-width: 380px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px); /* Licht zwevend effect */
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.news-item h3 {
  margin: 0.5rem 0;
}

.article-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #394855;
  font-size: 0.9rem;
  color: #394855;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e9ecef;
}

.date {
  color: #394855;
}

.news-page h1 {
  text-align: center;
}

.profile-about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

.sidebar {
  text-align: center;
}

.profile-image-about {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.name {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem;
  transition: color 0.3s;
}

.link:hover {
  color: var(--secondary);
}

.content-about h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.content-about p {
  margin-bottom: 1rem;
  color: var(--text);
}

.content-about a:hover {
  text-decoration: underline;
}

.skills-section {
  max-width: 1200px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-top: 2rem;
}

.skill-card {
  background: var(--primary);
  border-radius: 0.5rem;
  padding: clamp(0.5rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 300ms, box-shadow 300ms;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: clamp(32px, 5vw, 64px);
  height: clamp(32px, 5vw, 64px);
  margin-bottom: 1rem;
}

.skill-name {
  color: var(--text);
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-align: center;
}

.contact {
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.contact h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact p {
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.contact-form button {
  padding: 0.75rem;
  background-color: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: var(--accent);
}

.contact-info {
  background-color: var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
}

.content-home {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.greeting-home {
  font-size: 2em;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.name-home {
  font-size: 4em;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: bold;
}

.title-home {
  font-size: 1.2em;
  color: var(--text);
  letter-spacing: 5px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.cta-button-home {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  transition: transform 0.3s, background-color 0.3s;
}

.cta-button-home:hover {
  transform: translateY(-2px);
  background-color: var(--accent);
}

/* 2xl */
@media (max-width: 1536px) {
}

/* xl */
@media (max-width: 1280px) {
}

/* lg */
@media (max-width: 1024px) {
  header {
    padding: 0.5rem 0.5rem;
  }
}

/* md */
@media (max-width: 768px) {
  .name-home {
    font-size: 3em;
  }

  .title-home {
    font-size: 1em;
  }
  /* Hover effect verwijderen */
  .navlinks li a::after {
    display: none;
  }

  .navlinks li a:hover::after {
    width: 0;
  }

  #about-page {
    display: grid;
    padding: 0 1rem;
    /* Verticale spacement tussen alle elementen */
    gap: 0.5rem;
  }

  .profile-about {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  header.scroll {
    padding: 0.5rem 0.5rem;
    background-color: var(--primary); /* Standaard blauwe kleur */
    position: sticky;
    top: 0;
    transition: none;
    z-index: 1000; /* Voeg deze regel toe */
  }

  .language {
    display: none;
  }

  .logo {
    width: 100%;
  }

  a.fa-icon {
    all: unset;
    display: revert;
    margin: 15px;
  }

  .navlinks {
    display: none;
  }

  body.responsive {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .navbar.responsive {
    display: grid;
    height: 100dvh;
    grid-template-rows: auto 1fr auto auto;
    padding: 1rem;
    justify-content: center;
    background: var(--primarytransparent);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow: hidden !important;
    overflow-y: hidden !important;
    max-height: 100dvh;
    touch-action: none; /* Prevent touch scrolling on mobile */
    -webkit-overflow-scrolling: none; /* For iOS */
  }

  .navbar.responsive .logo {
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .navbar.responsive .navlinks {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center items horizontally */
    gap: 1rem;
  }

  .navbar.responsive .navlinks li {
    text-align: center;
    border-bottom: var(--text) 2px solid;
    width: min(75vw, 300px);
    transition: transform 0.2s ease;
    margin: 0 auto; /* Center the list items */
  }

  .navbar.responsive .navlinks li:hover {
    transform: translateX(10px); /* Hover effect */
  }

  .navbar.responsive .navlinks li a {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: clamp(1.2rem, 4vw, 2rem); /* Responsive tekst grootte */
    box-sizing: border-box;
    text-align: center;
  }

  .navbar.responsive .language {
    grid-row: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: min(75vw, 300px); /* Match width with navlinks for consistency */
    margin: 0 auto; /* Center horizontally */
  }

  .navbar.responsive .fa-icon {
    grid-row: 4;
    justify-self: center;
    padding: 1rem;
    cursor: pointer;
  }

  #about {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    padding: 1rem;
    border: none;
  }
}

/* sm */
@media (max-width: 640px) {
}

/* xs */
@media (max-width: 475px) {
}
