/* ============================================
   Marcel Verstraete - Personal Website
   Apple/Claude-inspired Design
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-bg: #fafafa;
    --color-bg-secondary: #f5f5f7;
    --color-surface: #ffffff;
    --color-text-primary: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #86868b;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-accent-secondary: #5856d6;
    --color-accent-warm: #34a853;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.04);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --container-width: 1080px;
    --section-spacing: 120px;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg);
}

/* Page Structure */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 113, 227, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(88, 86, 214, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--transition-slow);
}

.hero-headshot {
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--transition-slow) both;
}

.hero-headshot img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(88, 86, 214, 0.1);
    border: 4px solid var(--color-surface);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06) 0%, rgba(88, 86, 214, 0.06) 100%);
    border: 1px solid rgba(88, 86, 214, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--transition-slow) 0.15s both;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s var(--transition-slow) 0.25s both;
}

.hero-description {
    font-size: clamp(18px, 2.5vw, 21px);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s var(--transition-slow) 0.35s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--transition-slow) 0.45s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-text-primary);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

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

/* Main Content */
main {
    flex: 1;
}

/* Section Styles */
section {
    padding: var(--section-spacing) 24px;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: var(--color-text-primary);
}

/* About Section */
.about {
    background: var(--color-surface);
}

.about-content {
    max-width: 720px;
}

.about-content p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    background: var(--color-bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    display: block;
    background: var(--color-surface);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.project-card:nth-child(1) .project-icon {
    background: linear-gradient(135deg, rgba(120, 85, 72, 0.1) 0%, rgba(141, 110, 99, 0.15) 100%);
    color: #6d4c41;
}

.project-card:nth-child(2) .project-icon {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    color: var(--color-accent);
}

.project-card:nth-child(3) .project-icon {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.1) 0%, rgba(66, 133, 244, 0.1) 100%);
    color: var(--color-accent-warm);
}

.project-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.project-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.project-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-bg-secondary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-tertiary);
}

.project-card:nth-child(1) .project-tag {
    background: rgba(120, 85, 72, 0.08);
    color: #6d4c41;
}

.project-card:nth-child(2) .project-tag {
    background: rgba(88, 86, 214, 0.08);
    color: var(--color-accent-secondary);
}

.project-card:nth-child(3) .project-tag {
    background: rgba(52, 168, 83, 0.08);
    color: #2e7d32;
}

/* Connect Section */
.connect {
    background: var(--color-surface);
    text-align: center;
}

.connect-intro {
    font-size: 19px;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: -24px auto 48px;
    line-height: 1.6;
}

.connect-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--color-bg-secondary);
    border-radius: 100px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.connect-link svg {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.connect-link:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.connect-link:hover svg {
    color: var(--color-accent);
}

/* Footer */
footer {
    padding: 40px 24px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .about,
    .projects,
    .connect {
        animation: fadeInUp 0.6s var(--transition-slow) both;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: var(--section-spacing) 20px;
    }

    section h2 {
        margin-bottom: 32px;
    }

    .about-content p {
        font-size: 17px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 24px;
    }

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

    .connect-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .project-card h3 {
        font-size: 20px;
    }
}

/* Focus States for Accessibility */
.btn:focus-visible,
.connect-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: rgba(88, 86, 214, 0.2);
}

/* Subtle color accents on hover */
.project-card:nth-child(1):hover {
    border-color: rgba(120, 85, 72, 0.2);
}

.project-card:nth-child(2):hover {
    border-color: rgba(88, 86, 214, 0.2);
}

.project-card:nth-child(3):hover {
    border-color: rgba(52, 168, 83, 0.2);
}
