/* CSS Variables */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;
    --color-text: #1a1a1a;
    --color-text-muted: #6b7280;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e7eb;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 18px;
    --font-size-sm: 15px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;

    --max-width: 720px;
    --spacing-section: 16px;
}

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

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

/* Section Header with Link */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
}

h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 4px;
}

p {
    color: var(--color-text-muted);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    padding: 48px 0 var(--spacing-section);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-image {
    flex-shrink: 0;
}

.headshot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg-alt);
}

.hero-text h1 {
    margin-bottom: 8px;
}

.tagline {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 8px;
}

.current-role {
    font-size: var(--font-size-sm);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Sections */
.section {
    padding: var(--spacing-section) 0;
}

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

.section-intro {
    font-size: var(--font-size-base);
    margin-bottom: 24px;
    max-width: 600px;
}

/* About */
.about-text {
    font-size: var(--font-size-base);
    color: var(--color-text);
    margin-bottom: 24px;
}

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

/* Vertical Timeline with Logos */
.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-logo {
    position: absolute;
    left: -60px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-logo img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.timeline-item:hover .timeline-logo {
    border-color: var(--color-accent);
}

.timeline-item:hover .timeline-logo img {
    opacity: 1;
}

.timeline-item.current .timeline-logo {
    border-color: var(--color-accent);
    background-color: rgba(37, 99, 235, 0.1);
}

.timeline-item.current .timeline-logo img {
    opacity: 1;
}

.timeline-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

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

.timeline-years {
    font-size: 13px;
    color: var(--color-text-muted);
}

.timeline-role {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Investments Grid */
.investments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.investment-item {
    background-color: var(--color-bg);
    padding: 20px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease;
}

.investment-item:hover {
    border-color: var(--color-accent);
}

/* Media List */
.media-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.media-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    background-color: var(--color-bg);
    transition: background-color 0.2s ease;
}

.media-item:hover {
    background-color: var(--color-bg-alt);
}

.media-source {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: 600;
}

.media-title {
    font-size: var(--font-size-base);
    color: var(--color-text);
    font-weight: 500;
}

.media-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.view-all {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Featured Media & Video Embed */
.featured-media {
    margin-bottom: 48px;
}

.featured-media h3 {
    margin-bottom: 16px;
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    font-weight: 500;
}

.video-embed {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.video-embed iframe {
    border-radius: 12px;
}

.media-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Section H3 */
.section h3 {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 16px;
    margin-top: 32px;
}

.section h3:first-of-type {
    margin-top: 0;
}

/* Conference Talks Grid */
.talks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.talk-item {
    background-color: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.talk-event {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.talk-topic {
    font-size: 13px;
    color: var(--color-text-muted);
}

.talk-year {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 500;
}

/* Video Badge */
.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.video-badge::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid white;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* Clickable talk items */
a.talk-item {
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.talk-item:hover {
    border-color: var(--color-accent);
    background-color: var(--color-bg-alt);
}

.has-video {
    position: relative;
}

/* Press Section */
.press-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.press-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    background-color: var(--color-bg);
    transition: background-color 0.2s ease;
}

.press-item:hover {
    background-color: var(--color-bg-alt);
}

.press-publication {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
}

.press-title {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    font-weight: 500;
}

.press-year {
    font-size: 13px;
    color: var(--color-text-muted);
}


.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    color: white;
}

.follower-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    text-align: center;
}

.footer-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.footer-location {
    font-size: var(--font-size-sm);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Projects */
.project-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--color-accent);
}

.project-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-accent);
}

.project-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 12px;
}

.project-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-size: 13px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 4px 12px;
    font-weight: 500;
}

/* Flight Card Mock */
.flight-mock {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 14px;
}

.flight-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.flight-mock-flight {
    font-weight: 600;
    color: var(--color-text);
}

.flight-mock-status {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background-color: #f0fdf4;
    padding: 2px 8px;
    border-radius: 10px;
}

.flight-mock-route {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.flight-mock-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-accent);
}

.flight-mock-timer {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 36px;
        --font-size-2xl: 28px;
        --spacing-section: 32px;
    }

    .hero {
        padding: 32px 0 24px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .headshot {
        width: 120px;
        height: 120px;
    }

    .social-links {
        justify-content: center;
    }

    /* Vertical Timeline - Mobile */
    .timeline {
        padding-left: 50px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-logo {
        left: -50px;
        width: 32px;
        height: 32px;
    }

    .timeline-logo img {
        width: 16px;
        height: 16px;
    }

    .investments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .press-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .press-year {
        margin-top: 4px;
    }

}

@media (max-width: 480px) {
    .investments-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .section {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
