/* Professional & Warm Personal Site */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  color: #2c3e50;
  background: #fdfdfd;
  font-size: 16px;
}

/* Clean Header Styling */
.site-header {
  width: 100%;
  position: relative;
  padding: 1rem 0 3rem 0;
  margin: 0 0 2rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* Top Navigation - positioned in top right */
.top-nav {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  gap: 0;
  z-index: 10;
}

.top-nav .nav-link {
  text-decoration: none;
  color: #7f8c8d;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-right: 1px solid #eee;
  background: rgba(255, 255, 255, 0.9);
}

.top-nav .nav-link:last-child {
  border-right: none;
}

.top-nav .nav-link:hover {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

.header-content {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* Two column layout for header */
.header-two-columns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.image-column {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.profile-image-small {
  width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
  margin: 0;
  display: block;
  margin-left: -70px;
  margin-bottom: -50px;
}

.profile-image-small:hover {
  transform: scale(1.01);
  filter: drop-shadow(0 2px 8px rgba(52, 152, 219, 0.3));
}

.text-column {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 70px;
}

.name-section {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.site-title {
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 3.2rem;
  font-weight: 500;
  color: #2c3e50;
  letter-spacing: -0.03em;
  display: block;
}

.social-icons {
  width: 100%;
  display: flex;
  gap: 1.0rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.social-link {
  color: #7f8c8d;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 140, 141, 0.1);
}

.social-link:hover {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.15);
  border-color: rgba(52, 152, 219, 0.3);
  transform: translateY(-2px);
}

/* Main Content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 500;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #34495e;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ecf0f1;
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #34495e;
  margin: 1.5rem 0 0.5rem 0;
}

p {
  margin-bottom: 1.2rem;
  color: #555;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
  color: #555;
}

/* Publications */
.publication-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

/* Footer */
footer {
  text-align: center;
  margin: 4rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid #ecf0f1;
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0 2rem 0;
  }
  
  .top-nav {
    position: static;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(240, 240, 240, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0 1rem 1rem 1rem;
  }
  
  .top-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
  }
  
  .header-content {
    padding: 1rem;
    margin-top: 0;
  }
  
  .header-two-columns {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .profile-image-small {
    width: 180px;
    margin-left: 0;
    margin-bottom: 0;
  }
  
  .text-column {
    margin-top: 0;
  }
  
  
  .site-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  
  .social-icons {
    gap: 1rem;
  }
  
  .social-link {
    padding: 0.6rem;
  }
  
  main {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}
