:root {
  /* Font system - Pure system fonts */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                  'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 
               'Courier New', monospace;
  
  /* Unified color system - Blue theme (#0078d7) */
  --color-primary: #0078d7;        /* Primary blue - For brand and important elements */
  --color-primary-light: #4da6ff;  /* Light blue - For hover and emphasis */
  --color-primary-dark: #005a9e;   /* Dark blue - For link hover and dark variants */
  
  /* Neutral colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-background: #ffffff;
  --color-background-dark: #18191a;
  
  /* Text colors */
  --color-text: #2d3748;           /* Primary text color - softer dark gray */
  --color-text-secondary: #718096; /* Secondary text color - warmer gray */
  --color-text-light: #a0aec0;     /* Light text color - subtle gray */
  --color-text-dark: #1a202c;      /* Dark text color - deep but not pure black */
  
  /* Dark mode text colors */
  --color-text-dark-mode: #eeeeee;
  --color-text-secondary-dark-mode: #cccccc;
  
  /* Borders and dividers */
  --color-border: rgba(0, 120, 215, 0.2);
  --color-border-light: rgba(0, 120, 215, 0.1);
  
  /* Shadow colors */
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-dark: rgba(0, 0, 0, 0.3);
}

html, body {
  font-family: var(--font-primary);
  background: #fff;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}
body.dark-mode {
  background: var(--color-background-dark);
  color: var(--color-text-dark-mode);
}
#bg-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.25);
  z-index: -1;
  pointer-events: none;
}
body.dark-mode #bg-mask {
  background: rgba(24,25,26,0.25);
}

/* ================================
   Catalyst Title Component Styles 
   ================================ */

/* Main container - Centered prominent position */
.catalyst-title-section {
  padding: 120px 0 200px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.catalyst-title-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Brain background image */
.brain-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.brain-image {
  width: 400px;
  height: auto;
  opacity: 0.15;
  filter: blur(1px);
}


/* Main title styles - Fixed reasonable font size, ignoring all breakpoints */
.catalyst-main-title {
  font-family: var(--font-primary);
  font-size: 6rem !important; /* About 96px - Reasonable fixed font size, ignoring breakpoints */
  font-weight: 700 !important; /* Bold - For emphasis */
  line-height: 1.1 !important;
  margin: 0 0 60px 0 !important; /* Increase bottom margin to move subtitle down */
  color: var(--color-text) !important; /* Dark text in light mode */
  letter-spacing: 0.02em !important;
  text-shadow: 0 0 20px var(--color-border-light) !important;
  transform: translateZ(0);
  will-change: auto;
}

/* Main title highlight section - Using project primary color */
.title-highlight {
  color: var(--color-primary) !important;
}

/* Subtitle styles - Adjusted according to specifications */
.catalyst-subtitle {
  font-family: var(--font-primary);
  font-size: 1.125rem; /* About 18px */
  font-weight: 500; /* Medium */
  line-height: 1.4;
  margin: 0;
  color: var(--color-text-secondary); /* Medium gray in light mode */
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  text-shadow: 0 0 15px var(--color-border-light);
  transform: translateZ(0);
}

/* Brand name emphasis - Unified color */
.brand-name {
  font-weight: 600;
  color: inherit;
}

/* Separator styles */
.subtitle-separator {
  font-weight: 300;
  opacity: 0.4;
  font-size: 0.8em;
  margin: 0 8px;
}


/* ===============================
   Catalyst Title 响应式设计
   =============================== */

/* Responsive design - Only adjust container and subtitle, keep main title fixed */
@media (max-width: 768px) {
  .catalyst-title-section {
    padding: 100px 0 150px 0;
    min-height: 50vh;
  }
  
  .catalyst-subtitle {
    font-size: 1rem; /* About 16px */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .catalyst-title-section {
    padding: 80px 0 120px 0;
    min-height: 45vh;
  }
  
  .catalyst-title-container {
    padding: 0 16px;
  }
  
  .catalyst-subtitle {
    font-size: 0.9rem; /* About 14px */
    gap: 8px;
    flex-direction: column;
  }
  
  .subtitle-separator {
    display: none; /* Hide separator on mobile */
  }
}

/* ===============================
   Catalyst Title 暗色模式支持
   =============================== */


body.dark-mode .catalyst-main-title {
  color: #f5f5f5 !important;
  text-shadow: 0 0 20px rgba(30, 198, 255, 0.2) !important;
}

body.dark-mode .title-highlight {
  color: var(--color-primary-light) !important; /* Use light blue in dark mode */
}

body.dark-mode .catalyst-subtitle {
  color: #d0d0d0;
  text-shadow: 0 0 15px rgba(30, 198, 255, 0.15);
}

body.dark-mode .brand-name {
  color: inherit; /* Unified color in dark mode too */
}

body.dark-mode .brain-image {
  opacity: 0.07;
  filter: blur(1px) brightness(1.5);
}

/* ========== Project Description Page - Garbage Zone Background ========== */

/* Add garbage zone background for Problem Statement section on project description page */
.page-content {
  position: relative;
}

.page-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 60%;
  background-image: url('/assets/images/Background/Garbage%20Zone.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  border-radius: 16px;
}

/* Ensure content is above background image */
.page-content .feature-grid {
  position: relative;
  z-index: 1;
}

/* Garbage zone background adjustments in dark mode */
body.dark-mode .page-content::before {
  opacity: 0.08;
  filter: brightness(0.7) contrast(1.2);
}

/* Responsive design - Garbage zone background */
@media (max-width: 768px) {
  .page-content::before {
    width: 50%;
    height: 40%;
    opacity: 0.12;
  }
}

@media (max-width: 480px) {
  .page-content::before {
    width: 60%;
    height: 30%;
    opacity: 0.1;
    top: 10%;
  }
}

/* ================================
   Unified Image Container System
   ================================ */

/* Main container styles - Unified image section */
.unified-image-section {
  padding: 100px 20px 180px 20px;
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.6), rgba(255, 255, 255, 0.8));
  position: relative;
  overflow: hidden;
}

/* Left text right image layout container */
.text-image-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 0 20px;
}

/* Left side text content area */
.left-text-content {
  padding: 0 20px 0 0;
}

/* Unified title styles */
.section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

/* Unified description styles */
.section-description {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 20px 0;
}

/* Unified detailed information styles */
.section-detail {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Right side image container */
.right-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Unified image styles - No decorative effects */
.right-image-container .section-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  display: block;
}

/* Remove hover effects */
.right-image-container .section-image:hover {
  transform: none;
}

