:root {
    --bg-dark: #0a0a0a;
    --surface-dark: #141414;
    --surface-hover: #1f1f1f;
    --border-dark: #262626;
    --border-hover: #3b82f655;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #3b82f6;
    --font-sans: 'Inter', sans-serif;

    /* Tag Colors */
    --tag-react: #61dafb;
    --tag-supabase: #3ecf8e;
    --tag-gemini: #8e24aa;
    --tag-n8n: #ff6d5a;
    --tag-gmail: #ea4335;
    --tag-notion: #ffffff;
    --tag-claude: #d97757;
    --tag-stitch: #f50057;
    --tag-antigravity: #00e5ff;
    --tag-midjourney: #6b21a8;
    --tag-suno: #ef4444;
    --tag-kling: #eab308;
    --tag-grok: #3b82f6;
    --tag-freepik: #3b82f6;
    --tag-elevenlabs: #ffffff;
    --tag-github: #ffffff;
    --tag-docker: #2496ed;
    --tag-vps: #10b981;
    --tag-webhooks: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--accent-blue);
    color: #fff;
}

/* Background effects */
.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.05), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, #71717a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.lang-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lang-toggle span {
    transition: color 0.2s;
}

.lang-toggle span.active {
    color: var(--text-primary);
    font-weight: 600;
}

.lang-separator {
    color: var(--border-dark);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    gap: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #fff;
    color: var(--bg-dark);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    background-color: var(--surface-dark);
}

.btn-linkedin {
    background-color: #0077b5;
    color: #fff;
    border-radius: 12px;
    gap: 8px;
}

.btn-linkedin:hover {
    background-color: #006396;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 119, 181, 0.2);
}

