@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --logo-blue: #191e4c;
  --nav-grey: #888;
  --nav-height: 42px;
  --font-main: 'Inter', "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius: 22px;
  --card-shadow-hover: 0 20px 48px rgba(30, 40, 60, 0.20);
  --dark-blue: #191e4c;
  --btn-bg: #2a3158;
  --btn-bg-hover: #191e4c;
  --white: #fff;
  --content-max-width: 1100px;
  --info-gap: 4vw;
  --info-gap-mobile: 2vw;
}

/* Language-specific font overrides for better Windows/Cross-platform support */
:lang(zh-Hant), 
[lang="zh-Hant"],
[lang="zh-TW"],
[lang="zh-HK"] {
  font-family: 'Inter', "Noto Sans TC", "Microsoft JhengHei", "PingFang HK", "PingFang TC", sans-serif !important;
}

:lang(zh-Hans),
[lang="zh-Hans"],
[lang="zh-CN"] {
  font-family: 'Inter', "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif !important;
}

/* Global smoothing for better font rendering on Windows */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--dark-blue);
  background: var(--white);
}

/* Top Navigation Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  box-shadow: none;
  border-bottom: none;
}

.topbar-content {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.97rem;
  color: var(--nav-grey);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.18s;
  padding: 2px 0;
  position: relative;
}

.nav-links a.active {
  color: #111;
  font-weight: 700;
}

.nav-links a:not(.active):hover {
  color: var(--logo-blue);
}

@media (max-width: 600px) {
  .topbar-content {
    padding: 0 10px;
    justify-content: center;
    /* Center align on mobile */
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.85rem;
    /* Slightly smaller to fit more */
    white-space: nowrap;
  }
}