/* Unified responsive design */
@media (max-width: 1024px) {
  .unified-image-section {
    padding: 80px 15px 140px 15px;
  }
  
  .text-image-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .left-text-content {
    padding: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .right-image-container .section-image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .unified-image-section {
    padding: 70px 15px 120px 15px;
  }
  
  .text-image-layout {
    gap: 30px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  .section-detail {
    font-size: 1rem;
  }
  
  .right-image-container .section-image {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .unified-image-section {
    padding: 60px 10px 100px 10px;
  }
  
  .text-image-layout {
    gap: 25px;
    padding: 0 10px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-description {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .section-detail {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .right-image-container .section-image {
    max-width: 200px;
  }
}

/* Unified dark mode support */
body.dark-mode .unified-image-section {
  background: linear-gradient(135deg, rgba(15, 20, 28, 0.9), rgba(20, 25, 35, 0.8));
}

body.dark-mode .section-title {
  color: #f5f5f5;
}

body.dark-mode .section-description {
  color: #d0d0d0;
}

body.dark-mode .section-detail {
  color: #b0b0b0;
}
/* 
body.dark-mode .right-image-container .section-image {
  /* Maintain no decorative effects in dark mode too */
/* }\ */
/* ================================
   Keywords Cards Component
   ================================ */

/* Keyword cards container */
.keywords-cards-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
  padding: 0;
  flex-wrap: wrap;
}

/* Individual keyword card */
.keyword-card {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 12px;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
  box-shadow: none;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

/* Keyword image */
.keyword-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* Card hover effect */
.keyword-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border: none;
  outline: none;
}

/* Image hover effect */
.keyword-card:hover .keyword-image {
  transform: scale(1.15);
}

/* Responsive design - Tablet devices */
@media (max-width: 1024px) {
  .keywords-cards-container {
    gap: 18px;
    margin-top: 30px;
  }
  
  .keyword-card {
    width: 72px;
    height: 72px;
    padding: 10px;
  }
  
  .keyword-image {
    width: 52px;
    height: 52px;
  }
}

/* Responsive design - Mobile devices */
@media (max-width: 768px) {
  .keywords-cards-container {
    gap: 16px;
    margin-top: 28px;
  }
  
  .keyword-card {
    width: 64px;
    height: 64px;
    padding: 8px;
  }
  
  .keyword-image {
    width: 48px;
    height: 48px;
  }
}

/* Small screen mobile optimization */
@media (max-width: 480px) {
  .keywords-cards-container {
    gap: 14px;
    margin-top: 25px;
  }
  
  .keyword-card {
    width: 56px;
    height: 56px;
    padding: 7px;
  }
  
  .keyword-image {
    width: 42px;
    height: 42px;
  }
}

/* Dark mode support */
body.dark-mode .keyword-card {
  background: rgba(25, 30, 40, 0.8);
  border: none;
  outline: none;
  box-shadow: none;
}

body.dark-mode .keyword-card:hover {
  box-shadow: none;
  border: none;
  outline: none;
}


/* Animation performance optimization */
@media (prefers-reduced-motion: reduce) {
  .keyword-card {
    transition: none;
  }
  
  .keyword-card:hover {
    transform: none;
  }
  
  .keyword-image {
    transition: none;
  }
  
  .keyword-card:hover .keyword-image {
    transform: none;
  }
}

/* ================================
   Animation Image Section
   ================================ */

/* Main animation image container styles */
.animation-image-section {
  padding: 120px 20px;
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.4), rgba(255, 255, 255, 0.6));
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Animation section text introduction styles */
.animation-text-intro {
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.animation-section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #005a9e;
  margin: 0 0 20px 0;
  letter-spacing: 0.02em;
}

.animation-description {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.animation-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

/* Sliding image container */
.sliding-image {
  flex: 1;
  max-width: 450px;
  opacity: 0;
  transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

/* Initial position - Left image outside left side of screen, offset downward */
.sliding-image.left-slide {
  transform: translateX(-100vw) translateY(40px);
}

/* Initial position - Right image outside right side of screen, offset upward */
.sliding-image.right-slide {
  transform: translateX(100vw) translateY(-40px);
}

/* Animation trigger state - Slide to final position, maintain offset effect */
.sliding-image.slide-in.left-slide {
  transform: translateX(0) translateY(40px);
  opacity: 1;
}

.sliding-image.slide-in.right-slide {
  transform: translateX(0) translateY(-40px);
  opacity: 1;
}

/* Image styles */
.animation-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.3s ease;
}

/* Hover effect */
.sliding-image.slide-in .animation-image:hover {
  transform: scale(1.05);
}

/* Responsive design - Tablet devices */
@media (max-width: 1024px) {
  .animation-image-section {
    padding: 100px 15px;
    min-height: 350px;
  }
  
  .animation-text-intro {
    margin: 0 auto 50px auto;
    padding: 0 15px;
  }
  
  .animation-section-title {
    font-size: 2.2rem;
  }
  
  .animation-description {
    font-size: 1rem;
  }
  
  .animation-container {
    gap: 60px;
  }
  
  .sliding-image {
    max-width: 350px;
  }
  
  .animation-image {
    max-width: 320px;
  }
  
  /* Adjust offset magnitude on tablet devices */
  .sliding-image.left-slide {
    transform: translateX(-100vw) translateY(30px);
  }
  
  .sliding-image.right-slide {
    transform: translateX(100vw) translateY(-30px);
  }
  
  .sliding-image.slide-in.left-slide {
    transform: translateX(0) translateY(30px);
  }
  
  .sliding-image.slide-in.right-slide {
    transform: translateX(0) translateY(-30px);
  }
}

/* Responsive design - Mobile devices */
@media (max-width: 768px) {
  .animation-image-section {
    padding: 80px 15px;
    min-height: 300px;
  }
  
  .animation-text-intro {
    margin: 0 auto 40px auto;
    padding: 0 15px;
  }
  
  .animation-section-title {
    font-size: 2rem;
    margin: 0 0 15px 0;
  }
  
  .animation-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .animation-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .sliding-image {
    max-width: 280px;
  }
  
  /* Adjust animation direction on mobile, maintain left-right offset effect */
  .sliding-image.left-slide {
    transform: translateY(-50px) translateX(-30px);
    opacity: 0;
  }
  
  .sliding-image.right-slide {
    transform: translateY(50px) translateX(30px);
    opacity: 0;
  }
  
  .sliding-image.slide-in.left-slide {
    transform: translateY(0) translateX(-30px);
    opacity: 1;
  }
  
  .sliding-image.slide-in.right-slide {
    transform: translateY(0) translateX(30px);
    opacity: 1;
  }
  
  .animation-image {
    max-width: 250px;
  }
}

/* Small screen mobile optimization */
@media (max-width: 480px) {
  .animation-image-section {
    padding: 60px 10px;
    min-height: 250px;
  }
  
  .animation-text-intro {
    margin: 0 auto 30px auto;
    padding: 0 10px;
  }
  
  .animation-section-title {
    font-size: 1.8rem;
    margin: 0 0 12px 0;
  }
  
  .animation-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .animation-container {
    gap: 30px;
  }
  
  .sliding-image {
    max-width: 220px;
  }
  
  .animation-image {
    max-width: 200px;
  }
  
  /* Reduce offset magnitude on small screen devices */
  .sliding-image.left-slide {
    transform: translateY(-40px) translateX(-20px);
  }
  
  .sliding-image.right-slide {
    transform: translateY(40px) translateX(20px);
  }
  
  .sliding-image.slide-in.left-slide {
    transform: translateY(0) translateX(-20px);
  }
  
  .sliding-image.slide-in.right-slide {
    transform: translateY(0) translateX(20px);
  }
}

/* Dark mode support */
body.dark-mode .animation-image-section {
  background: linear-gradient(135deg, rgba(15, 20, 28, 0.8), rgba(20, 25, 35, 0.6));
}

body.dark-mode .animation-section-title {
  color: #4db8ff;
}

body.dark-mode .animation-description {
  color: #d0d0d0;
}

body.dark-mode .animation-image {
  box-shadow: none;
  border: none;
  outline: none;
}

/* Animation performance optimization */
@media (prefers-reduced-motion: reduce) {
  .sliding-image {
    transition: opacity 0.3s ease;
  }
  
  .sliding-image.left-slide,
  .sliding-image.right-slide {
    transform: none;
    opacity: 0;
  }
  
  .sliding-image.slide-in {
    opacity: 1;
  }
  
  .animation-image:hover {
    transform: none;
  }
}

/* Video Section Solution Title Dark Mode */
body.dark-mode .video-section h1 {
  color: #f5f5f5 !important;
  text-shadow: 0 0 20px rgba(30, 198, 255, 0.2) !important;
}



/* Hero Section Layout */
.hero-section {
  margin-bottom: 80px;
  padding: 80px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Left Column - Text Content */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text h1 {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: #005ba1;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Right Column - Carousel */
.hero-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8.5px);
  -webkit-backdrop-filter: blur(8.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  /* Ensure proper aspect ratio container */
  aspect-ratio: 8/9;
  max-height: 500px;
  min-height: 350px;
}

/* Dark mode carousel styling */
body.dark-mode .hero-carousel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Content Sections Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section:not(.hero-section) {
  margin-bottom: 80px;
  padding: 60px 0;
}

section:not(.hero-section):nth-child(even) {
  background: rgba(240, 245, 251, 0.3);
  border-radius: 0;
}

body.dark-mode section:not(.hero-section):nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

section h2 {
  font-size: 2em;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px 0;
  line-height: 1.3;
  text-align: center;
}

section h3 {
  font-size: 1.3em;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0 0 32px 0;
  line-height: 1.4;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

section p {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 24px 0;
  text-align: justify;
}

section p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }
  
  .hero-text {
    text-align: center;
    order: 2;
  }
  
  .hero-carousel {
    order: 1;
  }
  
  .hero-text h1 {
    font-size: 2em;
  }
  
  .hero-text h2 {
    font-size: 1.5em;
  }
  
  .hero-description {
    font-size: 1em;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-carousel {
    aspect-ratio: 16/10;
    min-height: 280px;
    max-height: 350px;
  }
  
  .carousel-container {
    min-height: 280px;
  }
  
  .section-container {
    padding: 0 16px;
  }
  
  section:not(.hero-section) {
    margin-bottom: 60px;
    padding: 40px 0;
  }
  
  section h2 {
    font-size: 1.6em;
  }
  
  section h3 {
    font-size: 1.1em;
  }
  
  section p {
    font-size: 1em;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-container {
    gap: 24px;
    padding: 0 12px;
  }
  
  .hero-text h1 {
    font-size: 1.8em;
  }
  
  .hero-text h2 {
    font-size: 1.3em;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .hero-carousel {
    aspect-ratio: 4/3;
    min-height: 240px;
    max-height: 300px;
  }
  
  .carousel-container {
    min-height: 240px;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: inherit;
}

body.dark-mode .carousel-container {
  background: #1a1a1a;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
  opacity: 1;
}

/* Image Container for Better Control */
.slide-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .slide-image-container {
  background: #2a2a2a;
}

.slide-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, opacity 0.3s ease;
  will-change: transform;
  /* Image optimization */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Note: loading attribute should be set in HTML, not CSS */
}

/* Image hover effect for better interactivity */
.carousel-slide:hover .slide-image-container img {
  transform: scale(1.05);
}

/* Ensure smooth transitions */
.carousel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  overflow: hidden;
}

.slide-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.slide-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.4em;
  font-weight: 600;
  color: var(--color-primary);
}

.slide-content p {
  margin: 0;
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
}



/* Dark mode adaptation */
body.dark-mode .slide-content {
  background: rgba(24, 25, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .slide-content h3 {
  color: #eee;
}

body.dark-mode .slide-content p {
  color: #ccc;
}


/* Responsive design */
@media (max-width: 768px) {
  .carousel-container {
    height: 300px;
  }
  
  .slide-content {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 16px;
    max-width: none;
  }
  
  .slide-content h3 {
    font-size: 1.2em;
  }
  
  .slide-content p {
    font-size: 0.9em;
  }
  
}

/* Color variables are now defined at the top of this file */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 20px 0 20px;
}
h1, h2, h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
h1 {
  font-size: 2.1em;
  margin-top: 0.5em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.15em;
}
p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 1em;
}

.hero-section {
  text-align: center;
  margin: 48px 0;
}

.hero-section h1 {
  font-size: 2.5em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.2em;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

body.dark-mode .hero-description {
  color: #cccccc;
}

.hero-logo {
  max-width: 90vw;
  width: 480px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin: 0 auto;
  display: block;
}

body.dark-mode .hero-logo {
  box-shadow: 0 4px 24px rgba(255,255,255,0.08);
}

.features-section {
  margin: 64px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* vanSchneider Style Grid System - Prevent Overlap */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 0;
  margin-top: 48px;
  grid-auto-rows: minmax(280px, auto);  /* Consistent row height */
  align-items: start;                    /* Prevent stretching */
}

/* Additional spacing between sections */
.team-section + .team-section {
  margin-top: 120px;
}

/* Ensure proper grid container behavior */
.feature-grid.members-grid {
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0,79,148,0.1);
}

body.dark-mode .feature-card {
  background: rgba(40,40,40,0.8);
  border-color: rgba(108,180,255,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

body.dark-mode .member-card {
  background: #1a1a1a !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

body.dark-mode .feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 1.3em;
  font-weight: 600;
}

body.dark-mode .feature-card h3 {
  color: var(--color-primary-light);
}

.feature-card p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

body.dark-mode .feature-card p {
  color: #ccc;
}

.feature-link {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.feature-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

body.dark-mode .feature-link {
  background: var(--color-primary-light);
  color: var(--color-white);
}

body.dark-mode .feature-link:hover {
  background: var(--color-primary);
}

.page-header {
  text-align: center;
  margin: 48px 0 64px 0;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,79,148,0.15);
}

body.dark-mode .page-header {
  border-bottom-color: rgba(21,101,192,0.25);
}

.page-header h1 {
  font-size: 2.2em;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-weight: 600;
}

body.dark-mode .page-header h1 {
  color: var(--color-primary-light);
}

.page-description {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.1em;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

body.dark-mode .page-description {
  color: #ccc;
}

.page-content {
  margin-top: 32px;
}

@media (max-width: 768px) {
  .main-content {
    padding: 32px 16px 0 16px;
  }
  
  .hero-section h1 {
    font-size: 2em;
  }
  
  .hero-description {
    font-size: 1.1em;
  }
  
  .hero-logo {
    width: 320px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  .page-header {
    margin: 32px 0 48px 0;
  }
  
  .page-header h1 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 280px;
  }
  
  .feature-card {
    padding: 20px 16px;
  }
}
img, .card {
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #005fa3;
  text-decoration: underline;
}
button, .btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 0.98em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
button:hover, .btn:hover {
  background: #005fa3;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
/* Footer minimalist style */
.igem-footer {
  width: 100%;
  background: #fafbfc !important; /* Light mode light color */
  color: #222 !important;
  padding: 0;
  min-height: 320px;
  border-top: none;
  letter-spacing: 0.01em;
  font-size: 16px;
}
.footer-container {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 320px;
}
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.footer-left-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.footer-left-bottom {
  flex: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
}
.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
/* Remove global footer link styles, use specific class names for control */
body.dark-mode .igem-footer {
  background: #18191a !important; /* Night mode dark color */
  color: #fff !important;
  border-top: 1px solid #333;
}
.footer-left-top {
  background: #e3f0fa;
}
.footer-left-bottom {
  background: #f9e3fa;
}
.footer-right {
  background: #e3fae7;
}
.dark-footer {
  background: #111;
  color: #fff;
  padding: 0;
  min-height: 320px;
  border-top: none;
}
.footer-top-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0 16px 0;
  font-weight: bold;
}
.footer-top-nav a {
  color: #1ec6ff;
  text-decoration: none;
  font-size: 1.2em;
}
.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 48px 64px;
  gap: 56px;
}
.footer-col {
  flex: 1 1 0;
  min-width: 220px;
  max-width: none;
  box-sizing: border-box;
}
.footer-col-logo {
  flex: 0 0 300px;
  max-width: 320px;
}
.footer-col-nav {
  flex: 1 1 0;
  min-width: 0;
}
.footer-nav-multicol {
  display: flex;
  gap: 56px;
  justify-content: flex-end;
  width: 100%;
}
.footer-col-nav {
  overflow: visible;
}
.footer-logo {
  width: 240px;
  margin-bottom: 32px;
}
.footer-contact {
  font-weight: bold !important;
  font-size: 1.08em;
  line-height: 1.3;
}
.footer-contact strong {
  font-size: 1.25em !important;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.footer-contact div,
.footer-contact a {
  margin-bottom: 2px !important;
}
.footer-social {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background: #888;
  transition: background 0.2s;
}
.footer-social-icon.bsky { background: #4fc3f7; }
.footer-social-icon:hover { filter: brightness(1.05); }
.footer-col-newsletter strong {
  font-size: 1.1em;
  margin-bottom: 8px;
  display: block;
}
.footer-newsletter-form {
  display: flex;
  margin: 12px 0;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1em;
}
.footer-newsletter-form button {
  padding: 8px 18px;
  border: none;
  background: #888;
  color: #fff;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  cursor: pointer;
}
.footer-donate-btn {
  background: #ffe066;
  color: var(--color-text);
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  margin-top: 18px;
  font-size: 1.1em;
  cursor: pointer;
}
.footer-license {
  margin-top: 18px;
  font-size: 0.95em;
  color: #bbb;
}
.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 150px;
}
.footer-nav-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 16px !important;
  letter-spacing: 0.02em;
}
.footer-social a {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-block !important;
}
.footer-social img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: block !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: grayscale(0) brightness(1.02) contrast(1.02) !important;
}
.footer-social a:hover img {
  filter: brightness(1.05) !important;
}
.footer-main.cc-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 64px 24px 64px;
  gap: 64px;
}
.footer-leftblock {
  flex: 0 0 340px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-logo {
  width: 220px;
  margin-bottom: 8px;
}
.footer-contact {
  font-weight: bold;
  font-size: 1.08em;
  line-height: 1.3;
  margin-bottom: 0;
}
.footer-contact strong {
  font-size: 1.25em;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.footer-contact div,
.footer-contact a {
  margin-bottom: 2px;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.footer-rightblock {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}
.footer-nav-multicol {
  display: flex;
  gap: 56px;
  width: 100%;
  justify-content: flex-start;
}
.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 150px;
}
.footer-nav-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  color: var(--color-text-dark);
}

.footer-nav-group a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.95em;
  color: var(--color-text-light);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.25s ease-out;
  position: relative;
  display: inline-block;
  outline: none;
}

.footer-nav-group a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.25s ease-out;
}

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

.footer-nav-group a:hover, .footer-nav-group a:focus {
  color: var(--color-primary);
  outline: none;
}
body.dark-mode .footer-nav-title {
  color: #fff;
}

body.dark-mode .footer-nav-group a {
  color: #ccc;
}

body.dark-mode .footer-nav-group a::after {
  background: var(--color-primary-light);
}

body.dark-mode .footer-nav-group a:hover, body.dark-mode .footer-nav-group a:focus {
  color: var(--color-primary-light);
  outline: none;
}

/* Footer overall background */
.igem-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  border-top: 1px solid rgba(0,79,148,0.12);
  margin-top: 48px;
}

body.dark-mode .igem-footer {
  background: linear-gradient(135deg, #1a1b1c 0%, #2d2e30 100%);
  border-top: 1px solid rgba(21,101,192,0.25);
}

/* Footer color and style optimization */
.footer-contact {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1em;
  line-height: 1.5;
  color: #333;
}

.footer-contact strong {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1em;
  color: var(--color-text);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.footer-address {
  color: var(--color-text-secondary);
  font-size: 0.95em;
  margin-bottom: 4px;
  line-height: 1.4;
}

.footer-mail {
  color: var(--color-primary) !important;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
  transition: color 0.25s ease-out;
  position: relative;
  outline: none;
}

.footer-mail::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.25s ease-out;
}

.footer-mail:hover::after {
  width: 100%;
}

.footer-mail:hover, .footer-mail:focus {
  color: var(--color-primary-dark) !important;
  outline: none;
  text-decoration: none !important;
}

/* Footer styles in dark mode */
body.dark-mode .footer-contact {
  color: #eee;
}

body.dark-mode .footer-contact strong {
  color: #fff;
}

body.dark-mode .footer-address {
  color: #ccc;
}

body.dark-mode .footer-mail {
  color: var(--color-primary-light) !important;
}

body.dark-mode .footer-mail::after {
  background: var(--color-primary-light);
}

body.dark-mode .footer-mail:hover, body.dark-mode .footer-mail:focus {
  color: var(--color-primary) !important;
  outline: none;
  text-decoration: none !important;
}

/* Social media icon styles */
.footer-social-link {
  display: block;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.footer-social-link:hover {
  background: rgba(0,120,215,0.1);
}

body.dark-mode .footer-social-link:hover {
  background: rgba(108,180,255,0.1);
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}

/* Footer bottom text color fix */
.footer-bottom {
  background: rgba(0,0,0,0.05);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  text-align: center;
  font-size: 0.95em;
  padding: 18px 0 8px 0;
  letter-spacing: 0.01em;
}

body.dark-mode .footer-bottom {
  background: rgba(255,255,255,0.05);
  color: #ccc;
}

.footer-bottom a {
  color: var(--color-primary) !important;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.25s ease-out;
  position: relative;
  display: inline-block;
  outline: none;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.25s ease-out;
}

.footer-bottom a:hover::after {
  width: 100%;
}

.footer-bottom a:hover, .footer-bottom a:focus {
  color: var(--color-primary-dark) !important;
  outline: none;
}

body.dark-mode .footer-bottom a {
  color: var(--color-primary-light) !important;
}

body.dark-mode .footer-bottom a::after {
  background: var(--color-primary-light);
}

body.dark-mode .footer-bottom a:hover, body.dark-mode .footer-bottom a:focus {
  color: var(--color-primary) !important;
  outline: none;
}
@media (max-width: 768px) {
  .footer-main.cc-layout {
    flex-direction: column;
    gap: 32px;
    padding: 32px 20px;
    align-items: flex-start;
  }
  
  .footer-leftblock {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  
  .footer-logo {
    width: 200px;
  }
  
  .footer-contact {
    font-size: 0.95em;
  }
  
  .footer-contact strong {
    font-size: 1.05em;
  }
  
  .footer-social {
    justify-content: flex-start;
    gap: 12px;
  }
  
  .footer-rightblock {
    width: 100%;
  }
  
  .footer-nav-multicol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }
  
  .footer-nav-group {
    min-width: auto;
    gap: 12px;
  }
  
  .footer-nav-title {
    font-size: 1em;
    margin-bottom: 12px;
  }
  
  .footer-nav-group a {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .footer-nav-multicol {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-main.cc-layout {
    padding: 24px 16px;
    scroll-snap-align: start;
    background: none;
  }
}

/* ===== TEAM MEMBERS STYLES ===== */

/* Team Photo Hero Section - Parallax Design with Geometric Background */
.team-photo-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 65vh;  /* Reduce height from 100vh to 65vh */
  z-index: -1;
  overflow: hidden;
  background: #ffffff;
}

body.dark-mode .team-photo-hero {
  background: #18191a;
}

/* DNA Double Helix Background Pattern */
.team-photo-hero {
  --dna-rotation: 0deg;
  --dna-scale: 1;
  --dna-opacity: 1;
}

/* DNA Background Layer 1 - Foreground helix */
.team-photo-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background-image: url('/assets/images/dna-helix.svg');
  background-size: 200px 300px;
  background-repeat: repeat;
  background-position: 0% 0%;
  will-change: transform;
  transform: rotate(var(--dna-rotation)) scale(var(--dna-scale));
  opacity: calc(var(--dna-opacity) * 0.35);
  z-index: 1;
  animation: dnaRotateIllusion 20s linear infinite;
}

body.dark-mode .team-photo-hero::before {
  opacity: calc(var(--dna-opacity) * 0.28);
  filter: brightness(1.05);
}

/* DNA Background Layer 2 - Background helix with different phase */
.team-photo-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 130%;
  height: 160%;
  background-image: url('/assets/images/dna-helix.svg');
  background-size: 160px 240px;
  background-repeat: repeat;
  background-position: 50% 30%;
  will-change: transform;
  transform: rotate(calc(var(--dna-rotation) * -0.7)) scale(calc(var(--dna-scale) * 0.8));
  opacity: calc(var(--dna-opacity) * 0.20);
  z-index: 2;
  animation: dnaRotateIllusionReverse 25s linear infinite;
}

body.dark-mode .team-photo-hero::after {
  opacity: calc(var(--dna-opacity) * 0.15);
  filter: brightness(1.02);
}

/* DNA Rotation Illusion Animation - Optimized for Performance */
@keyframes dnaRotateIllusion {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.05); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(0.95); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes dnaRotateIllusionReverse {
  0% { transform: rotate(0deg) scale(0.8); }
  25% { transform: rotate(-72deg) scale(0.85); }
  50% { transform: rotate(-144deg) scale(0.8); }
  75% { transform: rotate(-216deg) scale(0.75); }
  100% { transform: rotate(-288deg) scale(0.8); }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-photo-hero::before,
  .team-photo-hero::after {
    animation: none !important;
    transform: rotate(0deg) scale(1) !important;
  }
  
  .team-photo-hero {
    --dna-rotation: 0deg !important;
    --dna-scale: 1 !important;
  }
}

/* Performance optimizations for DNA animations */
.team-photo-hero::before,
.team-photo-hero::after {
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.team-photo-container {
  position: relative;
  width: 90%;  /* Increase width - make it wider */
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  z-index: 3;
}

.team-photo {
  width: 100%;
  height: 120%;  /* Slightly larger for parallax effect */
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.4s ease;
  transform: translateY(0);
  will-change: transform;
}

.team-photo:hover {
  filter: grayscale(0%) contrast(1);
}

/* Minimal overlay for depth */
.team-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.05);
  pointer-events: none;
}

body.dark-mode .team-photo-overlay {
  background: rgba(0,0,0,0.1);
}

/* Content overlay section */
.content-overlay {
  position: relative;
  background: #ffffff;
  margin-top: 65vh;  /* Start after reduced hero height */
  z-index: 1;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

body.dark-mode .content-overlay {
  background: #18191a;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}

/* Adjust main content to be inside overlay */
.main-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px 48px 20px;
}

/* Remove broken edge */
.broken-edge {
  display: none;
}

/* Page header adjustment */
.page-header {
  margin-top: 0;
  padding-top: 0;
  position: relative;
  z-index: 2;
}

/* PI Showcase Section */
.pi-showcase {
  margin: 64px 0 80px 0;
  display: flex;
  justify-content: center;
}

/* PI card uses same styling as member cards but with special accent color */
.pi-card {
  max-width: 320px;
}

.pi-accent {
  background: linear-gradient(135deg, #8B5CF6, #A855F7) !important; /* Purple gradient for PI */
}

/* Team Section Styling */
.team-section {
  margin: 80px 0;
}

.team-title {
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.8em;
  margin: 0 0 40px 0;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
}

body.dark-mode .team-title {
  color: var(--color-primary-light);
}

.team-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  margin: 16px auto 0 auto;
  border-radius: 2px;
}

/* Member Card Enhancements - vanSchneider Featured Essays Style */
.member-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: center;
  cursor: pointer;
  border-radius: 2px !important;     /* Minimal rounded corners */
  padding: 0 !important;             /* Remove padding for clean edge-to-edge design */
  width: 100%;                       /* Full width within grid cell */
  height: 280px;                     /* Fixed height instead of aspect-ratio */
  background: #ffffff !important;    /* Pure white background */
  border: none !important;           /* Clean edges */
  box-shadow: 0 2px 20px rgba(0,0,0,0.06) !important;
  display: flex;                     /* Use flexbox for content layout */
  flex-direction: column;            /* Stack content vertically */
}

/* vanSchneider Style Hover Effects - Subtle and Sophisticated */
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

body.dark-mode .member-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

/* vanSchneider Style - Bold Color Block Header */
.geometric-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--color-primary);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

/* Different colors for different roles */
.team-section[data-role="leaders"] .geometric-accent {
  background: linear-gradient(135deg, #667EEA, #764BA2);
}

.team-section[data-role="members"] .geometric-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

body.dark-mode .geometric-accent {
  opacity: 0.9;
}

.member-card:hover .geometric-accent {
  height: 130px;
}

/* Member Avatar - vanSchneider Style Integration */
.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 2px;                    /* Square with minimal rounding */
  margin: 40px auto 0 auto;              /* Position in color block */
  background: rgba(255,255,255,0.2);     /* Subtle overlay on color block */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4em;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);           /* Minimal glass effect */
  border: 1px solid rgba(255,255,255,0.15);
}


body.dark-mode .member-avatar {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.avatar-initials {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.member-card:hover .member-avatar {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.3);
}

body.dark-mode .member-card:hover .member-avatar {
  background: rgba(255,255,255,0.15);
}

/* Member Information - vanSchneider Minimal Typography */
.member-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1em;
  margin: 32px 24px 8px 24px;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 3;
}


body.dark-mode .member-name {
  color: #ffffff;
}

.member-role {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.8em;
  color: var(--color-text-secondary);
  margin: 0 24px 24px 24px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  position: relative;
  z-index: 3;
}


body.dark-mode .member-role {
  color: #cccccc;
}

/* Team Showcase Container System */
.team-showcase-container {
  position: relative;
  margin: 120px 0;
  overflow: visible; /* Allow horizontal expansion */
}

.showcase-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1800px; /* Much larger to accommodate wide spread */
  margin: 0 auto;
  padding: 0 80px; /* Large padding to prevent edge overflow */
}

/* Alternating Layout - Left-Right Staggered */
.pi-showcase-section .showcase-layout {
  flex-direction: row; /* PI: Avatar on left, info on right */
  justify-content: flex-start;
}

.leaders-showcase-section .showcase-layout {
  flex-direction: row-reverse; /* Leaders: Avatar on right, info on left */
  justify-content: flex-end;
}

.students-showcase-section .showcase-layout {
  flex-direction: row; /* Students: Avatar on left, info on right */
  justify-content: flex-start;
}

/* Staggered positioning for visual rhythm - Left, Right, Left */
.pi-showcase-section {
  transform: translateX(-250px); /* PI on the left */
}

.leaders-showcase-section {
  transform: translateX(200px); /* Leaders on the right */
}

.leaders-showcase-section .avatar-frame {
  transform: translateX(0) scale(1.0); /* Standard size for middle layer */
}

.students-showcase-section {
  transform: translateX(-200px); /* Students back to the left */
}

.students-showcase-section .avatar-frame {
  transform: translateX(0); /* Equal size with leaders for visual consistency */
}

/* Clean depth with minimal shadows */
.pi-showcase-section .avatar-frame {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 4; /* Front layer - PI gets prominence */
}

.leaders-showcase-section .avatar-frame {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  z-index: 3; /* Middle layer */
}

.students-showcase-section .avatar-frame {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 2; /* Back layer - creates visual flow */
}

body.dark-mode .pi-showcase-section .avatar-frame {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.dark-mode .leaders-showcase-section .avatar-frame {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .students-showcase-section .avatar-frame {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Minimal backdrop filters for elegance */
.pi-showcase-section .avatar-frame {
  backdrop-filter: blur(8px);
}

.leaders-showcase-section .avatar-frame {
  backdrop-filter: blur(6px);
}

.students-showcase-section .avatar-frame {
  backdrop-filter: blur(4px);
}

/* Avatar Frame System - The "Window" Container - Elliptical Design */
.avatar-frame {
  position: relative;
  border-radius: 50%; /* Start as circular, will be overridden to elliptical */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.dark-mode .avatar-frame {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Elliptical frame shapes for different levels */
.pi-frame {
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; /* Organic elliptical shape */
}

.leaders-frame {
  border-radius: 70% 30% 60% 40% / 40% 70% 30% 60%; /* Different elliptical variant */
}

.students-frame {
  border-radius: 50% 70% 30% 50% / 60% 40% 70% 30%; /* Another elliptical variant */
}

/* Hover effect - expand to rounded rectangle */
.avatar-frame:hover {
  border-radius: 16px !important; /* Override elliptical to rounded rectangle */
  transform: scale(1.05);
  filter: brightness(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode .avatar-frame:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.avatar-viewport {
  position: relative;
  overflow: hidden;
}

/* PI Frame - Single Member Display */
.pi-frame {
  width: 280px;
  height: 320px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
}

body.dark-mode .pi-frame {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
}

.pi-frame .avatar-viewport {
  width: 100%;
  height: 100%;
}

.pi-frame .avatar-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}

/* Leaders Frame - Scrollable Display */
.leaders-frame {
  width: 200px;
  height: 280px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
}

body.dark-mode .leaders-frame {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18));
}

.leaders-frame .avatar-viewport {
  width: 100%;
  height: 100%;
}

.leaders-frame .avatar-display {
  height: 280px; /* Match frame height for proper scrolling calculation */
}

/* Students Frame - Scrollable Display */
.students-frame {
  width: 160px;
  height: 240px;
  background: linear-gradient(135deg, var(--color-border-light), rgba(64, 170, 255, 0.1));
}

body.dark-mode .students-frame {
  background: linear-gradient(135deg, rgba(0, 120, 215, 0.15), rgba(64, 170, 255, 0.15));
}

.students-frame .avatar-viewport {
  width: 100%;
  height: 100%;
}

.students-frame .avatar-display {
  height: 240px; /* Match frame height for proper scrolling calculation */
}

/* Scrollable Avatar Container */
.avatar-scroll-container {
  position: relative;
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

/* Individual Avatar Display */
.avatar-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px;
  opacity: 0.3;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.avatar-display.active {
  opacity: 1;
  transform: scale(1);
}

/* Avatar Sizes and Styles - Simple circular/rounded design inside elliptical frames */
.member-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 16px; /* Rounded rectangle */
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5em;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  animation: gentle-float 3s ease-in-out infinite;
}

body.dark-mode .member-avatar-large {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.member-avatar-large:hover {
  transform: translateY(-4px) scale(1.05);
}

.member-avatar-medium {
  width: 75px;
  height: 75px;
  border-radius: 12px; /* Unified border radius */
  background: linear-gradient(135deg, #667EEA, #764BA2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6em;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

body.dark-mode .member-avatar-medium {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.member-avatar-medium:hover {
  transform: translateY(-4px) scale(1.05);
}

.member-avatar-small {
  width: 75px;
  height: 75px;
  border-radius: 12px; /* Unified border radius */
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6em;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

body.dark-mode .member-avatar-small {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.member-avatar-small:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Member Information Display */
.member-info-display {
  flex: 1;
  max-width: 400px;
  position: relative;
  min-height: 120px;
}

/* Unified information display for all levels */
.member-info-display {
  max-width: 450px;
  min-height: 250px;
}

.member-info-content {
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.member-info-content.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

/* Horizontal layout: show all member info by default */
.member-card-expand .member-info-content {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

/* Directional info animations based on layout */
.pi-showcase-section .member-info-content {
  transform: translateX(20px); /* Slide in from right */
}

/* Override directional animations for horizontal layout */
.member-card-expand .member-info-content {
  transform: translateX(0) !important;
}

/* Text alignment based on layout direction */
.pi-showcase-section .member-info-display {
  text-align: left;
}

.leaders-showcase-section .member-info-display {
  text-align: right;
}

.students-showcase-section .member-info-display {
  text-align: left;
}

.member-info-content .member-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.4em;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.dark-mode .member-info-content .member-name {
  color: #ffffff;
}

.member-info-content .member-role {
  font-family: var(--font-primary);
  font-weight: 500;
  margin: 0 0 8px 0;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.9em;
}

body.dark-mode .member-info-content .member-role {
  color: var(--color-primary-light);
}

.member-info-content .member-dept {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.8em;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
  text-transform: none;
  letter-spacing: normal;
}

body.dark-mode .member-info-content .member-dept {
  color: #aaa;
}

.member-info-content .member-description {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.85em;
  color: var(--color-text-secondary);
  margin: 8px 0 0 0;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
}

body.dark-mode .member-info-content .member-description {
  color: #ccc;
}

/* Horizontal Scroll Container System */
.members-horizontal-container {
  position: relative;
  padding: 40px 0;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: none; /* Allow full width expansion */
}

.members-scroll-track {
  display: flex;
  gap: 30px;
  padding: 0 50px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox - Hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge */
  width: 100%;
  min-width: max-content; /* Ensure container expands to fit all items */
}

.members-scroll-track::-webkit-scrollbar {
  height: 8px; /* Show thin scrollbar on larger screens */
}

.members-scroll-track::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.members-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(0,120,215,0.6);
  border-radius: 4px;
}

.members-scroll-track::-webkit-scrollbar-thumb:hover {
  background: rgba(0,120,215,0.8);
}

/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 768px) {
  .members-scroll-track::-webkit-scrollbar {
    display: none;
  }
}

/* Member Card with Expand Animation */
.member-card-expand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateX(-100px) scale(0.8); /* Default: from left */
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 0 0 280px; /* Explicit flex-basis to maintain width */
  width: 280px;
  min-height: 400px;
  box-sizing: border-box;
}

/* Student Leaders: expand from right to left */
.leaders-showcase-section .member-card-expand {
  transform: translateX(100px) scale(0.8); /* From right */
}

/* Auto-scroll animation removed for cleaner experience */

/* Leaders and Students Unified Styling */
.leaders-showcase-section .members-scroll-track,
.students-showcase-section .members-scroll-track {
  gap: 35px; /* Unified spacing */
}

/* Ensure sufficient width for all cards */
.leaders-showcase-section .members-scroll-track {
  min-width: calc(3 * 280px + 2 * 35px + 100px); /* 3 cards + 2 gaps + padding */
  width: max-content; /* Allow natural expansion */
}

.students-showcase-section .members-scroll-track {
  min-width: calc(7 * 280px + 6 * 35px + 100px); /* 7 cards + 6 gaps + padding */
  width: max-content; /* Allow natural expansion */
}

.leaders-showcase-section .member-card-expand,
.students-showcase-section .member-card-expand {
  flex: 0 0 280px;
  width: 280px;
  min-height: 400px;
}

/* Expanded State - Triggered by JavaScript */
.member-card-expand.expanded {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Staggered Animation Delay via CSS Custom Properties */
.member-card-expand {
  transition-delay: calc(var(--expand-delay, 0) * 0.1s);
}


/* Unified styles for all levels - Visual Equality Principle */



/* Section Titles */
.section-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

body.dark-mode .section-title {
  color: var(--color-primary-light);
}

/* Floating Animation for PI */
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Avatar scroll state effects */
.avatar-display:not(.active) .member-avatar-large,
.avatar-display:not(.active) .member-avatar-medium,
.avatar-display:not(.active) .member-avatar-small {
  opacity: 0.3;
  transform: scale(0.9);
}

/* Ultra-wide screen optimization */
@media (min-width: 1600px) {
  .pi-showcase-section {
    transform: translateX(-320px); /* PI larger left offset */
  }
  
  .leaders-showcase-section {
    transform: translateX(280px); /* Leaders larger right offset */
  }
  
  .students-showcase-section {
    transform: translateX(-280px); /* Students larger left offset */
  }
  
  .showcase-layout {
    max-width: 2200px; /* Expanded for ultra-wide displays */
    padding: 0 120px; /* Extra padding for ultra-wide */
  }
}

/* Tablet Responsive Styles */
@media (max-width: 1200px) {
  .pi-showcase-section {
    transform: translateX(-180px); /* PI reduced left offset */
  }
  
  .leaders-showcase-section {
    transform: translateX(150px); /* Leaders reduced right offset */
  }
  
  .students-showcase-section {
    transform: translateX(-150px); /* Students reduced left offset */
  }
  
  .showcase-layout {
    max-width: 1400px;
    padding: 0 60px; /* Reduced padding */
  }
}

@media (max-width: 900px) {
  .pi-showcase-section {
    transform: translateX(-120px); /* PI further reduced left offset */
  }
  
  .leaders-showcase-section {
    transform: translateX(100px); /* Leaders further reduced right offset */
  }
  
  .students-showcase-section {
    transform: translateX(-100px); /* Students further reduced left offset */
  }
  
  .showcase-layout {
    max-width: 1200px;
    padding: 0 40px;
  }
}

/* Responsive Horizontal Scroll Layout */
@media (max-width: 1200px) {
  .members-scroll-track {
    gap: calc(35px * 0.75); /* Proportional scaling */
    padding: 0 40px;
  }
  
  .leaders-showcase-section .members-scroll-track,
  .students-showcase-section .members-scroll-track {
    gap: calc(35px * 0.75); /* Consistent proportional spacing */
    width: max-content; /* Ensure full member display */
  }
  
  .member-card-expand {
    flex: 0 0 260px; /* Update flex-basis for responsive width */
    width: 260px;
    min-height: 380px;
  }
  
  .leaders-showcase-section .member-card-expand,
  .students-showcase-section .member-card-expand {
    flex: 0 0 260px;
    width: 260px;
    min-height: 380px;
  }
}

@media (max-width: 900px) {
  .members-scroll-track {
    gap: calc(35px * 0.6); /* Continue proportional scaling */
    padding: 0 30px;
  }
  
  .leaders-showcase-section .members-scroll-track,
  .students-showcase-section .members-scroll-track {
    width: max-content; /* Ensure full member display */
  }
  
  .member-card-expand {
    flex: 0 0 240px; /* Update flex-basis for responsive width */
    width: 240px;
    min-height: 360px;
  }
  
  .leaders-showcase-section .member-card-expand,
  .students-showcase-section .member-card-expand {
    flex: 0 0 240px;
    width: 240px;
    min-height: 360px;
  }
  
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .team-showcase-container {
    margin: 80px 0;
  }
  
  /* Reset staggered positioning for mobile */
  .pi-showcase-section,
  .leaders-showcase-section,
  .students-showcase-section {
    transform: none;
  }
  
  .showcase-layout {
    flex-direction: column !important; /* Override directional layouts */
    gap: 40px;
    padding: 0 20px;
    justify-content: center !important;
    text-align: center;
  }
  
  /* Mobile Horizontal Scroll Layout */
  .members-scroll-track {
    gap: calc(35px * 0.45); /* Maintain proportional scaling on mobile */
    padding: 0 20px;
  }
  
  .leaders-showcase-section .members-scroll-track,
  .students-showcase-section .members-scroll-track {
    width: max-content; /* Ensure full member display on mobile */
  }
  
  .member-card-expand {
    flex: 0 0 220px; /* Update flex-basis for responsive width */
    width: 220px;
    min-height: 320px;
  }
  
  .leaders-showcase-section .member-card-expand,
  .students-showcase-section .member-card-expand {
    flex: 0 0 220px;
    width: 220px;
    min-height: 320px;
  }
  
  
  /* Reset text alignment for mobile */
  .pi-showcase-section .member-info-display,
  .leaders-showcase-section .member-info-display,
  .students-showcase-section .member-info-display {
    text-align: center;
  }
  
  /* Reset directional animations for mobile */
  .pi-showcase-section .member-info-content,
  .leaders-showcase-section .member-info-content,
  .students-showcase-section .member-info-content {
    transform: translateY(20px); /* Slide up from bottom on mobile */
  }
  
  .pi-frame {
    width: 240px;
    height: 280px;
  }
  
  .leaders-frame {
    width: 180px;
    height: 240px;
  }
  
  .students-frame {
    width: 140px;
    height: 200px;
  }
  
  /* Reset elliptical frames to rounded rectangles on mobile */
  .avatar-frame {
    border-radius: 12px !important;
  }
  
  .avatar-frame:hover {
    border-radius: 12px !important;
    transform: scale(1.02);
  }
  
  .member-avatar-large {
    width: 100px;
    height: 100px;
    font-size: 2em;
  }
  
  .member-avatar-medium,
  .member-avatar-small {
    width: 65px;
    height: 65px;
    font-size: 1.4em;
  }
  
  
  /* Mobile unified information display */
  .member-info-display {
    max-width: 100%;
    min-height: auto;
  }
  
  .section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }
}

/* Performance optimizations with will-change */
.avatar-scroll-container {
  will-change: transform;
}

.avatar-frame {
  will-change: transform;
}

[class*="member-avatar"] {
  will-change: transform;
}

.member-info-content {
  will-change: opacity, transform;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .avatar-scroll-container {
    transform: none !important;
    transition: none !important;
  }
  
  .avatar-frame {
    transform: none !important;
    transition: none !important;
  }
  
  [class*="member-avatar"] {
    animation: none !important;
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
  
  /* Disable frame hover animations but preserve elliptical shape */
  .avatar-frame:hover {
    transform: none !important;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; /* Keep original elliptical shape */
    filter: none !important;
  }
  
  .pi-frame {
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50% !important;
  }
  
  .leaders-frame {
    border-radius: 70% 30% 60% 40% / 40% 70% 30% 60% !important;
  }
  
  .students-frame {
    border-radius: 50% 70% 30% 50% / 60% 40% 70% 30% !important;
  }
  
  .member-info-content {
    transition: opacity 0.3s ease !important;
  }
  
  .avatar-display {
    transition: opacity 0.3s ease !important;
  }
  
  /* Reset staggered positioning for reduced motion */
  .pi-showcase-section {
    transform: translateX(0) !important;
  }
  
  .leaders-showcase-section {
    transform: translateX(0) !important;
  }
  
  .students-showcase-section {
    transform: translateX(0) !important;
  }
}

/* Gentle fade-in animation for accessibility */
@keyframes gentle-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clean up will-change when not needed */
.team-showcase-container:not(.scrolling) .avatar-scroll-container,
.team-showcase-container:not(.scrolling) .avatar-frame,
.team-showcase-container:not(.scrolling) [class*="member-avatar"],
.team-showcase-container:not(.scrolling) .member-info-content {
  will-change: auto;
}


/* vanSchneider Style Responsive Grid - No Overlap */
@media (min-width: 1200px) {
  .members-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 40px;
    grid-auto-rows: 280px;  /* Fixed row height */
  }
  
  /* PI section gets single column */
  .pi-showcase .members-grid {
    display: block;  /* Remove grid for PI section */
    max-width: 420px;
  }
  
  .pi-card {
    width: 100%;
    margin: 0 auto;
  }
  
  /* Leaders section gets 3 columns */
  .team-section[data-role="leaders"] .members-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
  }
  
  /* Members section gets 4 columns to fit more cards */
  .team-section[data-role="members"] .members-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .members-grid {
    gap: 32px;
    grid-auto-rows: 280px;
  }
  
  .pi-showcase .members-grid {
    display: block;
    max-width: 420px;
    margin: 0 auto;
  }
  
  .team-section[data-role="leaders"] .members-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
  }
  
  .team-section[data-role="members"] .members-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .members-grid {
    gap: 24px;
    grid-auto-rows: 260px;
  }
  
  .pi-showcase .members-grid {
    display: block;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .team-section .members-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  
  .member-card {
    height: 260px;
  }
}

/* Parallax Responsive Design */
@media (max-width: 1024px) {
  .team-photo-hero {
    height: 55vh;  /* Reduce from 80vh to 55vh */
  }
  
  .content-overlay {
    margin-top: 55vh;
  }
  
  .team-photo-container {
    width: 95%;  /* Make even wider on tablets */
  }
}

@media (max-width: 768px) {
  .team-photo-hero {
    height: 50vh;  /* Reduce from 70vh to 50vh */
  }
  
  .content-overlay {
    margin-top: 50vh;
  }
  
  .main-content {
    padding: 60px 16px 32px 16px;
  }
  
  .team-photo-container {
    width: 98%;  /* Nearly full width on mobile */
  }
  
  /* Adjust DNA patterns on mobile */
  .team-photo-hero::before {
    background-size: 150px 225px;
    opacity: calc(var(--dna-opacity) * 0.12);
  }
  
  .team-photo-hero::after {
    background-size: 120px 180px;
    opacity: calc(var(--dna-opacity) * 0.06);
  }
}

@media (max-width: 767px) {
  .team-section {
    margin: 48px 0;
  }
  
  .team-title {
    font-size: 1.4em;
    margin-bottom: 32px;
  }
  
  .pi-showcase {
    margin: 32px 0 48px 0;
  }
  
  .pi-card {
    padding: 36px 24px;
    margin: 0 16px;
  }
  
  .member-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    margin: 32px auto 0 auto;
  }
  
  
  .member-card {
    height: 240px;
  }
  
  .geometric-accent {
    height: 100px;
  }
  
  .member-card:hover .geometric-accent {
    height: 110px;
  }
  
  .member-name {
    font-size: 1em;
    margin: 24px 20px 6px 20px;
  }
  
  .member-role {
    font-size: 0.75em;
    margin: 0 20px 20px 20px;
  }
}

@media (max-width: 479px) {
  .team-photo-hero {
    height: 45vh;  /* Reduce from 60vh to 45vh */
  }
  
  .content-overlay {
    margin-top: 45vh;
  }
  
  .main-content {
    padding: 48px 16px 32px 16px;
  }
  
  .team-photo-container {
    width: 100%;  /* Full width on very small screens */
  }
  
  /* Even smaller DNA patterns on very small screens */
  .team-photo-hero::before {
    background-size: 120px 180px;
    opacity: calc(var(--dna-opacity) * 0.10);
  }
  
  .team-photo-hero::after {
    background-size: 100px 150px;
    opacity: calc(var(--dna-opacity) * 0.05);
  }
  
  .members-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    grid-auto-rows: 220px;
  }
  
  .pi-showcase .members-grid {
    display: block;
    max-width: 360px;
    margin: 0 auto;
  }
  
  .member-card {
    height: 220px;
    margin: 0 8px;
  }
  
  .geometric-accent {
    height: 90px;
  }
  
  .member-card:hover .geometric-accent {
    height: 100px;
  }
  
  .member-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
    margin: 28px auto 0 auto;
  }
  
  .member-name {
    font-size: 0.95em;
    margin: 20px 16px 6px 16px;
  }
  
  .member-role {
    font-size: 0.7em;
    margin: 0 16px 16px 16px;
  }
  
  .team-title {
    font-size: 1.3em;
  }
  
}

/* ========================================
   ROCHE-STYLE TEAM INTERFACE
   ======================================== */

/* Main Roche Style Container */
.roche-style {
  background: #ffffff;
  color: #1a1a1a;
  font-family: var(--font-primary);
}

body.dark-mode .roche-style {
  background: #0a0a0a;
  color: #ffffff;
}

/* Research Hero Section - Roche Style */
.research-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 100px 0 80px 0;
  margin-top: 80px;
  position: relative;
}

body.dark-mode .research-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  padding-right: 40px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.dark-mode .hero-title {
  color: #4da6ff;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 40px 0;
}

body.dark-mode .hero-subtitle {
  color: #cccccc;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

body.dark-mode .stat-number {
  color: #4da6ff;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

body.dark-mode .stat-label {
  color: #aaaaaa;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.research-badge {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--color-border);
}

body.dark-mode .research-badge {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  box-shadow: 0 10px 30px rgba(77, 166, 255, 0.2);
}

.badge-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Section Container */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section Titles - Roche Style */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.dark-mode .section-title {
  color: #ffffff;
}

.section-description {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 60px 0;
  max-width: 800px;
}

body.dark-mode .section-description {
  color: #cccccc;
}

/* Leadership Section */
.leadership-section {
  padding: 100px 0;
  background: #ffffff;
}

body.dark-mode .leadership-section {
  background: #0a0a0a;
}

.leader-spotlight {
  margin-top: 40px;
}

.leader-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  align-items: center;
  text-align: left;
  min-height: 400px;
}

body.dark-mode .leader-card {
  background: #1a1a1a;
  border-color: #2d2d2d;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .leader-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.leader-card.primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
}

.leader-card.primary .leader-name,
.leader-card.primary .leader-title,
.leader-card.primary .leader-department,
.leader-card.primary .leader-description {
  color: white;
}

.leader-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--color-border);
}

body.dark-mode .avatar-circle {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  box-shadow: 0 8px 24px rgba(77, 166, 255, 0.2);
}

.avatar-circle.small {
  width: 80px;                           /* 适应横向布局的较小头像 */
  height: 80px;
}

.avatar-initials {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.avatar-circle.small .avatar-initials {
  font-size: 1.4rem;                     /* 适应较小头像的字体大小 */
}

.avatar-circle .member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.leader-content {
  padding: 0;
}

.leader-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

body.dark-mode .leader-name {
  color: #ffffff;
}

.leader-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

body.dark-mode .leader-title {
  color: #4da6ff;
}

.leader-department {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
}

body.dark-mode .leader-department {
  color: #aaaaaa;
}

.leader-description {
  font-size: 0.95rem;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

body.dark-mode .leader-description {
  color: #cccccc;
}

.leader-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.expertise-tag {
  background: var(--color-border-light);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

body.dark-mode .expertise-tag {
  background: rgba(77, 166, 255, 0.2);
  color: #4da6ff;
  border-color: rgba(77, 166, 255, 0.3);
}

.leader-card.primary .expertise-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Research Leaders Section */
.research-leaders-section {
  padding: 100px 0;
  background: #f8f9fa;
}

body.dark-mode .research-leaders-section {
  background: #0f0f0f;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.leaders-grid .leader-card {
  min-height: 400px;
}

/* ================================
   Page Header Section Styles
   ================================ */

.page-header-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

body.dark-mode .page-header-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-bottom-color: #2d2d2d;
}

.page-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px 0;
  line-height: 1.1;
}

body.dark-mode .page-title {
  color: #ffffff;
}

.page-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
  opacity: 0.9;
}

body.dark-mode .page-subtitle {
  color: #aaaaaa;
}

/* ================================
   Research Team Section Styles
   ================================ */

.research-team-section {
  padding: 80px 0 100px 0;
  background: #ffffff;
}

body.dark-mode .research-team-section {
  background: #0a0a0a;
}



/* Team Grid - Optimized for Reading */
.team-grid {
  display: grid;
  gap: 2rem;                           /* 减少间距适应横向布局 */
  margin: 50px auto 0 auto;
  padding: 0 2rem;
  width: 100%;
  justify-content: center;
  align-items: start;
  grid-auto-rows: 200px;               /* 减少行高适应横向布局 */
  overflow: visible;
}

/* All Students - responsive columns with auto-fit */
.team-members-content > .container > .team-grid {
  grid-template-columns: repeat(auto-fit, 450px);  /* 自动适应显示尽可能多的卡片 */
  max-width: 1400px;  /* 增加最大宽度以容纳更多卡片 */
}

/* Supervisors - use same format as students */
.team-subsection .team-grid {
  grid-template-columns: repeat(auto-fit, 450px);  /* 和学生区域保持一致 */
  max-width: 1400px;  /* 和学生区域保持一致 */
  margin: 50px auto 0 auto;
  padding: 0 2rem;
  width: 100%;
  justify-content: center;
}

.team-member-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;                 /* 改为横向布局 */
  align-items: flex-start;             /* 顶部对齐 */
  text-align: left;                    /* 左对齐文本 */
  height: 180px;                       /* 减少高度适应横向布局 */
  width: 100%;                         /* 使用全宽 */
  max-width: 450px;                    /* 限制最大宽度 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  justify-self: center;
  gap: 20px;                           /* 头像和信息之间的间距 */
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #4da6ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member-card:hover::before {
  opacity: 1;
}

body.dark-mode .team-member-card {
  background: #1a1a1a;
  border-color: #2d2d2d;
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 120, 215, 0.3);
}

body.dark-mode .team-member-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(77, 166, 255, 0.4);
}

.member-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;                    /* 移除下边距，横向布局不需要 */
  flex-shrink: 0;                      /* 防止头像压缩 */
}

