/* 自定义导航栏悬浮动画和样式 */

/* 让导航栏与下方内容有明显区分 */
header.header {
  background: rgba(248, 251, 253, 0.8);
  /* 80%不透明淡色背景 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.06), 0 1.5px 0 0 #e0e6ed;
  border-bottom: 1px solid #e0e6ed;
  transition: background 0.3s, box-shadow 0.3s;
  z-index: 1030;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Add padding to body/main to account for fixed header height */
body.index-page {
  padding-top: 80px; /* Adjust based on header height */
}

/* Ensure header placeholder doesn't interfere */
#header-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

@media (max-width: 991.98px) {
  header.header {
    background: rgba(248, 251, 253, 0.8);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #e0e6ed;
  }
}

:root {

  /* Global accent color - 全局强调色（蓝色系） */
  #navmenu.navmenu>ul>li>a {
    font-weight: 400;
    font-size: 1.07rem;
  }

  --accent-color: #2563eb;
  --accent-color-rgb: 37,
  99,
  235;
  --heading-color: #1e293b;
}

/* Partner Logo Hover Effect */
.partner-logo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Light Blue Theme for Hero - Even Lighter */
.light-blue-background {
  --background-color: #f8fcff;
  --default-color: #000000;
  --heading-color: #000000;
  --surface-color: #ffffff;
  --contrast-color: #000000;
}

/* Header Overrides for Light Background */
.header .logo h1,
.header .logo span,
.header .navmenu a,
.header .navmenu a:focus {
  color: #000000 !important;
}

/* Navigation Link Hover Effects */
.header .navmenu>ul>li>a {
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
}

.header .navmenu>ul>li>a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.header .navmenu>ul>li>a:hover::after,
.header .navmenu>ul>li>a.active::after {
  width: 100%;
  left: 0;
}

.header .navmenu>ul>li>a:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

/* Scrolled Header Background - Matching Clients Section */
.scrolled .header {
  --background-color: #f6f8fa;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.05);
}

/* Active state for nav links */
.header .navmenu .active,
.header .navmenu .active:focus,
.header .navmenu li:hover>a {
  color: var(--accent-color) !important;
}

/* Hero Section - Start Demo button color */
.hero p {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  margin-bottom: 25px;
  color: #888 !important;
}

.hero .btn-get-started {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
}

/* Hero Section - Start Demo button hover color */
.hero .btn-get-started:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Section title underline gradient color */
.section-title h2::after {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

/* Service item icon color */
.service-item .icon i {
  color: #2563eb;
}

/* Service item description text opacity */
.service-item p {
  opacity: 0.75;
}

/* Service item icon hover color */
.service-item:hover .icon i {
  color: #1e3a8a;
}

/* CTA button color */
.cta-btn {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb !important;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* CTA button hover color */
.cta-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  border-color: transparent;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Team member social link hover color */
.team-member .social a:hover {
  background: #2563eb;
}

/* Portfolio filter container - centered */
.portfolio-filters.has-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #e9edf2;
  border-radius: 50px;
  margin: 0 auto 5rem auto;
}

/* Center the filter container */
.isotope-filters.has-slider {
  display: flex !important;
  justify-content: center;
}

/* Sliding indicator */
.portfolio-filters .filter-slider {
  position: absolute;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  border-radius: 50px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  z-index: 0;
}

/* Portfolio filter buttons base style */
.portfolio-filters.has-slider li {
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  position: relative;
  z-index: 1;
  font-weight: 500;
  color: #374151;
}

/* Portfolio filter hover effect - 非选中项悬浮变蓝 */
.portfolio-filters.has-slider li:not(.filter-active):hover {
  color: #2563eb;
}

/* Portfolio filter active state - 选中项白色字体 */
.portfolio-filters.has-slider li.filter-active {
  color: #ffffff;
  font-weight: 600;
}

/* Portfolio info link hover color */
.portfolio-info a:hover {
  color: #1e3a8a;
}

/* Buy button gradient color */
.btn-buy {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

/* Buy button hover gradient color */
.btn-buy:hover {
  background: linear-gradient(135deg, #2563eb 0%, #172554 100%);
}

/* Contact form submit button color */
.php-email-form button[type=submit] {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

/* Contact form submit button hover color */
.php-email-form button[type=submit]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #172554 100%);
}

/* DNA Animation Background for Hero */
.hero.section.dark-background,
.hero.section.light-blue-background {
  position: relative;
  overflow: hidden;
}

.dna-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.dna-helix {
  position: absolute;
  width: 60px;
  height: 150px;
  animation: dnaFloat 20s ease-in-out infinite;
  opacity: 0.3;
}

.dna-helix:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.dna-helix:nth-child(2) {
  left: 80%;
  top: 15%;
  animation-delay: 5s;
}

.dna-helix:nth-child(3) {
  left: 50%;
  top: 60%;
  animation-delay: 10s;
}

/* Hero DNA helix strand gradient color */
.helix-strand {
  position: absolute;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #3b82f6 0%, #1e3a8a 50%, #3b82f6 100%);
  border-radius: 2px;
}

.helix-strand.left {
  left: 10px;
  animation: twistLeft 4s ease-in-out infinite;
}

.helix-strand.right {
  right: 10px;
  animation: twistRight 4s ease-in-out infinite;
}

/* Hero DNA base pair gradient color */
.base-pair {
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  left: 10px;
  border-radius: 2px;
}

@keyframes dnaFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-50px) rotate(180deg);
  }
}

