/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Base styles */
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  background: #ffffff;
}

/* Top navigation bar: sticky header */
.top-nav{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 2px solid #e8e8e8;
  padding: 14px 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Navigation inner container: controls max width and padding */
.top-nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;  
  gap: 34px;                    
}

/* Homepage link: darker and bolder */
.nav-home{
  color: #444;
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: 0.3px;
}

/* Navigation menu links */
.nav-links{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

/* Navigation link styles */
.top-nav a{
  text-decoration: none;
  color: #555;
  font-size: 0.95em;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

/* Underline effect on hover */
.top-nav a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #bdbdbd;
  transition: width 0.18s ease, left 0.18s ease;
}

.top-nav a:hover{
  color: #2c3e50;
}

.top-nav a:hover::after{
  width: 100%;
  left: 0;
}

/* Main layout container */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Left sidebar: sticky positioning */
.sidebar{
  width: 300px;
  flex: 0 0 300px;
  padding-right: 48px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  height: fit-content;
}

.links p{
  margin: 0 0 10px 0;
}

/* Avatar image */
.avatar {
  width: 180px;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Sidebar heading and text */
.sidebar h1 {
  font-size: 1.8em;
  margin-bottom: 5px;
}

.position {
  color: #555;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.interest {
  font-size: 0.9em;
  margin-bottom: 20px;
}

.links p,
.links a {
  font-size: 0.9em;
  color: #444;
  text-decoration: none;
}

.status {
  margin-top: 30px;
  font-size: 0.9em;
  color: #777;
  font-style: italic;
}

/* Main content area */
.content { 
  max-width: 820px; 
}

/* Section spacing */
section {
  margin-bottom: 60px;
}

/* Section headers */
h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* List styling */
ul {
  margin-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Research item styling */
.item {
  margin-bottom: 25px;
}

.item .title {
  font-weight: bold;
}

.item .meta {
  font-size: 0.9em;
  color: #666;
}

.item .desc {
  font-size: 0.95em;
  color: #333;
}

/* Footer styling */
footer {
  border-top: 2px solid #e8e8e8;
  padding-top: 24px;
  margin-top: 40px;
  font-size: 0.88em;
  color: #7f8c8d;
  text-align: center;
}

footer a {
  color: #3498db;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Skills grid layout */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.skill-box{
  font-size: 0.95em;
  line-height: 1.5;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}