/* Language Dropdown Styles */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.lang-btn {
  background: var(--white);
  border: 1px solid #ddd;
  color: var(--nav-grey);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.lang-btn:hover {
  border-color: var(--logo-blue);
  color: var(--logo-blue);
  background: #f7f8fc;
}

.lang-dropdown-content {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--white);
  min-width: 140px;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.12);
  z-index: 2000;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown:hover .lang-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-content a {
  color: var(--nav-grey);
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

.lang-dropdown-content a:hover {
  background-color: #f7f8fc;
  color: var(--logo-blue);
}

.lang-dropdown-content a.active-lang {
  color: var(--logo-blue);
  font-weight: 700;
  background-color: #f0f2f9;
}

/* Ensure dropdown doesn't disappear when moving mouse to it */
.lang-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

/* Parallax Hero Section (default: home) */
.hero-section.parallax {
  width: 100vw;
  height: 100vh;
  min-height: 500px;
  background: url('images/homebackground.png') center center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: var(--nav-height);
}

.tech-hero {
  background-image: url('techbackground.png') !important;
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {

  .hero-section.parallax,
  .tech-hero {
    background-attachment: scroll;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Main Content */
.main-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 0 0 0;
  background: var(--white);
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Info and Products Alignment (homepage) */
.info-products-align {
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  max-width: var(--content-max-width);
}

.info-products-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 38px;
  gap: 5vw;
  padding-left: 5vw;
  padding-right: 5vw;
}

.info-left {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 22px;
}

.headline-blue {
  color: var(--dark-blue);
  font-family: var(--font-main);
  font-size: 2.7rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 1.18rem;
  color: var(--dark-blue);
  font-weight: 400;
  margin: 0;
  font-family: var(--font-main);
}

.info-right {
  flex: 1 1 0;
  font-size: 1.04rem;
  color: #222;
  font-family: var(--font-main);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.5;
  max-width: 520px;
  margin-top: 10px;
}

.desc-main {
  margin: 0;
  font-size: 1.04rem;
  max-width: 100%;
  text-align: justify;
  text-justify: inter-ideograph;
}

@media (max-width: 1100px) {
  .info-products-flex {
    gap: 2vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .info-left {
    flex-basis: 250px;
  }
}

@media (max-width: 900px) {
  .info-products-align {
    padding-left: var(--info-gap-mobile);
    padding-right: var(--info-gap-mobile);
  }

  .info-products-flex {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .info-left {
    align-items: center;
    padding-top: 0;
    margin-bottom: 8px;
    flex-basis: auto;
  }

  .headline-blue {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .info-right {
    max-width: 100%;
    font-size: 0.95rem;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .info-products-align {
    padding-left: 8vw;
    padding-right: 8vw;
  }

  .headline-blue {
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 0.93rem;
  }

  .desc-main {
    font-size: 0.89rem;
  }
}

/* Features Row: Responsive Grid, perfectly square images, larger cards */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  margin: 0 auto 36px auto;
  width: 100%;
  max-width: 1100px;
  padding-left: 5vw;
  padding-right: 5vw;
  justify-items: center;
}

.feature-card,
a.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: none;
  padding: 18px 8px 12px 8px;
  text-align: center;
  min-width: 0;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: box-shadow, transform;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feature-card:hover,
.feature-card:focus-within,
a.feature-card:hover,
a.feature-card:focus-within {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-8px) scale(1.04);
  z-index: 2;
}

.feature-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f8fc;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.feature-title {
  font-family: var(--font-main);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 6px;
  margin-top: 0;
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 0.97rem;
  color: #555;
  min-height: 2.2em;
  font-family: var(--font-main);
  margin-bottom: 0;
}

/* 2 columns for medium screens */
@media (max-width: 900px) {
  .features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
    max-width: 700px;
    padding-left: 3vw;
    padding-right: 3vw;
  }
}

/* 1 column for small screens */
@media (max-width: 600px) {
  .features-row {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }

  .feature-card,
  a.feature-card {
    max-width: 98vw;
    width: 90vw;
    margin: 0 auto 24px auto;
  }
}

/* Centered Button with Responsive Text and Arrow */
.center-btn {
  display: flex;
  justify-content: center;
  margin: 48px 0 18px 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 15px 36px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100vw;
  white-space: nowrap;
}

.cta-btn .btn-text {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  text-align: center;
  min-width: 0;
}

.cta-btn .arrow {
  display: inline-block;
  opacity: 0;
  color: var(--white);
  transform: translateX(-18px);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s;
  font-size: 1.2em;
  margin-left: 0;
  vertical-align: middle;
  position: relative;
}

.cta-btn:hover,
.cta-btn:focus {
  background: var(--btn-bg-hover);
}

.cta-btn:hover .btn-text {
  transform: translateX(-10px);
}

.cta-btn:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  margin-left: 12px;
}

.cta-btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .cta-btn {
    font-size: 0.95rem;
    padding: 12px 12vw;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .cta-btn .btn-text {
    font-size: 1em;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .cta-btn .arrow {
    font-size: 1.2em;
    margin-left: 7px;
  }
}

.bottom-white-space {
  height: 20px;
  width: 100%;
}






/* Our Technology page: override for hero background */
.tech-hero {
  background-image: url('techbackground.png') !important;
}

/* Main content area for technology page */
.tech-content {
  padding-top: 48px;
  padding-bottom: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section layout */
.tech-section {
  margin: 0 auto 64px auto;
  max-width: 1100px;
  padding: 0 3vw;
}

.tech-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: flex-start;
  gap: 4vw;
  margin-bottom: 32px;
}

.tech-section-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tech-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.tech-subtitle {
  font-size: 1.22rem;
  color: var(--dark-blue);
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 0;
  font-family: var(--font-main);
}

/* Anchor offset for fixed nav (for technology page sections) */
.anchor-offset {
  display: block;
  height: 70px;
  margin-top: -70px;
  visibility: hidden;
}

/* Italic bacteria names, except 'species' */
.tech-section-right i {
  font-style: italic;
}

.tech-section-right i+.species,
.tech-section-right i+span.species {
  font-style: normal;
}

.tech-section-right {
  font-size: 1.08rem;
  color: #222;
  font-family: var(--font-main);
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-ideograph;
}

.tech-section-right p {
  margin: 0;
}

/* Pocthogen Animation Container */
.pocthogen-animation-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.pocthogen-img {
  width: 100%;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
}

.pocthogen-img.active {
  opacity: 1;
  position: relative;
}

.clock-animation {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.minute-hand {
  transform-origin: 30px 30px;
  transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minute-hand.rotating {
  transform: rotate(60deg);
}

@media (max-width: 900px) {
  .clock-animation {
    top: 10px;
    right: 10px;
  }

  .clock-animation svg {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .clock-animation {
    top: 8px;
    right: 8px;
  }

  .clock-animation svg {
    width: 40px;
    height: 40px;
  }
}

/* Image rows */
.tech-img-row {
  display: flex;
  flex-direction: row;
  gap: 2vw;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.tech-img-wide {
  width: 100%;
  max-width: 800px;
  border-radius: 14px;
  margin-bottom: 0;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tech-img-half {
  width: 48%;
  min-width: 220px;
  max-width: 480px;
  border-radius: 14px;
  margin-bottom: 0;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .tech-section-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    justify-items: center;
  }

  .tech-section-left {
    align-items: center;
    margin-bottom: 10px;
  }

  .tech-section-right {
    text-align: justify;
    text-justify: inter-ideograph;
    justify-content: center;
    margin-top: 14px;
  }

  .tech-img-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .tech-img-half,
  .tech-img-wide {
    width: 100%;
    max-width: 100vw;
    padding: 0 3vw;
  }
}

@media (max-width: 600px) {
  .tech-section {
    padding: 0 8vw;
  }

  .tech-title {
    font-size: 1.2rem;
  }

  .tech-subtitle {
    font-size: 0.93rem;
  }

  .tech-section-right {
    font-size: 0.93rem;
  }
}







/* PocPrep 3-Step Sequence */
.pocprep-steps {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.pocprep-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Staggered animation classes are added by JS: .delay-1, .delay-2, .delay-3 */
.pocprep-step.active,
.pocprep-step.animate-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.pocprep-step img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-bottom: 12px;
  background: #f7f8fc;
  border-radius: 50%;
  padding: 10px;
}

.pocprep-step-num {
  font-weight: 700;
  color: var(--logo-blue);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.pocprep-step-desc {
  font-size: 0.9rem;
  color: #555;
}


/* Pocthogen Start Button */
.pocthogen-controls {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.start-btn {
  background: var(--btn-bg);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.start-btn:hover {
  background: var(--btn-bg-hover);
}

.start-btn:active {
  transform: scale(0.96);
}

.start-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}


/* Traction Redesign - Cards */
.traction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  padding: 32px 5vw;
  margin: 0 auto;
}

.traction-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Equal height */
  transition: box-shadow 0.3s;
}

.traction-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.traction-card-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.traction-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0;
}

.traction-card-body {
  flex: 1;
}

.traction-card-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.traction-card-img-container {
  width: 100%;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.traction-card-img-container img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}


/* Collaborators Grid Refined */
.collaborators-block {
  margin-top: 60px;
  text-align: center;
  padding: 0 5vw;
}

.collaborators-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 32px;
}

.collaborators-custom-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.collab-logo-large {
  max-height: 60px;
  /* Normalize height */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.collab-logo-large:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .pocprep-steps {
    flex-wrap: wrap;
    /* Allow wrapping on small screens if needed, or keeping row with smaller items */
  }

  .traction-grid {
    grid-template-columns: 1fr;
    padding: 20px 6vw;
  }

  .collab-logo-large {
    max-height: 45px;
    max-width: 140px;
  }
}

.hero-section.aboutus-hero {
  background: url('images/aboutusbackground.png') center center/cover no-repeat;
  background-attachment: fixed;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
  .hero-section.aboutus-hero {
    background-attachment: scroll;
  }
}

.hero-section.aboutus-hero .hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.36);
  /* slightly darker for contrast */
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.aboutus-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* LOGO and Heading: match Our Technology proportions */

.aboutus-subtitle {
  font-family: 'Montserrat', "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-size: 1.05rem;
  color: #e2e6f5;
  font-weight: 400;
  margin: 0 0 12px 0;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.aboutus-subtitle {
  font-size: 0.85rem;
}

/* Main Content Area */
.aboutus-main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 16px 0 16px;
  background: #fff;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.aboutus-description {
  font-size: 1.13rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 48px;
  font-family: var(--font-main);
  text-align: justify;
  text-justify: inter-ideograph;
}

@media (max-width: 700px) {
  .aboutus-description {
    font-size: 0.99rem;
  }

  .aboutus-main-content {
    padding: 36px 4vw 0 4vw;
  }
}

/* Button Styling: matches main page CTA */
.aboutus-btn {
  display: flex;
  justify-content: center;
  margin: 36px 0 32px 0;
}

.aboutus-cta-btn {
  display: inline-block;
  padding: 18px 32px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #191e4c;
  border: none;
  border-radius: 32px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(25, 30, 76, 0.08);
  cursor: pointer;
  transition: background 0.18s;
}

.aboutus-cta-btn:hover,
.aboutus-cta-btn:focus {
  background: #10132f;
  color: #fff;
}

@media (max-width: 600px) {
  .aboutus-cta-btn {
    font-size: 0.98rem;
    padding: 13px 18px;
    width: 100%;
    text-align: center;
  }
}

.bottom-white-space {
  height: 64px;
}

@media (max-width: 600px) {
  .bottom-white-space {
    height: 38px;
  }
}












html,
body {
  height: 100%;
  background: #fff;
  /* Full white background edge-to-edge */
}

body {
  font-family: var(--font-main);
  margin: 0;
  color: #222;
  min-height: 100vh;
}

/* --- Navigation bar untouched --- */

/* Hero Section */
.hero-section.traction-hero {
  background: url('images/techbackground.png') center center/cover no-repeat;
  background-attachment: fixed;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
  .hero-section.traction-hero {
    background-attachment: scroll;
  }
}

.hero-section.traction-hero .hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.traction-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



/* Main Content Area */
.traction-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 0 16px;
  background: #fff;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Add subtle background to separate sections */
.traction-section:nth-of-type(2) {
  margin-top: 64px;
  padding-top: 48px;
  position: relative;
}

.traction-section:nth-of-type(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

/* Section layout */
.traction-section {
  margin: 0 auto 48px auto;
  max-width: 1100px;
  padding: 0 3vw;
  background: #fff;
}

.traction-section:first-of-type {
  padding-top: 0;
}

.traction-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: flex-start;
  gap: 4vw;
  margin-bottom: 0;
}

.traction-section-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.traction-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #191e4c;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  font-family: 'Montserrat', "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  position: relative;
  padding-bottom: 12px;
}

.traction-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #191e4c 0%, rgba(25, 30, 76, 0.3) 100%);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .traction-section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.traction-section-right {
  font-size: 1.08rem;
  color: #222;
  font-family: var(--font-main);
  line-height: 1.6;
  text-align: left;
}

.traction-section-desc {
  margin-bottom: 32px;
  text-align: justify;
  text-justify: inter-ideograph;
  /* More space below paragraph[4] */
}

@media (max-width: 900px) {
  .traction-section-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    justify-items: center;
  }

  .traction-section-left {
    align-items: center;
    margin-bottom: 10px;
  }

  .traction-section-right {
    text-align: justify;
    text-justify: inter-ideograph;
    justify-content: center;
    margin-top: 14px;
  }
}

/* --- Images stacked vertically for medical section --- */
.traction-img-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 1100px;
  margin: 16px auto 0 auto;
  /* More space above images[4] */
  padding: 0 3vw;
  background: #fff;
}

.traction-img-col img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.traction-img-col img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.traction-img-full {
  width: 100%;
  max-width: 800px;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .traction-img-full {
    padding: 0 3vw;
  }
}

/* --- Collaborators label and logos --- */
.collaborators-block {
  max-width: 1200px;
  margin: 48px auto 30px auto;
  padding: 48px 5vw;
  background: transparent;
  border-radius: 0;
}

.collaborators-label {
  font-size: 1.75rem;
  /* 5px smaller than 2.1rem (Medical Use) */
  font-weight: 700;
  color: #191e4c;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.collaborators-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #191e4c 0%, rgba(25, 30, 76, 0.3) 100%);
  border-radius: 2px;
}

@media (max-width: 700px) {
  .collaborators-label {
    font-size: 1.15rem;
  }
}



/* --- Food/Environmental Test Trials Image (smaller, margin below) --- */
.traction-img-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
  background: #fff;
}

