/* --- VARIABLES --- */
:root {
    --primary-color: #0077CC; --on-primary: #FFFFFF; --primary-container: #CCEAFF; --on-primary-container: #001E33;
    --secondary-color: #5D3399; --tertiary-color: #CC0077;
    --background: #FCFCFD; --on-background: #171A1C; --surface: #FFFFFF; --on-surface: #171A1C;
    --on-surface-muted: #6C757D; --border-color: #DEE2E6; --border-radius: 12px;
}
html[data-theme="dark"] {
    --primary-color: #66B2FF; --on-primary: #003355; --primary-container: #004A77; --on-primary-container: #CCEAFF;
    --secondary-color: #C3A9FF; --tertiary-color: #FF80BF;
    --background: #121212; --on-background: #EAEAEA; --surface: #1E1E1E; --on-surface: #EAEAEA;
    --on-surface-muted: #9E9E9E; --border-color: #333333;
}

/* --- GENERAL --- */
body { font-family: 'Poppins', sans-serif; background-color: var(--background); color: var(--on-background); transition: background-color 0.3s, color 0.3s; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.btn { border-radius: 8px; padding: 0.75rem 1.5rem; font-weight: 600; text-decoration: none; display: inline-block; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; font-size: 1rem; }
.btn-primary { background-color: var(--primary-color); color: var(--on-primary); }
.btn-primary:hover { background-color: #005fa3; transform: translateY(-2px); box-shadow: 0 4px 15px hsla(205, 100%, 40%, 0.3); }
.btn-secondary { background-color: rgba(0, 30, 51, 0.1); color: var(--on-primary-container); border: 1px solid transparent; }
.btn-secondary:hover { background-color: rgba(0, 30, 51, 0.2); }
html[data-theme="dark"] .btn-secondary { background-color: rgba(204, 234, 255, 0.1); color: var(--on-primary-container); }
html[data-theme="dark"] .btn-secondary:hover { background-color: rgba(204, 234, 255, 0.2); }
.page-section { padding: 5rem 0; }
.alternate-bg { background-color: var(--surface); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--on-surface); }
.section-header p { font-size: 1.1rem; color: var(--on-surface-muted); max-width: 600px; margin: 0 auto; }

/* --- HEADER & NAV --- */
.site-header { background-color: hsla(0, 0%, 100%, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
html[data-theme="dark"] .site-header { background-color: hsla(0, 0%, 7%, 0.8); }
.main-nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 600; color: var(--on-surface); font-size: 1.1rem; flex-shrink: 0; }
.logo img { height: 28px; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; padding: 0.5rem 1rem; color: var(--on-surface); text-decoration: none; border-radius: 6px; transition: background-color 0.2s, color 0.2s; font-size: 0.95rem; }
.nav-item:hover > a { background-color: var(--primary-container); color: var(--on-primary-container); }
.nav-item.has-megamenu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item-full-width { position: static; } /* FIX: This is needed for the full-width menu to span the page correctly */
.mega-menu { 
    position: absolute; 
    top: 70px; /* FIX: Position relative to the viewport, not the nav-item, to prevent disappearing and misalignment */
    left: 0; /* Align to the left edge of the viewport */
    width: 100%; /* Make it full width */
    background: var(--surface); 
    color: var(--on-surface); 
    border-radius: 0 0 var(--border-radius) var(--border-radius); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.1); 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: opacity 0.3s, transform 0.3s; 
    border: 1px solid var(--border-color); 
    border-top: none;
}
/* This targets non-full-width menus to position them correctly relative to their parent */
.nav-item:not(.nav-item-full-width) .mega-menu {
    top: 100%; /* Position below the nav item */
    left: 0; /* Align to the nav item's left edge */
    width: max-content; /* Make it as wide as its content */
    min-width: 240px;
    border-radius: var(--border-radius); /* Restore border radius */
    border-top: 1px solid var(--border-color); /* Restore top border */
}
.mega-menu-content { display: flex; gap: 2rem; padding: 1.5rem; }
.mega-menu-column { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.mega-menu-title { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--on-surface); transition: color 0.2s; padding: 0.5rem; border-radius: 6px; }
.mega-menu-title:hover { color: var(--on-primary-container); background-color: var(--primary-container); }
.mega-icon { width: 20px; height: 20px; }
.mega-submenu { list-style: none; padding: 0; margin: 0 0 0 32px; display: flex; flex-direction: column; gap: 0.5rem; }
.mega-submenu a { color: var(--on-surface-muted); text-decoration: none; font-size: 0.9rem; }
.mega-submenu a:hover { color: var(--primary-color); }
.nav-controls { display: flex; align-items: center; gap: 0.5rem; }
.nav-cta { white-space: nowrap; }
.mobile-menu-toggle { display: none; } /* FIX: Default state is hidden on desktop */

/* --- HERO ROUNDED --- */
.hero-header-rounded { padding-top: 5rem; padding-bottom: 6rem; position: relative; overflow: hidden; background: linear-gradient(to bottom, hsl(205, 100%, 90%), #cceaff); color: var(--on-primary-container); border-radius: 0 0 50px 50px; }
html[data-theme="dark"] .hero-header-rounded { background: linear-gradient(to bottom, #001E33, #1c1535); color: var(--on-primary-container); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.hero-text h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; color: #001E33; }
html[data-theme="dark"] .hero-text h1 { color: #CCEAFF; }
.hero-text p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 500px; }
.hero-visual img { width: 100%; max-width: 400px; display: block; margin: 0 auto; }
.hero-actions-group { margin-top: 2rem; }
.hero-buttons { display: flex; align-items: center; gap: 1rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
/* FIX: Styling for the tags */
.hero-tags span { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.9rem; padding: 0.4rem 0.8rem; border-radius: 6px; border: 1px solid var(--primary-color); background-color: rgba(0, 119, 204, 0.05); }
html[data-theme="dark"] .hero-tags span { border-color: var(--primary-color); background-color: rgba(102, 178, 255, 0.1); }

/* --- VERBETERDE WOLKEN ANIMATIE --- */
@keyframes float-subtle-1 { 0% { transform: translateX(-100px) translateY(0); } 50% { transform: translateX(50px) translateY(-10px); } 100% { transform: translateX(-100px) translateY(0); } }
@keyframes float-subtle-2 { 0% { transform: translateX(50px) translateY(0); } 50% { transform: translateX(-50px) translateY(5px); } 100% { transform: translateX(50px) translateY(0); } }
.clouds-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cloud { position: absolute; }
.cloud img { width: 100%; opacity: 0.5; }
html[data-theme="dark"] .cloud img { opacity: 0.3; filter: brightness(0.8); }
.cloud-1 { top: 10%; left: 5%; width: 250px; animation: float-subtle-1 35s ease-in-out infinite; }
.cloud-2 { top: 20%; left: 80%; width: 200px; animation: float-subtle-2 42s ease-in-out infinite; }
.cloud-3 { top: 70%; left: 15%; width: 300px; animation: float-subtle-2 53s ease-in-out infinite; }
.cloud-4 { top: 80%; left: 70%; width: 220px; animation: float-subtle-1 40s ease-in-out infinite; }
.cloud-5 { top: 40%; left: 40%; width: 180px; animation: float-subtle-1 58s ease-in-out infinite; opacity: 0.7; }
.cloud-6 { top: 5%; left: 45%; width: 350px; animation: float-subtle-2 65s ease-in-out infinite; opacity: 0.5; }

/* --- SERVICES & KNOWLEDGE --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-card { display: block; background-color: var(--surface); border: 1px solid var(--border-color); padding: 2rem; border-radius: var(--border-radius); text-decoration: none; transition: all 0.3s; border-top: 4px solid var(--service-color, var(--primary-color)); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.service-icon img { width: 36px; height: 36px; margin-bottom: 1rem; }
.service-card h3 { color: var(--on-surface); font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-link { color: var(--primary-color); display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.knowledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.knowledge-column h3 { font-size: 1.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.article-card-small { display: block; text-decoration: none; padding: 1rem; border-radius: 8px; transition: background-color 0.2s; border: 1px solid var(--border-color); margin-bottom: 1rem; }
.article-card-small:hover { background-color: var(--primary-container); }
.article-card-small h4 { margin: 0 0 0.25rem 0; color: var(--on-surface); }
.article-card-small p { margin: 0; color: var(--on-surface-muted); font-size: 0.9rem; }

/* --- FOOTER --- */
.site-footer { background-color: var(--surface); border-top: 1px solid var(--border-color); padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-column h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column ul li a { display: block; padding: 0.25rem 0; color: var(--on-surface-muted); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border-color); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--on-surface-muted); }

/* --- COOKIE BANNER --- */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 500px; margin: auto; background-color: var(--surface); color: var(--on-surface); border: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0,0,0,0.1); padding: 1.5rem; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: space-between; gap: 1rem; z-index: 2000; transform: translateY(200%); transition: transform 0.5s ease-in-out; }
.cookie-banner.show { transform: translateY(0); }

/* --- FLOATING SETTINGS BUTTON --- */
.floating-settings { position: fixed; bottom: 2rem; right: 2rem; z-index: 1010; display: flex; flex-direction: column; align-items: flex-end; }
.fab-settings { width: 56px; height: 56px; background-color: var(--primary-color); color: var(--on-primary); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.2s ease-in-out, background-color 0.2s; }
.fab-settings:hover { transform: scale(1.1); }
.fab-settings .material-icons-round { transition: transform 0.3s ease; }
.floating-settings.is-open .fab-settings .material-icons-round { transform: rotate(90deg); }
.settings-panel-fab { margin-bottom: 12px; background-color: var(--surface); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: 0 5px 20px rgba(0,0,0,0.15); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease; }
.floating-settings.is-open .settings-panel-fab { opacity: 1; visibility: visible; transform: translateY(0); }
.settings-panel-fab .settings-group { display: flex; align-items: center; gap: 0.5rem; background-color: var(--background); padding: 0.25rem; border-radius: 8px; }
.icon-button { background: none; border: none; color: var(--on-surface-muted); cursor: pointer; padding: 0.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-button:hover { color: var(--primary-color); background-color: var(--primary-container); }
.theme-icon-dark, html[data-theme="dark"] .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-icon-dark { display: block; }
.settings-panel-fab .lang-switcher a { text-decoration: none; color: var(--on-surface-muted); font-weight: 600; font-size: 0.9rem; padding: 0.25rem 0.5rem; border-radius: 6px; }
.settings-panel-fab .lang-switcher a.active { color: var(--primary-color); background-color: var(--primary-container); }

/* --- MOBILE NAVIGATION & RESPONSIVENESS --- */
.mobile-nav { position: fixed; top: 0; right: 0; width: 100%; max-width: 320px; height: 100vh; background-color: var(--surface); z-index: 9999; transform: translateX(100%); transition: transform 0.3s ease-in-out; padding: 1.5rem; box-shadow: -10px 0 30px rgba(0,0,0,0.1); overflow-y: auto; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-close { position: absolute; top: 10px; right: 10px; }
.mobile-nav-links { list-style: none; padding: 40px 0 0 0; margin: 0; }
.mobile-nav-item { border-bottom: 1px solid var(--border-color); position: relative; }
.mobile-nav-main-link { display: block; padding: 1rem 0; text-decoration: none; color: var(--on-surface); font-weight: 600; }
.mobile-nav-item .submenu-toggle { position: absolute; right: 0; top: 0; height: 53px; padding: 0 1rem; color: var(--on-surface-muted); cursor: pointer; background: none; border: none; }
.mobile-submenu { list-style: none; padding-left: 1rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-submenu a { font-weight: 400; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; color: var(--on-surface-muted); text-decoration: none; }
.mobile-nav-item.submenu-is-open .submenu-toggle .material-icons-round { transform: rotate(180deg); }
.mobile-nav-item.submenu-is-open .mobile-submenu { max-height: 500px; }

@media (max-width: 1024px) {
    .nav-links { display: none; } /* FIX: Hide desktop nav */
    .mobile-menu-toggle { display: flex; } /* FIX: Show mobile hamburger icon */
    .logo span { display: none; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-actions-group { display: flex; flex-direction: column; align-items: center; }
    .hero-tags { justify-content: center; }
    .knowledge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nav-cta { display: none; }
    .floating-settings { bottom: 1rem; right: 1rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
}