html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  scroll-snap-type: y mandatory;
}

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

/*
  Layout tuning variables:
  - Change these values to move sections up/down without searching through the file.
*/
:root {
  --main-top-offset: clamp(72px, 9vw, 98px);
  --section-top-padding: clamp(14px, 2.8vw, 24px);
  --section-bottom-padding: 28px;
  --projects-min-height: 100vh;
  --skills-min-height: 100vh;
  --skills-closer-offset: -48px; /* negative = Skills moves closer to Projecten */
}

.home-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-image: url("images/home-page (2).png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 18px;
  background: rgba(16, 21, 30, 0.75);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.3px;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(40, 48, 63, 0.55);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: clamp(14px, 1.8vw, 18px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(40, 48, 63, 0.55);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(86, 99, 121, 0.75);
  transform: translateY(-1px);
  outline: none;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.site-main {
  flex: 1 0 auto;
  display: block;
  width: 100%;
  padding-top: var(--main-top-offset);
  box-sizing: border-box;
}

.projects-section,
.skills-section {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--section-top-padding) 20px var(--section-bottom-padding);
  box-sizing: border-box;
  scroll-margin-top: 96px;
  scroll-snap-align: start;
}

.projects-section {
  min-height: var(--projects-min-height);
}

.skills-section {
  min-height: var(--skills-min-height);
  margin-top: var(--skills-closer-offset);
}

.projecten-tekstbalk {
  color: #000;
  font-size: clamp(34px, 9vw, 80px);
  text-align: center;
  margin: 0 0 20px;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 860px;
  padding: 0 20px;
  box-sizing: border-box;
}

.skills-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.skills-grid-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.about-main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 30px;
  box-sizing: border-box;
}

.about-layout {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(16px, 3vw, 32px);
  align-items: stretch;
}

.about-text-panel {
  min-height: clamp(340px, 58vh, 560px);
  border: 3px solid #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.52)), url("images/over-mij.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
}

.about-text-overlay {
  width: 100%;
  margin-top: auto;
  padding: clamp(18px, 3vw, 32px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.about-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 6vw, 56px);
}

.about-text {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.55;
  max-width: 36ch;
}

.about-photo-box {
  border: 3px solid #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  aspect-ratio: 3 / 4;
}

.about-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid #0f0f0f;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.skill-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.skill-card h3 {
  margin: 10px 0 4px;
  font-size: 24px;
}

.skill-card p {
  margin: 0;
  color: #444;
  font-size: 18px;
}

.carousel-container .projecten-tekstbalk {
  margin-bottom: 30px;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  width: 100%;
  position: relative;
}

.carousel-viewport {
  width: min(432px, 68vw);
  height: min(280px, 44vw);
  min-height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  width: auto;
  height: 100%;
  transition: transform 400ms ease-in-out;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.carousel-slide {
  min-width: min(432px, 68vw);
  max-width: min(432px, 68vw);
  width: min(432px, 68vw);
  height: 100%;
  flex: 0 0 min(432px, 68vw);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: opacity 150ms ease;
  opacity: 1;
}

.carousel-slide.is-fading {
  opacity: 0;
}

.carousel-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 280ms ease;
  flex-shrink: 0;
  padding: 0;
  z-index: 10;
  position: relative;
}

.carousel-btn img {
  width: clamp(42px, 8vw, 90px);
  height: auto;
  display: block;
  transition: transform 280ms ease, opacity 280ms ease;
}

.carousel-btn:hover img,
.carousel-btn:focus img {
  transform: scale(1.08);
  opacity: 0.9;
}

.carousel-btn:active img {
  transform: scale(0.95);
}

.carousel-btn:focus {
  outline: none;
}

.foto-met-rand {
  background: #fff;
  padding: 20px;
  border: 12px solid #000;
  border-radius: 29px;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.foto-met-rand--full {
  background: #fff;
  padding: 0;
  border: 12px solid #000;
  border-radius: 29px;
  overflow: hidden;
}

.foto-met-rand--full a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer {
  width: 100%;
  padding: 14px 18px;
  background: rgba(16, 21, 30, 0.75);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  flex-wrap: wrap;
}

.footer-title,
.footer-item {
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1.5vw, 16px);
}

.footer-title {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.footer-item a {
  color: #fff;
}

.footer-item a:hover,
.footer-item a:focus {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .home-page {
    background-attachment: scroll;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-text-panel {
    min-height: 270px;
    align-items: flex-start;
  }

  .about-text-overlay {
    margin-top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.18));
  }

  .about-photo-box {
    max-width: 420px;
    width: 100%;
    justify-self: center;
  }

  .skills-grid-home {
    grid-template-columns: 1fr;
  }

  .skills-section {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    scroll-snap-type: none;
  }

  .site-header {
    padding: 8px 10px;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
  }

  .brand-link {
    text-align: left;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
  }

  .site-main {
    padding-top: 92px;
  }

  .about-main,
  .projects-section,
  .skills-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .carousel-container {
    padding-left: 0;
    padding-right: 0;
  }

  .about-text {
    max-width: 100%;
  }

  .about-text-panel {
    min-height: 220px;
  }

  .about-text-overlay {
    padding: 14px;
  }

  .skill-card {
    padding: 14px;
  }

  .footer-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .nav-link {
    width: 100%;
    text-align: center;
  }

  .projecten-tekstbalk {
    font-size: clamp(28px, 12vw, 40px);
  }

  .about-title {
    font-size: clamp(24px, 10vw, 34px);
  }

  .about-text {
    font-size: clamp(14px, 4.3vw, 17px);
  }

  .skill-card h3 {
    font-size: 20px;
  }

  .skill-card p {
    font-size: 16px;
  }
}


