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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #000000;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================
   Layout
   ============================================ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar Navigation
   ============================================ */
.sidebar {
    width: 320px;
    padding: 80px 48px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #000;
    padding: 4px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-indicator {
    font-size: 6px;
    color: #3B4B30;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.nav-link.active .nav-indicator {
    opacity: 1;
}

.nav-link:not(.active) {
    padding-left: 12px;
}

/* ============================================
   Main Content
   ============================================ */
.content {
    flex: 1;
    max-width: 780px;
    padding: 80px 24px;
    margin: 0;
    margin-left: min(12vw, 180px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ============================================
   Home Page
   ============================================ */
.home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}

.home-header-text {
    flex: 1;
}

.title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.handle {
    font-size: 15px;
    color: #5B5449;
    margin-top: 2px;
    font-weight: 450;
}

.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 16px;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ============================================
   Bio / Paragraphs
   ============================================ */
.bio {
    margin-bottom: 48px;
}

.paragraph {
    font-size: 17px;
    color: #000;
    line-height: 1.65;
    margin-bottom: 16px;
    font-weight: 450;
}

.paragraph:last-child {
    margin-bottom: 0;
}



.inline-link {
    color: #76A1F1;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.inline-link:hover {
    opacity: 0.7;
}

/* ============================================
   Divider
   ============================================ */
.divider-line {
    height: 1.5px;
    background-color: rgba(148, 174, 223, 0.1);
    margin: 32px 0;
}

/* ============================================
   Social Links Footer
   ============================================ */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.social-link {
    font-size: 17px;
    color: #76A1F1;
    transition: opacity 0.2s ease;
    font-weight: 600;
}

.social-link:hover {
    opacity: 0.7;
}

/* ============================================
   Page Titles (Projects, Writing, Experience)
   ============================================ */
.page-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

/* ============================================
   Investment / Projects List
   ============================================ */
.investment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.investment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: none;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.investment-item:hover {
    opacity: 0.65;
}

.investment-info {
    flex: 1;
    min-width: 0;
}

.investment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.investment-name {
    font-size: 18px;
    font-weight: 600;
}

.investment-sep {
    font-size: 15px;
    color: #5B5449;
}

.investment-stage {
    font-size: 15px;
    color: #5B5449;
}

.investment-desc {
    font-size: 15px;
    color: #5B5449;
    line-height: 1.5;
    font-weight: 450;
}

/* Badges */
.badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 16px;
    text-transform: uppercase;
}

.badge-yc {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #FFF3E8;
    color: #F26522;
    text-transform: uppercase;
    margin-left: 6px;
}

.badge-harvard {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #F8E8E8;
    color: #A51C30;
    text-transform: uppercase;
    margin-left: 6px;
}

.badge-active {
    background-color: #EBE8D3;
    color: #5C5A2E;
}

.badge-acquired {
    background-color: #E4E4E4;
    color: #444;
}

.badge-inactive {
    background-color: #fff;
    color: #777;
    border: 1px solid #ccc;
}

.investment-cta {
    cursor: default;
}

.investment-cta:hover {
    opacity: 1;
}

.item-link {
    font-size: 14px;
    font-weight: 500;
    color: #5B5449;
    background-color: #F5F4F0;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 16px;
    transition: all 0.2s ease;
}

.investment-item:hover .item-link {
    background-color: #EBE8D3;
    color: #222;
}

.writing-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.blog-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.blog-item:hover {
    opacity: 0.8;
}

.blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.blog-title {
    font-size: 15px;
    font-weight: 500;
}

.blog-arrow {
    font-size: 14px;
    color: #000;
}

.blog-date {
    font-size: 13px;
    color: #5B5449;
}

/* ============================================
   Racing / Experience Items
   ============================================ */
.racing-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.racing-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.racing-name {
    font-size: 18px;
    font-weight: 600;
}

.racing-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 9px;
    border-radius: 4px;
    background-color: #F5F0E0;
    color: #6B6230;
    text-transform: uppercase;
}

.racing-badge-blue {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 9px;
    border-radius: 4px;
    background-color: #E8EFFD;
    color: #4A6FA5;
    text-transform: uppercase;
    margin-left: 8px;
}

