/* ==========================================================================
   Basis & Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #121212;
    --color-surface: rgba(30, 30, 30, 0.95);
    --color-text: #e0e0e0;
    --color-text-muted: #b0b0b0;
    --color-accent: #6d4aff;
    --color-accent-hover: #5a3ad6;
    --color-border: #333333;

    --navbar-height: 70px;
    --radius: 6px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* ==========================================================================
   Navigatiebalk
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--color-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 1100; /* Blijft boven het uitklappende menu */
}

/* --- Hamburger knop --- */
.nav-toggle {
    display: none; /* Standaard verborgen op desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/* Animatie naar een kruisje wanneer het menu open is */
.nav-toggle.is-open .hamburger {
    background-color: transparent;
}
.nav-toggle.is-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Menu links (desktop) --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.nav-links li a:hover {
    background-color: rgba(109, 74, 255, 0.15);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(109, 74, 255, 0.3);
    border-color: rgba(109, 74, 255, 0.3);
}

.nav-links li a.active {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(109, 74, 255, 0.4);
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   Layout & Content
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: calc(var(--navbar-height) + 30px) auto 50px;
    padding: 0 20px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #cccccc;
}

code {
    background-color: #1e1e1e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--color-accent);
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color var(--transition);
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #666666;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Knoppen
   ========================================================================== */

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color var(--transition);
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    text-align: center;
    padding: 40px 0;
    color: #666666;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Responsive — Mobiel menu
   ========================================================================== */

@media (max-width: 900px) {
    /* Toon de hamburger knop */
    .nav-toggle {
        display: block !important; /* Forceer zichtbaarheid */
    }

    /* Het menu klapt uit als een paneel onder de navbar */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80%, 320px);
        background-color: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        padding: 60px 20px;
        transform: translateX(100%); /* Standaard buiten beeld */
        transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 1001; /* Zorg dat het boven de content staat */
    }

    /* Wanneer het menu open is, schuift het naar binnen */
    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    /* Hover-effect uitschakelen op touch-apparaten */
    .nav-links li a:hover {
        transform: none;
    }

    /* Actieve knop behoudt zijn stijl */
    .nav-links li a.active {
        pointer-events: none;
    }
}