@keyframes twistLeft {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes twistRight {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-8px);
  }
}

.gene-sequence {
  position: absolute;
  display: flex;
  gap: 4px;
  animation: geneFloat 15s ease-in-out infinite;
  opacity: 0.4;
}

.gene-sequence:nth-child(4) {
  left: 25%;
  top: 30%;
  animation-delay: 0s;
}

.gene-sequence:nth-child(5) {
  left: 70%;
  top: 45%;
  animation-delay: 5s;
}

.nucleotide {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: white;
}

.nuc-a {
  background: #10b981;
}

.nuc-t {
  background: #f59e0b;
}

/* Hero nucleotide C background color */
.nuc-c {
  background: #2563eb;
}

.nuc-g {
  background: #42a5f5;
}

@keyframes geneFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, 30px);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Workflow Section Styles - Font Size Increase (+25%) */
.workflow-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.5rem;
  /* Increased */
}

.workflow-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1.125rem;
  /* Increased */
}

/* Workflow Nodes */
.workflow-node h6 {
  font-size: 1.25rem !important;
  /* Increased */
}

.workflow-node small {
  font-size: 14px !important;
  /* Increased from 11px */
}

.workflow-node .node-icon i {
  font-size: 2rem !important;
  /* Increased */
}

/* Specific Node Positioning - Nudge Right & Down */
#node-question,
#node-generator {
  margin-left: 20px;
  margin-top: 40px;
  /* Moves nodes down */
}

/* Checkmark refinement */
.checkmark {
  position: absolute;
  top: -10px;
  /* Moved further up */
  right: -10px;
  /* Moved further right */
  font-size: 10px;
  /* Even Smaller font */
  animation: popIn 0.3s ease;
  z-index: 10;
  background: white;
  border-radius: 50%;
  width: 14px;
  /* Even Smaller container */
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkmark i {
  font-size: 10px;
  line-height: 1;
}

/* Agent Loop */
#loop-badge {
  font-size: 14px !important;
  /* Increased */
}

.agent-card h6 {
  font-size: 20px !important;
}

.agent-card small {
  font-size: 18px !important;
}

.agent-icon i {
  font-size: 1.5rem !important;
}

/* Memory & Tools */
.memory-panel h6,
.tools-panel h6 {
  font-size: 16px !important;
  /* Increased from 13px */
  margin-bottom: 1rem !important;
}

#memory-status {
  font-size: 14px !important;
  /* Increased from 11px */
}

