:root {
    --hub-bg: #0f172a;
    --hub-card-bg: rgba(30, 41, 59, 0.82);
    --hub-item-bg: rgba(255, 255, 255, 0.04);
    --hub-item-hover: rgba(56, 189, 248, 0.1);
    --hub-border: rgba(255, 255, 255, 0.1);
    --hub-text: #f8fafc;
    --hub-muted: #94a3b8;
    --hub-accent: #38bdf8;
    --hub-orange: #ff6200;
}

[data-theme="light"] {
    --hub-bg: #f1f5f9;
    --hub-card-bg: rgba(255, 255, 255, 0.94);
    --hub-item-bg: rgba(15, 23, 42, 0.03);
    --hub-item-hover: rgba(14, 165, 233, 0.08);
    --hub-border: rgba(15, 23, 42, 0.12);
    --hub-text: #0f172a;
    --hub-muted: #475569;
    --hub-accent: #0284c7;
}

html[data-lang="nl"] .lang-en {
    display: none !important;
}

html[data-lang="en"] .lang-nl {
    display: none !important;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--hub-bg);
    color: var(--hub-text);
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Unified Top-Right Controls */
.top-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    color: var(--hub-text);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
}

.control-btn:hover {
    border-color: var(--hub-accent);
    transform: translateY(-2px);
}

.hub-wrapper {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-card {
    background: var(--hub-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--hub-border);
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hub-hero {
    text-align: center;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hub-orange), var(--hub-accent));
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--hub-accent);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.icon-heart {
    font-size: 1.8rem;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
}

.hub-hero h1 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--hub-text);
}

.hub-lead {
    color: var(--hub-muted);
    font-size: 0.98rem;
    max-width: 720px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.hub-features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    color: var(--hub-text);
}

.hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-discover,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-discover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.32) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--hub-text);
}

.btn-discover:hover {
    border-color: var(--hub-accent);
    transform: translateY(-2px);
}

.btn-back {
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    color: var(--hub-text);
}

.btn-back:hover {
    border-color: var(--hub-accent);
    transform: translateY(-2px);
}

.hub-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--hub-text);
}

.hub-section-sub {
    color: var(--hub-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Projects SEO Grid */
.hub-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
}

.hub-project-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--hub-text);
    transition: all 0.2s ease;
    min-width: 0;
}

.hub-project-item:hover {
    background: var(--hub-item-hover);
    border-color: var(--hub-accent);
    transform: translateY(-2px);
}

.hub-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hub-project-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hub-accent);
}

.hub-project-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: var(--hub-accent);
    white-space: nowrap;
}

.hub-project-desc {
    margin: 0;
    font-size: 0.83rem;
    color: var(--hub-muted);
    line-height: 1.45;
}

/* Two-Column Contact + Legal */
.hub-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.email-card {
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.email-icon {
    font-size: 1.6rem;
}

.email-label {
    color: var(--hub-muted);
    font-size: 0.84rem;
}

.email-link {
    color: var(--hub-accent);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.email-link:hover {
    text-decoration: underline;
}

.hub-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hub-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 10px;
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    color: var(--hub-text);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hub-social-pill:hover {
    border-color: var(--hub-accent);
    background: var(--hub-item-hover);
}

.hub-social-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hub-social-gh:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.hub-social-li:hover {
    border-color: #0a66c2;
    background: rgba(10, 102, 194, 0.15);
    color: #60a5fa;
}

.hub-social-yt:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.hub-social-fb:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
    color: #60a5fa;
}

.hub-social-cb:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

/* Legal & Docs list */
.hub-legal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-legal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    text-decoration: none;
    color: var(--hub-text);
    transition: all 0.2s ease;
}

a.hub-legal-item:hover {
    border-color: var(--hub-accent);
    background: var(--hub-item-hover);
}

.legal-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hub-legal-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hub-legal-item strong {
    font-size: 0.88rem;
    color: var(--hub-text);
}

.hub-legal-item span {
    font-size: 0.79rem;
    color: var(--hub-muted);
}

/* Standards & Meta */
.hub-ref-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
}

.hub-ref-links a {
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--hub-item-bg);
    border: 1px solid var(--hub-border);
    color: var(--hub-accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hub-ref-links a:hover {
    border-color: var(--hub-accent);
    background: var(--hub-item-hover);
}

.hub-meta {
    margin: 0;
    font-size: 0.79rem;
    color: var(--hub-muted);
    text-align: center;
}

.tracking-pixel {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.easter-egg-spin {
    animation: spin-heart 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes spin-heart {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Compact desktop & Windows 125%-150% scaling */
@media (min-width: 769px) and (max-width: 1500px), (min-width: 769px) and (max-height: 820px) {
    body {
        padding: 18px 14px 28px;
    }
    .hub-wrapper {
        gap: 14px;
    }
    .hub-card {
        padding: 18px 20px;
    }
    .hub-hero h1 {
        font-size: 1.5rem;
    }
    .hub-lead {
        font-size: 0.92rem;
        margin-bottom: 14px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 68px 12px 24px;
    }
    .hub-card {
        padding: 18px 16px;
    }
    .hub-hero h1 {
        font-size: 1.45rem;
    }
}
