/* EPFL Smart Kitchen Dataset - Main Styles */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
  overflow-x: hidden;
  animation: fadeIn 0.2s ease-in;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Layout components */
.main-container {
  margin-left: 100px;
  width: calc(100% - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header - Sticky on scroll */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 60px;
}

.header .logo {
  font-size: 18px;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
  color: #000000;
  white-space: nowrap;
  padding: 0;
  border: none;
  margin: 0;
}

.nav-menu {
  display: none;
  gap: 8px;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
}

.nav-menu > .nav-link {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu > .nav-link:hover {
  color: #5c1010;
  background-color: rgba(92, 16, 16, 0.05);
}

.header .github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #000000;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
  margin: 0;
  width: auto;
}

.header .github-btn:hover {
  background-color: #f5f5f5;
  border-color: #5c1010;
}

.header .github-btn img {
  width: 20px;
  height: 20px;
}

.header .hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Side Navigation */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(232, 232, 232, 0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-nav-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 30px;
}

.logo {
  font-size: 25px;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
  line-height: 28px;
  color: #000000;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.5);
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}
.nav-link {
  font-size: 17px;
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  line-height: 19px;
  color: #666666;
  text-decoration: none;
  transition: all 0.5s ease;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: #5c1010;
  background-color: rgba(92, 16, 16, 0.05);
  border-left-color: #5c1010;
}

.nav-link.active {
  color: #5c1010;
  background-color: rgba(92, 16, 16, 0.1);
  border-left-color: #5c1010;
  font-weight: 600;
}

.github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #000000;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.5s ease;
  margin-top: auto;
  width: 50%;
  margin-left: 25%;
}

.github-btn:hover {
  background-color: #ffeeee;
}

/* Main content adjustment for sidebar */
.main-container {
  margin-left: 100px;
  width: calc(100% - 200px);
}

.hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 50vh;
  margin: 20px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: relative;
  width: 95%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.hero-title {
  font-size: 40px;
  font-family: 'system-ui';
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto;
  padding: 10px 20px;
  background: linear-gradient(45deg, #d14233, #7a271c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Authors Section */
.authors-section {
  margin: 30px 0 10px 0;
  text-align: center;
  width: 100%;
  padding: 0 5px;
}

.authors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 45px;
  max-width: 1200px;
  margin: 0 auto;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #868686;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.author-name:hover {
  color: #2c2c2c;
  text-decoration: underline;
  transform: translateY(-2px);
}

/* Logo Section */
.logo-section {
  width: 130%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-top: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-item {
  width: 10%;
  min-width: 100px;
}

/* Behavior Understanding Section */
.behavior-section {
  width: 100%;
  border-top: 1px solid #e8e8e8;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.behavior-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 6px;
}

.section-title {
  font-size: 36px;
  font-family: 'Arial', serif;
  font-weight: 400;
  line-height: 1.3;
  color: #000000;
}

.section-description {
  font-size: 18px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 25px;
  color: #6e6e6e;
  width: 100%;
  text-align: justify;
  margin: 0 70px;
  max-width: 1000px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

.stat-card {
  border-top: 1px solid #e8e8e8;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  position: relative;
}

.stat-card-overlay {
  position: absolute;
  border-radius: 8px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.stat-icon {
  width: 18px;
  height: auto;
  margin-bottom: 14px;
}

.stat-title {
  font-size: 18px;
  font-family: 'Arial', serif;
  font-weight: 550;
  line-height: 24px;
  color: #000000;
  padding-left: 10px;
}

.stat-description {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 21px;
  color: #6e6e6e;
  width: 92%;
  padding-top: 30%;
}

/* Hero Image Full Width */
.hero-image-full {
  width: 100%;
  border-radius: 0px;
  margin-top: 10px;
}

/* Behavior Annotations Section */
.annotations-section {
  width: 100%;
  padding: 20px 4px;
  margin-top: 20px;
  border-top: 20px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.annotations-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 14px;
  margin-top: 20px;
}

.annotations-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 38px;
}

.annotation-item {
  display: flex;
  align-items: flex-start;
  width: 100%;
  border-top: 1px solid #e8e8e8;
  padding: 20px 0;
  gap: 30px;
}

.annotation-number {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 20px;
  color: #6e6e6e;
  min-width: 30px;
}

.annotation-text {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 21px;
  color: #000000;
  flex: 1;
}

.annotations-image {
  width: 100%;
  margin-top: 20px;
}

/* 3D Model Viewer Section */
.model-viewer-section {
  width: 100%;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background-color: #fafafa;
  border-radius: 20px;
}

.model-viewer-section .section-title {
  margin-bottom: 20px;
}

.model-viewer-section .section-description {
  margin-bottom: 40px;
  text-align: center;
}

.viewer-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#model-canvas-container {
  width: 100%;
  height: 600px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#model-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-controls {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.viewer-instructions {
  font-size: 16px;
  font-family: 'Arial', sans-serif;
  color: #666;
  margin: 0;
}

.viewer-instructions strong {
  color: #333;
  font-weight: 600;
}

.authors-footnote {
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  color: #888888;
  margin-top: 10px;
  font-style: italic;
}
/* 3D Pose Section */
.pose-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pose-demo {
  position: relative;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pose-video {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px;
  display: block;
}

.pose-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.pose-example-text {
  font-size: 20px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  line-height: 27px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
}

.control-btn {
  width: 40px;
  height: 40px;
  background-color: #ecc5c5;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.control-btn:hover {
  background-color: #e0b3b3;
  transform: scale(1.1);
}

.pose-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
}

.pose-title {
  font-size: 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 750;
  line-height: 1.3;
  color: #ffffff;
  width: 100%;
}

.pose-description {
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #a0a0a0;
  width: 100%;
}

/* Download Section */
.download-section {
  width: 100%;
  margin-top: 120px;
  border-top: 1px solid #cdcdcd;
  padding: 60px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.download-title {
  font-size: 36px;
  font-family: 'Arial', serif;
  font-weight: 400;
  line-height: 78px;
  color: #000000;
  text-align: center;
}

.download-subtitle {
  font-size: 18px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 20px;
  color: #6e6e6e;
  text-align: center;
  margin-bottom: 18px;
}

.download-buttons {
  display: column;
  flex-direction: column;
  gap: 300px;
  width: 70%;
  align-items: center;
  justify-content: space-between;
}
.download-cards {
  justify-content: space-between;
  display: flex;
  flex-direction: row;
  gap: 50px;
  width: 100%;
  max-width: 800px;
  align-items: flex-start;
  padding-bottom: 12%;
}

.download-description {
  font-size: 17px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 20px;
  color: #6e6e6e;
  text-align: left;
  margin-top: 12px;
}

.download-btn {
  background-color: #ecc5c5;
  border-radius: 40px;
  padding: 10px 50px;
  font-size: 15px;
  font-family: 'Arial', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #000000;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.5s ease;
  width: 100%;
  max-width: 100px;
  height: 72px;
}

.download-btn:hover {
  background-color: #e0b3b3;
}

/* Publications Section */
.publications-section {
  width: 100%;
  margin-top: 120px;
  border-top: 1px solid #e8e8e8;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.publication-card {
  position: relative;
  width: 100%;
  max-width: 398px;
  border-top: 1px solid #e8e8e8;
  padding: 16px 0;
  margin-bottom: 58px;
}

.publication-bg {
  background-color: #ffffff;
  border-radius: 36px;
  width: 66%;
  height: 214px;
  position: absolute;
  top: 16px;
  left: 0;
}

.publication-content {
  position: relative;
  z-index: 2;
  padding: 0 6px;
  margin-right: 38px;
  margin-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  height: auto;
}

.publication-arxiv,
.publication-neurips {
  font-size: 48px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 80px;
  color: #ecc5c5;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.publication-arxiv:hover,
.publication-neurips:hover {
  color: #ecaaaa;
  transform: scale(1.02);
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
}

.publication-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.publication-title {
  font-size: 18px;
  font-family: 'Arial', serif;
  font-weight: 400;
  line-height: 18px;
  color: #000000;
}

.publication-subtitle {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 20px;
  color: #6e6e6e;
}

/* Connect Section */
.connect-section {
  width: 100%;
  border-top: 1px solid #e8e8e8;
  padding: 100px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 48px;
}

.connect-title {
  font-size: 36px;
  font-family: 'Arial', serif;
  font-weight: 400;
  line-height: 78px;
  color: #000000;
  text-align: center;
}

.connect-subtitle {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 20px;
  color: #6e6e6e;
  text-align: center;
  margin-top: 12px;
}

.team-section {
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.team-logo-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.team-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.team-logo {
  width: 300px;
  max-width: 100%;
  margin: 0 auto 20px auto;
  display: block;
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 148px;
}

.team-member a {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member a:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(92, 16, 16, 0.3);
}

.member-image {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0;
  display: block;
  transition: opacity 0.3s ease;
}

.team-member a:hover .member-image {
  opacity: 0.9;
}

.member-name {
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 550;
  line-height: 20px;
  color: #464646;
  text-align: center;
}

.institution-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.institution-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.institution-logo-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.institution-logo-link:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.institution-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
}

.institution-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

.institution-multiple-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  width: 100%;
  border-top: 1px solid #e8e8e8;
  padding: 20px 0;
  margin-top: 140px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-text {
  font-size: 12px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  line-height: 16px;
  color: #5c1021;
}

/* -------------------------------------------------- */
/* MEDIA QUERIES (Tablet and Desktop overrides) */
/* -------------------------------------------------- */

/* Small Tablets / Large Phones (>= 640px) */
@media (min-width: 300px) {

  .main-container {
    margin-left: 15px;
    width: calc(100% - 30px);
  }
  .content-wrapper {
    margin: 0 2px;
    padding: 0 8px;
    width: 100%;
  }

  .hero-section {
    margin: 10px auto 0 auto;
    min-height: 10vh
  }
  
  .header-content {
    flex-direction: column;
  }
  .hero-title {
    font-size: 40px; /* Increased size */
  }
  
  .author-name {
    font-size: 12px; /* Slightly larger */
  }

  .authors-section {
    margin: 30px 0 10px 0;
  }

  .annotations-section {
    margin-top : 10px;
  }

  .hero-image-full {
    width : 100% !important;
    max-width: 100% !important;
    align-self : center;
  }


  .logo-section {
    width: 100%;
    gap : 2px;
  }
  
  .pose-info {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .pose-title {
    font-size : 24px !important;
  }

  .pose-demo {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .pose-section {
    flex-direction: column !important;
    gap : 20px !important;
  }

  .pose-video{
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .pose-description {
    font-size: 14px;
  }

  .pose-example-text {
    display: none;
  }

  .section-title {
    font-size: 36px; /* Increased size */
    text-align: left;
  }

  .behavior-content .section-description {
    width: 80%;
    font-size: 14px;
  }

  .annotations-content .section-description {
    width: 80%;
    font-size: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-description {
    padding-top : 40%;
  }

  .stat-card {
    padding: 10px 10px;
  }

  .download-section {
    padding: 5px 5px;
  }

  .download-cards {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding-bottom: 12%;
  }
  
  .download-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 95%;
  }
  
  .download-btn {
    width: auto;
    min-width: 200px; /* Adjusted minimum width */
  }
  
  /* Hide hamburger, show desktop menu */
  .header .hamburger {
    display: none;
  }
  
  .nav-menu {
    position: relative;
    display: block;
  }

  .nav-dropdown-btn {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0;
    width: auto;
    text-align: center;
    transition: all 0.3s ease;
  }
  .nav-dropdown-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.3);
  }
  .nav-dropdown-list {
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    position: absolute;
    right: 0;
    left: auto;
    width: 200px;
    z-index: 100;
    margin-top: 8px;
    padding: 6px 0;
  }
  .nav-dropdown-list.open {
    display: flex;
  }
  .nav-dropdown-list .nav-link {
    display: block;
    padding: 10px 20px;
    color: #a0a0a0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    text-align: left;
  }
  .nav-dropdown-list .nav-link:last-child {
    border-bottom: none;
  }
  /* Hide normal nav links on mobile */
  .nav-menu > .nav-link {
    display: none;
  }
  
  .institution-row {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }
  
  .institution-group {
    width: auto;
    min-width: 200px;
  }
  
  #model-canvas-container {
    height: 400px; /* Increased height */
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-left {
    flex-direction: row;
  }
}

/* Medium Tablets / Small Desktops (>= 768px) */
@media (min-width: 768px) {
  
  .main-container {
    margin-left: 20px;
    width: calc(100% - 40px);
  }
  
  .content-wrapper {
    padding: 0 16px;
    width: 100%;
  }
  
  .hero-section {
    margin: 10px auto 0 auto;
  }

  .hero-title {
    font-size: 50px;
  }

  .authors-section {
    margin: 30px 0 10px 0;
  }

  .header-content {
    flex-direction: row;
  }

  .nav-menu > .nav-link {
    display: none;
  }
  .nav-dropdown-btn {
    display: none;
  }
  .nav-dropdown-list {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    width: auto;
    gap: 8px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-dropdown-list .nav-link {
    display: inline-block;
    padding: 8px 16px;
    border-bottom: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .author-name {
    font-size: 15px;
  }

  .logo-section {
    width: 100%;
  }
  
  .section-title {
    font-size: 48px;
  }

  .pose-example-text {
    display: block;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-card {
    padding: 10px 10px;
  }
  
  .annotations-content {
    flex-direction: row;
    gap: 50px;
  }
  
  .annotations-list {
    width: 48%;
    align-self: flex-start; /* Align list to the top */
  }
  
  .pose-section {
    flex-direction: column !important;
  }
  
  .pose-demo {
    width: 100% !important;
    min-height: 0 !important;
  }
  
  .pose-info {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .download-title {
    font-size: 48px;
  }
  
  .download-btn {
    width: auto;
    min-width: 300px; /* Adjusted minimum width */
    font-size: 19px;
  }

  .download-cards {
    flex-direction: row;
    gap: 40px;
  }
  
  .connect-title {
    font-size: 48px;
  }
}

/* Desktop (>= 1024px) - Reintroduce Sidebar Layout */
@media (min-width: 1024px) {
  /* Re-enable the fixed sidebar layout */

  .content-wrapper {
    padding: 0 24px;
    width: 100%;
  }

  .main-container {
    margin-left: 100px; /* Space for fixed sidebar */
    width: calc(100% - 200px);
  }
  
  /* Hide the hamburger button and mobile sidebar */
  .header .hamburger {
    display: none;
  }

  /* Hide the side navigation (it's only used for mobile toggle) */
  .side-nav {
    left: 0; /* Position the sidebar on screen */
    width: 200px;
    box-shadow: none; /* Remove heavy shadow */
  }
  
  .hero-title {
    font-size: 60px;
  }

  .hero-section {
    margin: 80px auto 0 auto;
  }
  
  .logo-section {
    justify-content: space-between;
    padding: 70px 100px; /* Reduced padding from original 348px */
  }
  
  .section-description {
    width: 76%;
    margin: 0 30px; /* Reintroduce desktop margin */
  }
  
  .pose-info {
    padding: 0 !important;
  }

  .pose-description {
    width: 100% !important;
  }
  
  .team-row {
    max-width: 1000px;
    gap: 40px;
  }
  
  .institution-row {
    max-width: 1000px;
    gap: 40px;
  }
}

/* Large Desktop (>= 1280px) */
@media (min-width: 1280px) {
  .content-wrapper {
    padding: 0 40px;
    width: 100%;
  }
  .hero-title {
    font-size: 80px;
  }
}

/* ==========================================================================
   PREMIUM DARK RED & BLACK THEME OVERRIDES
   ========================================================================== */

/* Base Styles */
body {
  background-color: #000000 !important;
  color: #e0e0e0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Header & Navigation */
.header {
  background-color: rgba(10, 10, 10, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
}

.header .logo {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

.nav-dropdown-list .nav-link {
  color: #a0a0a0 !important;
  transition: all 0.3s ease !important;
  border-left: none !important;
}

.nav-dropdown-list .nav-link:hover {
  color: #ff4d4d !important;
  background-color: rgba(255, 77, 77, 0.1) !important;
}

.nav-dropdown-list .nav-link.active {
  color: #ff4d4d !important;
  background-color: rgba(255, 77, 77, 0.15) !important;
}

/* GitHub Button */
.header .github-btn {
  background-color: #121212 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header .github-btn:hover {
  background-color: #9e1c1c !important;
  color: #ffffff !important;
  border-color: #9e1c1c !important;
}

.header .github-btn img {
  filter: invert(1) !important;
}

/* Hero Section */
.hero-title {
  background: linear-gradient(135deg, #ffffff 40%, #9e1c1c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  background-color: transparent !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
}

.authors-footnote {
  color: #666666 !important;
}

.author-name {
  color: #888888 !important;
}

.author-name:hover {
  color: #ffffff !important;
}

/* Partner Logos */
.logo-item {
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease !important;
}

.logo-item:hover {
  transform: scale(1.05) !important;
}

/* Section Dividers & General Text */
.behavior-section, .annotations-section, .pose-section, .download-section, .publications-section, .connect-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.section-title, .pose-title, .download-title, .connect-title {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

.section-description, .pose-description, .download-subtitle, .connect-subtitle {
  color: #a0a0a0 !important;
}

/* Stats Cards */
.stat-card {
  background-color: #0c0c0e !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  padding: 30px 24px !important;
}

.stat-title {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

.stat-description {
  color: #a0a0a0 !important;
  padding-top: 50px !important;
}

.stat-icon {
  filter: invert(1) brightness(1.5) !important;
}

/* Annotations */
.annotation-item {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.annotation-number {
  color: #9e1c1c !important;
  font-family: 'Roboto Mono', monospace !important;
  font-weight: 500 !important;
}

.annotation-text {
  color: #ffffff !important;
}

.annotations-image {
  filter: invert(0.9) hue-rotate(180deg) brightness(1.1) !important;
}

/* Pose Section Controls */
.pose-example-text {
  color: #ffffff !important;
  background-color: rgba(18, 18, 18, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.control-btn {
  background-color: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.control-btn:hover {
  background-color: #9e1c1c !important;
  border-color: #9e1c1c !important;
}

.control-btn img {
  filter: invert(1) !important;
}

/* Download Section Cards */
.download-cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  padding-bottom: 40px !important;
}

@media (min-width: 768px) {
  .download-cards {
    flex-direction: row !important;
  }
}

.download-cards > div {
  background-color: #0c0c0e !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  padding: 30px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.download-btn {
  background-color: #9e1c1c !important;
  color: #ffffff !important;
  border-radius: 30px !important;
  height: auto !important;
  padding: 14px 28px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  max-width: none !important;
  transition: all 0.3s ease !important;
}

.download-btn:hover {
  background-color: #bd2424 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(158, 28, 28, 0.4) !important;
}

.download-description {
  color: #a0a0a0 !important;
  margin-top: 16px !important;
}

/* Publications */
.publication-card {
  background-color: #0c0c0e !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  padding: 40px 30px !important;
  max-width: none !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.publication-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

.publication-bg {
  display: none !important;
}

.publication-arxiv,
.publication-neurips {
  color: #9e1c1c !important;
  font-family: 'Roboto Mono', monospace !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.publication-card:hover .publication-arxiv,
.publication-card:hover .publication-neurips {
  color: #ff4d4d !important;
}

.publication-title {
  color: #ffffff !important;
}

.publication-subtitle {
  color: #a0a0a0 !important;
}

/* Team section */
.team-member p {
  color: #ffffff !important;
}

.team-logo {
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease !important;
}

.team-logo:hover {
  transform: scale(1.05) !important;
}

.institution-logo {
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease !important;
}

.institution-logo:hover {
  transform: scale(1.05) !important;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  width: 100% !important;
}

.footer-text {
  color: #666666 !important;
}

/* ==========================================================================
   SCROLLABLE 3D ROTATION EFFECT STYLING (IMMERSIVE REDESIGN)
   ========================================================================== */

.immersive-scroll-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #000000;
  overflow: visible;
  height: 650vh !important;
}

.canvas-sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  z-index: 1;
}

.hero-bg-video-sticky {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0.22) contrast(1.05);
  will-change: transform, filter, opacity;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(5, 5, 7, 0.4) 0%, rgba(5, 5, 7, 0.95) 100%),
    radial-gradient(circle at center, rgba(158, 28, 28, 0.12) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
}

#rotation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  opacity: 0; /* starts hidden, fades in on scroll */
  will-change: opacity;
}

.immersive-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10 !important;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  box-sizing: border-box;
}

/* Glassmorphic scrolling content panel */
.scroll-fade-panel {
  position: absolute;
  top: 10%;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: rgba(10, 10, 12, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 50px 40px !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
  transition: opacity 0.15s ease;
  /* No max-height / overflow-y — no internal scroll competition */
}

/* Individual Panel Layouts (Desktop >= 992px) */
@media (min-width: 992px) {
  #overview {
    right: 3% !important;
    left: auto !important;
    transform: translateY(-10%) !important;
    width: 30% !important;
    max-width: 1200px !important;
    padding: 100px 45px !important;
  }

  [id="3d-model"] {
    top: 50% !important;
    right: 3% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    max-width: 1700px !important;
    padding: 60px 45px !important;
  }

  #annotations {
    right: 3% !important;
    left: auto !important;
    width: 100% !important;
    max-width: 1550px !important;
    padding: 40px 45px !important;
  }

  [id="3d-motions"] {
    right: 3% !important;
    left: auto !important;
    width: 50% !important;
    max-width: 1350px !important;
    padding: 40px 45px !important;
  }
}

/* Column Layout for Panel Contents */
.panel-columns {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .panel-columns {
    flex-direction: row !important;
    gap: 45px !important;
    align-items: center !important;
  }
  .panel-col-left {
    flex: 1.15 !important;
    width: 55% !important;
  }
  .panel-col-right {
    flex: 0.85 !important;
    width: 45% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 991px) {
  .panel-columns {
    flex-direction: column !important;
    gap: 25px !important;
  }
  .panel-col-left, .panel-col-right {
    width: 100% !important;
  }
}

.panel-center {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 900px;
}

/* Scroll prompt down indicator */
.scroll-prompt {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.scroll-prompt-text {
  font-size: 11px;
  color: #888888;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-prompt-arrow {
  width: 1px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-prompt-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #9e1c1c;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -10px; }
  100% { top: 30px; }
}

/* Canvas Preloader overlays */
.canvas-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.4s ease;
  gap: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: #9e1c1c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 13px;
  color: #888888;
  letter-spacing: 1px;
  font-family: 'Roboto Mono', monospace;
}

.loading-progress-bar {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

#load-bar-fill {
  width: 0%;
  height: 100%;
  background-color: #9e1c1c;
  transition: width 0.1s ease;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  /* On mobile: sticky canvas stays visible in the top ~45% of the screen;
     the 3D model is drawn smaller and pinned to the top portion.
     Panels anchor to the bottom 55% and are controlled by JS opacity (single scroll). */

  /* More scroll track so animation gaps between panels are clearly visible */
  .immersive-scroll-container {
    height: 900vh !important;
  }

  /* Restore sticky so the 3D canvas is always in the background */
  .canvas-sticky-wrapper {
    position: sticky !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* Panels: anchored to bottom, leaving top ~42% for the 3D model.
     No max-height so all content is visible; overflow:hidden kills any internal scroll. */
  .scroll-fade-panel {
    position: absolute !important;
    bottom: 2% !important;
    top: auto !important;
    left: 5% !important;
    right: 5% !important;
    width: 90% !important;
    max-width: 90% !important;
    max-height: none !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: pan-y !important;
    padding: 20px 18px !important;
    transform: none !important;
  }

  /* Hero overlay: contain to first 100vh */
  .immersive-content-wrapper {
    height: 100vh !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Re-enable clicks inside the hero */
  .hero-section-premium {
    pointer-events: auto !important;
  }
}

/* Immersive Hero Panel Specific Classes */
.hero-panel-immersive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  text-align: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 20vh auto;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-panel-content {
  margin-top: 10vh !important;
  margin-bottom: 30vh !important;
}

.hero-title-immersive {
  font-size: 48px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #ffffff 40%, #9e1c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}

.authors-list-immersive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 12px;
  width: 100%;
}

.authors-footnote-immersive {
  font-size: 12px;
  color: #666666;
  margin-bottom: 25px;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.logo-section-immersive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  width: 100%;
}

.logo-section-immersive .logo-item {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.logo-section-immersive .logo-item:hover {
  transform: scale(1.05) !important;
}

/* ==========================================================================
   MODERN FULL-BLEED AND PREMIUM HERO LAYOUT
   ========================================================================== */

/* Remove any sidebar margins from main-container */
.main-container {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Adjust header to sit beautifully full width */
.header {
  border-radius: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* Immersive scroll container full-bleed without negative margins */
.immersive-scroll-container {
  width: 100% !important;
  margin-left: 0 !important;
  overflow: visible !important;
}

.canvas-sticky-wrapper {
  width: 100% !important;
  left: 0 !important;
}

#rotation-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* --- Premium Hero Section --- */
.hero-section-premium {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
  padding: 120px 20px 60px 20px;
  z-index: 10;
  box-sizing: border-box;
}

.hero-video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-video-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.22) contrast(1.05);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(5, 5, 7, 0.4) 0%, rgba(5, 5, 7, 0.95) 100%),
    radial-gradient(circle at center, rgba(158, 28, 28, 0.12) 0%, transparent 65%);
}

.hero-content-premium {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.hero-badge {
  background: rgba(158, 28, 28, 0.12);
  border: 1px solid rgba(158, 28, 28, 0.35);
  color: #ff5252;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-family: 'Roboto Mono', monospace;
  box-shadow: 0 0 20px rgba(158, 28, 28, 0.15);
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(158, 28, 28, 0.15); border-color: rgba(158, 28, 28, 0.35); }
  50% { box-shadow: 0 0 25px rgba(158, 28, 28, 0.3); border-color: rgba(158, 28, 28, 0.6); }
}

.hero-title-premium {
  font-size: 96px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -2.5px;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
  filter: none !important;
}

.hero-tagline {
  font-size: 21px;
  color: #b0b0b8;
  max-width: 800px;
  margin-bottom: 45px;
  font-weight: 400;
  line-height: 1.45;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

.hero-authors-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  max-width: 900px;
  margin: 0 auto 12px auto;
  font-family: 'Inter', sans-serif;
}

.author-inline-item {
  font-size: 16px;
  font-weight: 550;
  color: #e4e4e7;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.author-inline-item:hover {
  color: #ff5252;
}

.author-inline-item sup {
  color: #ff5252;
  font-weight: 600;
  margin-left: 2px;
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-family: 'Inter', sans-serif;
}

.affiliation-item {
  font-size: 14px;
  color: #a1a1aa;
  font-weight: 400;
}

.affiliation-item sup {
  color: #ff5252;
  font-weight: 500;
  margin-right: 2px;
}

.authors-footnote-premium {
  font-size: 12px;
  color: #555562;
  margin-bottom: 45px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  width: 100%;
}

.hero-actions-premium {
  display: flex;
  gap: 18px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b82525 0%, #7d1515 100%);
  color: #ffffff !important;
  padding: 15px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(158, 28, 28, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(158, 28, 28, 0.45), 0 0 25px rgba(158, 28, 28, 0.25);
  filter: brightness(1.15);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateY(3px);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  padding: 15px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

.logo-section-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 35px;
  width: 100%;
  max-width: 800px;
}

.logo-section-premium .logo-item {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.logo-section-premium .logo-item:hover {
  transform: scale(1.05) !important;
}

.scroll-prompt-premium {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.scroll-prompt-premium .scroll-prompt-text {
  font-size: 10px;
  color: #888892;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}

.scroll-prompt-premium .scroll-prompt-arrow {
  width: 1px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-prompt-premium .scroll-prompt-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: #ff5252;
  animation: scrollDown 2s ease-in-out infinite;
}

/* Adjust overview section's first panel spacing */
#overview {
  margin-top: 5vh !important;
}

/* Adjust elements in responsive viewports */
@media (max-width: 768px) {
  .hero-title-premium {
    font-size: 46px;
    letter-spacing: -1px;
  }
  .hero-tagline {
    font-size: 17px;
  }
  .logo-section-premium {
    gap: 25px;
    flex-wrap: wrap;
  }
  .logo-section-premium .logo-item {
    height: 25px;
  }
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* Special Acknowledgement Styles */
.special-acknowledgement {
  width: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.special-acknowledgement .section-description {
  text-align: center;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}

/* Full-width dark sections outside scroll container */
.download-section-premium {
  width: 100%;
  padding: 120px 0 80px 0;
  background-color: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.publications-section-premium {
  width: 100%;
  padding: 80px 0 120px 0;
  background-color: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.publications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
}

@media (max-width: 991px) {
  .publications-grid {
    grid-template-columns: 1fr;
  }
}

/* Widescreen Stats and Annotations Layout Adjustments */
@media (min-width: 992px) {
  /* Title Alignment */
  #overview .section-title,
  [id="3d-model"] .section-title,
  #annotations .section-title,
  [id="3d-motions"] .pose-title {
    text-align: right !important;
    width: 100% !important;
    margin-bottom: 25px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    background: linear-gradient(135deg, #ffffff 40%, #ff5252 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
  }

  /* Overview Panel Content */
  #overview .behavior-content {
    width: 100% !important;
    align-items: stretch !important;
  }

  /* 3D Model Panel (Kitchen Setup) Content */
  [id="3d-model"] .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
  }
  
  [id="3d-model"] .stat-card {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 14px !important;
    padding: 22px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
  }

  [id="3d-model"] .stat-card:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px) !important;
  }
  
  [id="3d-model"] .stat-card-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding-bottom: 0 !important;
  }

  [id="3d-model"] .stat-icon {
    margin-bottom: 0 !important;
    width: 20px !important;
    height: auto !important;
  }
  
  [id="3d-model"] .stat-title {
    padding-left: 0 !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }
  
  [id="3d-model"] .stat-description {
    padding-top: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    width: 100% !important;
    margin: 0 !important;
    color: #a1a1aa !important;
  }

  [id="3d-model"] .setup-label {
    display: none !important;
  }

  [id="3d-model"] .hero-image-full {
    max-height: 60vh !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Annotations Panel Content */
  #annotations .annotations-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 20px !important;
    width: 100% !important;
  }

  #annotations .annotation-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 16px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 !important;
    width: 100% !important;
  }

  #annotations .annotation-number {
    font-family: 'Roboto Mono', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ff5252 !important;
    min-width: 30px !important;
  }

  #annotations .annotation-text {
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    color: #e4e4e7 !important;
  }

  #annotations .annotations-image {
    max-height: 48vh !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    border: 0px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* 3D Motions Panel Content */
  [id="3d-motions"] .pose-video {
    max-height: 48vh !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    border: 0px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    margin: 0 auto !important;
  }

  [id="3d-motions"] .pose-controls {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 5 !important;
  }

  [id="3d-motions"] .pose-example-text {
    font-family: 'Roboto Mono', monospace !important;
    font-size: 13px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    text-shadow: none !important;
    margin-right: 5px !important;
  }

  [id="3d-motions"] .control-btn {
    width: 32px !important;
    height: 32px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 8px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  [id="3d-motions"] .control-btn:hover {
    background-color: #ff5252 !important;
    border-color: #ff5252 !important;
    transform: scale(1.05) !important;
  }

  [id="3d-motions"] .control-btn img {
    filter: invert(1) !important;
  }

  [id="3d-motions"] .pose-description {
    font-size: 16.5px !important;
    line-height: 1.6 !important;
    color: #e4e4e7 !important;
    text-align: left !important;
  }
}

/* Mobile & Tablet Overrides (Screens <= 991px) */
@media (max-width: 991px) {
  /* Positioning, max-height and overflow are set by the sticky-layout block above.
     Only compact the layout here — NO overflow-y, NO max-height overrides. */
  #overview, [id="3d-model"], #annotations, [id="3d-motions"], #download {
    width: 90% !important;
    max-width: 90% !important;
    padding: 20px 18px !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
  }

  /* Individual panel vertical positions.
     #overview, #annotations, #3d-motions, #download sit high (near top);
     #3d-model stays at bottom: 2% as set by the sticky-layout block above. */
  #overview {
    top: 8% !important;
    bottom: auto !important;
    transform: none !important;
  }
  #annotations {
    top: calc(8% + 20px) !important;
    bottom: auto !important;
    transform: none !important;
  }
  [id="3d-motions"] {
    top: calc(8% + 20px) !important;
    bottom: auto !important;
    transform: none !important;
  }
  #download {
    top: 8% !important;
    bottom: auto !important;
    transform: none !important;
  }

  #overview .section-title,
  [id="3d-model"] .section-title,
  #annotations .section-title,
  [id="3d-motions"] .pose-title {
    text-align: center !important;
    font-size: 24px !important;
    margin-bottom: 18px !important;
  }

  [id="3d-model"] .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  [id="3d-model"] .stat-card {
    padding: 15px !important;
  }

  #annotations .annotations-list {
    margin-top: 15px !important;
    gap: 10px !important;
  }

  #annotations .annotation-item {
    padding: 12px 0 !important;
    gap: 15px !important;
  }

  [id="3d-model"] .hero-image-full,
  #annotations .annotations-image {
    max-height: 30vh !important;
    margin-top: 15px !important;
  }

  [id="3d-motions"] .pose-video {
    max-height: 45vh !important;
    margin-top: 15px !important;
  }

  [id="3d-motions"] .pose-controls {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-top: 10px !important;
    justify-content: center !important;
  }
}

/* Background opacity reduced for Kitchen Setup */
[id="3d-model"] { background: rgba(10, 10, 12, 0.1) !important; }


/* 2x2 grid for stats boxes in 3D Model panel and larger image */
@media (min-width: 992px) {
  [id="3d-model"] .panel-columns .panel-col-left {
    flex: 0.6 !important;
    width: 30% !important;
  }
  [id="3d-model"] .panel-columns .panel-col-right {
    flex: 1.4 !important;
    width: 70% !important;
  }
  [id="3d-model"] .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
  }
}

/* 3D Motions Right Align & 80/20 Vertical Fix */
@media (min-width: 992px) {
  [id="3d-motions"] .panel-columns {
    flex-direction: column !important;
    height: auto !important;
    gap: 15px !important;
  }
  [id="3d-motions"] .panel-columns .panel-col-left {
    width: 100% !important;
    height: auto !important;
  }
  [id="3d-motions"] .panel-columns .panel-col-right {
    width: 100% !important;
    height: auto !important;
  }
  [id="3d-motions"] {
    top: 50% !important;
    right: 3% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 45vw !important;
    height: auto !important;
    max-height: 90vh !important;
    padding: 30px 45px !important;
  }
  [id="3d-motions"] .pose-video {
    max-height: 60vh !important;
    height: auto !important;
  }
}

/* Increase Overview Panel size and font */
@media (min-width: 992px) {
  #overview {
    width: 40vw !important;
  }
  #overview .section-description {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
}

/* Download panel styling within immersive scroll */
@media (min-width: 992px) {
  #download.scroll-fade-panel {
    top: 50% !important;
    right: 3% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 45vw !important;
    padding: 30px 45px !important;
    background-color: rgba(10, 10, 12, 0.8) !important;
  }
}
