:root {
    --font-base: 16px;
}

[data-fontsize="small"] {
    --font-base: 14px;
}

[data-fontsize="medium"] {
    --font-base: 16px;
}

[data-fontsize="large"] {
    --font-base: 19px;
}

[data-fontsize="xl"] {
    --font-base: 22px;
}


:root,
[data-theme="light"] {
    --bg-page: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-panel: #ffffff;
    --bg-button: #000;
    --bg-stats: #000;
    --text-primary: #0a0a0a;
    --text-muted: rgba(10, 10, 10, 0.55);
    --text-ghost: rgba(10, 10, 10, 0.35);
    --text-secundair: #fff;
    --text-secundair-2: #fff;
    --bg-button-2: #000;
    --bg-stats-2: #fafafa;


    --border-nav: rgba(229, 229, 229, 0.6);
    --border-subtle: #e5e5e5;
    --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.12);
    --svg-color: black;
    --svg-filter: none;
}


[data-theme="dark"] {
    --bg-page: #171717;
    --bg-nav: rgba(23, 23, 23, 0.9);
    --bg-panel: #262626;
    --bg-button: #000;
    --bg-stats: #262626;
    --bg-button-2: #fff;
    --bg-stats-2: #262626;


    --text-primary: #f0f0f0;
    --text-muted: rgba(240, 240, 240, 0.55);
    --text-ghost: rgba(240, 240, 240, 0.3);
    --text-secundair-2: #000;

    --border-nav: rgba(255, 255, 255, 0.08);
    --border-subtle: #333333;
    --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.5);
    --svg-color: white;
    --svg-filter: invert(0.9) brightness(1.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Inter, sans-serif;
    font-size: calc(var(--font-base) * 1.3);
    padding-inline: 16px;
    background: var(--bg-page);
    color: var(--text-primary);
    transition: background 0.25s, color 0.25s;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-nav);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    font-size: calc(var(--font-base) * 1.1);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    min-width: 120px;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-links a {
    text-decoration: none;
    font-size: calc(var(--font-base) * 0.875);
    font-weight: 300;
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--border-nav);
}

.nav-links a.current {
    color: var(--text-primary);
    font-weight: 500;
}


.modes {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
    position: relative;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    color: var(--text-primary);
}

.icon-btn:hover {
    background: var(--border-nav);
}

.icon-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}


[data-theme="light"] #themeImg {
    content: url('../img/moon.svg');
}

[data-theme="dark"] #themeImg {
    content: url('../img/sun.svg');
}


[data-theme="dark"] #fontBtn img {
    filter: invert(1);
}


.font-panel-wrapper {
    position: relative;
}

.font-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-panel);
    padding: 14px;
    min-width: 170px;
    z-index: 200;
}

.font-panel.open {
    display: block;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.font-panel-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-ghost);
    margin-bottom: 8px;
    padding: 0 4px;
}

.font-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.font-options button {
    background: none;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.12s;
    width: 100%;
}

.font-options button:hover,
.font-options button.active {
    background: var(--border-nav);
    font-weight: 500;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}


.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.carousel {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: #111;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.65s ease;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.slide.active {
    opacity: 1;
}

.slide-text {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 32px;
    pointer-events: none;
}

.slide-text h2 {
    font-size: calc(var(--font-base) * 2);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.slide-text p {
    font-size: calc(var(--font-base) * 1);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.carousel-btn.prev {
    left: 24px;
}

.carousel-btn.next {
    right: 24px;
}



.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.35);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 100px;
    gap: 10px;
}

.hero h1 {
    font-size: calc(var(--font-base)*4);
}

.hero p {
    padding: 15px;
    max-width: 700px;
    font-size: calc(var(--font-base)*1.2);
}

.hero button {
    padding: 0.7rem 1.5rem 0.8rem 1.5rem;
    justify-content: center;
    align-items: center;
    border-radius: 1398100rem;
    background: var(--bg-button);
    color: var(--text-secundair);
    border: none;
}

.funfacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 150px;
    background: var(--bg-stats);
    padding: 70px 0;

}

