/* ============================================
   ReactMotion - Academic Project Page
   Color scheme: #71d4f1 | #f2c471 | #d9d9d9
   ============================================ */

:root {
  --cyan: #71d4f1;
  --gold: #f2c471;
  --gray: #d9d9d9;
  --white: #ffffff;
  --text: #3d4a5c;
  --text-muted: #6b7a8f;
  --bg-light: #fafcfd;
  --bg-card: rgba(255, 255, 255, 0.95);
  --border-cyan: rgba(113, 212, 241, 0.4);
  --border-gold: rgba(242, 196, 113, 0.4);
  --border-gray: rgba(217, 217, 217, 0.8);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

/* Light gradient background - #71d4f1 #f2c471 #d9d9d9 */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    linear-gradient(160deg, #fefefe 0%, #fefefe 100%),
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(113, 212, 241, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(242, 196, 113, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(217, 217, 217, 0.5) 0%, transparent 60%);
  animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyan);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(113, 212, 241, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 0.3s ease;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-links.active {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-cyan);
    box-shadow: 0 4px 20px rgba(113, 212, 241, 0.08);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(113, 212, 241, 0.2), rgba(242, 196, 113, 0.2));
  border: 1px solid rgba(113, 212, 241, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  cursor: default;
  transition: all 0.3s ease;
}

.title-line {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
  transition: filter 0.3s ease;
}

@supports not (background-clip: text) {
  .title-line {
    -webkit-text-fill-color: var(--cyan);
    color: var(--cyan);
  }
}

.hero-title:hover .title-line {
  filter: brightness(1.15) saturate(1.2);
}

.title-sub {
  display: block;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.5rem;
  -webkit-text-fill-color: initial;
  transition: color 0.3s ease;
}

.hero-title:hover .title-sub {
  color: var(--cyan);
}

.hero-authors {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.authors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.author-item {
  display: inline-block;
  transition: transform 0.3s ease;
}

.author-item:hover {
  transform: scale(1.08);
}

.author-item a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.author-item a:hover {
  color: var(--gold);
}

.author-item a:active {
  opacity: 0.8;
}

.author-item sup {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
  color: var(--text-muted);
}

.author-item sup.symbol {
  color: var(--gold);
  font-size: 0.7em;
  margin-left: 0.05em;
}

.authors-institutions {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.institution-item {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0.25rem 0;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: default;
}

.institution-item:last-child {
  margin-bottom: 0;
}

.institution-item:hover {
  transform: scale(1.03);
  color: var(--cyan);
}

.institution-item sup {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.institution-item:hover sup {
  color: var(--gold);
}

.authors-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.authors-notes sup {
  font-size: 0.85em;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #8ddff5);
  color: #1e3a5f;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(113, 212, 241, 0.45);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: #c99a3d;
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(242, 196, 113, 0.2);
  transform: translateY(-3px);
  border-color: #e6b85c;
  color: #a67c2a;
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-hf {
  background: var(--gold);
  color: #5c4a1e;
  border: none;
}

.btn-hf:hover {
  background: #f5d07d;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(242, 196, 113, 0.45);
}

.btn-hf:active {
  transform: scale(0.97);
}

.btn-hf img {
  display: inline-block;
  vertical-align: middle;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.6s both;
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 1000px) {
  .hero-tagline {
    white-space: nowrap;
  }
}

.hero-tagline:hover {
  color: var(--text);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: fadeIn 1s ease 1s both;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll:hover {
  color: var(--cyan);
}

.hero-scroll:hover .scroll-arrow {
  animation: scrollBounce 0.8s ease-in-out infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

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

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

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

/* Section common */
.section {
  padding: 5rem 2rem;
  position: relative;
}

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

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.title-accent {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  cursor: default;
}

.section-title:hover .title-accent {
  color: var(--cyan);
}

.title-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 2px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  transition: color 0.3s ease;
  line-height: 1.6;
  font-size: 1.02rem;
}

.section:hover .section-desc {
  color: var(--text);
}

/* Abstract Section */
.abstract-section {
  background: transparent;
}

.abstract-figure img {
  width: 100%;
}

.abstract-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.abstract-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 8px 40px rgba(113, 212, 241, 0.15);
  transform: translateY(-2px);
}

.abstract-card p {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.abstract-card p:last-child {
  margin-bottom: 0;
}

.abstract-card strong {
  color: var(--cyan);
  transition: color 0.3s ease;
}

.abstract-card:hover strong {
  color: #4fc3e8;
}

.abstract-figure {
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Demo Videos Section */
.demo-section {
  padding-top: 6rem;
}

.demo-visualization {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  transition: transform 0.4s ease;
}

.demo-visualization:hover {
  transform: scale(1.01);
}

.demo-visualization img {
  width: 100%;
}

/* YouTube Embed */
.youtube-embed {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.gallery-title {
  text-align: center;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.youtube-thumb-link {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(113, 212, 241, 0.22);
  border: 1px solid var(--border-cyan);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-thumb-link:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 56px rgba(113, 212, 241, 0.35);
}

.youtube-thumb-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d1117;
}

.youtube-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

.youtube-thumb-link:hover .youtube-play-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.youtube-play-btn {
  transition: transform 0.25s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.youtube-thumb-link:hover .youtube-play-btn {
  transform: scale(1.12);
}

.youtube-watch-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Reactive Listener Motion label */
.reactive-label {
  max-width: 900px;
  margin: 0.85rem auto 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #1a8fc1, #2563eb);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.reactive-label svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Interactive Video Gallery */
.video-gallery {
  margin-top: 2.5rem;
}

/* Speaker Panel */
.speaker-panel {
  max-width: 900px;
  margin: 0 auto 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: 0 2px 16px rgba(113, 212, 241, 0.1);
}

.speaker-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.speaker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.speaker-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--cyan);
  margin: 0;
  transition: color 0.3s ease;
}

/* Audio controls row */
.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.audio-play-btn,
.audio-mute-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.audio-play-btn {
  background: var(--cyan);
  color: #1e3a5f;
}

.audio-play-btn:hover {
  background: #4fc3e8;
  transform: scale(1.1);
  box-shadow: 0 3px 14px rgba(113, 212, 241, 0.45);
}

.audio-play-btn svg {
  width: 16px;
  height: 16px;
  margin-left: 1px;
}

.audio-mute-btn {
  background: rgba(113, 212, 241, 0.12);
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
}

.audio-mute-btn:hover {
  background: rgba(113, 212, 241, 0.22);
  transform: scale(1.08);
}

.audio-mute-btn svg {
  width: 16px;
  height: 16px;
}

.audio-mute-btn.muted {
  background: rgba(217, 217, 217, 0.18);
  color: var(--text-muted);
  border-color: var(--border-gray);
}

.audio-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.audio-progress-bar {
  width: 120px;
  height: 4px;
  background: rgba(113, 212, 241, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  min-width: 2.5rem;
}

.main-video-player {
  position: relative;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1117;
  box-shadow: 0 12px 56px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-cyan);
  cursor: pointer;
}

.main-video-player video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.main-video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.main-video-label-icon {
  font-size: 0.75rem;
  opacity: 0.8;
}

.main-video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.main-video-player:hover .main-video-controls {
  opacity: 1;
  pointer-events: auto;
}

.main-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(113, 212, 241, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.main-play-btn:hover {
  transform: scale(1.12);
  background: var(--cyan);
  box-shadow: 0 6px 32px rgba(113, 212, 241, 0.55);
}

.main-play-btn:active {
  transform: scale(1.02);
}

.main-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  color: #1e3a5f;
}

/* Thumbnail Selector Strip */
.video-selector {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.85rem;
  scroll-snap-type: x mandatory;
  max-width: 900px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(113, 212, 241, 0.1);
}

.video-selector::-webkit-scrollbar {
  height: 4px;
}

.video-selector::-webkit-scrollbar-track {
  background: rgba(113, 212, 241, 0.1);
  border-radius: 2px;
}

.video-selector::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

.video-thumb {
  flex: 0 0 140px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: start;
  background: #0d1117;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.video-thumb video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-thumb:hover {
  border-color: rgba(113, 212, 241, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(113, 212, 241, 0.18);
}

.video-thumb.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(113, 212, 241, 0.25), 0 8px 28px rgba(113, 212, 241, 0.3);
}

.thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.3rem 0.55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.video-thumb.active .thumb-overlay {
  background: linear-gradient(transparent, rgba(17, 110, 140, 0.65));
}

.thumb-label {
  font-size: 0.72rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Dataset Section */
.dataset-section {
  background: transparent;
}

.dataset-intro {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: var(--text);
  font-size: 1.02rem;
  text-align: center;
  line-height: 1.65;
}

.dataset-figure {
  margin-bottom: 2rem;
}

.dataset-figure img {
  width: 100%;
}

.dataset-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(242, 196, 113, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.pipeline-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(242, 196, 113, 0.2);
  border-color: var(--gold);
}

.pipeline-step h4 {
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.pipeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--gold);
  color: #5c4a1e;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.dataset-stats {
  margin-bottom: 2.5rem;
}

.dataset-stats h3 {
  text-align: center;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.stats-table-wrapper {
  overflow-x: auto;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stats-table th,
.stats-table td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border: 1px solid var(--border-gray);
}

.stats-table th {
  background: rgba(113, 212, 241, 0.25);
  color: var(--text);
  font-weight: 600;
}

.stats-table td {
  color: var(--text);
  background: var(--bg-card);
}

.stats-table .total-row td {
  background: rgba(242, 196, 113, 0.2);
  font-weight: 500;
}

.stats-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dataset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(242, 196, 113, 0.08);
  transition: all 0.4s ease;
}

.dataset-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(242, 196, 113, 0.1);
}

.dataset-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--gold);
}

.dataset-icon svg {
  width: 100%;
  height: 100%;
}

.dataset-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dataset-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dataset-visual {
  margin-bottom: 3rem;
}

.dataset-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 2px 12px rgba(217, 217, 217, 0.5);
}

.diagram-item {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  min-width: 180px;
}

.diagram-item.speaker {
  background: linear-gradient(135deg, rgba(113, 212, 241, 0.25), rgba(255,255,255,0.9));
  border: 1px solid var(--border-cyan);
}

.diagram-item.motions {
  background: linear-gradient(135deg, rgba(242, 196, 113, 0.25), rgba(255,255,255,0.9));
  border: 1px solid var(--border-gold);
}

.diagram-item span {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.diagram-item small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diagram-arrow {
  font-size: 1.5rem;
  color: var(--cyan);
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

.dataset-samples h3 {
  text-align: center;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.dataset-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sample-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  box-shadow: 0 2px 12px rgba(113, 212, 241, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.sample-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: 0 12px 35px rgba(113, 212, 241, 0.15);
}

.sample-video {
  aspect-ratio: 16/9;
  background: var(--gray);
}

.sample-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-card p {
  padding: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Methodology Section */
.methodology-section {
  background: transparent;
}

.methodology-content {
  max-width: 800px;
  margin: 0 auto;
}

.methodology-figure {
  margin-bottom: 2rem;
}

.methodology-figure img {
  width: 100%;
}

.figure-caption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 100%;
}

.methodology-compact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.method-item {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(113, 212, 241, 0.06);
  transition: all 0.3s ease;
}

.method-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(113, 212, 241, 0.1);
}

.method-item h4 {
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.method-item p {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.method-item p:last-child {
  margin-bottom: 0;
}

/* Results / User Study Section */
.results-section {
  background: transparent;
}

.results-figure {
  max-width: 900px;
  margin: 0 auto;
}

.results-figure img {
  width: 100%;
}

/* Footer */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border-gray);
  text-align: center;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Responsive - Tablet & Mobile */
@media (max-width: 1024px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .dataset-pipeline {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .audio-progress-bar {
    width: 72px;
  }

  .speaker-text {
    font-size: 0.95rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 5rem 1rem 3rem;
    min-height: auto;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .title-line {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .title-sub {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    min-width: 200px;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  .authors-list {
    gap: 0.2rem 0.5rem;
  }

  .authors-institutions {
    font-size: 0.8rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .institution-item {
    text-align: left;
    padding-left: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .abstract-card {
    padding: 1.25rem 1rem;
  }

  .abstract-card p {
    font-size: 0.98rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-card {
    max-width: 100%;
  }

  .dataset-diagram {
    flex-direction: column;
  }

  .diagram-arrow {
    transform: rotate(90deg);
  }

  .dataset-pipeline {
    grid-template-columns: 1fr;
  }

  .methodology-content,
  .abstract-figure,
  .demo-visualization,
  .dataset-figure,
  .results-figure {
    max-width: 100%;
  }

  .stats-table {
    font-size: 0.75rem;
  }

  .stats-table th,
  .stats-table td {
    padding: 0.4rem 0.5rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 0.75rem 2.5rem;
  }

  .title-line {
    font-size: 1.75rem;
  }

  .title-sub {
    font-size: 1rem;
  }

  .btn {
    min-width: 100%;
  }

  .section {
    padding: 2.5rem 0.75rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .abstract-card {
    padding: 1rem 0.75rem;
  }

  .authors-institutions {
    font-size: 0.75rem;
  }

  .institution-item {
    padding-left: 0.5rem;
  }

  .stats-table {
    font-size: 0.7rem;
  }

  .stats-table th,
  .stats-table td {
    padding: 0.35rem 0.25rem;
  }
}