.tool-badge {
  font-size: 14px !important;
  /* Increased from 11px */
  padding: 8px 0 !important;
}

.verifier-badge {
  font-size: 13px !important;
  /* Increased from 10px */
}

/* Base Workflow Card Styles */
.workflow-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.workflow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15);
}

.workflow-card .icon-box {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Framework workflow card icon gradient color */
.workflow-card .icon-box i {
  font-size: 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer social link base styles */
.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #b0bec5;
  background: transparent;
  color: #607d8b;
  font-size: 17px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer .social-links a i {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  z-index: 1;
}

/* Footer social link hover effect */
.footer .social-links a:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.footer .social-links a:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Animation Keyframes */
@keyframes popIn {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Ensure pulse-dot visibility */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  animation: pulse 1s infinite;
}

/* Stats styling */
.stats .stats-item {
  text-align: center;
}

.stats .stats-item span {
  display: inline-block !important;
  /* Fix for side-by-side */
  width: auto !important;
}

/* four numbers color */
.stats-item .purecounter {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Portfolio/Examples refinements */
.portfolio-item .portfolio-info h4 {
  font-size: 1.1rem;
}

/* Team card refinements */
.team-member .member-info h4 {
  font-size: 1.2rem;
}

/* Agent Active States - 25% Opacity */
#agent-planner.active {
  background: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

#agent-executor.active {
  background: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

#agent-verifier.active {
  background: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

/* Header - Launch App button color */
.btn-launch {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Header - Launch App button hover color */
.btn-launch:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Updated Glossy Github Button */
.btn-github {
  background: transparent;
  color: #374151 !important;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #374151;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-github:hover {
  background: linear-gradient(180deg, #374151 0%, #111827 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
  border-color: transparent;
}

/* Header & Hero Adjustments */
@media (min-width: 1200px) {

  /* Absolute Center Navigation - only on larger screens */
  .header .navmenu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: auto;
  }
}

/* Move Hero Content Down (Visual Centering) */
.hero .container {
  padding-top: 60px;
}


/* --- Orbit Style Dropdown & Services --- */

:root {
  --nav-color: #475569;
  /* Navigation menu hover color */
  --nav-hover-color: #2563eb;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #475569;
  /* Navigation dropdown hover color */
  --nav-dropdown-hover-color: #2563eb;
  /* Global accent color */
  --accent-color: #2563eb;
  --contrast-color: #ffffff;
  --surface-color: #ffffff;
  --heading-color: #333333;
  --default-color: #444444;
}

/* Navmenu Dropdown Styles */
/* Navmenu Dropdown Styles (Desktop Only) */
@media (min-width: 1200px) {
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
    font-weight: 500;
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
    margin-left: auto;
    /* Right align chevron */
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
    background: rgba(59, 130, 246, 0.05);
    /* Slight purple tint */
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: 100%;
    /* Right side for nested */
    visibility: hidden;
    margin-left: 10px;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

/* Services / Applications Card Styles (Orbit) */
.services .service-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: var(--surface-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid transparent;
}

.services .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #0ea5e9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.services .service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.15);
}

.services .service-card:hover::before {
  transform: scaleX(1);
}

.services .service-card .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.services .service-card:hover .icon-wrapper {
  background: var(--accent-color);
  transform: scale(1.1) rotate(5deg);
}

.services .service-card .icon-wrapper i {
  font-size: 28px;
  color: var(--accent-color);
  transition: all 0.4s ease;
}

.services .service-card:hover .icon-wrapper i {
  color: #ffffff;
}

.services .service-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.services .service-card:hover h3 {
  color: var(--accent-color);
}

.services .service-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 24px;
  flex-grow: 1;
  opacity: 0.75;
}

.services .service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.services .service-card .service-link i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.services .service-card:hover .service-link i {
  transform: translateX(6px);
}

/* Header Horizontal Spacing - Asymmetrical adjustment */
@media (min-width: 992px) {
  .header .container-fluid {
    padding-left: 10% !important;
    padding-right: 5% !important;
  }
}

@media (min-width: 1600px) {
  .header .container-fluid {
    padding-left: 15% !important;
    padding-right: 8% !important;
  }
}

/* ===== Header Responsive Fixes ===== */

/* Smaller buttons and nav items on medium-large screens to prevent overlap */
@media (max-width: 1500px) and (min-width: 1200px) {
  .header .header-actions {
    gap: 8px;
  }
  
  .header .header-actions .btn-github {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
  
  .header .header-actions .btn-launch {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
  
  /* Reduce nav menu spacing */
  .header .navmenu > ul > li > a {
    padding: 18px 8px;
    font-size: 13px;
  }
  
  /* Hide dot separators to save space */
  .header .navmenu .nav-dot {
    display: none !important;
  }
}

/* Mobile/Tablet header buttons (below 1200px) */
@media (max-width: 1199.98px) {
  .header .header-actions {
    gap: 8px;
  }
  
  .header .header-actions .btn-github {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .header .header-actions .btn-launch {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  
  /* Mobile nav toggle next to logo - bigger and more visible */
  .header .mobile-nav-toggle {
    font-size: 32px;
    color: #1e293b;
    cursor: pointer;
    padding: 8px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .header .mobile-nav-toggle:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
  }
}

/* Small screens (below 576px) - compact buttons */
@media (max-width: 575.98px) {
  .header .header-actions {
    gap: 6px;
  }
  
  .header .header-actions .btn-launch {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* Affiliation Logos Refinement */
#clients.clients {
  padding: 40px 0;
  background: #ffffff;
  position: relative;
  z-index: 5;
}

#clients .client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  /* Container height */
}

/* 确保链接可点击 */
#clients .client-logo a {
  display: block;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

#clients .client-logo img {
  height: 115px !important;
  /* Force consistent height */
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  filter: none !important;
  opacity: 0.85;
  /* Slightly dimmed by default */
  transition: all 0.3s ease;
}

#clients .client-logo img:hover {
  filter: none !important;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Funding Acknowledgement Section */
#funding.clients {
  padding: 60px 0;
  background: #f8f9fa;
}

#funding .client-logo a {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

#funding .client-logo img {
  height: 115px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  filter: none !important;
  opacity: 1 !important;
  /* Keep full color and opacity */
  transition: all 0.3s ease;
  cursor: pointer;
}

#funding .client-logo a:hover img {
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Special styling for HAI logo to reduce white space */
#clients .client-logo img[src*="standford_hci"],
#funding .client-logo img[src*="standford_hci"] {
  padding: 5px 10px !important;
  object-fit: contain !important;
  object-position: center;
}

#clients .client-logo img[src*="stanford_hci"],
#funding .client-logo img[src*="stanford_hci"] {
  padding: 5px 10px !important;
  object-fit: contain !important;
  object-position: center;
}

/* Testimonials - Single Item Centered */
.testimonials .testimonial-item {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15);
}

.testimonials .testimonial-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid #f1f5f9;
}

