/* Import fonts */
@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');

/* Custom properties */
: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;
  background-color: #092940;
  color: #FAF1CA;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Typography */
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;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: #092940;
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: 0.3s;
}
.navbar--alt {
  background-color: #FAF1CA;
  color: #092940;
}
.navbar--alt .logo,
.navbar--alt .nav-links a {
  color: #092940;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Satoshi', sans-serif;
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  color: #FAF1CA;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}
.logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #FAF1CA;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #FAF1CA;
  font-family: 'Satoshi', sans-serif;
  font-weight: var(--font-weight-bold);
  position: relative;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #FAF1CA;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Intro */
.project-intro {
  background-color: #092940;
  color: #FAF1CA;
  padding: 0 2rem;
  margin: 0 auto;
}
.project-intro h1 {
  font-size: 3.4rem;
  font-weight: var(--font-weight-black);
  margin-bottom: 1.5rem;
  max-width: 820px;
}
.project-intro p {
  max-width: 620px;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Meta info */
.intro-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 5rem;
}
.intro-meta span {
  display: block;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}
.intro-meta strong {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
  font-size: 1rem; 
  color: #FAF1CA;
  font-weight: var(--font-weight-medium);
}

.intro-meta a { 
  color: #FAF1CA; /* match surrounding text */ 
  text-decoration: none; 
  font-weight: var(--font-weight-medium); 
  position: relative; 
  padding-bottom: 2px; 
  transition: color 160ms ease, transform 160ms ease; 
} 

.intro-meta a::before { 
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: -2px; 
  width: 100%; 
  height: 2px; 
  background: #FAF1CA; 
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.48s cubic-bezier(.77,0,.18,1);
} 

.intro-meta a:hover, .intro-meta a:focus { 
  transform: translateY(1px); 
} 

.intro-meta a:hover::before, .intro-meta a:focus::before { 
  transform: scaleX(0); 
} 

/* Incoming line: animate in from the left on hover */
.intro-meta a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #FAF1CA;
  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;
}

.intro-meta a:hover, .intro-meta a:focus {
  transform: scaleX(0);
}

.intro-meta a:hover::after, .intro-meta a:focus::after {
  transform: scaleX(1);
}

.intro-meta a:focus { 
  outline: 3px solid rgba(250,241,202,0.14); 
  outline-offset: 3px; 
}

/* Image */
img.project-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Sticky “kaften” effect */
.process-files {
  position: relative;
  padding: 10% 4% 0;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}
.file {
  position: sticky;
  top: 80px;
  z-index: 2;
  width: 100%;
  min-height: 90vh;
  background: #FAF1CA;
  border-top: 6px solid #092940;
  border-radius: 20px 20px 0 0;
  padding: 4% 3%;
}
.file:nth-child(2) { top: 130px; min-height: 85vh; }
.file:nth-child(3) { top: 180px; min-height: 79vh; }
.file:nth-child(4) { top: 230px; min-height: 74vh; }

/* Tab */
.tab {
  position: absolute;
  left: 2rem;
  top: -1rem;
  background: #FAF1CA;
  color: #092940;
  font-family: 'Satoshi', sans-serif;
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  padding: 0.6rem 1.2rem;
  border-top: 4px solid #092940;
  border-radius: 8px;
}

/* Problem section */
#probleem {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}
#probleem h2 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-semibold);
  color: #092940;
  margin-bottom: 1rem;
}
#probleem p {
  font-size: 1rem;
  color: #092940;
  max-width: 650px;
  margin: 0 auto;
}

#vraag{
  display: block;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  padding-top: 17rem;
}

/* Cards */
.cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.card {
  max-width: 300px;
  background: #092940;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: left;
}
.card h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: #faf1caa4; }

/* File content */
.file-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
.file-content h2 {
  font-size: 1.8rem;
  font-weight: var(--font-weight-semibold);
  color: #092940;
  margin-bottom: 1rem;
}
.file-content p {
  font-size: 1rem;
  color: #092940;
}

/* Image wrapper */
.process-image-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  justify-items: center;
}

.process-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background-color: #fff;
}



#process-image-logo {
  grid-column: 1 / -1;
}

#brightfish-image-wrapper {
  grid-template-columns: 1fr 1fr;
  row-gap: 1.7rem;
}

#brightfish-image-wrapper > .process-image#flowchart { 
  grid-column: 1 / 2; grid-row: 1 / 3; 
}

#brightfish-image-wrapper > .process-image:nth-of-type(3) { 
  grid-column: 2 / 3; grid-row: 2 / 3; 
}

#flowchart {
  width: 87%;
}

#gauwd-image-wrapper {
  grid-template-columns: 0.4fr 0.4fr;
  row-gap: 2rem;
  align-items: center;
  justify-content: center;
}