.member-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;             /* 左对齐 */
  gap: 10px;
  flex: 1;
  justify-content: flex-start;         /* 顶部对齐 */
}

.member-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
}

body.dark-mode .member-name {
  color: #ffffff;
}

.member-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  padding: 4px 12px;
  background: rgba(0, 120, 215, 0.1);
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

body.dark-mode .member-title {
  color: #4da6ff;
  background: rgba(77, 166, 255, 0.15);
}

.member-department {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0;
  font-style: italic;
  text-align: center;
  opacity: 0.8;
}

body.dark-mode .member-department {
  color: #aaaaaa;
}

.member-focus {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 20px 0;
  font-weight: 400;
}

body.dark-mode .member-focus {
  color: #cccccc;
}

.research-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.research-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  background: #f1f3f5;
  color: #495057;
  border-radius: 14px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.research-tag:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

body.dark-mode .research-tag {
  background: #2d2d2d;
  color: #ffffff;
  border-color: #404040;
}

body.dark-mode .research-tag:hover {
  background: #404040;
}

/* Members Page Specific Styles */
.members-page .article-header {
  background: #ffffff;
  background-image: url('/assets/images/Background/SCIENTIST.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px 0;
}

.members-page .article-header::before {
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.95));
}

body.dark-mode .members-page .article-header {
  background-image: url('/assets/images/Background/SCIENTIST.png');
}

