/* ===== Global ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #f4f6fb;
  font-size: 14px;
}

/* ===== Section Card Block ===== */
.section-card {
  background: #fff;
  border: 1px solid rgba(52, 85, 120, 0.08);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  box-shadow:
    0 1px 3px rgba(52, 85, 120, 0.04),
    0 4px 12px rgba(52, 85, 120, 0.06),
    0 8px 24px rgba(52, 85, 120, 0.02);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00CED1, #4169E1, #6A0DAD);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.section-card:hover {
  box-shadow:
    0 2px 6px rgba(52, 85, 120, 0.06),
    0 8px 20px rgba(52, 85, 120, 0.08),
    0 16px 40px rgba(52, 85, 120, 0.04);
  transform: translateY(-3px);
  border-color: rgba(97, 182, 242, 0.15);
}

.section-card:hover::before {
  opacity: 1;
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 30%, #f5f0ff 70%, #fff 100%);
}

.hero .hero-body {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.hero .hero-body > .container {
  max-width: 960px;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.publication-authors a:hover {
  text-decoration: underline;
  color: hsl(220, 80%, 50%) !important;
  text-shadow: 0 0 8px rgba(66, 133, 244, 0.15);
}

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

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

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

/* Publication link buttons */
.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-block a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== Section Styling ===== */
.section {
  position: relative;
  background-color: transparent;
}

.section-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1.5rem;
}

/* Section title with gradient underline */
.section .title.is-3,
.section-card .title.is-3,
.hero-scene0 .title.is-3,
.hero.is-small .title.is-3 {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  text-align: left;
}

.section .title.is-3::after,
.section-card .title.is-3::after,
.hero-scene0 .title.is-3::after,
.hero.is-small .title.is-3::after {
  content: '';
  display: block;
  margin: 6px 0 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #00CED1, #4169E1, #6A0DAD);
  border-radius: 2px;
}

/* ===== Abstract ===== */
.content.has-text-justified p {
  line-height: 1.7;
  font-size: 0.95rem;
  color: #333;
}

/* ===== Pipeline Image ===== */
.pipeline-img {
  display: block;
  margin: 0 auto;
  width: 85%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pipeline-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Video Carousel Section ===== */
.hero.is-small {
  background-color: transparent;
  background-image: none;
}

.hero-scene0 {
  padding: 40px 0;
}

.hero-scene0 .container {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin: 0 auto;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.hero-scene0 .title {
  text-align: center;
}

.results-carousel {
  overflow: hidden;
  width: 100%;
}

.results-carousel .item {
  overflow: hidden;
  border: none;
  border-radius: 12px;
  padding: 0;
  font-size: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.results-carousel .item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.results-carousel .item video {
  width: 100%;
  height: auto;
  display: block;
}

/* More Results video section */
.publication-video {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.publication-video video {
  display: block;
  width: 100%;
  height: auto;
}

.publication-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== BibTeX Section ===== */
#BibTeX {
  background-color: transparent;
}

.bibtex-title {
  text-align: left;
  margin-bottom: 0.8rem !important;
  padding-bottom: 0 !important;
}

.bibtex-title::after {
  display: none !important;
}

.bibtex-wrapper {
  position: relative;
}

#BibTeX pre {
  background: #f5f7fa;
  color: #333;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: none;
  border: 1px solid rgba(52, 85, 120, 0.06);
}

.btn-copy-bibtex {
  position: absolute;
  top: 12px;
  right: 12px;
  background:#f5f7fa;
  border: 1px solid rgba(52, 85, 120, 0.15);
  color: #555;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.btn-copy-bibtex:hover {
  background: #eef1f6;
  color: #333;
}

/* ===== Footer ===== */
.footer {
  background-color: transparent;
  padding: 2rem 1.5rem;
}

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

.footer .content p {
  color: #666;
  font-size: 0.9rem;
}

.footer a {
  color: hsl(204, 86%, 53%);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: hsl(220, 80%, 50%);
}

/* ===== Misc (from original) ===== */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

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

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

.publication-banner {
  max-height: parent;
}

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


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* ===== Simple Video Gallery (WorldGen-style) ===== */
.gallery-container {
  position: relative;
  padding: 0 48px;
}

.gallery-scroller {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.demo-grid {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-item {
  flex: 0 0 100%;
  width: 100%;
}

.demo-item video {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 85, 120, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 10;
  color: #555;
  padding: 0;
}

.gallery-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #333;
}

.gallery-arrow.prev { left: 0; }
.gallery-arrow.next { right: 0; }

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5e0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-dot.active {
  background: #d0d5e0;
  transform: scale(1.6);
}

/* ===== Qualitative Comparison Tabs ===== */
.qc-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 1.8rem;
  background: #f0f2f7;
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
}

.qc-tab-btn {
  padding: 0.45rem 1.3rem;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #888;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.qc-tab-btn.active {
  background: #fff;
  color: #333;
  box-shadow: 0 2px 8px rgba(52, 85, 120, 0.12);
}

.qc-tab-btn:hover:not(.active) {
  color: #555;
}

.qc-tab-panel {
  display: none;
}

.qc-tab-panel.active {
  display: block;
  animation: fadeInUp 0.35s ease-out;
}

/* ===== Responsive adjustments ===== */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.6rem;
  }

  .pipeline-img {
    width: 100%;
  }

  .publication-video {
    border-radius: 8px;
  }

  .section-card {
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
  }

  .section-wrapper {
    padding: 1rem 0.75rem;
    gap: 1.2rem;
  }
}
