/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.5;
    font-size: 16px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* Profile section - following Karpathy's layout */
.photo-container {
    margin-bottom: 30px;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.name {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

/* Social links with larger, more prominent styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Timeline section */
.timeline-section {
    margin-bottom: 60px;
    margin-top: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ddd, #ccc, #ddd);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.year {
    flex: 0 0 80px;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    height: 40px;
    margin: 0 20px;
    position: relative;
    z-index: 2;
}

.event {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #eee;
    position: relative;
}

.timeline-item:nth-child(odd) .event::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-item:nth-child(even) .event::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.company-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    flex-shrink: 0;
    position: relative;
}

.company-logo {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: contain;
    background-color: white;
    padding: 4px;
    border: 1px solid #e0e0e0;
}

/* Company logo placeholder styling */
.company-logo-placeholder[data-company="barclays"] { background-color: #00aeef; }
.company-logo-placeholder[data-company="jpmorgan"] { background-color: #0066cc; }
.company-logo-placeholder[data-company="citi"] { background-color: #dc1d2f; }
.company-logo-placeholder[data-company="baml"] { background-color: #e31837; }
.company-logo-placeholder[data-company="yandex"] { background-color: #fc0; }
.company-logo-placeholder[data-company="db"] { background-color: #0018a8; }
.company-logo-placeholder[data-company="infusio"] { background-color: #666; }

.event h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.event p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Blogs section */
.blogs-section {
    margin-bottom: 40px;
}

.blog-item {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: left;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.blog-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 12px;
    line-height: 1.4;
    padding-right: 120px; /* Space for date */
}

.blog-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-date {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.blog-link {
    display: none; /* Hidden since whole card is clickable */
}

/* About section */
.about-section {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: left;
}

.about-section p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }
    
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .year {
        flex: 0 0 60px;
        font-size: 14px;
        margin: 0 10px 0 0;
        position: absolute;
        left: 10px;
        background-color: #333;
        color: white;
        border-color: #333;
        width: 60px;
        height: 32px;
        border-radius: 16px;
    }
    
    .event {
        margin-left: 90px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(odd) .event::before,
    .timeline-item:nth-child(even) .event::before {
        left: -10px;
        right: auto;
        border-right: 10px solid white;
        border-left: none;
    }
    
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .company-logo-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .event h3 {
        font-size: 15px;
    }
    
    .event p {
        font-size: 13px;
    }
}