body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* PhysChoreo brand styling */
.physchoreo {
  font-variant: small-caps;
  color: #3273dc;
  font-weight: 600;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

/* Demo Carousel Styles */
.demo-carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.demo-carousel {
  position: relative;
  overflow: hidden;
}

.demo-item {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.demo-item.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-description {
  color: #666;
  margin-bottom: 1.5rem;
}

.video-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.video-container video {
  width: 100%;
  display: block;
}

.video-container p {
  padding: 8px;
  margin: 0;
  background: #f9f9f9;
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #3273dc;
  background: #fff;
  color: #3273dc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #3273dc;
  color: #fff;
}

.carousel-btn:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: #fff;
  color: #ccc;
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  padding: 8px 16px;
  border-radius: 20px;
  background: #e0e0e0;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #3273dc;
  color: #fff;
}

.indicator:hover:not(.active) {
  background: #d0d0d0;
}

/* Pipeline Section */
.pipeline-container {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pipeline-image {
  width: 100%;
  display: block;
}

.pipeline-caption {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
}

/* ====== Comparison Section - 5 rows, 5 videos each ====== */
.comparison-rows {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.comparison-row {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.category-info {
  text-align: center;
  min-width: 200px;
}

.category-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3273dc;
  margin: 0 0 5px 0;
}

.scene-indicator {
  font-size: 0.9rem;
  color: #666;
}

.scene-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 2px solid #3273dc;
  background: #fff;
  color: #3273dc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scene-btn:hover:not(:disabled) {
  background: #3273dc;
  color: #fff;
}

.scene-btn:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

.scenes-container {
  position: relative;
}

.scene-videos {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.scene-videos.active {
  display: block;
}

/* Video Grid - 5 videos in a row */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.grid-video {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.grid-video video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Veo video - crop to center square */
.grid-video.veo-video video {
  object-fit: cover;
  object-position: center center;
}

.grid-video .method-name {
  text-align: center;
  padding: 8px;
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  background: #f5f5f5;
  border-top: 1px solid #eee;
}

/* Highlight "Ours" method */
.grid-video.ours {
  border: 3px solid #3273dc;
}

.grid-video.ours .method-name {
  background: #3273dc;
  color: #fff;
  font-weight: 600;
}

/* Responsive - adjust grid for smaller screens */
@media screen and (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  
  .grid-video .method-name {
    font-size: 11px;
    padding: 6px;
  }
}

@media screen and (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-video.ours {
    grid-column: 2;
  }
}

@media screen and (max-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .row-header {
    gap: 10px;
  }
  
  .category-info {
    min-width: 120px;
  }
  
  .carousel-indicators {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .indicator {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* BibTeX Section */
#BibTeX pre {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
}

#BibTeX code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* Footer */
.footer {
  padding: 30px 20px;
  background: #f9f9f9;
}

.footer a {
  color: #3273dc;
}

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

/* Section spacing */
.section {
  padding: 3rem 1.5rem;
}

/* Hero adjustments */
.hero .hero-body {
  padding-bottom: 2rem;
}

.hero.is-light {
  background-color: #f5f5f5;
}

.hero.is-light .hero-body {
  padding: 2rem 1.5rem;
}