.testimonials .testimonial-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.testimonials .testimonial-item h4 {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0;
}

/* --- Flip Card Styles --- */
.feature-flip-card {
  background-color: transparent;
  width: 100%;
  height: 220px;
  /* Fixed height for consistency */
  perspective: 1000px;
  cursor: pointer;
}

.feature-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

/* Click to flip - using .flipped class */
.feature-flip-card.flipped .feature-flip-card-inner {
  transform: rotateY(180deg);
}

.feature-flip-card-front,
.feature-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-flip-card-front {
  background-color: #ffffff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* About Section - flip card back gradient color */
.feature-flip-card-back {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  color: white;
  transform: rotateY(180deg);
}

.feature-flip-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Back side title - pure white for contrast */
.feature-flip-card-back h4 {
  color: #FFFFFF;
  font-weight: 700;
}

.feature-flip-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* 卡片正面描述文字透明度 */
.feature-flip-card-front p {
  opacity: 0.75;
}

/* About Section - flip card front icon color */
.feature-flip-card-front .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1d4ed8;
}

/* Utility to disable flip on specific cards */
.feature-flip-card.no-flip {
  cursor: default;
}

.feature-flip-card.no-flip:hover .feature-flip-card-inner {
  transform: none;
}

/* Agent Cards Opacity Control */
.agent-card {
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.agent-card.active {
  opacity: 1 !important;
}

/* Team Section - 5 Column Grid Layout */
.team .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin: 0 !important;
}

