body {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 300;
  color: #333;
  letter-spacing: 0.01em;
}


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

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

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

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


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.venue-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.08));
  color: #444;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: inherit !important;
}

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

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

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}





figcaption {
  font-style: italic;
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.5em;
  text-align: center;
}

/* Smooth animations */
* {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Staggered animations for sequential appearance */
.section:nth-child(1) { animation-delay: 0s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }

/* Button hover animations */
.external-link.button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.external-link.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.external-link.button:hover::before {
  width: 300px;
  height: 300px;
}

.external-link.button:hover {
  transform: translateY(-2px);
  border-color: #999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Video container animation */
.video-container {
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease;
}

.video-container:hover {
  transform: scale(1.01);
}

/* Title animations */
.title {
  animation: fadeInUp 0.5s ease-out;
}

/* Image hover effect and high quality rendering */
img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, box-shadow 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent blur from scaling */
  -webkit-perspective: 1000;
  perspective: 1000;
  border-radius: 12px;
}

img:hover {
  transform: scale(1.02);
  opacity: 0.95;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Smooth fade-in for content */
.content {
  animation: fadeInUp 0.7s ease-out;
}

/* Scroll-triggered animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Elegant section separators */
.section-divider {
  position: relative;
  margin: 2rem 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent 100%
  );
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Hero section separator - more prominent */
.hero-divider {
  position: relative;
  margin: 2rem auto 2rem;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 15%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.1) 85%,
    transparent 100%
  );
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.5s forwards;
}

/* Section spacing and visual hierarchy */
.section {
  position: relative;
}

.section:not(:first-of-type) {
  margin-top: 0;
}

/* Subtle background alternation for major sections */
.section-content {
  position: relative;
}

/* Decorative accent for section headers */
.section-title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.2),
    transparent
  );
  border-radius: 1px;
  animation: expandWidth 0.6s ease-out 0.3s both;
}

@keyframes expandWidth {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 1;
  }
}

/* Staggered animation for author blocks */
.publication-authors .author-block {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.publication-authors .author-block:nth-child(1) { animation-delay: 0.1s; }
.publication-authors .author-block:nth-child(2) { animation-delay: 0.15s; }
.publication-authors .author-block:nth-child(3) { animation-delay: 0.2s; }
.publication-authors .author-block:nth-child(4) { animation-delay: 0.25s; }
.publication-authors .author-block:nth-child(5) { animation-delay: 0.3s; }
.publication-authors .author-block:nth-child(6) { animation-delay: 0.35s; }

/* Enhanced modal animations */
#video-modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#video-modal[style*="display: flex"] {
  opacity: 1;
  animation: modalFadeIn 0.3s ease-out;
}

#video-modal > div {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#video-modal[style*="display: flex"] > div {
  transform: scale(1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Smooth transitions for interactive elements */
.feature-button {
  position: relative;
  overflow: hidden;
}

.feature-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.feature-button:hover::after {
  width: 200px;
  height: 200px;
}

/* Enhanced citation button animation */
#copy-citation-btn {
  position: relative;
  overflow: hidden;
}

#copy-citation-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

#copy-citation-btn:hover::after {
  width: 150px;
  height: 150px;
}

/* Smooth transitions for plot legends */
.tsne-model-legend > div,
.tsne-class-legend > div,
.scores-model-legend > div,
.scores-class-legend > div {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tsne-model-legend > div:hover,
.tsne-class-legend > div:hover,
.scores-model-legend > div:hover,
.scores-class-legend > div:hover {
  transform: translateX(2px);
}

/* Loading state for images - only for images that haven't loaded yet */
img:not([data-loaded]) {
  opacity: 0;
  animation: imageFadeIn 0.6s ease-out forwards;
}

img[data-loaded] {
  opacity: 1;
}

@keyframes imageFadeIn {
  to {
    opacity: 1;
  }
}

/* Subtle parallax effect for hero */
.hero {
  transform: translateZ(0);
  will-change: transform;
}

/* Enhanced video container */
.video-container {
  position: relative;
}

.video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.video-container:hover::before {
  opacity: 1;
}

/* Smooth transitions for grid items in TAG-Bench section */
.section[style*="padding-top: 3rem"] [style*="grid-template-columns"] > div {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.section[style*="padding-top: 3rem"] [style*="grid-template-columns"] > div:nth-child(1) { animation-delay: 0.1s; }
.section[style*="padding-top: 3rem"] [style*="grid-template-columns"] > div:nth-child(2) { animation-delay: 0.2s; }
.section[style*="padding-top: 3rem"] [style*="grid-template-columns"] > div:nth-child(3) { animation-delay: 0.3s; }
.section[style*="padding-top: 3rem"] [style*="grid-template-columns"] > div:nth-child(4) { animation-delay: 0.4s; }