.foodtest-row {
  margin: 32px auto 24px auto;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: #fff;
}

.foodtest-img {
  width: 100%;
  max-width: 600px;
  /* Smaller like screenshot 3[3] */
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foodtest-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
  .foodtest-img {
    padding: 0 3vw;
  }
}

/* --- Custom Collaborators Grid - Flexible Responsive --- */
.collaborators-custom-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px 72px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.collab-row {
  display: contents;
}

.collab-logo-large {
  max-width: 210px;
  max-height: 100px;
  min-width: 150px;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
  padding: 8px 0;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  filter: grayscale(0%);
}

.collab-logo-large:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  filter: grayscale(0%) brightness(1.05);
}

@media (max-width: 1200px) {
  .collab-logo-large {
    max-width: 170px;
    max-height: 80px;
    min-width: 120px;
  }

  .collaborators-custom-grid {
    gap: 36px 48px;
  }
}

@media (max-width: 900px) {
  .collab-logo-large {
    max-width: 140px;
    max-height: 65px;
    min-width: 100px;
  }

  .collaborators-custom-grid {
    gap: 28px 36px;
  }
}

@media (max-width: 700px) {
  .collaborators-custom-grid {
    gap: 20px 28px;
  }

  .collab-logo-large {
    max-width: 120px;
    max-height: 55px;
    min-width: 90px;
  }
}