.racing-detail {
    font-size: 16px;
    color: #5B5449;
    line-height: 1.5;
    font-weight: 450;
}

/* ============================================
   Fade-in Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Stagger the animations */
.fade-in:nth-child(1) {
    animation-delay: 0.05s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.15s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.25s;
}

.fade-in:nth-child(6) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(7) {
    animation-delay: 0.35s;
}

.fade-in:nth-child(8) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(9) {
    animation-delay: 0.45s;
}

.fade-in:nth-child(10) {
    animation-delay: 0.5s;
}

.fade-in:nth-child(11) {
    animation-delay: 0.55s;
}

.fade-in:nth-child(12) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(13) {
    animation-delay: 0.65s;
}

.fade-in:nth-child(14) {
    animation-delay: 0.7s;
}

.fade-in:nth-child(15) {
    animation-delay: 0.75s;
}

.fade-in:nth-child(16) {
    animation-delay: 0.8s;
}

.fade-in:nth-child(17) {
    animation-delay: 0.85s;
}

.fade-in:nth-child(18) {
    animation-delay: 0.9s;
}

.fade-in:nth-child(19) {
    animation-delay: 0.95s;
}

.fade-in:nth-child(20) {
    animation-delay: 1.0s;
}

.fade-in:nth-child(21) {
    animation-delay: 1.05s;
}

.fade-in:nth-child(22) {
    animation-delay: 1.1s;
}

.fade-in:nth-child(23) {
    animation-delay: 1.15s;
}

.fade-in:nth-child(24) {
    animation-delay: 1.2s;
}

.fade-in:nth-child(25) {
    animation-delay: 1.25s;
}

.fade-in:nth-child(26) {
    animation-delay: 1.3s;
}

.fade-in:nth-child(27) {
    animation-delay: 1.35s;
}

.fade-in:nth-child(28) {
    animation-delay: 1.4s;
}

.fade-in:nth-child(29) {
    animation-delay: 1.45s;
}

.fade-in:nth-child(30) {
    animation-delay: 1.5s;
}

/* ============================================
   Project Detail Pages
   ============================================ */
.project-detail-header {
    margin-bottom: 40px;
}

.back-link {
    background: none;
    border: none;
    color: #5B5449;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    display: block;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.coming-soon-pill {
    display: inline-block;
    background: #FFF5E9;
    color: #B2541A;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    margin: 12px 0 16px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.location-details h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #5B5449;
}

.location-details p {
    margin-bottom: 12px;
    color: #5B5449;
}

.map-wrapper iframe {
    width: 100%;
    min-height: 320px;
    border-radius: 12px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: #F5F4F0;
    color: #5B5449;
    font-size: 14px;
    font-weight: 500;
}

.skill-pill.muted {
    cursor: default;
    pointer-events: none;
    background: #EFECE5;
    color: #9B9589;
}

.project-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.tech-tag {
    background: #F5F4F0;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #5B5449;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
    .sidebar {
        width: 260px;
        padding: 56px 32px;
    }

    .content {
        margin-left: 0;
        padding: 64px 32px;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 5;
        padding: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .sidebar .nav-link {
        flex: 1 1 calc(50% - 12px);
        font-size: 15px;
    }

    .nav-link:not(.active) {
        padding-left: 0;
    }

    .content {
        padding: 32px 20px 48px;
        max-width: 100%;
        margin-left: 0;
    }

    .home-header {
        flex-direction: column;
        gap: 16px;
    }

    .profile-photo {
        margin-left: 0;
        margin-top: 0;
        width: 88px;
        height: 88px;
    }

    .investment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .item-link {
        margin-left: 0;
    }

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

    .map-wrapper iframe {
        min-height: 260px;
    }

    .racing-item-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .skills-grid {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 12px;
    }

    .sidebar .nav-link {
        flex: 1 1 100%;
        font-size: 14px;
    }

    .title {
        font-size: 22px;
    }

    .paragraph {
        font-size: 16px;
    }

    .content {
        padding: 24px 16px 40px;
    }

    .social-links {
        gap: 16px;
    }
}