body.dark-mode .members-page .article-header::before {
  background: linear-gradient(rgba(33, 33, 33, 0.85), rgba(33, 33, 33, 0.95));
}

.members-page .article-header h1 {
  color: var(--color-text);
  text-shadow: 2px 4px 8px rgba(255, 255, 255, 0.3);
}

.members-page .article-header p {
  color: var(--color-text-secondary);
  opacity: 0.9;
}

body.dark-mode .members-page .article-header h1 {
  color: var(--color-text-dark-mode);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .members-page .article-header p {
  color: var(--color-text-secondary-dark-mode);
}

.team-members-content {
  padding: 60px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.team-members-content .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-members-content .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px 0;
  text-align: center;
}

body.dark-mode .team-members-content .section-title {
  color: #ffffff;
}

.team-members-content .section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0 0 40px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-mode .team-members-content .section-description {
  color: #aaaaaa;
}

/* Team Subsection Styles - Optimized */
.team-subsection {
  margin-top: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subsection-title {
  font-size: 2.5rem;                      /* 统一字体大小，和section-title一致 */
  font-weight: 700;                       /* 统一字重，和section-title一致 */
  color: var(--color-text);               /* 统一颜色 */
  margin: 0 0 16px 0;                     /* 统一边距 */
  text-align: center;
}

body.dark-mode .subsection-title {
  color: #ffffff;
}

.subsection-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0 0 50px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

body.dark-mode .subsection-description {
  color: #aaaaaa;
}

/* Avatar Styles - Larger Size */
.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.avatar-circle.small {
  width: 100px;
  height: 100px;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.dark-mode .avatar-circle {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  border-color: #2d2d2d;
}

.avatar-initials {
  font-size: 2rem;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 1px;
}

.avatar-circle.small .avatar-initials {
  font-size: 1.8rem;
}

body.dark-mode .avatar-initials {
  color: #ffffff;
}

/* Leadership Section */
.leadership-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e9ecef;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.dark-mode .leadership-section {
  border-top-color: #2d2d2d;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px 0;
  text-align: center;
}

body.dark-mode .section-subtitle {
  color: #ffffff;
}

.section-subdescription {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0 0 30px 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-mode .section-subdescription {
  color: #aaaaaa;
}

.leader-spotlight {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.leader-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

body.dark-mode .leader-card {
  background: #1a1a1a;
  border-color: #2d2d2d;
}

.leader-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark-mode .leader-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.leader-image {
  flex-shrink: 0;
}

.leader-content {
  flex: 1;
}

.leader-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 6px 0;
}

body.dark-mode .leader-name {
  color: #ffffff;
}

.leader-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 4px 0;
  padding: 3px 10px;
  background: rgba(0, 120, 215, 0.1);
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

body.dark-mode .leader-title {
  color: #4da6ff;
  background: rgba(77, 166, 255, 0.15);
}

.leader-department {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0 0 12px 0;
  font-style: italic;
}

body.dark-mode .leader-department {
  color: #aaaaaa;
}

.leader-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.expertise-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  background: #f1f3f5;
  color: #495057;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.expertise-tag:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

body.dark-mode .expertise-tag {
  background: #2d2d2d;
  color: #ffffff;
  border-color: #404040;
}

body.dark-mode .expertise-tag:hover {
  background: #404040;
}

.research-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.research-tag {
  background: var(--color-border-light);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

body.dark-mode .research-tag {
  background: rgba(77, 166, 255, 0.2);
  color: #4da6ff;
  border-color: rgba(77, 166, 255, 0.3);
}

/* Filter Animation */
.team-member-card[data-category]:not([data-category="all"]) {
  transition: all 0.3s ease;
}

.team-member-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Ensure all cards are visible by default - no entry animations */
.team-member-card, .leader-card {
  opacity: 1 !important;
  transform: none !important;
}

/* Responsive Design - Roche Style */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .leaders-grid {
    grid-template-columns: 1fr;
  }
  
  .leader-card {
    grid-template-columns: 140px 1fr;
    text-align: left;
    min-height: 400px;
    gap: 24px;
  }
  
  /* All team grids large mobile */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin: 35px auto 0 auto;
    max-width: 450px;                    /* 增加最大宽度适应横向卡片 */
    width: 100%;
    padding: 0 1rem;
    justify-content: center;
    align-items: start;
    grid-auto-rows: 200px;               /* 减少行高适应横向布局 */
  }
  
  .team-member-card {
    width: 100%;
    max-width: 450px;
    height: 180px;                       /* 横向卡片高度 */
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 20px;
  }
  
  .research-hero {
    padding: 80px 0 60px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .leadership-section,
  .research-leaders-section,
  .research-team-section {
    padding: 60px 0;
  }
  
  .team-filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-tab {
    padding: 10px 18px;
    font-size: 0.8rem;
  }
  
  .page-header-section {
    padding: 40px 0 30px 0;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .research-team-section {
    padding: 60px 0 80px 0;
  }
  
  /* All team grids responsive - tablet */
  .team-grid {
    grid-template-columns: 1fr !important;  /* 平板也使用单列 */
    gap: 2rem 1.5rem;
    margin: 40px auto 0 auto;
    max-width: 450px;                    /* 适应横向卡片宽度 */
    width: 100%;
    padding: 0 1rem;
    justify-content: center;
    align-items: start;
    grid-auto-rows: 200px;               /* 减少行高适应横向布局 */
  }
  
  .team-member-card {
    width: 100%;
    max-width: 450px;
    height: 180px;                       /* 横向卡片高度 */
  }
  
  
  .leader-card {
    min-height: 380px;
    grid-template-columns: 140px 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .leader-card {
    padding: 24px;
    min-height: 360px;
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  
  .page-header-section {
    padding: 30px 0 20px 0;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .research-team-section {
    padding: 40px 0 60px 0;
  }
  
  /* All team grids mobile */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin: 30px auto 0 auto;
    max-width: 380px;                    /* 适应手机屏幕的横向卡片 */
    width: 100%;
    padding: 0 1rem;
    justify-content: center;
    align-items: start;
    grid-auto-rows: 200px;               /* 减少行高适应横向布局 */
  }
  
  .team-member-card {
    width: 100%;
    max-width: 380px;
    height: 200px;                       /* 手机上稍高一些以容纳内容 */
    padding: 16px;
    gap: 12px;                           /* 减少间距 */
  }
  
  .avatar-circle.small {
    width: 90px;
    height: 90px;
  }
  
  .avatar-circle.small .avatar-initials {
    font-size: 1.6rem;
  }
  }
  
  .member-name {
    font-size: 1.2rem;
  }
  
  .member-title {
    font-size: 0.8rem;
    padding: 1px 6px;
  }
  
  .member-department {
    font-size: 0.85rem;
  }
  
  .member-focus {
    font-size: 0.9rem;
  }
  
  .avatar-circle {
    width: 90px;
    height: 90px;
  }
  
  .avatar-circle.small {
    width: 90px;
    height: 90px;
  }
  
  /* Adjust small avatars for mobile layout */
  .team-member-card .avatar-circle.small {
    width: 90px;
    height: 90px;
  }
  
  .avatar-initials {
    font-size: 1.6rem;
  }
  
  .avatar-circle.small .avatar-initials {
    font-size: 1.6rem;
  }

/* ========== Enhanced Home Page Styles ========== */

/* Enhanced Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 70vh;
  padding: 60px 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 85%;
}

body.dark-mode .hero-description {
  color: #ccc;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(0,120,215,0.3);
}

.hero-btn.secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,120,215,0.4);
}

.hero-btn.secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* DNA Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dna-animation {
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(0,120,215,0.05), transparent);
  border-radius: 50%;
  position: relative;
}

.dna-helix {
  width: 200px;
  height: 200px;
  animation: rotate 20s linear infinite;
  filter: drop-shadow(0 0 20px rgba(0,120,215,0.3));
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

body.dark-mode .section-header p {
  color: #ccc;
}

/* Project Timeline */
.overview-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,120,215,0.02), rgba(0,120,215,0.08));
  border-radius: 20px;
  margin: 60px 0;
}

body.dark-mode .overview-section {
  background: linear-gradient(135deg, rgba(0,120,215,0.05), rgba(0,120,215,0.15));
}

.project-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  border: 1px solid rgba(0,120,215,0.1);
  transition: all 0.3s ease;
  position: relative;
}

body.dark-mode .timeline-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,120,215,0.2);
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,120,215,0.15);
}

