/* ==== RESET & BASE ==== */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 20px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff6e3;
  color: #333;
  margin: 0;
  padding: 1rem;

  /* --- sticky footer layout --- */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

/* ==== NAVIGATIE ==== */
nav {
  position: fixed;
  top: 0;
  left: -260px;
  width: 220px;
  height: 100vh;
  padding: 4.5rem 1rem 2rem;
  background: #ebedf2;
  border-right: 1px solid #ddd;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transition: left 0.3s ease;
  z-index: 1000;
}

nav.open {
  left: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

nav li {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

nav li.active {
  background: #8aa6b5;
  color: #fff;
  font-weight: bold;
}

nav li:hover {
  background: #b0bcc2;
  transform: scale(1.03);
}

nav a {
  color: inherit;
  text-decoration: none;
}

/* ==== MAIN LAYOUT ==== */
main {
  flex: 1;
  width: 100%;
  padding: 1rem;
  text-align: left;
  margin: 0 auto;
}

#internships {
  padding-bottom: 2rem;
}

.home-section {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ==== TITLES & TEXT ==== */
h1, .undertitle {
  text-align: center;
}

.intro-text {
  font-size: 1.1rem;
  color: #666;
  margin: 1rem auto;
  max-width: 600px;
}

/* ==== PROJECTS ==== */
.projects {
  padding: 2rem 0;
}

.project-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project {
  background: #ebedf2;
  border: 1px solid #ddd;
  border-radius: 1rem;
  width: 250px;
  height: 250px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover .project {
  transform: translateY(-8px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.project h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* ==== ABOUT ==== */
.about-hero {
  margin: 1rem 0 2rem;
}

.about-hero p {
  max-width: 900px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-talen {
  margin-top: 3.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.about-talen, .skills-block, .about-opleiding {
  background: #ebedf2;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cv-button {
  text-decoration: none;
  font-weight: 500;
  background: #ebedf2;
  color: #333;
  padding: 1rem 2rem;
  border-radius: 1rem;
  display: inline-block;
  margin-top: 1rem;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.about-header h1 {
  margin: 0;
}

.about-foto-side {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ==== CONTACT ==== */
.contact-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-intro {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-info, .contact-form {
  background: #ebedf2;
  border: 1px solid #ddd;
  padding: 1.25rem;
  border-radius: 1rem;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
}

.contact-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.contact-item:last-child {
  border-bottom: none;
}

/* ==== FORM ==== */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
  height: 150px;
  resize: vertical;
}

.required {
  color: red;
}

/* ==== FORM BUTTONS ==== */

.button-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  background-color: #ebedf2;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
  transform: scale(1.05);
}

.submit-button {
  background-color: #8aa6b5;
  color: white;
  border: none;
}

.submit-button:hover {
  background-color: #98c38e;
  color: white;
  border-color: #7aa972;
}

.reset-button:hover {
  background-color: #e07b7b;
  color: white;
  border-color: #c96161;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #ddd;
  color: #333;
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #8aa6b5;
}

.icon-text-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.icon-text-link i {
  font-size: 1.5rem;
}

.icon-text-link span {
  display: none;
}

/* ==== PROJECT DETAIL ==== */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-detail h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.project-detail h2 {
  margin-top: 2rem;
  color: #222;
}

.project-detail p {
  line-height: 1.6;
  color: #444;
}

.project-screenshots img {
  display: block;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

.download-button {
  display: inline-block;
  background: #ebedf2;
  border: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-button:hover {
  background: #b0bcc2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Terug naar projecten */
.back-button {
  padding: 1rem 2rem;
}

.back-button a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: #ebedf2;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}

.back-button a:hover {
  background: #b0bcc2;
}

/* ==== MORE LINKS ==== */
.more-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
  margin-top: 0.5rem;
}

.more-link::after {
  content: " ➜";
  transition: transform 0.3s ease;
}

.more-link:hover {
  color: #8aa6b5;
}

.more-link:hover::after {
  transform: translateX(5px);
}

/* ==== nav hamburger ====*/
.nav-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #ebedf2;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-toggle span {
  height: 3px;
  width: 24px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s ease;
  display: block;
}

/* transition from hamburger to x */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media screen and (min-width: 900px) {

  .nav-toggle {
    display: none;
  }

  nav {
    position: fixed;
    top: 1rem;
    left: 1rem;
    height: calc(100vh - 2rem);
    width: 220px;
    padding: 1rem;
    background: #ebedf2;
    border: 1px solid #ddd;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-y: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  nav li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    transform: none;
  }

  main {
    max-width: 60rem;
    margin-left: 12rem;
    padding: 2rem;
  }

  footer {
    max-width: 60rem;
    text-align: center;
    padding: 2rem;
    margin-left: 12rem;
  }

  .footer-links {
    justify-content: center;
  }

  .contact-page {
    padding: 2rem;
  }

  .contact-info, .contact-form {
    padding: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }

  .contact-content {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .icon-text-link span {
    display: inline;
  }
}