:root {
  --primary-color: #000;
  --secondary-color: #333;
  --accent-color: #7B8FE0;
  --text-color: #2d3748;
  --light-text: #4a5568;
  --background-color: #ffffff;
  --light-bg: #f7fafc;
  --border-color: #e2e8f0;
  --shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.1), 0 5px 20px 0px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  overflow-x: hidden;
  font-size: 17px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-top: 5rem;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Varela Round', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  color: var(--light-text);
  font-size: 1.15rem;
  line-height: 1.7;
}

.title-row {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 60px;
}

.title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.author-col {
  margin: 0 6px;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0 4px;
}

.author-text {
  font-size: 1.1rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.author-text:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* =============================================
   ICON LINKS - Reduced size (was 60px, now 36px)
   ============================================= */
.link-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
  gap: 4px;
}

.icon-col {
  margin: 0 8px;
  text-align: center;
}

.link-block {
  display: block;
  text-decoration: none;
  transition: var(--transition);
  padding: 8px;
  border-radius: 8px;
}

.link-block:hover {
  background-color: var(--light-bg);
  transform: translateY(-3px);
}

.main-icon {
  font-size: 36px;
  color: var(--primary-color);
  transition: var(--transition);
}

.link-block:hover .main-icon {
  color: var(--accent-color);
}

.link-labels-text {
  display: block;
  color: var(--light-text);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  transition: var(--transition);
}

.link-block:hover .link-labels-text {
  color: var(--accent-color);
}

.no-underline {
  text-decoration: none;
}

.tldr {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin: -3rem 0 2rem 0;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
  color: var(--light-text);
  line-height: 1.6;
}

.tldr b {
  color: var(--primary-color);
}

.add-top-padding {
  padding-top: 2rem;
}

.image-container {
  margin: 2rem 0;
  padding: 1rem;
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background-color: white;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover, .table-container:hover, .video-container:hover {
  box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.25), 0 10px 15px 0px rgba(0, 0, 0, 0.15);
}

.image-content {
  padding: 15px;
}

.img,
.slideshow-video {
  width: 100%;
  transition: var(--transition);
  display: block;
}

.large-image {
  max-width: 100%;
  display: block;
  margin: 1rem auto 2rem auto;
}

.z-depth-1 {
  box-shadow: none;
}

.image-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--light-text);
  text-align: center;
  padding: 0 1rem;
  font-weight: 500;
  overflow-y: scroll;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--light-bg);
}

.image-caption::-webkit-scrollbar {
  width: 6px;
}

.image-caption::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 3px;
}

.image-caption::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 3px;
}

.image-credit {
  font-weight: normal;
}

.citation {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  margin: 3rem 0;
}

pre {
  background-color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 1rem;
  border-left: 4px solid var(--accent-color);
}

.credit {
  text-align: center;
  margin: 3rem 0 1rem;
  font-size: 0.8rem;
  color: var(--light-text);
  opacity: 0.8;
}

