/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: #374151;
  background-color: white;
}

.min-h-screen {
  min-height: 100vh;
}

.container {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header styles */
.header {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .header {
    padding-bottom: 40px;
  }
}

.name {
  font-size: 2.25rem;
  font-weight: normal;
  color: #111827;
  margin-bottom: 8px;
}

.email {
  font-size: 1.125rem;
}

/* Navigation styles */
.nav {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  z-index: 50;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: block;
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-button {
  background: none;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.nav-button:hover {
  color: #086db1;
}

.nav-button.active {
  color: #086db1;
  background-color: #f9fafb;
}

/* Section styles */
.section {
  margin-top: 64px;
  scroll-margin-top: 80px; /* Offset for sticky navigation */
}

.section-title {
  font-size: 1.25rem;
  font-weight: normal;
  color: #111827;
  margin-bottom: 24px;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 8px;
}

/* About section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.photo-container {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 24px;
  order: 2;
}

@media (min-width: 768px) {
  .photo-container {
    margin-bottom: 0;
    order: 2;
  }
}

.about-text {
  flex: 1;
  order: 1;
}

.profile-photo {
  width: 192px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .profile-photo {
    width: 256px;
    height: 320px;
  }
}

.content-text {
  color: #374151;
  line-height: 1.6;
}

.content-text p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.link {
  color: #086db1;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Publications section */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publication {
  font-size: 1rem;
  line-height: 1.6;
}

.pub-number {
  font-weight: 500;
}

.pub-title {
  font-weight: 500;
}

.italic {
  font-style: italic;
}

/* Talks section */
.talks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.year-section {
  border-radius: 6px;
}

.year-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.year-toggle:hover {
  background-color: #f9fafb;
}

.chevron {
  width: 16px;
  height: 16px;
  font-size: 12px;
  transition: transform 0.2s;
}

.year-title {
  font-weight: 600;
  font-size: 1rem;
}

.talk-count {
  font-size: 1rem;
  color: #6b7280;
}

.talk-list {
  padding-left: 24px;
  padding-top: 8px;
  list-style-type: disc;
  list-style-position: inside;
}

.talk-list li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.talk-title {
  font-weight: 500;
}

.hidden {
  display: none;
}

/* CV section */
.cv-content {
  text-align: left;
  padding: 16px 0;
}

.cv-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.cv-button:hover {
  background-color: #f9fafb;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0;
  margin-top: 64px;
  color: #6b7280;
  font-size: 1rem;
}
