/* =========================
   GLOBAL RESET / STABILITY
============================= */

*,
*::before,
*::after {
box-sizing: border-box;
}


/* =========================
   BASIS
============================= */

.skip-link { position: absolute; top: -40px; left: 0; background: #fff; color: #000; padding: 8px 16px; z-index: 1000; text-decoration: none; }
.skip-link:focus { top: 0; }

body {
margin: 0;
font-family: 'Inter', sans-serif;

background-color: #111;
background-image:
linear-gradient(
rgba(0,0,0,0.55) 0%,
rgba(0,0,0,0.65) 40%,
rgba(0,0,0,0.80) 100%
),
url("images/Werkplaats.png");

background-size: cover;
background-position: center;
background-attachment: scroll;
background-repeat: no-repeat;

color: #eaeaea;
line-height: 1.6;
font-weight: 300;

min-height: 100vh;

overflow-x: hidden;
}


/* =========================
   LAYOUT
============================= */

main {
max-width: 1200px;
margin: auto;
padding: 0 20px;
}


/* =========================
   HERO
============================= */

body:not(.home) .hero {
padding: 25px 20px 20px 20px;
}

body:not(.home) .logo {
max-width: 420px;
margin-bottom: 6px;
}

body:not(.home) .intro h1 {
margin-top: 0;
margin-bottom: 8px;
}

body:not(.home) .intro {
margin-top: 0;
}

.hero {
text-align: center;
padding: 27px 20px 20px 20px;
position: relative;
overflow: hidden;
}


/* spotlight */

.hero::before {

content: "";
position: absolute;

top: -200px;
left: 50%;
transform: translateX(-50%);

width: 800px;
height: 600px;

background: radial-gradient(
circle,
rgba(255,255,255,0.12) 0%,
rgba(255,255,255,0.04) 30%,
rgba(0,0,0,0) 70%
);

pointer-events: none;
z-index: 1;

}


/* =========================
   HOVER ZONE VOOR MAKER BAR
============================= */

:root { --bar-h: 40px; }

.top-hover {

/* alleen de ruimte rechts van het gecentreerde menu, zodat de menulinks bereikbaar blijven */
position: fixed;
top: 0;
right: 0;

width: max(120px, calc(50% - 300px));
height: var(--bar-h);

z-index: 998;

}


/* =========================
   STOFDEELTJES
============================= */

.hero::after {

content: "";

position: absolute;

top: -150px;
left: 50%;

transform: translate(-50%,0);

width: 900px;
height: 700px;

pointer-events: none;

background-image:
radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.2px),
radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);

background-size:
120px 120px,
180px 180px,
250px 250px;

background-position:
0 0,
60px 40px,
120px 80px;

animation: dustFloat 140s linear infinite;

opacity: 0.55;

z-index: 1;

mix-blend-mode: screen;

}


/* =========================
   MAKER BAR
============================= */

.maker-bar { display: flex; gap: 10px; align-items: center; }
.maker-bar a { outline: none; }