.funfacts h1 {
    font-size: calc(var(--font-base) * 1.7);
    color: var(--text-secundair);

}

.funfacts p {
    font-size: calc(var(--font-base) *1.1);
    color: var(--text-secundair);
}

.funfacts div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 32px 32px;
    grid-auto-flow: row;
    grid-template-areas:
        "werkplek beweging"
        "gezond .";
    margin: 4%
}

.werkplek {
    grid-area: werkplek;

}

.beweging {
    grid-area: beweging;

}

.gezond {
    grid-area: gezond;

}

.werkplek h1,
.beweging h1,
.gezond h1 {
    color: var(--text-primary);
    font-size: calc(var(--font-base)* 1.8);
    padding: 10px;
}

.werkplek p,
.beweging p,
.gezond p {
    color: var(--text-muted);
    font-size: calc(var(--font-base) * 1.1);
    padding: 10px;
}

.werkplek img,
.beweging img,
.gezond img {
    padding: 10px;
    fill: white;
    filter: var(--svg-filter, none);
}

.werkplek a,
.beweging a,
.gezond a {
    color: var(--text-primary);
    font-size: calc(var(--font-base) * 1.1);
    padding: 10px 10px 10px 50px;
    cursor: pointer;
}


.waarom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background-color: var(--bg-stats-2);
    padding: 120px;
    margin-bottom: 5%;
}

.waarom h1 {
    color: var(--text-primary);
    font-size: calc(var(--font-base) * 2.8);
}

.waarom p {
    color: var(--text-muted);
    font-size: calc(var(--font-base) * 1.3);
}

.waarom button {
    font-size: calc(var(--font-base) * 0.9);
    padding: 10px;
    border-radius: 15px;
    border: none;
}

.buttons {
    display: flex;
    gap: 15px;
}

.buttons button:first-child {

    background-color: var(--bg-button-2);
    color: var(--text-secundair-2);
}

.buttons button:nth-child(2) {
    background-color: var(--bg-button);
    color: var(--text-primary);
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.box div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 100%;
}

.box div h1 {
    color: var(--text-primary);
    font-size: calc(var(--font-base) * 1.5);
    padding-bottom: 15px;
}

.box div p {
    color: var(--text-muted);
    font-size: calc(var(--font-base) * 1);
    max-width: 600px;
}

.box div a {
    display: flex;
    color: var(--text-muted);
    font-size: calc(var(--font-base) * 1);
    max-width: 600px;
    gap: 15px;
}


@media (max-width: 1024px) {
    /* Tablet adjustments if needed */
}


@media (max-width: 768px) {
    nav {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
        align-items: center;
        justify-content: space-between;
    }

    .nav-left {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
    }

    .hamburger {
        display: flex;
        position: static;
        transform: none;
        margin-left: 0;
    }

    .nav-links {
        order: 2;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 8px;
        background: var(--bg-panel);
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        padding: 10px;
        margin-top: 8px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 8px 10px;
        font-size: calc(var(--font-base) * 0.9);
    }

    .modes {
        order: 1;
        flex: 0 1 auto;
        justify-content: flex-end;
    }

    .hero {
        padding: 80px 20px;
    }

    .funfacts {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .info {
        grid-template-columns: 1fr;
        grid-template-areas:
            "werkplek"
            "beweging"
            "gezond";
        margin: 20px;
    }

    .waarom {
        padding: 20px;
    }

    footer {
        flex-direction: column;
    }

    .box {
        flex-direction: column;
    }

    .box div {
        margin-bottom: 20px;
    }
}


@media (max-width: 480px) {
    .nav-links a {
        font-size: calc(var(--font-base) * 0.75);
        padding: 7px 8px;
    }

    .hero {
        padding: 60px 16px;
    }

    .hero h1 {
        font-size: calc(var(--font-base) * 1.8);
    }

    .funfacts {
        gap: 20px;
    }

    .funfacts h1 {
        font-size: calc(var(--font-base) * 1.3);
    }

    .info {
        margin: 10px;
    }
}