@media (max-width: 500px) {
  .collab-logo-large {
    max-width: 120px;
    max-height: 45px;
    min-width: 80px;
  }

  .collaborators-custom-grid {
    gap: 16px 20px;
  }
}

/* Optional: White space at bottom for visual balance */
.bottom-white-space {
  height: 64px;
  background: #fff;
}

@media (max-width: 600px) {
  .bottom-white-space {
    height: 38px;
  }
}


/* ============================================
   PARALLAX SCROLLING ANIMATIONS
   ============================================ */

/* Fade in and slide up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Initial state for elements that will animate */
.animate-on-scroll {
  opacity: 0;
}

/* Animation classes */
.animate-on-scroll.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll.fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-on-scroll.fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-on-scroll.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animation delays */
.animate-on-scroll.delay-1 {
  animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  animation-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  animation-delay: 0.4s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Uniform logo size for all hero sections - made bigger than h1 text */
.hero-logo-consistent {
  width: clamp(380px, 50vw, 600px);
  max-width: 90vw;
  margin-bottom: 26px;
  display: block;
}

@media (max-width: 900px) {
  .hero-logo-consistent {
    width: clamp(220px, 65vw, 380px);
    margin-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .hero-logo-consistent {
    width: clamp(180px, 80vw, 280px);
    margin-bottom: 14px;
  }
}


/* Uniform hero title style with max 3 lines */
.hero-title-consistent {
  font-family: 'Montserrat', "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  font-size: clamp(1.78rem, 4.5vw, 2.8rem);
  color: #fff;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}



@keyframes slideRight {
  to {
    transform: translateX(5px);
  }
}

/* About Us Button Animation */
.aboutus-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px 36px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100vw;
  white-space: nowrap;
}

.aboutus-cta-btn .btn-text {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  text-align: center;
  min-width: 0;
}

.aboutus-cta-btn .arrow {
  display: inline-block;
  opacity: 0;
  color: var(--white);
  transform: translateX(-18px);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s;
  font-size: 1.2em;
  margin-left: 0;
  vertical-align: middle;
  position: relative;
}

.aboutus-cta-btn:hover,
.aboutus-cta-btn:focus {
  background: var(--btn-bg-hover);
}

.aboutus-cta-btn:hover .btn-text {
  transform: translateX(-10px);
}

.aboutus-cta-btn:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  margin-left: 12px;
}

.aboutus-cta-btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .aboutus-cta-btn {
    font-size: 0.95rem;
    padding: 12px 12vw;
    width: auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .aboutus-cta-btn .btn-text {
    font-size: 1em;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .aboutus-cta-btn .arrow {
    font-size: 1.2em;
    margin-left: 7px;
  }
}


/* Apple-style Carousel for Technology Page */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-gray);
  aspect-ratio: 4/3;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Navigation Arrows - Apple Style */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.28, 0.11, 0.32, 1),
              transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1),
              background 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
  left: 16px;
}