.team .col-lg-2,
.team .col-md-4,
.team .col-6 {
  width: 100% !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .team .row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .team .row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .team .row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Team member card styling */
.team .team-member {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team .team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team .member-img {
  position: relative;
  overflow: hidden;
}

.team .member-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team .team-member:hover .member-img img {
  transform: scale(1.05);
}

.team .social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.team .team-member:hover .social {
  opacity: 1;
  transform: translateY(0);
}

/* Team Section - social link icon color */
.team .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #2563eb;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Team Section - social link hover color */
.team .social a:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-3px);
}

.team .social a i {
  font-size: 14px;
}

.team .member-info {
  padding: 20px 15px;
  text-align: center;
}

.team .member-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1e293b;
}

.team .member-info span {
  font-size: 0.9rem;
  color: #64748b;
}

/* Client Logos - Reduce Padding & Standardized Box */
.clients .client-logo {
  /* Removed height/flex here as we are moving to internal box */
  display: block;
  /* Default block to let internal box handle sizing */
}

/* Logo box wrapper - 宽扁矩形框 */
.client-logo-box {
  width: 100%;
  max-width: 200px;
  /* 宽度加大 */
  height: 70px;
  /* 高度减小 */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  /* border: 1px solid rgba(0,0,0,0.05); Optional debug border */
}

/* 确保链接可点击 */
.clients .client-logo-box a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.clients .client-logo-box img {
  padding: 0 !important;
  /* Padding handled by box size */
  height: 70px;
  /* Fixed height for all logos */
  width: auto;
  /* Width scales proportionally */
  max-width: 90%;
  /* Prevent overflow */
  opacity: 0.8;
  filter: grayscale(100%);
  transition: 0.3s;
  object-fit: contain;
}

.clients .client-logo-box img:hover,
.clients .client-logo-box a:hover img {
  filter: none;
  opacity: 1;
}

/* Service item padding override to reduce height */
.services .service-item {
  padding: 40px 25px !important;
}

/* Further reduce card height by shrinking icon and margins */
.services .service-item .icon {
  width: 85px !important;
  height: 85px !important;
}

.services .service-item .icon i {
  font-size: 24px !important;
}

.services .service-item h3 {
  margin: 9px 0 8px 0 !important;
  font-size: 18px !important;
}

/* Fix SVG background alignment and size */
.services .service-item .icon svg {
  width: 85px !important;
  height: 85px !important;
}

/* Hero section background overlay opacity adjustment */
/* Hero section background overlay - make transparent to see full image */
.hero:before {
  background: transparent !important;
}

/* FAQ Animation Overrides - Faster & More Obvious */
.faq .faq-container .faq-item .faq-content {
  transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  /* Faster and snappier */
}

.faq .faq-container .faq-item .faq-toggle {
  transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Enhanced Active State */
.faq .faq-container .faq-active {
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%) !important;
  /* Slightly darker bg */
  border: 1px solid var(--accent-color) !important;
  /* Solid accent border */
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15) !important;
  /* Add shadow */
  transform: scale(1.01);
  /* Slight pop */
  transition: all 0.2s ease;
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color) !important;
  font-weight: 700;
  /* Make text bolder when active */
}

.faq .faq-container .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
/* --- Dynamic Arrow Animation --- */

/* Base style overrides handled in framework.html via utility classes (fs-1, fw-bold) */