.timeline-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.timeline-content h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.timeline-content p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

body.dark-mode .timeline-content p {
  color: #ccc;
}

/* Research Areas */
.research-areas {
  padding: 80px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.area-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(0,120,215,0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.dark-mode .area-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(0,120,215,0.2);
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0,120,215,0.2);
}

.area-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  display: block;
}

.area-card h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.area-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

body.dark-mode .area-card p {
  color: #ccc;
}

.area-stats {
  display: flex;
  justify-content: space-around;
  margin: 24px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.stat {
  background: rgba(0,120,215,0.1);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

body.dark-mode .stat {
  background: rgba(0,120,215,0.2);
  color: var(--color-primary-light);
}

.area-link {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.area-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Impact Metrics */
.impact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,120,215,0.03), rgba(0,120,215,0.1));
  border-radius: 20px;
  margin: 60px 0;
}

body.dark-mode .impact-section {
  background: linear-gradient(135deg, rgba(0,120,215,0.08), rgba(0,120,215,0.18));
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.metric-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  border: 1px solid rgba(0,120,215,0.1);
  transition: all 0.3s ease;
}

body.dark-mode .metric-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,120,215,0.2);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,120,215,0.15);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

body.dark-mode .metric-label {
  color: #eee;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

body.dark-mode .metric-desc {
  color: #ccc;
}

/* Enhanced Feature Cards */
.features-section {
  padding: 80px 0;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .dna-animation {
    width: 200px;
    height: 200px;
  }
  
  .dna-helix {
    width: 150px;
    height: 150px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .project-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .area-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
}

/* Support for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .dna-helix {
    animation: none !important;
  }
  
  .timeline-item:hover,
  .area-card:hover,
  .metric-card:hover {
    transform: none !important;
  }
  
  .hero-btn:hover {
    transform: none !important;
  }
}

/* ========== Text Content Sections Styling ========== */

/* Content section spacing */
.main-content section {
  margin: 80px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Section headers */
.main-content section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 24px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.main-content section h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-primary-light);
  margin: 0 0 32px 0;
  line-height: 1.4;
  opacity: 0.9;
}

body.dark-mode .main-content section h1 {
  color: var(--color-primary-light);
}

body.dark-mode .main-content section h2 {
  color: #4da6ff;
}

/* Paragraph styling */
.main-content section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 24px 0;
  text-align: justify;
  font-weight: 400;
}