/* Base Row and Column Structure */
.base-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.base-col {
  padding: 0 15px;
  flex: 1 1 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .container {
    padding: 0 15px;
  }

  .title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .base-col {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }

  .icon-col {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 1rem;
  }

  .title {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .base-col, .icon-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .icon-col {
    margin-bottom: 1.5rem;
  }

  .title {
    font-size: 1.6rem;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

/* =============================================
   SITE HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover:after {
  width: 100%;
}

/* === Active nav link on scroll === */
.nav-links a.active {
  color: var(--accent-color);
  font-weight: 700;
}

.nav-links a.active:after {
  width: 100%;
}

.hero-section {
  padding-top: 100px;
  padding-bottom: 30px;
  background: linear-gradient(to bottom, #f3eefb 0%, #eef6fc 50%, #ffffff 100%);
}

.main-content {
  padding: 20px 0 60px;
}

.title-row {
  padding-top: 20px;
}

.affiliations {
  font-size: 1.1rem;
  color: var(--light-text);
  text-align: center;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}

.site-footer {
  background-color: var(--light-bg);
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

.credit {
  margin: 0;
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li {
    margin: 0 10px 10px;
  }

  .site-header {
    padding: 10px 0;
  }

  .hero-section {
    padding-top: 120px;
  }
}

/* Video container */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
  padding: 1rem;
  box-shadow: var(--shadow);
  background-color: white;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-content {
  padding: 15px;
}

.slideshow-video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.video-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--light-text);
  text-align: center;
  padding: 0 1rem;
  padding-bottom: 15px;
}

.unmute-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.unmute-overlay:hover {
  opacity: 1;
}

.unmute-overlay i {
  font-size: 16px;
}

.unmute-text {
  font-weight: 500;
}

.main-video-container {
  box-shadow: var(--shadow);
  background-color: white;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 12px;
    background-color: white;
    padding: 1rem;
    margin: 0 0 4rem 0;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slideshow-container:hover {
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.25), 0 15px 15px -5px rgba(0, 0, 0, 0.15);
}

.slideshow {
    position: relative;
    height: 580px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
}

.slideshow-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.slideshow-image-video {
  width: 100%;
  height: 345px;
  object-fit: contain;
  border-radius: 8px;
}

.comparison-slideshow-image {
    max-width: 900px;
    width: 100%;
    height: 280px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin-bottom: 15px;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: var(--transition);
    z-index: 10;
}

.slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slideshow-nav.prev {
    left: 10px;
}

.slideshow-nav.next {
    right: 10px;
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.play-pause {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.8;
}

.play-pause:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for slideshow */
@media (max-width: 768px) {
    .slideshow {
        height: 500px;
    }

    .slideshow-image {
        height: 300px;
    }

    .image-caption {
        max-height: 120px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .slideshow {
        height: 450px;
    }

    .slideshow-image {
        height: 250px;
    }

    .image-caption {
        max-height: 100px;
        font-size: 0.85rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #B9A0E8, #7BAAE0, #6DC8F2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Table Styles */
.table-container {
    margin: 2rem 0;
    padding: 1rem;
    position: relative;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: white;
    overflow-x: auto;
}

.advantages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.advantages-table th,
.advantages-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    font-family: 'Varela Round', sans-serif;
    font-weight: 500;
}

.advantages-table th {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.advantages-table tr:last-child td {
    border-bottom: none;
}

.advantages-table td:first-child {
    color: var(--primary-color);
}

.advantages-table strong {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .table-container {
        margin: 0 0 2rem 0;
        padding: 0.5rem;
    }

    .advantages-table {
        font-size: 0.9rem;
    }

    .advantages-table th,
    .advantages-table td {
        padding: 0.75rem;
    }
}

/* =============================================
   DATASET VIDEO PANELS
   ============================================= */
.data-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.data-video-panel {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.data-video-panel video {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* =============================================
   EXPERIMENT VIDEO PANELS
   ============================================= */
.experiment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.experiment-panel {
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.panel-title:after {
    display: none;
}

.exp-container {
    margin: 0 !important;
    padding: 0.75rem !important;
    flex: 1;
}

.exp-slideshow {
    height: auto !important;
    overflow: visible !important;
}

.exp-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.exp-slideshow .slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.slide-method {
    font-family: 'Varela Round', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 8px;
}

.video-pair {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.video-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.video-col video {
    width: 100%;
    border-radius: 6px;
    display: block;
    background: #000;
}

.vid-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: 0.02em;
}

.tag-base {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.tag-pri4r {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* Slide dot indicators */
.slide-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.slide-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slide-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.25);
}

.slide-dots .dot:hover {
    background: #9ca3af;
}

.slide-dots .dot.active:hover {
    background: var(--accent-color);
}

/* Smaller nav buttons for experiment panels */
.exp-container .slideshow-nav {
    padding: 8px 10px;
    font-size: 14px;
    top: 55%;
}

@media (max-width: 992px) {
    .experiment-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .video-pair {
        gap: 4px;
    }
    .vid-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .slide-method {
        font-size: 0.8rem;
    }
}

/* Play Button Overlay Styles */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button-overlay i {
    font-size: 60px;
    margin-left: 8px;
}

.play-button-overlay:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hide play button when video is playing */
.video-container video.playing + .play-button-overlay {
    display: none;
}