/* Keyframes for Arrow Pulse (Right) - Source to Target */
@keyframes arrow-pulse-right {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.6;
    color: var(--accent-color);
  }
  50% {
    transform: translateX(5px) scale(1.1);
    opacity: 1;
    color: #1e3a8a; /* Darker blue */
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.6;
    color: var(--accent-color);
  }
}

/* Keyframes for Arrow Pulse (Left) - Target back to Source */
@keyframes arrow-pulse-left {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.6;
    color: var(--accent-color);
  }
  50% {
    transform: translateX(-5px) scale(1.1);
    opacity: 1;
    color: #1e3a8a; /* Darker blue */
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.6;
    color: var(--accent-color);
  }
}

/* Active Class triggers animation */
/* Question -> Loop (Right Arrow) */
#arrow-question.arrow-active {
  animation: arrow-pulse-right 1.5s infinite ease-in-out;
  opacity: 1 !important; /* Force opacity override */
  color: var(--accent-color) !important;
}

/* Loop -> Generator (Left Arrow) */
#arrow-generator.arrow-active {
  animation: arrow-pulse-left 1.5s infinite ease-in-out;
  opacity: 1 !important;
  color: var(--accent-color) !important;
}


/* Reduce gallery detail image size to fit screen */
.portfolio-details-slider .swiper-slide img {
  max-height: 65vh; /* Limit height to ~65% of viewport */
  width: auto; /* Maintain aspect ratio */
  display: block;
  margin: 0 auto; /* Center horizontally */
  object-fit: contain;
}

/* ============================================
   MOBILE NAV FIX - No Media Query for Maximum Override
   ============================================ */

/* When mobile nav is active - full screen overlay */
body.mobile-nav-active .navmenu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(20, 25, 35, 0.85) !important;
  z-index: 9997 !important;
  overflow: hidden !important;
  display: block !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: fadeIn 0.2s ease-out;
}

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

/* Menu list - white card */
body.mobile-nav-active .navmenu > ul {
  display: block !important;
  position: absolute !important;
  top: 70px !important;
  left: 15px !important;
  right: 15px !important;
  bottom: auto !important;
  max-height: calc(100vh - 100px) !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  overflow-y: auto !important;
  z-index: 9998 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  list-style: none !important;
  animation: slideDown 0.25s ease-out;
}

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

/* Menu items */
body.mobile-nav-active .navmenu ul li {
  display: block !important;
  width: 100% !important;
}

/* Hide nav-dot separators in mobile menu */
body.mobile-nav-active .navmenu .nav-dot {
  display: none !important;
}

/* Menu links */
body.mobile-nav-active .navmenu ul li a {
  color: #1e293b !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  white-space: nowrap !important;
  background: transparent !important;
  border-radius: 8px !important;
  margin: 2px 8px !important;
  transition: all 0.2s ease !important;
}

body.mobile-nav-active .navmenu ul li a:hover,
body.mobile-nav-active .navmenu ul li a.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

/* Close button (X) */
body.mobile-nav-active .mobile-nav-toggle {
  color: #fff !important;
  position: fixed !important;
  font-size: 28px !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  transition: background 0.2s ease !important;
}

body.mobile-nav-active .mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Dropdown in mobile */
body.mobile-nav-active .navmenu .dropdown > ul {
  position: static !important;
  display: none !important;
  padding: 5px 0 !important;
  margin: 5px 15px 5px 30px !important;
  background-color: #f8fafc !important;
  border-radius: 8px !important;
  border-left: 3px solid #2563eb !important;
  box-shadow: none !important;
}

body.mobile-nav-active .navmenu .dropdown > ul li a {
  font-size: 15px !important;
  padding: 10px 15px !important;
  color: #64748b !important;
}

body.mobile-nav-active .navmenu .dropdown.active > ul,
body.mobile-nav-active .navmenu .dropdown .dropdown-active {
  display: block !important;
}

/* Prevent body scroll when nav is open */
body.mobile-nav-active {
  overflow: hidden !important;
}