a:focus { outline: 2px solid #fff; outline-offset: 2px; }

a { padding: 4px 8px; }
.maker-bar a:focus { outline: 2px solid #fff; outline-offset: 2px; }

.maker-bar {

position: fixed;
top: calc(var(--bar-h) * -1);
left: 0;

width: 100%;
height: var(--bar-h);

background: rgba(10,10,10,0.96);
backdrop-filter: blur(6px);
box-shadow: 0 8px 25px rgba(0,0,0,0.6);

display: flex;
justify-content: flex-end;
align-items: center;

padding: 0 40px;

gap: 20px;

transition: top 0.35s cubic-bezier(.22,.61,.36,1);

opacity: 0;

z-index: 999;

font-size: 13px;

}


.top-hover:hover + .maker-bar,
.maker-bar:hover,
.maker-bar.show,
.maker-bar:focus-within {
top: 0;
opacity: 1;
}


/* lichtlijn */

.maker-bar::after {

content: "";

position: absolute;

bottom: 0;
left: 50%;

transform: translateX(-50%);

width: 0%;
height: 2px;

opacity: 0.6;

background: linear-gradient(
to right,
rgba(255,255,255,0),
rgba(255,255,255,0.35),
rgba(255,255,255,0)
);

transition: width 0.4s ease;

}

.top-hover:hover + .maker-bar::after,
.maker-bar:hover::after {
width: 70%;
}


/* =========================
   LINKS IN MAKER BAR
============================= */

.maker-bar a { outline: none; }

a:focus { outline: 2px solid #fff; outline-offset: 2px; }

a {

color: rgba(255,255,255,0.6);
text-decoration: none;

transition: color 0.2s ease;

}

.maker-bar a:hover {
color: white;
}


/* =========================
   LOGO + INTRO
============================= */

.home .logo {
max-width: 420px;
width: 90%;

margin-bottom: 20px;

position: relative;
z-index: 2;

filter:
drop-shadow(0 10px 25px rgba(0,0,0,0.8))
drop-shadow(0 0 18px rgba(255,255,255,0.08));

animation:
fadeLogo 2.2s ease-out forwards,
logoFloat 7s ease-in-out infinite 2.2s;
opacity: 0;

}

body:not(.home) .logo {
max-width: 320px;
}

.intro {

max-width: 720px;
margin: auto;

opacity: 0;
animation: fadeIntro 2s ease-out 1s forwards;

position: relative;
z-index: 2;

}

.intro h1 {

font-family: 'Roboto Slab', serif;
font-size: 30px;

margin-bottom: 20px;

color: #ffffff;

}

.intro p {
color: #d6d6d6;
}


/* =========================
   FOOTER
============================= */

footer {

text-align: center;

padding: 60px 20px 40px 20px;

color: #888;

font-size: 14px;

}

.email {

color: #cccccc;

text-decoration: none;

}

.email:hover {
text-decoration: underline;
}


/* =========================
   ANIMATIES
============================= */

@keyframes dustFloat {

0% { transform: translate(-50%,0); }
100% { transform: translate(-50%,-220px); }

}

@keyframes fadeLogo {

0% { opacity:0; transform: translateY(-10px); }
100% { opacity:1; transform: translateY(0); }

}

@keyframes logoFloat {

0% { transform: translateY(0px); }
50% { transform: translateY(-3px); }
100% { transform: translateY(0px); }

}

@keyframes fadeIntro {

0% { opacity:0; transform: translateY(10px); }
100% { opacity:1; transform: translateY(0); }

}


/* =========================
   LIGHTBOX
============================= */

.lightbox {

display: none;

position: fixed;

z-index: 1000;

left: 0;
top: 0;

width: 100%;
height: 100%;

background: rgba(0,0,0,0.85);

justify-content: center;
align-items: center;

}

.lightbox img {

max-width: 90%;
max-height: 90%;

border-radius: 6px;

box-shadow: 0 20px 60px rgba(0,0,0,0.8);

cursor: pointer;

}

.lightbox-prev,
.lightbox-next {

position: absolute;

top: 50%;
transform: translateY(-50%);

font-size: 50px;
color: white;

padding: 10px 16px;

cursor: pointer;

user-select: none;

opacity: 0.6;
transition: opacity 0.2s;

}

.lightbox-prev:hover,
.lightbox-next:hover {
opacity: 1;
}

.lightbox-prev {
left: 30px;
}

.lightbox-next {
right: 30px;
}


/* =========================
   SITE NAV
============================= */

.site-nav {
  position: relative;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--bar-h);
  padding: 0 12px;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(6px);
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* zelfde lichtlijn als onderaan de maker-bar, zodat ze exact op elkaar liggen */
.site-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  opacity: 0.6;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.site-nav a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.site-nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* =========================
   MOBILE
============================= */

@media (max-width:700px){

.top-hover{
display:none;
}

.maker-bar{
display:none;
}

.site-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 2px;
  padding: 0 8px;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  white-space: nowrap;
  font-size: 12px;
  padding: 4px 8px;
}

.hero {
padding: 80px 20px 40px 20px;
}

.logo {
max-width: 80%;
}

.intro h1 {
font-size: 24px;
}

.intro p {
font-size: 15px;
}

}


/* =========================
   LARGE SCREENS
============================= */

@media (min-width:1400px){

.intro h1{
font-size: 36px;
}

.intro p{
font-size: 18px;
}

}

/* Phase 6 accessibility */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
