:root {
  --bg: #ffffff;
  --card: #ffffff;
  --card-alt: #f0f5f1;
  --accent: #236130;
  --accent-light: #438752;
  --active: #16401f;
  --hero-bg: #cae0ca;
}
* { margin:0; padding:0; box-sizing:border-box; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--hero-bg);
  transition: background-color 0.8s ease-in-out;
}
body.scrolled-past-hero, body.subpage-active { background-color: var(--bg); }
h1, h2, nav li { font-weight: 700; }
a { color: inherit; text-decoration: none; }
.logo img, .footer-left img, .footer-right img {
  filter: brightness(0) saturate(100%) invert(29%) sepia(35%) saturate(1061%) hue-rotate(76deg) brightness(95%) contrast(89%);
}
.nav {
  padding: 16px 24px; background: var(--hero-bg) !important; position: relative; z-index: 200; width: 100%;
}
.nav ul {
  display: flex; justify-content: center; align-items: center; list-style: none; gap: 36px; flex-wrap: wrap; position: relative;
}
.nav-indicator {
  position: absolute; background: var(--active); opacity: 0.15; border-radius: 20px; z-index: 1; transition: all 0.5s cubic-bezier(0.4, 2.2, 0.2, 1); pointer-events: none;
}
.nav-item {
  font-size: 17px; font-weight: 700; white-space: nowrap; position: relative; z-index: 2;
}
.nav-item span {
  display: inline-block; font-weight: 700; transition: transform 0.6s cubic-bezier(0.4, 2.2, 0.2, 1), opacity 0.3s, color 0.3s;
}
.nav-item:hover span { transform: translateY(-8px); opacity: 0.8; }
.nav-item.active span { color: var(--active); }
.logo { display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.logo img { height: 68px; transition: transform 0.6s cubic-bezier(0.4, 2.2, 0.2, 1); }
.logo:hover img { transform: scale(1.15) rotate(15deg); }
.lightbox {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 5000; opacity: 0; transition: opacity 0.4s ease;
}
.lightbox.show { display: flex; opacity: 1; }
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 12px; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; z-index: 5001; }
.floating-menu {
  position: fixed; top: 25px; right: 40px; z-index: 1200; opacity: 0; pointer-events: none; transform: translateY(-20px); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-menu.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.expanding-menu-container {
  position: relative; width: 115px; height: 50px; background: var(--card); border-radius: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease, border-radius 0.5s ease; overflow: hidden;
}
.floating-menu.open .expanding-menu-container { width: 220px; height: 230px; border-radius: 20px; background: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.menu-toggle-btn { position: absolute; top: 0; right: 0; width: 100%; height: 50px; z-index: 10; }
.floating-menu.open .menu-toggle-btn { width: 50px; }
.hamburger {
  position: absolute; top: 50%; transform: translateY(-50%); right: 15px; display: flex; flex-direction: column; gap: 5px; width: 24px; z-index: 2; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger span {
  display: block; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, background-color 0.4s ease; transform-origin: center;
}
.floating-menu.open .hamburger span { background: #ffffff; }
.menu-text {
  position: absolute; top: 15px; right: 50px; color: var(--accent); font-weight: 700; font-size: 16px; transition: opacity 0.3s; pointer-events: none;
}
.floating-menu.open .menu-text { opacity: 0; }
.floating-menu.open .hamburger { right: 13px; }
.floating-menu.open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.floating-menu.open .hamburger span:nth-child(2) { opacity: 0; }
.floating-menu.open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.expanded-menu-content { position: absolute; top: 65px; left: 0; width: 100%; padding: 0 25px; pointer-events: none; }
.floating-menu.open .expanded-menu-content { pointer-events: auto; }
.expanded-menu-content ul { list-style: none; display: flex; flex-direction: column; gap: 25px; }
.expanded-menu-content li {
  display: flex; align-items: center; gap: 15px; font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, 0.6); opacity: 0; transform: translateX(-15px); transition: color 0.3s ease;
}
.floating-menu.open .expanded-menu-content li { opacity: 1; transform: translateX(0); }
.floating-menu.open .expanded-menu-content li:nth-child(1) { transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, color 0.3s ease; }
.floating-menu.open .expanded-menu-content li:nth-child(2) { transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s, color 0.3s ease; }
.floating-menu.open .expanded-menu-content li:nth-child(3) { transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s, color 0.3s ease; }
.expanded-menu-content li:hover, .expanded-menu-content li.active { color: #ffffff; }
.nav-dot { width: 8px; height: 8px; background-color: #ffffff; border-radius: 50%; opacity: 0; transform: scale(0); transition: opacity 0.3s ease, transform 0.3s ease; }
.expanded-menu-content li.active .nav-dot { opacity: 1; transform: scale(1); }
.expanded-menu-content li:hover .nav-dot { opacity: 0.7; transform: scale(1); }
.page-container { display: none; }
.page-container.active { display: block; }
.hero-wrapper { height: 160vh; position: relative; background: transparent !important; }
.hero-content { position: sticky; top: 0; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; z-index: 10; }
.hero-group { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 25px; width: 100%; will-change: transform; margin-top: -20px; }
.intro { font-size: 11rem; font-weight: 400; line-height: 0.78; letter-spacing: -0.02em; opacity: 1; transform-origin: bottom center; will-change: transform; }
.hero-name { max-width: 720px; width: 88%; opacity: 0; transform: translateY(80px) scale(0.7); will-change: transform, opacity; }
.tagline { font-size: 2.2rem; font-weight: 400; font-style: italic; color: var(--accent-light); max-width: 640px; opacity: 0; transform: translateY(110px) scale(0.8); will-change: transform, opacity; }
.hero-btn-wrapper { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(120px) scale(0.8); margin-top: 10px; will-change: transform, opacity; }
.hero-btn {
  display: inline-block; padding: 16px 36px; background: var(--accent); color: var(--bg); text-decoration: none; font-size: 18px; font-weight: 700; border-radius: 40px; transition: all 0.5s cubic-bezier(0.4, 2.2, 0.2, 1); box-shadow: 0 4px 15px rgba(35, 97, 48, 0.15);
}
.hero-btn:hover { background: var(--active); transform: translateY(-6px) scale(1.05); box-shadow: 0 10px 20px rgba(35, 97, 48, 0.25); }

.animated-heading {
  display: inline-block; position: relative; padding-bottom: 8px; text-align: center;
}
.animated-heading span { transition: opacity 0.1s ease; }
.animated-heading::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-color: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px;
}
.animated-heading.line-visible::after { transform: scaleX(1); }
@keyframes lineHoverOutIn {
  0% { transform-origin: right; transform: scaleX(1); }
  49% { transform-origin: right; transform: scaleX(0); }
  50% { transform-origin: left; transform: scaleX(0); }
  100% { transform-origin: left; transform: scaleX(1); }
}
.animated-heading.line-visible:hover::after { animation: lineHoverOutIn 0.6s forwards; }

.mobile-break { display: none; }
p, .subpage-text, .card-text, .review { word-wrap: break-word !important; word-break: break-word !important; overflow-wrap: break-word !important; max-width: 100% !important; }
#over-mij h2, .skills h2, .reviews h2 { font-size: 2.2rem; }
.container { padding: 100px 5vw; }
.about { display: flex; gap: 50px; align-items: center; }
.about.container { padding-top: 100px; padding-bottom: 100px; }
.about-text { flex: 1; margin-left: 100px; }
.about h2 { margin-top: 0; margin-bottom: 16px; }
.about p { line-height: 1.7; }
.about-image { flex: 1; text-align: center; }
.about-image img { width: 250px; max-width: 100%; height: auto; background: var(--card-alt); border-radius: 12px; rotate: var(--scroll-rot, 0deg); transition: rotate 0.1s ease-out; will-change: rotate; }

@keyframes swingIcon {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(0, 0) rotate(10deg); }
  75% { transform: translate(0, 0) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes spinIcon {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.skills h2 { margin-bottom: 32px; text-align: center; }
.skill-grid { display: flex; flex-direction: row; gap: 32px; justify-content: center; max-width: 1050px; margin: 0 auto; height: 320px; }
.card {
  flex: 1; background: var(--card-alt); border-radius: 20px; transition: flex 0.6s cubic-bezier(0.3, 1, 0.3, 1), transform 0.6s cubic-bezier(0.3, 1, 0.3, 1), background 0.4s, box-shadow 0.4s, height 0.6s ease; padding: 32px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; position: relative;
}
.card-title { font-size: 1.5rem; font-weight: 700; color: var(--accent); transition: color 0.4s ease; white-space: nowrap; position: relative; z-index: 2; }
.card-icon {
  position: absolute; top: 55%; right: 50%; transform: translate(50%, -50%); width: 108px; height: 108px; object-fit: contain; transition: all 0.5s cubic-bezier(0.3, 1, 0.3, 1); z-index: 1; pointer-events: none;
}
.card-icon.lampje { width: 119px; height: 119px; }
.card-content { opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.3, 1, 0.3, 1); pointer-events: none; display: flex; flex-direction: column; }
.card-text { margin-top: 16px; color: #ffffff; line-height: 1.6; min-width: 260px; position: relative; z-index: 2; }
.werk-link { color: inherit; text-decoration: underline; position: relative; z-index: 10; transition: opacity 0.3s; }
.werk-link:hover { opacity: 0.7; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { flex: 3; transform: translateY(-10px); background: var(--accent); box-shadow: 0 15px 30px rgba(35, 97, 48, 0.2); }
  .card:hover .card-title { color: #ffffff; }
  .card:hover .card-icon { top: 20px; right: 20px; transform: translate(0, 0); width: 40px; height: 40px; filter: brightness(0) invert(1); animation: swingIcon 3s ease-in-out 0.5s infinite; }
  .card:hover .card-icon.lampje { width: 44px; height: 44px; }
  .card:hover .card-icon.gear { animation: spinIcon 12s linear 0.5s infinite; }
  .card:hover .card-content { opacity: 1; transform: translateY(0); transition-delay: 0.1s; pointer-events: auto; }
}
.card.is-active { background: var(--accent); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(35, 97, 48, 0.2); }
.card.is-active .card-title { color: #ffffff; }
.card.is-active .card-icon { top: 20px; right: 20px; transform: translate(0, 0); width: 40px; height: 40px; filter: brightness(0) invert(1); animation: swingIcon 3s ease-in-out 0.5s infinite; }
.card.is-active .card-icon.lampje { width: 44px; height: 44px; }
.card.is-active .card-icon.gear { animation: spinIcon 12s linear 0.5s infinite; }
.card.is-active .card-content { opacity: 1; transform: translateY(0); pointer-events: auto; }

.reviews h2 { margin-bottom: 32px; text-align: center; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.review {
  min-height: 160px; height: auto; background: var(--card-alt); border-radius: 16px; transition: 0.3s; padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.quote-mark { font-family: 'Georgia', serif; font-size: 3.5rem; line-height: 0; display: inline-block; }
.quote-mark.start { vertical-align: -0.32em; margin-right: 6px; }
.quote-mark.end { vertical-align: -0.42em; margin-left: 6px; }
.review.is-active, .review:hover { transform: translateY(-6px); background: var(--accent); box-shadow: 0 10px 25px rgba(35, 97, 48, 0.15); color: var(--bg); }
.review-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.review-footer img { width: 58px; height: 48px; flex-shrink: 0; }
.review-footer b { font-size: 1rem; }

#werk-main-title { text-align: center; font-size: 4rem; font-weight: 700; color: var(--accent); padding-top: 80px; margin-bottom: 5px; }
#contact-main-title { text-align: left; font-size: 4rem; font-weight: 700; color: var(--accent); padding-top: 0; margin-bottom: 20px; }
.werk-subtitle { text-align: center; font-style: italic; font-size: 1.1rem; color: var(--accent-light); margin-bottom: 40px; display: block; }
.werk-categories-wrapper { display: flex; justify-content: center; gap: 40px; flex-wrap: nowrap; max-width: 1400px; margin: 0 auto; padding: 0 5vw; width: 100%; }
.category-item { flex: 1; min-width: 0; }
.category-item .werk-tile {
  aspect-ratio: unset; height: 340px; background-color: var(--accent); display: flex; justify-content: center; align-items: center; transition: transform 0.4s cubic-bezier(0.4, 2.2, 0.2, 1), box-shadow 0.4s; transform: none !important;
}
.category-item:hover .werk-tile { transform: scale(1.03) translateY(-5px) !important; box-shadow: 0 25px 50px rgba(35, 97, 48, 0.3) !important; }
.category-item .werk-tile span { color: #ffffff; font-size: 2.2rem; font-weight: 700; position: relative; z-index: 2; pointer-events: none; text-align: center; transition: transform 0.3s ease; }
.category-item:hover .werk-tile span { transform: scale(1.05); }
.werk-cat-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.4s ease, background-size 0.2s ease; z-index: 1; border-radius: 20px;
}
.category-item:hover .werk-cat-bg, .hover-bg-item:hover .werk-cat-bg { opacity: 0.3; }
.hover-bg-tile { background: var(--accent) !important; display: flex; justify-content: center; align-items: center; }
.hover-bg-tile span { color: #ffffff; font-size: 1.8rem !important; font-weight: 700; position: relative; z-index: 2; pointer-events: none; text-align: center; transition: transform 0.3s ease; }
.hover-bg-item:hover .hover-bg-tile span { transform: scale(1.05); }
.marquee-wrapper { position: absolute; left: 0; width: 100%; overflow: hidden; z-index: 0; pointer-events: none; display: flex; }
.top-marquee { bottom: 100%; margin-bottom: 30px; }
.bottom-marquee { top: 100%; margin-top: 30px; }
.marquee-content { display: flex; width: max-content; }
.marquee-left { animation: marqueeLeft 30s linear infinite; }
.marquee-right { animation: marqueeRight 30s linear infinite; }
.marquee-content span { font-size: 4vw; font-weight: 900; text-transform: uppercase; color: var(--accent); opacity: 0.15; padding-right: 3vw; white-space: nowrap; }

@keyframes marqueeLeft { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
@keyframes marqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }

.werk-grid-wrapper { padding: 0 5vw 100px 5vw; max-width: 1320px; margin: 0 auto; }
.werk-grid-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 40px; justify-content: center; }
.werk-item { display: flex; flex-direction: column; position: relative; perspective: 1500px; z-index: 1; }
.werk-tile {
  background: var(--card-alt); border-radius: 20px; aspect-ratio: 4/3; width: 100%; transition: all 0.1s linear; transform-style: preserve-3d; box-shadow: 0 15px 35px rgba(35, 97, 48, 0.15); position: relative; overflow: hidden; will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .werk-item:hover .werk-tile { box-shadow: 0 40px 90px rgba(35, 97, 48, 0.4); } }
.werk-item.is-active .werk-tile { box-shadow: 0 35px 70px rgba(35, 97, 48, 0.35); }

/* NIEUW: STYLING VOOR CONTACTLINKS */
.contact-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-links img {
  height: 44px;
  filter: brightness(0) saturate(100%) invert(29%) sepia(35%) saturate(1061%) hue-rotate(76deg) brightness(95%) contrast(89%);
  transition: transform 0.3s;
}
.contact-links img:hover {
  transform: scale(1.15);
}
.contact-mail {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  transition: opacity 0.3s;
}
.contact-mail:hover {
  opacity: 0.8;
}

.contact-wrapper { max-width: 1000px; margin: 0 auto; padding-bottom: 100px; display: flex; align-items: center; justify-content: center; gap: 60px; text-align: left; }
.contact-text-col { flex: 1; }
.contact-img-col { flex: 1; display: flex; justify-content: center; align-items: center; }

@keyframes floatUpAndDown {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.floating-contact-img {
  width: 100%; max-width: 380px; height: auto; animation: floatUpAndDown 8s ease-in-out infinite; filter: none !important; rotate: var(--scroll-rot, 0deg); transition: scale 0.3s ease, rotate 0.1s ease-out; will-change: transform, rotate, scale;
}
.floating-contact-img:hover { scale: 1.05; }
.subpage-hero { position: relative; width: 100%; height: 70vh; overflow: hidden; background: var(--card-alt); }
.parallax-bg {
  position: absolute; top: -10%; left: 0; width: 100%; height: 140%; background-size: cover; background-position: center; will-change: transform; transform: translateZ(0);
}
.subpage-content { max-width: 1300px; margin: 0 auto; padding-top: 60px; padding-bottom: 100px; }
.subpage-h1 { font-weight: 900; font-size: 3.5rem; text-transform: uppercase; margin-bottom: 30px; display: inline-block; padding-bottom: 4px; }
.subpage-section { margin-bottom: 80px; }
.subpage-flex-container { display: flex; gap: 60px; align-items: flex-start; flex-wrap: wrap; }
.subpage-text-col { flex: 1.4; min-width: 320px; }
.subpage-img-col, .subpage-img-col2 { flex: 1; min-width: 320px; display: flex; justify-content: center; align-items: center; }
.subpage-h2 { font-weight: 900; font-size: 1.4rem; line-height: 1.4; text-transform: uppercase; margin-top: 0; margin-bottom: 15px; }
.subpage-text { font-weight: 400; font-size: 1.15rem; line-height: 1.6; color: var(--accent); }
.back-btn-container { margin-top: 40px; }
.floating-mockup {
  width: 170%; max-width: 1000px; height: auto; animation: floatUpAndDown 10s ease-in-out infinite; filter: drop-shadow(0 15px 25px rgba(35, 97, 48, 0.15)); margin-top: -60px; rotate: var(--scroll-rot, 0deg); transition: filter 0.5s ease, scale 0.6s cubic-bezier(0.4, 2, 0.2, 1), rotate 0.1s ease-out; will-change: transform, scale, rotate;
}
.floating-mockup2 {
  width: 70%; max-width: 900px; height: auto; animation: floatUpAndDown 10s ease-in-out infinite; filter: drop-shadow(0 15px 25px rgba(35, 97, 48, 0.15)); margin-top: 20px; rotate: var(--scroll-rot, 0deg); transition: filter 0.5s ease, scale 0.6s cubic-bezier(0.4, 2, 0.2, 1), rotate 0.1s ease-out; will-change: transform, scale, rotate;
}
.subpage-standard-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.subpage-standard-img2, .subpage-standard-img3 { width: 60%; height: auto; max-height: 500px; object-fit: cover; }
.branding-element {
  flex: 1; min-width: 300px; height: 350px; width: 100%; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(35, 97, 48, 0.15)); transition: transform 0.3s ease; will-change: transform;
}
.branding-element:hover { transform: scale(1.02); }

#custom-cursor {
  position: fixed; top: 0; left: 0; min-width: 18px; height: 18px; padding: 0; background: var(--accent); border-radius: 40px; pointer-events: none; z-index: 10000; transform: translate3d(-50%, -50%, 0) scale(var(--cursor-scale, 1)); display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; white-space: nowrap; color: transparent; box-shadow: 0 4px 10px rgba(35, 97, 48, 0.2); transition: min-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease-out, color 0.3s ease-out 0.1s, box-shadow 0.4s ease-out, opacity 0.2s ease-out; will-change: transform, min-width, height, background-color, opacity; overflow: hidden;
}
#custom-cursor.hover-mode { --cursor-scale: 1.5; }
#custom-cursor.light-mode { background: var(--hero-bg); box-shadow: none; }
#custom-cursor.tooltip-mode {
  --cursor-scale: 1 !important; min-width: 140px; height: 52px; padding: 0 28px; background: #b4c8b3 !important; color: var(--accent); box-shadow: 0 10px 25px rgba(35, 97, 48, 0.3);
}

.footer { display: flex; justify-content: space-between; align-items: center; padding: 40px 5vw; background: var(--card); flex-wrap: wrap; }
.footer-left { flex: 1; display: flex; justify-content: flex-start; }
.footer-left img { height: 44px; }
.footer-center { flex: 1; display: flex; justify-content: center; text-align: center; }
.footer-center a { font-size: 1.1rem; font-weight: 700; color: var(--accent); transition: opacity 0.3s; }
.footer-center a:hover { opacity: 0.8; }
.footer-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.footer-right a { display: inline-flex; }
.footer-right img { height: 44px; transition: 0.3s; }
.footer-right img:hover { transform: scale(1.15); }

.fade-in { opacity: 0; transform: translateY(60px); transition: all 1s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

#back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 64px; height: 64px; background: var(--accent); color: var(--bg); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; font-weight: bold; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.4, 2.2, 0.2, 1); z-index: 400; box-shadow: 0 4px 15px rgba(35, 97, 48, 0.25); padding-bottom: 5px;
}
#back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--active); transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 20px rgba(35, 97, 48, 0.35); }

@media (max-width: 900px) {
  .nav ul { gap: 16px; padding: 10px 0; }
  .nav-item { font-size: 14px; }
  .nav .logo img { height: 48px; }
  .floating-menu { right: 20px; top: 20px; }
  .about { flex-direction: column; text-align: center; gap: 40px; }
  .about-text { margin-left: 0; }
  .about.container { padding-top: 60px; padding-bottom: 60px; }
  .skill-grid { flex-direction: column; height: auto; gap: 20px; }
  .card { height: auto; min-height: 90px; flex: none; padding: 24px; }
  .intro { font-size: 7.2rem; }
  #werk-main-title { font-size: 3rem; padding-top: 50px; text-align: center; }
  #contact-main-title { font-size: 3rem; padding-top: 20px; text-align: center; }
  .werk-categories-wrapper { flex-direction: column; align-items: center; }
  .category-item { width: 100%; max-width: 400px; }
  .category-item .werk-tile { height: 240px; }
  .werk-grid-wrapper { padding: 0 8vw 100px 8vw; }
  .werk-grid-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  
  .contact-wrapper { padding-top: 120px; flex-direction: column; text-align: center; gap: 40px; }
  .contact-links { justify-content: center; }
  
  #back-to-top { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 28px; }
  .subpage-h1 { font-size: 2.2rem !important; }
  #custom-cursor { display: none !important; opacity: 0 !important; visibility: hidden !important; }
}
@media (max-width: 600px) {
  .intro { font-size: 5rem; }
  .werk-grid-inner { grid-template-columns: 1fr; gap: 40px; }
  .werk-grid-wrapper { padding: 0 12vw 100px 12vw; }
  .footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-left, .footer-center, .footer-right { justify-content: center; width: 100%; }
  .mobile-break { display: block; }
}