/* Algemene stijlen */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: "Inter", sans-serif;
  color: #999999;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  scroll-behavior: smooth;
  opacity: 0;
  animation: fadeIn 0.7s forwards;
}

/* Keyframes for fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Navigation styling */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  height: 70px;
  border-bottom: 1px solid #ddd;
  transition: box-shadow 0.3s ease-in-out;
}
nav:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
nav .logo {
  max-width: 80px;
  height: auto;
  margin-right: auto;
  transition: transform 0.3s ease-in-out;
}
nav .logo:hover {
  transform: rotate(5deg);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li {
  display: inline;
  margin-bottom: 10px;
}
nav ul a {
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 5px;
  color: #999999;
  text-decoration: none;
}
nav ul a:hover,
nav ul a.selected {
  background-color: #999999;
  color: #fff;
  transform: scale(1.1);
}

/* Hamburger menu */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999999;
  transition: transform 0.3s ease-in-out;
}
#menu-toggle {
  display: none;
}
#menu-toggle:checked ~ ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background-color: white;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 5;
  animation: slide-down 0.3s ease-out;
}

/* Animatie voor het menu bij openen */
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content */
main {
  margin-top: 70px;
  padding: 45px;
  background-color: #fff;
  transition: transform 0.3s ease-in-out;
  text-align: center;
  border-top: none;
}
.title {
  color: #333;
  font-size: 3rem;
}
main h1,
main h2 {
  margin-bottom: 20px;
  color: #333;
}
main p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #999999;
}
.link {
  color: #0077cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.link:hover {
  color: #005fa3;
}

/* Social icons styling */
footer .social-icons {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 10px;
  gap: 15px;
  padding: 0;
}
footer .social-icons li {
  display: inline-block;
}
footer .social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: white;
  font-size: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
footer .social-icons a.facebook {
  background-color: #3b5998;
}
footer .social-icons a.twitter {
  background-color: #1da1f2;
}
footer .social-icons a.linkedin {
  background-color: #0077b5;
}
footer .social-icons a.instagram {
  background-color: #e4405f;
}
footer .social-icons a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Explore button */
.explore-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.explore-button:hover {
  background-color: #005fa3;
}

/* Portrait styling */
.portrait {
  max-width: 325px;
  height: auto;
  margin: auto;
  border-radius: 100%;
  border: 2.5px solid #999999;
}

/* Grid Layout for Homepage */
.homepage {
  display: grid;
  grid-template-areas:
    "photo"
    "intro"
    "description";
}
.picture {
  grid-area: photo;
}
.introduction {
  grid-area: intro;
  margin-top: 3rem;
}
.description {
  grid-area: description;
}

/* Introduction Section */
.introduction h3 a {
  color: #0077cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.introduction h3 a:hover {
  color: #005fa3;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: left;
}
.contact-form label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 15px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0077cc;
}
.contact-form button {
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: #005fa3;
}

/* Footer */
footer {
  text-align: center;
  margin-top: auto;
  padding: 10px;
  background-color: #fff;
  font-size: 0.7rem;
  color: #999999;
  border-top: 1px solid #ddd;
}

/* Project page */
.project1,
.project2,
.project3 {
  border: 2.5px solid #999999;
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 0.7rem;
}
.imgProject {
  max-width: 100%;
}
.h2Portfolio {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 899px) {
  .hamburger {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
}

@media (min-width: 900px) {
  main {
    margin-right: 15px;
  }
  nav {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100vh;
    width: 250px;
    padding-top: 20px;
    box-shadow: none;
  }
  .hamburger {
    display: none;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 15px;
  }
  main {
    margin-left: 270px;
    margin-top: 0;
  }
  .homepage {
    display: grid;
    grid-template-areas:
      "photo intro"
      "photo description";
    grid-template-columns: 1fr 1fr;
  }
  .introduction {
    padding-top: 4rem;
  }
  footer {
    margin-left: 270px;
  }
  .projects {
    display: grid;
    grid-template-areas:
      "project1 project2"
      "project3 .";
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .project1 {
    grid-area: project1;
  }
  .project2 {
    grid-area: project2;
  }
  .project3 {
    grid-area: project3;
  }
}

@media screen and (min-width: 1399px) {
  .projects {
    display: grid;
    grid-template-areas: "project1 project2 project3";
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }
  .project1 {
    grid-area: project1;
  }
  .project2 {
    grid-area: project2;
  }
  .project3 {
    grid-area: project3;
  }
}
