/* ============================================
   VandenB.nl - Apple-Style Light Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-text-tertiary: #6e6e73;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-border: #d2d2d7;
    --color-border-light: #e8e8ed;
    --color-card-bg: #ffffff;
    --color-card-shadow: rgba(0, 0, 0, 0.04);
    --color-card-shadow-hover: rgba(0, 0, 0, 0.08);
    --color-overlay: rgba(0, 0, 0, 0.5);
    --color-success: #34c759;
    --color-error: #ff3b30;
    --color-warning: #ff9500;

    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

    --header-height: 52px;
    --section-padding: 100px;
    --container-width: 1080px;
    --container-wide: 1280px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: var(--container-wide);
}


/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition-base);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

.site-logo:hover {
    color: var(--color-text);
    opacity: 0.8;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.site-nav a {
    font-size: 14px;
    color: var(--color-text-tertiary);
    font-weight: 400;
    transition: color var(--transition-fast);
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-text);
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--color-text);
    border-radius: 1px;
}

.nav-login {
    font-weight: 500 !important;
    color: var(--color-accent) !important;
}

.nav-login:hover {
    color: var(--color-accent-hover) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}


/* --- Hero Section --- */
.hero {
    padding: 140px 24px var(--section-padding);
    text-align: center;
}

.hero__title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 400;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.35;
}


/* --- Section Styling --- */
.section {
    padding: var(--section-padding) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 12px;
    text-align: center;
}

.section__subtitle {
    font-size: 19px;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.4;
}


/* --- Project Cards (Hero Cards) --- */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 24px;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.project-card {
    display: block;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-alt);
    min-height: 580px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
}

.project-card:hover {
    transform: scale(1.005);
    box-shadow: var(--shadow-xl);
    color: var(--color-text);
}

.project-card--featured {
    min-height: 680px;
}

.project-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image {
    transform: scale(1.02);
}

.project-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: #fff;
}

.project-card__label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 8px;
}

.project-card__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.project-card__description {
    font-size: 17px;
    opacity: 0.85;
    max-width: 500px;
    line-height: 1.4;
}

/* Card without image - text-only centered card */
.project-card--no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
    color: #fff;
}

.project-card--no-image .project-card__content {
    position: relative;
    background: none;
    padding: 60px 48px;
}

.project-card--no-image .project-card__description {
    margin: 0 auto;
}


/* --- Profile Page --- */
.profile-hero {
    padding: 140px 24px 80px;
    text-align: center;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
}

.profile-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-lg);
}

.profile-name {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 22px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.profile-bio {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 80px;
    font-size: 19px;
    line-height: 1.65;
    color: var(--color-text-tertiary);
    text-align: center;
}

.profile-section {
    padding: 80px 0;
}

.profile-section__title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-align: center;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* Experience */
.experience-list {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.experience-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.experience-role {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.experience-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.social-link svg {
    width: 18px;
    height: 18px;
}


/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* Honeypot field - hidden from users */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.contact-info {
    padding-top: 8px;
}

.contact-info__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item__label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.contact-info-item__value {
    font-size: 16px;
    font-weight: 500;
}


/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn--secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-border-light);
}

.btn--danger {
    background: var(--color-error);
    color: #fff;
}

.btn--danger:hover {
    background: #e0342b;
    color: #fff;
}

.btn--small {
    padding: 8px 18px;
    font-size: 14px;
}

.btn--full {
    width: 100%;
}


/* --- Flash Messages --- */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: flashIn 0.3s ease;
}

.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.flash-error {
    background: #fde8e8;
    color: #c62828;
}

.flash-info {
    background: #e3f2fd;
    color: #1565c0;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Footer --- */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
}

.site-footer p {
    font-size: 13px;
    color: var(--color-text-secondary);
}


/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }


/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 100px 24px;
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state__text {
    font-size: 17px;
    color: var(--color-text-secondary);
}


/* --- Admin Styles --- */
.admin-layout {
    padding-top: calc(var(--header-height) + 32px);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 600;
}

.admin-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.admin-stat__number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
}

.admin-stat__label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.admin-table th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.admin-table td {
    font-size: 15px;
}

.admin-table tr:hover td {
    background: var(--color-bg-alt);
}

.admin-table .thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge--active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge--inactive {
    background: #f5f5f7;
    color: var(--color-text-secondary);
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    padding: 20px;
}

.login-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-card .subtitle {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.login-card .form-group {
    text-align: left;
}

/* Admin form */
.admin-form {
    max-width: 640px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Image preview */
.image-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview__placeholder {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Toggle switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-border);
    border-radius: 14px;
    transition: var(--transition-fast);
}

.toggle__slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle__slider {
    background: var(--color-success);
}

.toggle input:checked + .toggle__slider::before {
    transform: translateX(20px);
}

/* AI Generate Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

.modal h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quick links (admin dashboard) */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.quick-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.quick-link__icon {
    font-size: 24px;
}

/* Settings form */
.settings-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.settings-section p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 48px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav li {
        border-bottom: 1px solid var(--color-border-light);
    }

    .site-nav li:last-child {
        border-bottom: none;
    }

    .site-nav a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }

    .site-nav a.active::after {
        display: none;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .project-card {
        min-height: 400px;
    }

    .project-card--featured {
        min-height: 480px;
    }

    .project-card__content {
        padding: 28px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-name {
        font-size: 32px;
    }

    .admin-form .form-row {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }

    .project-card {
        min-height: 320px;
        border-radius: var(--radius-lg);
    }

    .project-card__title {
        font-size: 24px;
    }
}
