/* Custom styles for Tongbo Chen's personal website */

/* Navigation bar styles */
.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #f5f5f5;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.navigation a {
  color: #606c71;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navigation a:hover, .navigation a.active {
  background-color: #159957;
  background-image: linear-gradient(120deg, #155799, #159957);
  color: white;
}

/* Profile section styles */
.profile-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0 30px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaecef;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  border: 3px solid #159957;
}

.profile-info {
  flex: 1;
  min-width: 300px;
}

.profile-info p {
  margin: 10px 0;
  line-height: 1.6;
}

/* Section anchors for navigation */
[id] {
  scroll-margin-top: 60px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .navigation a {
    margin: 5px;
  }
}