body.dark-mode .main-content section p {
  color: #ddd;
}

/* Section visual separation - Removed to fix unwanted blue bar on main page */

/* Responsive typography */
@media (max-width: 768px) {
  .main-content section {
    margin: 60px 0;
    padding: 0 16px;
  }
  
  .main-content section h1 {
    font-size: 1.8rem;
    margin: 0 0 20px 0;
  }
  
  .main-content section h2 {
    font-size: 1.1rem;
    margin: 0 0 24px 0;
  }
  
  .main-content section p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 20px 0;
  }
}

@media (max-width: 480px) {
  .main-content section {
    margin: 48px 0;
  }
  
  .main-content section h1 {
    font-size: 1.6rem;
    margin: 0 0 16px 0;
  }
  
  .main-content section h2 {
    font-size: 1rem;
    margin: 0 0 20px 0;
  }
  
  .main-content section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
    text-align: left;
  }
}

/* ================================
   Article Layout Component Styles 
   ================================ */

/* Article page specific layout */
.article-page {
  font-family: var(--font-primary);
  padding-top: 100px;
  background-color: var(--color-background);
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

/* Enhanced header styling inspired by test3 */
.article-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" fill="%23e0e7ff"><circle cx="28" cy="28" r="2"/></svg>');
  background-size: 56px;
  background-repeat: repeat;
  color: #000;
  padding: 100px 0 80px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 120, 215, 0.1);
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(248,251,255,0.9));
  z-index: 1;
}

