/* 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 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.authors-footnote {
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  color: #888888;
  margin-top: 10px;
  font-style: italic;
}

.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-links {
  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: 80px 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 {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-family: 'system-ui';
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  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);
  margin: 0;
  padding: 20px 20px;
  top: 150px;
  left: 40%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  /* backdrop-filter: blur(2px); */
}

/* Authors Section */
.authors-section {
  margin: 100px 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: 20px;
  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: 150%;
  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: 30px;
  margin-top: 20px;
}

/* Behavior Annotations Section */
.annotations-section {
  width: 100%;
  padding: 20px 4px;
  margin-top: 120px;
  border-top: 1px 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 Pose Section */
.pose-section {
  width: 100%;
  margin-top: 176px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.pose-demo {
  position: relative;
  border-radius: 30px;
  padding: 0;
  margin-right: 20px;
  min-height: 600px; /* Increased for portrait video */
  width: 100%;
  max-width: 600px; /* Added max-width for portrait */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.pose-video {
  width: 120%;
  height: 200%;
  min-height: 500px; /* Added min-height */
  object-fit: contain; /* Changed from cover to contain to show full video */
  border-radius: 30px;
}

.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 {
  border-top: 1px solid #e8e8e8;
  padding: 274px 34px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.pose-title {
  font-size: 32px;
  font-family: 'Arial', serif;
  font-weight: 400;
  line-height: 52px;
  color: #000000;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  padding: 24px 34px;
  width: 100%;
}

.pose-description {
  font-size: 18px;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  line-height: 21px;
  color: #000000;
  text-align: center;
  width: 66%;
}

/* 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 {
  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;
}

.publication-arxiv: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;
}

/* Responsive media queries */
@media (min-width: 640px) {
  .content-wrapper {
    padding: 0 24px;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .author-name {
    font-size: 15px;
  }
  
  .section-title {
    font-size: 48px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .download-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .download-btn {
    width: auto;
    min-width: 300px;
  }
  
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .institution-row {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }
  
  .institution-group {
    width: auto;
    min-width: 250px;
  }
}

@media (min-width: 768px) {
  .content-wrapper {
    padding: 0 32px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .author-name {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 60px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .annotations-content {
    flex-direction: row;
    gap: 50px;
  }
  
  .annotations-list {
    width: 48%;
    align-self: flex-end;
  }
  
  .pose-section {
    flex-direction: row;
  }
  
  .pose-demo {
    width: 50%;
  }
  
  .pose-info {
    width: 50%;
    padding: 274px 34px;
  }
  
  .download-title {
    font-size: 60px;
  }
  
  .download-btn {
    font-size: 20px;
  }
  
  .connect-title {
    font-size: 60px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 80px;
  }
  
  .logo-section {
    justify-content: space-between;
    padding: 70px 348px;
  }
  
  .behavior-content {
    align-items: flex-start;
  }
  
  .section-description {
    width: 76%;
  }
  
  .pose-description {
    width: 66%;
  }
  
  .team-row {
    max-width: 1000px;
    gap: 40px;
  }
  
  .institution-row {
    max-width: 1000px;
    gap: 40px;
  }
}

@media (min-width: 1280px) {
  .content-wrapper {
    padding: 0 40px;
  }
}