.carousel-nav-next {
  right: 16px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
}

/* Dots Indicator - Apple Style */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.28, 0.11, 0.32, 1),
              transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.3);
}

/* Mobile: Show arrows always, make them smaller */
@media (max-width: 768px) {
  .carousel-container:hover .carousel-nav,
  .carousel-nav {
    opacity: 0.8;
  }
  
  .carousel-nav {
    width: 36px;
    height: 36px;
  }
  
  .carousel-nav-prev {
    left: 8px;
  }
  
  .carousel-nav-next {
    right: 8px;
  }
  
  .carousel-nav svg {
    width: 16px;
    height: 16px;
  }
  
  .carousel-dots {
    bottom: 12px;
    gap: 6px;
  }
  
  .carousel-dot {
    width: 7px;
    height: 7px;
  }
  /* Rounded corners for the PocPrep Carousel */
.carousel-slide img {
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
}

/* Specific sizing and rounding for Pocthogen & Poctable */
.tech-static-img {
    width: 100%;
    max-width: 500px; /* Adjust this to change size of both */
    height: 350px;    /* Forces both to be the same height */
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

/* Ensures the container doesn't break the rounding */
.tech-img-block {
    border-radius: 20px;
    overflow: hidden;
}
}
/* ============================================
    FOOTER 
   ============================================ */
.site-footer {
    background-color: #191e4c !important;
    color: #ffffff;
    padding: 10px 0; /* Very slim footer */
    font-family: 'DM Sans', "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    width: 100%;
    margin-top: 0px;
    display: block; /* Ensures it's not hidden */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    justify-content: space-between; /* Pushes Logo to Left, Text to Right */
    align-items: center;            /* Vertical center - stops things looking weird */
}

.footer-logo {
    height: 50px; /* Large professional size */
    width: auto;
    display: block;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: right;
    margin: 0;
}

/* Fix for mobile: stack them vertically */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-copyright {
        text-align: center;
    }
}