body.dark-mode .article-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-bottom-color: rgba(77, 166, 255, 0.2);
}

body.dark-mode .article-header::before {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(15, 15, 15, 0.9));
}

.article-header .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header h1 {
  font-size: 3.5rem;
  font-weight: 800 !important;
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-shadow: 3px 7px 9px #d0d9e2;
  text-align: center;
  color: var(--color-text-dark);
  z-index: 1000;
  position: relative;
}

.article-header p {
  font-size: 1.25rem;
  font-weight: 300;
  margin: 0;
  opacity: 0.8;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 2;
}

body.dark-mode .article-header h1 {
  color: #fff;
  text-shadow: 3px 7px 9px rgba(0, 0, 0, 0.5);
}

body.dark-mode .article-header p {
  color: var(--color-text-secondary-dark-mode);
}

/* Database page specific header background */
.database-page .article-header {
  background: #ffffff;
  background-image: url('/assets/images/Background/DATABASE.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px 0;
}

.database-page .article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.95));
  z-index: 1;
}

body.dark-mode .database-page .article-header {
  background-image: url('/assets/images/Background/DATABASE.png');
}

body.dark-mode .database-page .article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(33, 33, 33, 0.85), rgba(33, 33, 33, 0.95));
  z-index: 1;
}

/* Database page specific header text colors */
.database-page .article-header h1 {
  color: var(--color-text);
  text-shadow: 2px 4px 8px rgba(255, 255, 255, 0.3);
}

