@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-blue: #0052cc;
    --primary-blue-dark: #003d99;
    --primary-blue-light: #e6f0ff;
    --accent-gold: #ffcc00;
    --text-main: #1a1a1a;
    --text-muted: #5e6c84;
    --bg-white: #ffffff;
    --bg-off-white: #f4f5f7;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

p {
    margin-bottom: var(--space-sm);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-sm) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 90px;

    img {
        height: 90px;
    }
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.button {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--primary-blue);
    color: var(--bg-white);
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
}

.button:hover {
    background-color: var(--primary-blue-dark);
}

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: calc(var(--space-xl) + 90px) 0 var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.definition {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.definition em {
    display: block;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

/* Main Content Sections */
section {
    padding: var(--space-lg) 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.portrait-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portrait-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portrait-container:hover img {
    transform: scale(1.05);
}

/* CV Section Items */
.cv-item {
    padding: var(--space-md);
    border-radius: 12px;
    background: var(--bg-off-white);
    margin-bottom: var(--space-sm);
    transition: var(--transition);
}

.cv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Tarieven Cards */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.rate-card {
    padding: var(--space-md);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.rate-card.featured {
    background-color: var(--primary-blue-light);
    border-color: var(--primary-blue);
}

.rate-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: var(--space-sm) 0;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: var(--space-lg) 0 var(--space-md);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-copy {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.mobile-menu-toggle {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: calc(var(--space-lg) + 90px) 0 var(--space-lg) 0;
    }

    .mobile-menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        user-select: none;
    }

    .columns {
        flex-direction: column;
    }
}

.columns {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* PDF Container */
.pdf-container {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-off-white);
    border-radius: 12px;
}

.tech-item {
    display: none;
}

.tech-item.active {
    display: block;
}

/* Technieken: layout + tabs + panel */
.tech-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-md);
    align-items: start;
    margin-top: var(--space-md);
}

.tech-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    position: sticky;
    top: calc(90px + var(--space-md)); /* header hoogte + ruimte */
    border-radius: 14px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.tech-tabs li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-tab {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0.95rem 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.tech-tab:hover {
    background: rgba(0, 82, 204, 0.06);
    color: var(--primary-blue);
}

.tech-tab:focus-visible {
    outline: 3px solid rgba(0, 82, 204, 0.35);
    outline-offset: -3px;
}

.tech-tab.active {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    position: relative;
}

.tech-tab.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-blue);
}

.tech-panel {
    border-radius: 16px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.25rem;
    min-height: 260px;
}

.tech-panel h3 {
    margin-bottom: 0.75rem;
}

.tech-subtitle {
    font-weight: 500;
    color: var(--text-muted);
}

.tech-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-badges li {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 82, 204, 0.08);
    border: 1px solid rgba(0, 82, 204, 0.18);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive: tabs boven, panel eronder */
@media (max-width: 768px) {
    .tech-layout {
        grid-template-columns: 1fr;
    }

    .tech-tabs {
        position: static;
    }

    .tech-tab {
        padding: 0.85rem 1rem;
    }

    .tech-panel {
        padding: 1rem;
    }
}

/* Chat UI Styles */
.chat-container {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: 70vh;
}

.chat-messages {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-off-white);
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeInUp 0.3s ease forwards;
}

.chat-message.user-message {
    align-self: flex-end;
}

.chat-message.assistant-message {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.user-message .message-content {
    background: var(--primary-blue);
    color: var(--bg-white);
    border-bottom-right-radius: 4px;
}

.assistant-message .message-content {
    background: var(--bg-white);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.thinking-text {
    font-style: italic;
    color: var(--text-muted);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.chat-input-area {
    display: flex;
    padding: var(--space-sm);
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.chat-input-area button {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}
