:root {
  --primary-color: #a5d8ff;
  --secondary-color: #ffd6e0;
  --accent-color: #c3aed6;
  --text-color: #5a5a5a;
  --light-bg: #f8f9fa;
  --header-bg: #e5f3ff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
  background-color: var(--header-bg);
  border-bottom: 1px solid #eaeaea;
}

img.profile {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  border: 3px solid white;
}
nav {
  background-color: white;
  padding: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  text-align: center;
}

nav a {
  display: inline-block;
  margin: 0;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: var(--secondary-color);
  color: #333;
}

nav a.active {
  background-color: var(--primary-color);
  color: #333;
}

.date {
  float: right;
  color: #666;
}

section {
  padding: 2rem;
  background: white;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

h1, h2, h3 {
  color: #444;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 0.5rem; /* Changed from 2rem to match nav */
  font-size: 0.9rem;
  color: #777;
  background-color: var(--header-bg);
  border-top: 1px solid #eaeaea;
  max-width: 900px; /* Match body max-width */
  margin: 1rem auto 0; /* Center and add top margin */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05); /* Shadow like nav but reversed */
}

a {
  color: #5e81ac;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: var(--light-bg);
  padding: 2rem 1rem;
  border-right: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar .profile {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.sidebar-info {
  text-align: center;
  margin-top: 1rem;
}

.sidebar-info h3 {
  margin-bottom: 0.5rem;
}

.main-content {
  flex: 1;
  padding: 0 1rem;
}

/* Adjust existing components to work with the new layout */
header {
  padding-top: 2rem;
}

/* Timeline Styles for Publications */

.publication-title {
  font-weight: bold;
  color: #000;
  margin-bottom: 0.2rem;
}

.publication-details {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.timeline {
  position: relative;
  padding: 1rem 0;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 60px;
}
/* Publication-specific hover effect (blue) */
.timeline:not(.conference) .timeline-content:hover {
  border-left: 3px solid var(--primary-color);
}

/* Conference-specific hover effect (purple) */
.timeline.conference .timeline-content:hover {
  border-left: 3px solid var(--accent-color);
}
/* This is the timeline line */ 
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -15px;
  width: 10px;
  background: var(--primary-color);
}

/* Conference section header styling */
h2.conference {
  border-bottom: 2px solid var(--accent-color);
}
/* Conference timeline color */
.timeline.conference::before {
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
  margin: 1rem 0;
  padding-left: 5rem;
}


.timeline-year {
  position: absolute;
  left: -60px;
  top: 5px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-color);
  background: none;
  padding: 0;
  border-radius: 0;
  z-index: 5;
}

/* Year dividers */
.timeline-year.new-year {
  font-size: 1.4rem;
  left: -45px;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.timeline-content {
  padding: 15px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition:  cubic-bezier(0.25, 0.8, 0.25, 1);
  max-width: 600px;
}

.timeline-content:hover {
  transform: translateY(-3px) ;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-left: 3px solid var(--accent-color);
}

/* Timeline title styling */
.timeline-title {
  font-weight: bold;
  color: #000;
  margin-bottom: 0.5rem;
}

.timeline-title a {
  font-weight: bold;
  color:var(--text-color);
  text-decoration: none;
}

.timeline-title a:hover {
  text-decoration: underline;
  color: rgba(116, 110, 110, 0.893);
}

/* New location styling */
.timeline-location {
  margin-top: 0.2rem;
  margin-bottom: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.timeline-location em {
  color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem;
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-year {
    left: -75px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .timeline::before {
    left: 5px;
  }
  
  .timeline-year {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .timeline-item {
    padding-left: 1rem;
  }
}