.database-page .article-header p {
  color: var(--color-text-secondary);
  opacity: 0.9;
}

body.dark-mode .database-page .article-header h1 {
  color: var(--color-text-dark-mode);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .database-page .article-header p {
  color: var(--color-text-secondary-dark-mode);
}

/* Temple-style typography for database page */
.database-page .article-content {
  line-height: 1.8;
}

.database-page .article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  padding-top: 10px;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 2;
}

.database-page .article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 2;
  color: var(--color-text-dark);
}

.database-page .article-content h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 2;
  color: var(--color-text-dark);
}

.database-page .article-content h5 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 8px;
  line-height: 2;
  color: var(--color-text-dark);
}

.database-page .article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.database-page .article-content ul,
.database-page .article-content ol {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 16px 0;
  padding-left: 24px;
}

.database-page .article-content ol > li::marker,
.database-page .article-content ul > li::marker {
  font-weight: 800;
  color: var(--color-primary);
}

.database-page .article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.database-page .article-content strong {
  font-weight: 800;
}
/* Contribution page styles - matching database page typography */
.contribution-page .article-content {
  line-height: 1.8;
}

.contribution-page .article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  padding-top: 10px;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 2;
}

.contribution-page .article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 2;
  color: var(--color-text-dark);
}

.contribution-page .article-content h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 2;
  color: var(--color-text-dark);
}

.contribution-page .article-content h5 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 8px;
  line-height: 2;
  color: var(--color-text-dark);
}

.contribution-page .article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.contribution-page .article-content ul,
.contribution-page .article-content ol {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 16px 0;
  padding-left: 24px;
}

.contribution-page .article-content ol > li::marker,
.contribution-page .article-content ul > li::marker {
  font-weight: 800;
  color: var(--color-primary);
}

.contribution-page .article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.contribution-page .article-content strong {
  font-weight: 800;
}

/* Sub-catalog styling for database page */
.sub-catalog {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.catalog-list li.active .sub-catalog {
  max-height: 400px;
  transition: max-height 0.3s ease-in;
}

.sub-catalog {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.catalog-list > li.active .sub-catalog {
  max-height: 400px;
}

.sub-catalog li {
  margin: 0 0 4px 0;
}

.sub-catalog a.sub-heading {
  font-size: 0.9rem;
  font-weight: 400;
  padding: 4px 8px 4px 20px;
  color: var(--color-text-secondary);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sub-catalog a.sub-heading:hover {
  background: rgba(0, 120, 215, 0.08);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateX(2px);
  transition: all 0.2s ease;
}

.sub-catalog a.sub-heading.active {
  background: rgba(0, 120, 215, 0.1);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateX(2px);
  font-weight: 500;
}

/* Main article container */
.article-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
  justify-items: center;
}

/* Members page specific article container */
.members-page .article-container {
  display: block;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

/* Sidebar catalog */
.article-sidebar {
  position: sticky;
  top: 120px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  width: 280px;
  justify-self: end;
}

body.dark-mode .article-sidebar {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2d2d2d;
}

.catalog h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.catalog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-list li {
  margin: 0 0 10px 0;
}

.catalog-list a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.catalog-list a:hover {
  background: var(--color-border-light);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

.catalog-list a.active {
  background: rgba(0, 120, 215, 0.15);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
}

/* Article content */
.article-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  min-height: 600px;
  width: 100%;
  max-width: 800px;
  justify-self: start;
  margin-left: 0;
}

body.dark-mode .article-content {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2d2d2d;
}

/* Article typography */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-family: var(--font-primary);
  line-height: 1.4;
  margin: 32px 0 16px 0;
  color: var(--color-text);
  font-weight: 600;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.article-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

.article-content h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.article-content h5 {
  font-size: 1.1rem;
  font-weight: 500;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 20px 0;
  text-align: justify;
}

.article-content a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.article-content a:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.article-content a:hover {
  color: #005a9e;
}

.article-content a:hover:after {
  transform: scaleX(1);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content ol,
.article-content ul {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(0, 120, 215, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

body.dark-mode .article-content blockquote {
  background: var(--color-border-light);
}

.article-content code {
  background: var(--color-border-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: var(--color-border-light);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* Utility buttons */
.article-utilities {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.utility-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
  transition: all 0.3s ease;
}

.utility-btn:hover {
  background: #005a9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 120, 215, 0.4);
}

/* Responsive design */
@media (max-width: 992px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .article-sidebar {
    position: static;
    order: 2;
    margin-top: 24px;
  }
  
  .article-content {
    padding: 40px 32px;
    order: 1;
  }
  
  .article-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .article-container {
    padding: 0 16px;
    gap: 16px;
  }
  
  .article-content {
    padding: 24px 20px;
  }
  
  .article-header {
    padding: 60px 0 40px 0;
  }
  
  .article-header .container {
    padding: 0 16px;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-header p {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.3rem;
  }
  
  .article-content p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
  }
  
  .article-utilities {
    bottom: 16px;
    right: 16px;
  }
  
  .utility-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 20px 16px;
  }
  
  .article-header h1 {
    font-size: 1.8rem;
  }
  
  .article-content h2 {
    font-size: 1.4rem;
  }
  
  .article-content h3 {
    font-size: 1.2rem;
  }
  
  .article-content p {
    font-size: 0.95rem;
  }
}


/* Description Page Specific Styles */
.description-page .article-header {
  background-image: url('/assets/images/Background/SCIENTIST.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.description-page .article-header .container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 40px;
  margin: 0 auto;
  max-width: 800px;
}

body.dark-mode .description-page .article-header .container {
  background: rgba(26, 26, 26, 0.9);
}

/* Contribution Page Specific Styles */
.contribution-page .article-header {
  background: #ffffff;
  background-image: url('/assets/images/Background/contribution.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px 0;
}

.contribution-page .article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.7));
  z-index: 1;
}

body.dark-mode .contribution-page .article-header {
  background-image: url('/assets/images/Background/contribution.jpg');
}

body.dark-mode .contribution-page .article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(33, 33, 33, 0.5), rgba(33, 33, 33, 0.7));
  z-index: 1;
}


.contribution-page .article-header h1 {
  color: var(--color-text);
  text-shadow: 2px 4px 8px rgba(255, 255, 255, 0.3);
}

.contribution-page .article-header p {
  color: var(--color-text-secondary);
  opacity: 0.9;
}

body.dark-mode .contribution-page .article-header h1 {
  color: var(--color-text-dark-mode);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .contribution-page .article-header p {
  color: var(--color-text-secondary-dark-mode);
}

/* Safety Page Specific Styles */
.safety-page .article-header {
  background: #ffffff;
  background-image: url('/assets/images/Background/safety.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px 0;
}

.safety-page .article-header::before {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.7));
}

body.dark-mode .safety-page .article-header {
  background-image: url('/assets/images/Background/safety.jpg');
}

body.dark-mode .safety-page .article-header::before {
  background: linear-gradient(rgba(33, 33, 33, 0.5), rgba(33, 33, 33, 0.7));
}


.safety-page .article-header h1 {
  color: var(--color-text);
  text-shadow: 2px 4px 8px rgba(255, 255, 255, 0.3);
}

.safety-page .article-header p {
  color: var(--color-text-secondary);
  opacity: 0.9;
}

body.dark-mode .safety-page .article-header h1 {
  color: var(--color-text-dark-mode);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .safety-page .article-header p {
  color: var(--color-text-secondary-dark-mode);
}

/* Structure Gallery Styles */
.structure-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin: 30px 0;
  flex-wrap: wrap;
}

.structure-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.structure-image {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
  padding: 10px;
  border: 1px solid rgba(0, 120, 215, 0.2);
}

.structure-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.structure-id {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 12px 0 0 0;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

body.dark-mode .structure-image {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .structure-image:hover {
  border-color: var(--color-primary-light);
}

/* ================================
   Global Dark Mode Shadow Adjustments
   ================================ */

/* System dark mode preference */
@media (prefers-color-scheme: dark) {
  img, .card, .container, iframe, .video-container {
    box-shadow: none !important;
  }
  
  img[style*="box-shadow"], .card[style*="box-shadow"] {
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
}

/* Manual dark mode class */
.dark-mode img[style*="box-shadow"],
.dark-mode .card[style*="box-shadow"],
.dark-mode .container[style*="box-shadow"],
.dark-mode iframe[style*="box-shadow"],
.dark-mode .video-container[style*="box-shadow"] {
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.1);
}

.dark-mode .challenge-card,
.dark-mode .step-item,
.dark-mode .feature-card,
.dark-mode .solution-card {
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.1);
}

.dark-mode .challenge-card:hover,
.dark-mode .step-item:hover,
.dark-mode .feature-card:hover,
.dark-mode .solution-card:hover {
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}


/* Menu logo dark mode controls - with higher specificity */
.menu-fab-logo.menu-logo-light {
  display: block !important;
}

.menu-fab-logo.menu-logo-dark {
  display: none !important;
}

body.dark-mode .menu-fab-logo.menu-logo-light {
  display: none !important;
}

body.dark-mode .menu-fab-logo.menu-logo-dark {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  .menu-fab-logo.menu-logo-light {
    display: none !important;
  }
  
  .menu-fab-logo.menu-logo-dark {
    display: block !important;
  }
}

/* Override system dark mode when manual light mode is set */
body:not(.dark-mode) .menu-fab-logo.menu-logo-light {
  display: block !important;
}

body:not(.dark-mode) .menu-fab-logo.menu-logo-dark {
  display: none !important;
}

/* Responsive design for structure gallery */
@media (max-width: 768px) {
  .structure-gallery {
    flex-direction: column;
    align-items: center;
  }
  
  .structure-item {
    max-width: 100%;
    margin-bottom: 20px;
  }
} 