/* Import fonts from CDN for better compatibility */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for consistent font weight management */
:root {
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #FAF1CA;
}

/* Global font assignments */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

p {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Navigatie */
.navbar {
  position: sticky;
  top: 0;
  background-color: #FAF1CA;
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  z-index: 1000;
}

.nav-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  color: #0F3C65;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
  overflow: visible;
  display: inline-block;
}
.logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #092940;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  z-index: 1;
}
.logo:hover::after, .logo:focus::after {
  transform: scaleX(1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
  text-decoration: none;
  color: #0F3C65;
  font-weight: var(--font-weight-bold);
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #092940;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.nav-links a:hover::after, .nav-links a:focus::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  background: #FAF1CA;
  padding: 5.5em 2em;
  padding-bottom: 13.2em;
  text-align: left;
  margin: 0 auto;
  max-width: 1360px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


.hero h1 {
  font-size: 80px;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0F3C65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero .highlight {
    display: inline-block;
  background: #0F3C65;
  color: #FAF1CA;
    padding: 1rem 1.5rem;
  border-radius: 50%;
}

.hero p {
  font-size: 20px;
  color: #5c6f7c;
  margin-bottom: 2rem;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1rem;
}

.all-projects-link {
  position: relative;
  font-size: 1.3rem;
  font-weight: bold;
  color: #0F3C65;
  text-decoration: none;
  padding-bottom: 4px;
  display: inline-block;
  transition: color 0.2s;
}
.all-projects-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #FAF1CA;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}
.all-projects-link:hover::after, .all-projects-link:focus::after {
  transform: scaleX(1);
}

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn.primary {
  background: #0F3C65;
  color: #FAF1CA;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn.primary:hover {
  background: #092940;
  transform: translateY(-3px) scale(1.05);
}

.btn.outline {
  border: 2px solid #0F3C65;
  color: #0F3C65;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn.outline:hover {
  background: #0F3C65;
  color: #FAF1CA;
  transform: translateY(-3px) scale(1.05);
}

.projects-section {
  background-color: #092940;
  padding-top: 1.5em;
}

.projects h1{
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  padding-left: 3rem;
  margin-bottom: 1rem;
}

.projects p {
  font-size: 1.1rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  padding-left: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project a{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 18px;
  padding: 1.2em 1.2em 1.6em 1.2em;
  transition: transform 0.18s cubic-bezier(.77,0,.18,1), box-shadow 0.18s cubic-bezier(.77,0,.18,1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.project a:hover, .project a:focus {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px #faf1ca19;
}


.project img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: box-shadow 0.18s cubic-bezier(.77,0,.18,1);
}
.project:hover img {
  box-shadow: 0 8px 24px rgba(15,60,101,0.18);
}


.project .text {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative; /* needed so absolute-positioned button is contained */
  padding-right: 4.5rem; /* space for the button on the right */
}

/* CTA button placed on the right side of the .text container — styled like the site's primary CTA */
.project .text .cta-button {
  position: absolute;
  right: 0;
  top: 75%;
  transform: translateY(-50%);
  padding: 0.8rem 1.4rem; /* match .btn */
  border-radius: 25px;
  border: 2px solid #FAF1CA;
  background: #092940; /* primary brand color (same as .btn.primary) */
  color: #FAF1CA;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.18s ease;
}
.project .text .cta-button:hover {
  transform: translateY(-50%) translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  background-color: #FAF1CA;
  color: #092940;
}

/* Hidden by default for A/B testing (Version A) */
.hidden {
  display: none !important;
}

/* Responsive: on small screens stack the button below the text */
@media (max-width: 600px) {
  .project .text {
    position: static;
    padding-right: 0;
  }
  .project .text .cta-button {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 0.6rem;
    box-shadow: none;
  }
}


.project .tag {
  font-size: 0.9rem;
  color: #FAF1CA;
  text-transform: uppercase;
  opacity: 0.8;
  display: block;
  margin-bottom: 0.3rem;
  border: #FAF1CA 1px solid;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  max-width: fit-content;
}

.project h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #FAF1CA;
  padding-top: 0.3rem;
  letter-spacing: -1px;
  position: relative;
}

/* Alle projecten link */
.all-projects {
  background-color: #092940;
  text-align: center;
  padding: 2rem;
}

.all-projects a {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FAF1CA;
  text-decoration: none;
  transition: 0.3s;
}

/* Projects section animation */
.projects-section .project {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.77,0,.18,1), transform 1.2s cubic-bezier(.77,0,.18,1);
}
.projects-section.visible .project {
  opacity: 1;
  transform: translateY(0);
}
.about-me .right-panel, .about-me .left-panel {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.8s cubic-bezier(.77,0,.18,1), transform 1.8s cubic-bezier(.77,0,.18,1);
}
.about-me.visible .right-panel,
.about-me.visible .left-panel {
  opacity: 1;
  transform: translateY(0);
}

/* Section layout */
.about-me{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 4em 2rem;
    gap: 2rem;
    min-height: 80vh;
}

/* LEFT PANEL */
.left-panel{
  position:relative;
}

/* gekleurde rechthoek achtergrond */
.card-bg{
  position:absolute;
  inset:0;
  left:0;
  right:auto;
  width: 601px;
  height: 771px;;
  background:#092940;
  border-radius:20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
  z-index:1;
  overflow:hidden;
}

/* Grote outline naam (rotated) */
.bg-name{
  position:absolute;
  z-index:2;
  left:-220px;
  top:49%;
  transform: translateY(-50%) rotate(-90deg);
  font-weight: var(--font-weight-black);
  font-size:225px; /* pas aan bij nodig */
  letter-spacing:6px;
  color: transparent;
  -webkit-text-stroke: 6px #FAF1CA; /* outline look */
  -moz-text-stroke: 6px #FAF1CA;
  pointer-events:none;
  line-height:1;
  white-space:nowrap;
  opacity:0.95;
}

/* Portrait (bovenop) */
.portrait{
  position:relative;
  z-index:3;
  max-width:488px;
  height:771px;
  border-radius:18px;
  object-fit:cover;
  left: 113px;
}

/* RIGHT PANEL */
.right-panel{
  flex:1 1 52%;
  z-index:4;
  padding:18px 32px;
  padding-right: 6em;
}

/* small kicker */
.kicker{
  margin:0 0 12px 0;
  color:#092940;
  font-weight: var(--font-weight-semibold);
  opacity:0.9;
  font-size:1rem;
}

/* title */
.title{
  margin:0 0 24px 0;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  line-height:1.02;
  color:#092940;
  font-weight: var(--font-weight-black);
  max-width: 540px;
}

/* bio text */
.bio p{
  margin:0 0 18px 0;
  color:#092940;
  opacity:0.95;
  font-size: clamp(1rem, 1.5vw, 1.02rem);
  line-height:1.7;
  max-width: 540px;
}

/* Fade-in and slide animation for about-me text */
.about-me .left-panel > *:not(.bg-name),
.about-me .right-panel > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.8s cubic-bezier(.77,0,.18,1), transform 1.8s cubic-bezier(.77,0,.18,1);
}
.about-me .bg-name {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.77,0,.18,1);
}
.about-me.visible .left-panel > *:not(.bg-name),
.about-me.visible .right-panel > * {
  opacity: 1;
  transform: translateY(0);
}
.about-me.visible .bg-name {
  opacity: 0.95;
}

.cv{
  color: #092940; /* match surrounding text */ 
  text-decoration: none; 
  position: relative; 
  transition: color 160ms ease, transform 160ms ease; 
} 

.cv::after { 
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: -2px; 
  width: 100%; 
  height: 2px; 
  background: #092940; 
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.48s cubic-bezier(.77,0,.18,1);
} 

.cv:hover, .cv:focus { 
  transform: translateY(1px); 
} 

.cv:hover::after, .cv:focus::after { 
  transform: scaleX(0); 
} 

/* Incoming line: animate in from the left on hover */
.cv::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #092940;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.48s cubic-bezier(.77,0,.18,1) 0.12s; /* slower with slightly longer delay */
  pointer-events: none;
}

