* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header with photo and about me */
.header {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background-color: white;
    color: #333;
    gap: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.profile-photo {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.header-content {
    flex: 1;
}

.header-info {
    margin-bottom: 1.5rem;
}

.header-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.header-info .title {
    font-size: 1.1rem;
    color: #0066cc;
    font-weight: 500;
}

.about-me {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.about-me p {
    margin-bottom: 1rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background-color: white;
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Main content */
.content {
    flex: 1;
    padding: 2rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.welcome-text {
    font-size: 1.1rem;
    color: #495057;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.about-section {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.8;
}

.about-section p {
    margin-bottom: 1rem;
}




/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0066cc, #667eea);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

/* Timeline icon support */
.timeline-item.has-icon {
    padding-left: 4rem;
}

.timeline-icon {
    position: absolute;
    left: -2.25rem;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: #0066cc;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #0066cc;
}

/* Hide the dot when icon is present */
.timeline-item.has-icon::before {
    display: none;
}

/* Minor timeline items - less prominent styling */
.timeline-item-minor::before {
    width: 8px;
    height: 8px;
}

.timeline-item-minor .timeline-date {
    font-size: 0.6rem;
}

.timeline-item-minor .timeline-content h4 {
    font-size: 0.76rem;
}

.timeline-item-minor .timeline-content p {
    font-size: 0.68rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #6c757d;
    margin: 0 0 1rem 0;
}

.paper-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: #e7f3ff;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #b3d9ff;
}

.paper-link:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateX(3px);
}

/* Profile Links */
.profile-links {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.profile-links h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.links-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    color: #0066cc;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-link:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,102,204,0.2);
}

.link-icon {
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .nav-tabs {
        display: flex;
        overflow-x: auto;
    }
    
    .nav-tabs li {
        margin-bottom: 0;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .tab-link {
        padding: 0.75rem 1.5rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .tab-link.active {
        border-left: none;
        border-bottom-color: #0066cc;
    }
    
    .header {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .profile-photo {
        width: 120px;
        height: 144px;
    }
    
    .header-info h1 {
        font-size: 1.5rem;
    }
    
    .about-me {
        font-size: 0.95rem;
    }
    
    .tab-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}