.btn-outline {
    background-color: var(--surface-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
}

.btn-outline:hover {
    border-color: #555;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Interactive Cards */
.interactive-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.interactive-card:hover::before {
    opacity: 1;
}

.interactive-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    min-height: 200px;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.arrow-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.tag {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-react {
    color: var(--tag-react);
    border-color: rgba(97, 218, 251, 0.2);
    background: rgba(97, 218, 251, 0.05);
}

.tag-supabase {
    color: var(--tag-supabase);
    border-color: rgba(62, 207, 142, 0.2);
    background: rgba(62, 207, 142, 0.05);
}

.tag-gemini {
    color: var(--tag-gemini);
    border-color: rgba(142, 36, 170, 0.2);
    background: rgba(142, 36, 170, 0.05);
}

.tag-n8n {
    color: var(--tag-n8n);
    border-color: rgba(255, 109, 90, 0.2);
    background: rgba(255, 109, 90, 0.05);
}

.tag-gmail {
    color: var(--tag-gmail);
    border-color: rgba(234, 67, 53, 0.2);
    background: rgba(234, 67, 53, 0.05);
}

.tag-notion {
    color: var(--tag-notion);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.tag-claude {
    color: var(--tag-claude);
    border-color: rgba(217, 119, 87, 0.2);
    background: rgba(217, 119, 87, 0.05);
}

.tag-stitch {
    color: var(--tag-stitch);
    border-color: rgba(245, 0, 87, 0.2);
    background: rgba(245, 0, 87, 0.05);
}

.tag-antigravity {
    color: var(--tag-antigravity);
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.05);
}

.tag-midjourney {
    color: var(--tag-midjourney);
    border-color: rgba(107, 33, 168, 0.2);
    background: rgba(107, 33, 168, 0.05);
}

.tag-suno {
    color: var(--tag-suno);
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.tag-kling {
    color: var(--tag-kling);
    border-color: rgba(234, 179, 8, 0.2);
    background: rgba(234, 179, 8, 0.05);
}

.tag-grok {
    color: var(--tag-grok);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.tag-freepik {
    color: var(--tag-freepik);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.tag-elevenlabs {
    color: var(--tag-elevenlabs);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.tag-github {
    color: var(--tag-github);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.tag-docker {
    color: var(--tag-docker);
    border-color: rgba(36, 150, 237, 0.2);
    background: rgba(36, 150, 237, 0.05);
}

.tag-vps {
    color: var(--tag-vps);
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.tag-webhooks {
    color: var(--tag-webhooks);
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.05);
}


/* Stack Section */
.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    width: 140px;
    cursor: default;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid var(--border-dark);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.02);
}

.icon-claude {
    color: var(--tag-claude);
}

.icon-n8n {
    color: var(--tag-n8n);
}

.icon-notion {
    color: var(--tag-notion);
}

.icon-antigravity {
    color: var(--tag-antigravity);
}

.icon-github {
    color: var(--tag-github);
}

.icon-supabase {
    color: var(--tag-supabase);
}

.icon-gemini {
    color: var(--tag-gemini);
}

.icon-docker {
    color: var(--tag-docker);
}

.icon-vps {
    color: var(--tag-vps);
}

.icon-webhooks {
    color: var(--tag-webhooks);
}

.icon-google-flow {
    color: var(--tag-gemini);
}

.icon-grok {
    color: var(--tag-grok);
}

.icon-freepik {
    color: var(--tag-freepik);
}

.icon-elevenlabs {
    color: var(--tag-elevenlabs);
}

.icon-suno {
    color: var(--tag-suno);
}

.stack-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    border-top: 1px solid var(--border-dark);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
}

.contact-card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Changelog Section */
.changelog-section {
    border-top: 1px solid var(--border-dark);
}

.changelog-wrapper {
    position: relative;
    height: 480px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* Fade top and bottom edges */
    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 12%,
        black 88%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent,
        black 12%,
        black 88%,
        transparent
    );
    outline: none;
}

.changelog-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.changelog-wrapper:focus-visible {
    box-shadow: 0 0 0 2px var(--accent-blue);
    border-radius: 12px;
}

.changelog-ticker-inner {
    display: flex;
    flex-direction: column;
    padding: 60px 0; /* Add top and bottom buffer for the mask */
}

/* Pause/play toggle */
.changelog-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.changelog-pause-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
}

.changelog-pause-btn:hover,
.changelog-pause-btn:focus-visible {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    outline: none;
}

.changelog-pause-btn .material-icons {
    font-size: 16px;
}

.changelog-actions {
    display: none;
}

/* Reduced motion: disable auto-scroll, show all items */
@media (prefers-reduced-motion: reduce) {
    .changelog-wrapper {
        height: auto;
        max-height: none;
        mask-image: none;
        -webkit-mask-image: none;
        overflow-y: visible;
    }

    /* Hide the duplicate list */
    .changelog-list[aria-hidden="true"] {
        display: none;
    }

    .changelog-pause-btn {
        display: none;
    }
}

.changelog-list {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-dark);
}

.changelog-entry {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0 16px 16px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-left: -4px;
    padding-left: 20px;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 2px solid var(--border-dark);
    transition: all 0.3s ease;
    z-index: 1;
}

.changelog-entry:hover {
    background: var(--surface-dark);
}

.changelog-entry:hover::before {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.changelog-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}

.changelog-label {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.label-gebouwd {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.label-geleerd {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.label-gepubliceerd {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.changelog-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-entry:hover .changelog-text {
    color: var(--text-primary);
}

/* Pipeline / Stack-kaart Section */
.pipeline-section {
    border-top: 1px solid var(--border-dark);
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    min-width: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pipeline-node:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.pipeline-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.pipeline-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pipeline-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

.pipeline-arrow {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    opacity: 0.4;
}

.pipeline-arrow .material-icons {
    font-size: 1.25rem;
}

/* Timeline Section */
.timeline-section {
    border-top: 1px solid var(--border-dark);
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
}

.timeline-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 32px;
}

.timeline-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-annotation-container {
    display: flex;
    justify-content: center;
}

.timeline-annotation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(142, 36, 170, 0.1);
    border: 1px solid rgba(142, 36, 170, 0.3);
    color: var(--tag-gemini);
    font-size: 0.875rem;
    font-weight: 600;
}

.timeline-skills h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.pill-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
}

.skill-pill:hover .pill-count {
    opacity: 1;
    color: var(--accent-blue);
}

.timeline-skills-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    opacity: 0.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-dark);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .changelog-entry {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .changelog-date {
        min-width: unset;
    }

    .pipeline-flow {
        flex-direction: column;
        gap: 4px;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .pipeline-node {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }

    .logo {
        margin-right: 12px;
    }

    .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        font-size: 0.8rem;
        padding-bottom: 4px; /* Slight padding for smooth scrolling feel */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a, .lang-toggle {
        white-space: nowrap;
        flex-shrink: 0;
    }
}