.cv:hover::before, .cv:focus::before {
  transform: scaleX(1);
}

.cv:focus { 
  outline: 3px solid rgba(9, 41, 64, 0.6);
  outline-offset: 3px; 
}



.footer {
  background: #092940;
  color: #FAF1CA;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}


.footer::before {
  content: "CONTACT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  font-weight: var(--font-weight-black);
  color: rgba(250, 241, 202, 0.03);
  z-index: 0;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-sub {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(250, 241, 202, 0.9);
}


.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links .btn {
  background: transparent;
  border: 2px solid #FAF1CA;
  color: #FAF1CA;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.footer-links .btn:hover {
  background: #FAF1CA;
  color: #0F3C65;
  transform: translateY(-3px) scale(1.05);
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  filter: invert(92%) sepia(10%) saturate(457%) hue-rotate(360deg) brightness(105%) contrast(95%);
  transition: filter 0.3s ease;
}

.footer-links .btn:hover .linkedin-icon {
  filter: invert(15%) sepia(94%) saturate(3209%) hue-rotate(193deg) brightness(90%) contrast(95%);
}

@media (max-width: 1300px) {
  .about-me {
    grid-template-columns: 1fr;
    padding-top: 2em;
    padding-bottom: 2em;
  }

  .left-panel, .right-panel {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2em auto;
    padding: 0;
    position: relative;
  }

  .right-panel {
    padding-right: 0;
    text-align: center;
  }

  .card-bg {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .bg-name {
    font-size: clamp(200px, 10vw, 300px);
    -webkit-text-stroke: 6px #FAF1CA;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
  }

  .portrait {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    top: 6px;
    left: 51px;
  }
}


@media (max-width: 1024px) {
  .hero {
    padding: 3em 1.5em 12em 1.5em;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(60px, 8vw, 90px);
  }

  .hero p {
    font-size: clamp(18px, 3vw, 24px);
  }

  .footer {
    padding: 4rem 1.5rem;
  }

  .footer::before {
    font-size: 7rem;
  }

  .cta-title {
    font-size: 2.1rem;
  }
}


@media (max-width: 768px) {
  .hero {
    padding: 2.5em 1.2em 10em 1.2em;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(48px, 10vw, 70px);
    line-height: 1.1;
    text-align: center;
  }

  .hero .highlight {
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
  }

  .hero p {
    font-size: clamp(16px, 4vw, 20px);
    text-align: center;
    max-width: 90%;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }

  .all-projects-link, .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* About-me tablet styles */
  .about-me {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    gap: 1.5rem;
  }

  .left-panel, .right-panel {
    max-width: 450px;
    margin: 0 auto 1.5em auto;
  }

  .card-bg {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    border-radius: 14px;
  }

  .bg-name {
    font-size: clamp(170px, 9vw, 250px);
    left: -180px;
    -webkit-text-stroke: 4px #FAF1CA;
    -moz-text-stroke: 4px #FAF1CA;
  }

  .portrait {
    max-width: 85%;
    height: auto;
    border-radius: 10px;
    top: 12px;
    left: 68px;
  }

  .right-panel {
    padding: 0 1rem;
    text-align: center;
  }

  .title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
  }

  .kicker {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 0.8rem;
  }

  .bio p {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .footer {
    padding: 3rem 1.2rem;
    text-align: center;
  }

  .footer::before {
    font-size: 5rem;
    top: 40%;
  }

  .cta-title {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .cta-sub {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .footer-links .btn {
    width: 100%;
    max-width: 360px;
    padding: 0.9rem 1.2rem;
  }
}

@media (max-width: 430px) {
  .hero {
    padding: 2em 1em 8em 1em;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 56px);
    margin-bottom: 0.8rem;
  }

  .hero .highlight {
    padding: 0.6rem 1rem;
    border-radius: 30px;
  }

  .hero p {
    font-size: clamp(14px, 4.5vw, 18px);
    margin-bottom: 1.5rem;
  }

  .buttons {
    gap: 0.6rem;
  }

  .all-projects-link {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  .about-me {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    gap: 1.5rem;
  }

  .left-panel, .right-panel {
    max-width: 450px;
    margin: 0 auto 1.5em auto;
  }

  .card-bg {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    border-radius: 14px;
  }

  .bg-name {
    font-size: clamp(125px, 8vw, 200px);
    left: -115px;
    -webkit-text-stroke: 4px #FAF1CA;
    -moz-text-stroke: 4px #FAF1CA;
  }

  .portrait {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    top: 35px;
    left: 71px;
  }

  .right-panel {
    padding: 0 1rem;
    text-align: center;
  }

  .title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
  }

  .kicker {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 0.8rem;
  }

  .bio p {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .footer {
    padding: 2.2rem 1rem;
  }

  .footer::before {
    font-size: 4rem;
    top: 39%;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .cta-sub {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }

  .footer-links .btn {
    max-width: 320px;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 360px) {
  .nav-links {
    display: none; /* simplify nav on very small screens */
  }

  .navbar {
    padding: 0.5rem 0.75rem;
  }
  .logo {
    font-size: 0.95rem;
  }

  .hero {
    padding: 1.2em 0.8em 6em 0.8em;
  }
  .hero h1 {
    font-size: clamp(28px, 10vw, 40px);
    text-align: center;
  }

  .projects h1{
    font-size: 1.4rem;
    padding-left: 0.8rem;
  }
  .projects p {
    font-size: 0.9rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .projects-grid {
    padding: 0.75rem;
    gap: 0.8rem;
  }

  .project a{
    padding: 0.7rem;
  }

  .about-me {
    padding: 0.6em 0.8rem;
    gap: 0.6rem;
  }

  .bg-name {
    display: none; /* hide large bg name on very small screens */
  }

  .portrait {
    max-width: 100%;
    left: 20px;
  }

  .title {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }
}