body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  background: #0a174e;
  color: #fff;
  font-family: 'Times New Roman', Times, serif;
  position: relative;
  overflow-y: auto;
  padding-top: 80px;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #87CEEB;
  padding: 1.5rem 3rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.top-nav a {
  color: #000080;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.top-nav ul li:first-child {
  margin-right: auto;
  margin-left: 2rem;
}

.top-nav .resume-nav-link {
  color: #fff;
  font-weight: normal;
  font-family: 'Times New Roman', Times, serif;
}

.top-nav .resume-nav-link:hover {
  color: #e0e0e0;
}

.centered-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.centered-name h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 2px;
  font-family: 'Times New Roman', Times, serif;
}

/* All headings and nav links in Times New Roman */
.top-nav a, h1, h2, h3, h4, h5, h6 {
  font-family: 'Times New Roman', Times, serif;
}

.profile-image {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 700px;
  height: auto;
  margin-top: -100px;
}

@media (max-width: 600px) {
  .top-nav {
    padding: 1rem 1rem;
  }
  .top-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .top-nav a {
    font-size: 1rem;
  }
  .centered-name h1 {
    font-size: 2rem;
  }
  body {
    padding-top: 100px;
  }
}

.sound-toggle {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 9999;
  padding: 5px;
}

.left-images {
  position: fixed;
  left: 20px;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
}

.circle-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  transition: transform 0.3s ease;
}

.circle-image:hover {
  transform: scale(1.1);
}

.copyright {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
  z-index: 100;
}

.rotating-sayings {
  position: relative;
  height: 60px;
  margin-bottom: 0;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saying {
  position: absolute;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #8fa3b885;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
}

.saying.active {
  opacity: 0.7;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  font-size: 1.1rem;
  padding: 20px;
  margin-top: 30px;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.page-header {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 15px;
  padding-right: 2rem;
}

.page-header h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 3rem;
  margin: 0;
}

.page-header p {
  font-size: 1.1rem;
  color: #cfd8e6;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.about-photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.about-photos .photo-row {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #fff;
  transition: transform 0.3s ease;
}

.about-photo:hover {
  transform: scale(1.05);
}

.resume-download {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 24px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.resume-download:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  border: 1px solid #888;
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.project-left {
  flex: 2 1 300px;
  min-width: 250px;
}
.project-right {
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paper-download {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.05em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.paper-download:hover {
  background: rgba(255,255,255,0.4);
  color: #fff;
  border: 1px solid #888;
}

.project-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 48px auto 0 auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
}
.project-main-text {
  flex: 1 1 400px;
  min-width: 220px;
  font-size: 0.92em;
  text-align: center;
}
.project-image-right,
.project-image-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.image-download-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.teeth-segmentation-img {
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: block;
  margin-bottom: 32px;
}
.projects-header {
  width: 100%;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 0;
  padding-right: 2rem;
}
.projects-header h1 {
  font-size: 3rem;
  margin: 0 0 16px 0;
  letter-spacing: 2px;
  font-family: 'Times New Roman', Times, serif;
}
.project-main-text .paper-download {
  margin-top: 32px;
  margin-bottom: 0;
  display: inline-block;
}
@media (max-width: 900px) {
  .project-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0 8px;
  }
  .teeth-segmentation-img {
    max-width: 100vw;
  }
} 

.art-masonry {
  column-count: 3;
  column-gap: 1.5rem;
  width: 90vw;
  max-width: 1400px;
  margin: 100px auto 40px auto;
}
.art-masonry img {
  width: 100%;
  display: block;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  break-inside: avoid;
}
@media (max-width: 900px) {
  .art-masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .art-masonry {
    column-count: 1;
  }
} 

.art-header {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 40px;
  padding-right: 2rem;
}
.art-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: 'Times New Roman', Times, serif;
}
.art-header p {
  font-size: 1.2rem;
  color: #cfd8e6;
  margin: 0 auto;
  max-width: 600px;
}

.pictures-gallery {
  max-width: 1200px;
  margin: 140px auto 60px auto;
  padding: 0 24px 60px 24px;
}
.pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pictures-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  aspect-ratio: 3 / 4;
  display: flex;
}
.pictures-grid figure img {
  flex: 1;
}
.pictures-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.pictures-grid img:hover {
  transform: scale(1.03);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 100px auto 60px auto;
  padding: 0 40px 60px 40px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #87CEEB, #4f8cff);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  width: 100%;
  z-index: 2;
}

.timeline-left {
  display: flex;
  justify-content: flex-start;
}

.timeline-right {
  display: flex;
  justify-content: flex-end;
}

.timeline-content {
  position: relative;
  width: 45%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.timeline-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 15px;
  object-fit: cover;
  max-height: 400px;
}

.timeline-content img.timeline-full-size {
  max-height: none;
  object-fit: cover;
  object-position: center 8%;
}

.timeline-caption {
  text-align: left;
}

.timeline-caption h3 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  color: #fff;
}

.timeline-caption p {
  font-size: 1rem;
  color: #cfd8e6;
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #87CEEB;
  border: 4px solid #0a174e;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}

@media (max-width: 768px) {
  .timeline-container {
    padding: 0 20px 60px 20px;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-left,
  .timeline-right {
    justify-content: flex-start;
  }
  
  .timeline-content {
    width: 100%;
    max-width: none;
  }
  
  .timeline-item::before {
    left: 30px;
  }
}