.result-image-wrapper {
  display: grid;
  grid-template-columns: 0.4fr 0.4fr;
  gap: 2rem;
  align-self: center;
  justify-content: center;
}

.result-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background-color: #fff;
}

#ditch-stitch-logo {
  height: 100%;
}

#reflectie {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer {
  background: #FAF1CA;
  color: #092940;
  text-align: center;
  padding: 5rem 2rem;
  margin-top: 4rem;
  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(9, 41, 64, 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;
  color: #092940;
}

.cta-sub {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(9, 41, 64, 0.9);
}


.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links .btn {
  background: transparent;
  border: 2px solid #092940;
  color: #092940;
  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: #092940;
  color: #FAF1CA;
  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: 1024px) {
  .file{
    min-height: 94vh;
    padding : 0.8rem 2rem
  }

  #probleem { padding: 2rem 1rem; }

  /* Maintain sticky behavior on tablet but reduce spacing to avoid large gaps */
  
  .tab { left: 1.5rem; font-size: 1rem; }
  .file-content { grid-template-columns: 1fr; }
  .file-content h2 {
    text-align: center;
  }
  .file-content p {
    text-align: center;
  }

  .file:nth-child(2) { top: 130px; min-height: 91vh; }
  .file:nth-child(3) { top: 170px; min-height: 88vh; }
  .file:nth-child(4) { top: 230px; min-height: 85vh; }

  #gauwd-image-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .result-image-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    padding: 4rem 1.5rem;
  }

  .footer::before {
    font-size: 7rem;
  }

  .cta-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem; }
  .nav-links { gap: 1.2rem; }
  .project-intro { padding: 0 1rem; }
  .project-intro h1 { font-size: 2.4rem; }
  .project-intro p { font-size: 1rem; }

  .intro-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .tab { left: 1rem; font-size: 0.9rem; padding: 0.4rem 0.8rem; }

  /* Keep files sticky on phones but reduce offsets so they stack sensibly */
  .file {
    min-height: 92vh;
  }
  .file:nth-child(2) { top: 130px; min-height: 89vh; }
  .file:nth-child(3) { top: 170px; min-height: 86vh; }
  .file:nth-child(4) { top: 230px; min-height: 83vh; }

  #probleem { padding: 1rem; }
  .cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
  .card { padding: 1rem; justify-self: center; }
  .card h2 { font-size: 1rem; }
  .card p { font-size: 0.9rem; }

  .image-wrapper {
    grid-template-columns: 1fr;
  }
  .image-wrapper img:nth-of-type(3) {
    grid-column: auto;
  }

  .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) {
   .logo { font-size: 1rem; }
  .nav-links a { font-size: 0.85rem; }
  .project-intro h1 { font-size: 2rem; }
  .tab { font-size: 0.85rem; }
  #probleem { padding: 1rem; }
  #probleem h2 { font-size: 1.4rem; }
  #probleem p { font-size: 0.9rem; }
  #vraag {
    padding-top: 9rem;
    text-align: center;
  }
  .cards { display: flex;  align-items: stretch; height: 40vh; /* vult het hele scherm */
    overflow-x: scroll; /* intern scrollen */
    scroll-snap-type: x mandatory; /* smooth snaps */gap: 0.75rem; }
  .cards .card { max-width: none; width: 100%; }
  .card h2 { font-size: 1.5rem; }
  .card p { font-size: 0.80rem; }

  /* Tighten sticky offsets further on very small screens */
  .file { min-height: 91vh; padding: 0.8rem; }
  .file:nth-child(2) { top: 120px; min-height: 89vh; }
  .file:nth-child(3) { top: 160px; min-height: 86vh; }
  .file:nth-child(4) {min-height: 83vh; }

  .file-content {
    gap: 1rem;
  }

  .file-content h2 {
    font-size: 1.5rem;
  }

  .file-content p{
    font-size: 0.9rem;
  }

  .process-image-wrapper {
    display: flex;
    flex-direction: column;
    height: 30vh; /* vult het hele scherm */
    overflow-y: scroll; /* intern scrollen */
    scroll-snap-type: y mandatory; /* smooth snaps */
  }

  .process-image {
    object-fit: cover;
    scroll-snap-align: start;
  }

  #flowchart {
    align-self: center;
  }

  .result-image-wrapper{
    display: flex;
    flex-direction: column;
    height: 30vh; /* vult het hele scherm */
    overflow-y: scroll; /* intern scrollen */
    scroll-snap-type: y mandatory; /* smooth snaps */
  }

  .result-image {
    object-fit: cover;
    scroll-snap-align: start;
  }

  .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: 320px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.75rem; }
  .tab { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
}

/* Desktop/tablet layout */
.scroll-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.scroll-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.scroll-image:hover {
  transform: scale(1.03);
}
