/* ==========================================================================
   GUCAN INC. — 統一樣式表 (style.css)
   由 aboutus.css / service.css / performance.css / auth.css / index.css 整合
   注意：index.css 置於最後，其設計系統與導覽列樣式為最終權威（會覆蓋前面重複的基礎規則）。
   ========================================================================== */

/* ============ [1] ABOUTUS 頁面樣式 ============ */
/* ==========================================================================
       1. DESIGN SYSTEM & CSS VARIABLES
       ========================================================================== */
:root {
  /* Colors */
  --color-blue-primary: #000000;
  /* Deep US Blue */
  --color-blue-light: #333333;
  /* Electric Tech Blue */
  --color-blue-dark: #000000;
  /* Dark Navy Space */
  --color-red-accent: #FFCE00;
  /* Vibrant US Red */
  --color-orange-accent: #F58220;
  /* Energetic Orange */
  --color-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  /* Slate 50 background */
  --color-border-light: #E2E8F0;
  /* Slate 200 border */
  --color-text-dark: #0F172A;
  /* Slate 900 text */
  --color-text-muted: #475569;
  /* Slate 600 text */
  --color-card-bg: rgba(255, 255, 255, 0.9);

  /* Gradients */
  --grad-blue-dark: linear-gradient(135deg, #000000 0%, #000000 100%);
  --grad-blue-glow: linear-gradient(135deg, #000000 0%, #333333 100%);
  --grad-tech-gold: linear-gradient(135deg, #DD0000 0%, #F58220 100%);

  /* Typography */
  --font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Borders */
  --section-padding: 100px 0;
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-neon: 0 0 15px rgba(245, 130, 32, 0.2);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
       2. BASE STYLES & LAYOUT
       ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

/* Decorative Tech Grid Lines */
.tech-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-blue-primary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
       3. NAVIGATION HEADER
       ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

header.scrolled {
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 45px;
  list-style: none;
  align-items: center;
}

.nav-links.left-desktop {
  justify-content: flex-end;
  padding-right: 40px;
}

.nav-links.right-desktop {
  justify-content: flex-start;
  padding-left: 40px;
}

.nav-item a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
  padding: 8px 0;
}

/* Custom Tech Underline Hover */
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-primary) 0%, var(--color-orange-accent) 100%);
  transition: var(--transition-smooth);
}

.nav-item a:hover {
  color: var(--color-blue-primary);
}

.nav-item a:hover::after {
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wafer-Style Corporate Logo */
.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--color-blue-primary);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 51, 102, 0.15));
}

.logo-badge span {
  color: var(--color-red-accent);
}

.logo-icon {
  position: relative;
  width: 100px;
  height: 32px;
  background-image: url("../res/common/logo_v2.svg");
  background-size: contain;
  background-repeat: no-repeat;
}



/* Mobile Menu Drawer style (hidden on desktop) */
.mobile-drawer {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  list-style: none;
  width: 100%;
}

.mobile-nav-links .nav-item a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 10px 0;
  display: block;
}

/* Hamburger Menu Button for Mobile */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--color-blue-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
       4. HERO BANNER
       ========================================================================== */
.hero-section {
  height: 70vh;
  min-height: 500px;
  position: relative;
  margin-top: 90px;
  background: url('../res/index/hero_bg.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

/* High Tech Glassmorphic Dark Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.4) 70%);
  z-index: 1;
}

/* Floating Wafer/Tech Circuits decoration in Hero */
.hero-tech-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(245, 130, 32, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 206, 0, 0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

/* Modern 2026 Tag Badge */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange-accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
}

.tag-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-orange-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-orange-accent);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  border-left: 3px solid var(--color-red-accent);
  padding-left: 20px;
}

/* ==========================================================================
       5. COMPANY OVERVIEW SECTION (SECTION 2)
       ========================================================================== */
.overview-section {
  padding: var(--section-padding);
  position: relative;
  background-color: var(--color-white);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Subheadings */
.section-category {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-red-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: -10px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 10px;
  position: relative;
}

.section-title span {
  color: var(--color-red-accent);
}

.overview-paragraph {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  text-align: justify;
  line-height: 1.8;
}

/* High Tech Technical Viewport Frame for Diagram */
.blueprint-frame {
  position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 90, 70, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(255, 140, 80, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 95% 75%, rgba(255, 180, 100, 0.25) 0%, transparent 50%),
    #F1F5F9;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.blueprint-frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Corner Crop Marks for Tech style */
.blueprint-frame::before,
.blueprint-frame::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--color-blue-primary);
  border-style: solid;
  opacity: 0.6;
  pointer-events: none;
}

.blueprint-frame::before {
  top: 15px;
  left: 15px;
  border-width: 2px 0 0 2px;
}

.blueprint-frame::after {
  bottom: 15px;
  right: 15px;
  border-width: 0 2px 2px 0;
}

.blueprint-img {
  max-width: 200%;
  margin-left: -80%;
  border-radius: var(--border-radius-sm);
  filter: contrast(1.1) saturate(0.85);
  mix-blend-mode: multiply;
  transition: var(--transition-smooth);
  /* 水彩邊緣遮罩特效：不規則邊緣的淡出 */
  -webkit-mask-image:
    linear-gradient(to right, transparent 5%, black 35%),
    radial-gradient(ellipse at 15% 20%, black 8%, transparent 25%),
    radial-gradient(ellipse at 25% 50%, black 12%, transparent 30%),
    radial-gradient(ellipse at 18% 80%, black 10%, transparent 25%);
  mask-image:
    linear-gradient(to right, transparent 5%, black 35%),
    radial-gradient(ellipse at 15% 20%, black 8%, transparent 25%),
    radial-gradient(ellipse at 25% 50%, black 12%, transparent 30%),
    radial-gradient(ellipse at 18% 80%, black 10%, transparent 25%);
}

.blueprint-frame:hover .blueprint-img {
  transform: scale(1.03);
}

.blueprint-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  z-index: 10;
}

/* ==========================================================================
       6. GLOBAL FOOTPRINT SECTION (SECTION 3)
       ========================================================================== */
.global-section {
  padding: var(--section-padding);
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

/* Modern Layout: Large Side-by-Side Flex Cards */
.global-layout {
  display: grid;
  grid-template-columns: 48% 52%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
}

.global-img-container {
  position: relative;
  min-height: 400px;
}

.global-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Deep Blue High-Tech Right Card */
.global-card {
  background: var(--grad-blue-dark);
  padding: 60px 50px;
  color: var(--color-white);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

/* Abstract Wafer Micro-Circuit Layout on Card */
.global-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 100%, rgba(245, 130, 32, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.global-card .section-category {
  color: var(--color-orange-accent);
}

.global-card .section-title {
  color: var(--color-white);
}

.global-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.global-tech-bullets {
  display: none;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.global-tech-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.global-tech-tag i {
  color: var(--color-orange-accent);
}

/* ==========================================================================
       7. CORE VALUES SECTION (SECTION 4)
       ========================================================================== */
.values-section {
  padding: var(--section-padding);
  background-color: var(--color-white);
  position: relative;
}

.values-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px auto;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Value Item Row Layout */
.value-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Reverse layout for alternating rows */
.value-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.value-row.reverse .value-img-wrapper {
  grid-column: 2;
}

.value-row.reverse .value-content-wrapper {
  grid-column: 1;
  grid-row: 1;
}

/* Wafer-Circuit Container for value images */
.value-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--color-bg-light);
  transition: var(--transition-smooth);
}

.value-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.value-img-wrapper:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.value-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.value-img-wrapper:hover .value-img {
  transform: scale(1.05);
}

/* Glowing index number on image */
.value-index {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  border: 2px solid var(--color-white);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.value-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-blue-primary);
  position: relative;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.value-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-orange-accent);
  border-radius: 2px;
}

.value-title i {
  color: var(--color-orange-accent);
  font-size: 1.5rem;
}

.value-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  text-align: justify;
}

/* ==========================================================================
       8. LICENSE CERTIFICATES SECTION (SECTION 5)
       ========================================================================== */
.license-section {
  padding: var(--section-padding);
  background-color: var(--color-bg-light);
  position: relative;
}

.license-intro {
  max-width: 800px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 20px 0 50px 0;
  line-height: 1.8;
}

.licenses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Premium Styled Contractor Certificates */
.license-certificate {
  background: var(--color-white);
  border: 2px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dashed border inside for realistic document feel */
.license-certificate::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  pointer-events: none;
  border-radius: calc(var(--border-radius-md) - 5px);
}

.license-certificate:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 130, 32, 0.3);
}

.cert-header {
  text-align: center;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.cert-state {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.cert-registrar {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.cert-seal-wrapper {
  position: absolute;
  top: 15px;
  right: 35px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #F8E5C3 0%, #D8AB5E 100%);
  box-shadow: 0 4px 8px rgba(216, 171, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
  z-index: 10;
}

.cert-seal-inner {
  width: 58px;
  height: 58px;
  border: 1px dashed #A57833;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #A57833;
  line-height: 1.1;
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  position: relative;
  z-index: 2;
}

.cert-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: flex-start;
}

.cert-label {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-value {
  font-weight: 600;
  color: var(--color-blue-primary);
}

.cert-value.licensee {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-red-accent);
}

.cert-footer {
  margin-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.cert-signature-block {
  text-align: center;
}

.cert-signature {
  font-family: 'Georgia', cursive, serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #1e3a8a;
  font-style: italic;
  line-height: 1;
  margin-bottom: 5px;
  opacity: 0.85;
}

.cert-signee {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-light);
  padding-top: 3px;
  width: 130px;
}

.cert-bottom-text {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0.7;
}

/* ==========================================================================
       9. FOOTER SECTION (SECTION 6)
       ========================================================================== */
footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border-light);
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-blue-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand span {
  color: var(--color-red-accent);
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  row-gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 900px;
  line-height: 1.6;
}

.footer-divider {
  color: var(--color-border-light);
}

.footer-details a:hover {
  color: var(--color-orange-accent);
}

.footer-copyright {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(100, 116, 139, 0.7);
}

/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 99;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-orange-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
}

/* ==========================================================================
       10. ANIMATIONS (SCROLL-REVEAL)
       ========================================================================== */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 130, 32, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 130, 32, 0);
  }
}

/* Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
       11. RESPONSIVE DESIGN (MEDIA QUERIES)
       ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .grid-2col {
    gap: 40px;
  }

  .global-layout {
    grid-template-columns: 1fr;
  }

  .global-img-container {
    min-height: 300px;
  }

  .global-card {
    padding: 50px 40px;
  }

  .licenses-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }

  header.scrolled {
    height: 70px;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    justify-items: center;
    width: 100%;
  }

  .left-desktop,
  .right-desktop {
    display: none;
  }

  .logo-container {
    grid-column: 2;
    justify-content: center;
  }

  .menu-btn {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  /* Mobile Menu Drawer style (shown only on mobile) */
  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border-light);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition-smooth);
  }

  header.scrolled .mobile-drawer {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .mobile-drawer.show {
    left: 0;
  }

  .menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-section {
    height: 60vh;
    margin-top: 80px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .grid-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .value-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .value-row.reverse {
    grid-template-columns: 1fr;
  }

  .value-row.reverse .value-img-wrapper {
    grid-column: 1;
  }

  .value-row.reverse .value-content-wrapper {
    grid-column: 1;
    grid-row: auto;
  }

  .value-img {
    height: 250px;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-details {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .tag-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .overview-paragraph,
  .global-text,
  .value-desc {
    font-size: 1rem;
  }

  .blueprint-frame {
    padding: 15px;
  }

  .license-certificate {
    padding: 24px 20px;
  }

  .cert-row {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 8px;
  }

  .cert-seal-wrapper {
    top: 10px;
    right: 15px;
    width: 55px;
    height: 55px;
  }

  .cert-seal-inner {
    width: 45px;
    height: 45px;
    font-size: 0.4rem;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark, #1f2937);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
}

#site-header.scrolled .lang-switcher {
  color: var(--color-white, #fff);
}

.lang-switcher .lang-opt {
  transition: color 0.3s ease;
  opacity: 0.6;
}

.lang-switcher .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

.lang-switcher:hover .lang-opt:not(.active) {
  opacity: 1;
  color: var(--color-blue-primary, #000000);
}

#site-header.scrolled .lang-switcher:hover .lang-opt:not(.active) {
  color: var(--color-white, #fff);
}

.lang-switcher-mobile {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--color-white, #fff);
  font-size: 1.1rem;
}

.lang-switcher-mobile .lang-opt {
  opacity: 0.6;
}

.lang-switcher-mobile .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

@media (max-width: 992px) {
  .lang-switcher {
    display: none;
  }
}

/* ============ [2] SERVICE 頁面樣式 ============ */
/* ==========================================================================
   PRODUCTS & SERVICES STYLES
   ========================================================================== */

/* 1. SERVICE HERO BANNER
   ========================================================================== */
.service-hero-section {
  height: 60vh;
  min-height: 450px;
  position: relative;
  margin-top: 90px;
  /* background matching the tech aesthetic */
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--color-border-light);
}

.service-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 0, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 206, 0, 0.05) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 24px;
}

.service-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.service-hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-red-accent);
  border-radius: 2px;
}

.service-hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 24px;
}

/* 2. SERVICE OVERVIEW GRID
   ========================================================================== */
.service-overview-section {
  padding: var(--section-padding);
  background-color: var(--color-white);
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-blue-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
  background: var(--color-orange-accent);
}

.service-card-icon {
  width: 70px;
  height: 70px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 1.8rem;
  color: var(--color-blue-primary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
  background: var(--color-blue-primary);
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 15px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 3. SERVICE DETAILS (Alternating Layout)
   ========================================================================== */
.service-details-section {
  padding: var(--section-padding);
  background-color: var(--color-bg-light);
}

.detail-section {
  margin-bottom: 120px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-content.text-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-category {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-orange-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  line-height: 1.3;
}

.detail-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .service-hero-title {
    font-size: 2.2rem;
  }

  .detail-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   INDUSTRIES HERO COMPONENT (Copied from industries.html)
   ========================================================================== */
.industries {
  --ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  width: 100%;
  height: min(82vh, 760px);
  margin-top: 5px;
  /* offset for fixed header */
  overflow: hidden;
  isolation: isolate;
}

/* 共用的連續背景：兩層堆疊，hover 時上層淡入切換主題圖片 */
.industries__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}

/* 預設底圖（太陽能 -> 替換為 res/index/hero_bg.png 或其他） */
.industries__bg--base {
  background-image: url("../res/index/hero_bg.png");
}

/* 切換層：由 JS 換圖；淡入 + 緩慢縮放的漸變特效 */
.industries__bg--swap {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity .8s var(--ease), transform 1.6s var(--ease);
}

.industries__bg--swap.is-active {
  opacity: 1;
  transform: scale(1);
}

/* 底圖在切換時也輕微縮放，銜接更順 */
.industries__bg--base {
  transition: transform 1.6s var(--ease)
}

.industries:hover .industries__bg--base {
  transform: scale(1.05)
}

/* 面板列（文字層需高於兩個背景切換層） */
.panels {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100%;
}

/* ── 單一面板 ────────────────────────────────── */
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .28);
  overflow: hidden;
}

.panel:last-child {
  border-right: none
}

/* 預設薄面紗 */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, .05) 0%, rgba(8, 12, 20, .40) 100%);
  transition: opacity .5s var(--ease);
  z-index: 0;
}

.panel:hover::before {
  opacity: .55
}

/* 頂部標題卡：白底由頂端「逐漸往下」展開 */
.panel__head {
  position: relative;
  z-index: 1;
  padding: 2.4rem 1.6rem;
}

/* 白色填充層：scaleY 由 0 → 1，原點在上方，所以往下生長 */
.panel__head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .55s var(--ease);
  z-index: -1;
}

.panel:hover .panel__head::before {
  transform: scaleY(1)
}

.panel__num {
  display: block;
  font-size: .72rem;
  letter-spacing: .32em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: .7rem;
  color: #fff;
  transition: color .45s var(--ease);
}

.panel:hover .panel__num {
  color: var(--color-orange-accent)
}

.panel__title {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
  transition: color .45s var(--ease);
}

.panel:hover .panel__title {
  color: var(--color-blue-primary)
}

/* VIEW MORE：預設收起，hover 由下淡入、底部置中 */
.panel__more {
  z-index: 1;
  margin-top: auto;
  margin-bottom: 2.2rem;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  letter-spacing: .22em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.panel__more svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  fill: none;
  stroke-width: 2
}

.panel:hover .panel__more {
  opacity: 1;
  transform: translateY(0)
}

/* 手機：改為直向堆疊 */
@media (max-width:880px) {
  .industries {
    height: auto
  }

  .panels {
    flex-direction: column
  }

  .panel {
    flex: none;
    min-height: 130px;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, .28);
  }

  .panel__head {
    padding: 1.4rem 1.5rem
  }

  .panel__more {
    opacity: 1;
    transform: none;
    margin: 0 0 1.3rem
  }
}

/* ==========================================================================
   CENTERED CAROUSEL COMPONENT
   ========================================================================== */
.detail-slider.centered-carousel {
  position: relative;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  padding: 20px 0 50px 0;
  /* space for scaled active slide and dots */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* bleed full width */
}

.centered-carousel .slider-track-container {
  overflow: visible;
  /* track handles overflow */
}

.centered-carousel .slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.centered-carousel .slide {
  flex: 0 0 50vw;
  /* take less width to show more of side images */
  max-width: 800px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  opacity: 0.4;
  transform: scale(0.75);
  /* noticeable shrink for side images */
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0 1vw;
  /* scalable gap */
}

.centered-carousel .slide.is-active {
  opacity: 1;
  transform: scale(1.05);
  /* enlarge center image */
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.centered-carousel .slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Adjust buttons for full width */
.centered-carousel .slider-btn {
  position: absolute;
  top: calc(50% - 15px);
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-primary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.centered-carousel .slider-btn:hover {
  background: var(--color-blue-primary);
  color: var(--color-white);
  border-color: var(--color-blue-primary);
}

.centered-carousel .slider-prev {
  left: 5vw;
}

.centered-carousel .slider-next {
  right: 5vw;
}

/* Dots */
.centered-carousel .slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.centered-carousel .slider-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.centered-carousel .slider-dots .dot.active {
  background: var(--color-orange-accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .centered-carousel .slide {
    flex: 0 0 75vw;
    transform: scale(0.85);
  }

  .centered-carousel .slide.is-active {
    transform: scale(1);
  }

  .centered-carousel .slider-prev {
    left: 2vw;
  }

  .centered-carousel .slider-next {
    right: 2vw;
  }

  .centered-carousel .slide img {
    height: 300px;
  }
}


/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark, #1f2937);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
}

#site-header.scrolled .lang-switcher {
  color: var(--color-white, #fff);
}

.lang-switcher .lang-opt {
  transition: color 0.3s ease;
  opacity: 0.6;
}

.lang-switcher .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

.lang-switcher:hover .lang-opt:not(.active) {
  opacity: 1;
  color: var(--color-blue-primary, #000000);
}

#site-header.scrolled .lang-switcher:hover .lang-opt:not(.active) {
  color: var(--color-white, #fff);
}

.lang-switcher-mobile {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--color-white, #fff);
  font-size: 1.1rem;
}

.lang-switcher-mobile .lang-opt {
  opacity: 0.6;
}

.lang-switcher-mobile .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

@media (max-width: 992px) {
  .lang-switcher {
    display: none;
  }
}

/* ============ [3] PERFORMANCE 頁面樣式 ============ */
/* ==========================================================================
       1. DESIGN SYSTEM & CSS VARIABLES
       ========================================================================== */
:root {
  /* Colors */
  --color-blue-primary: #000000;
  /* Deep US Blue */
  --color-blue-light: #333333;
  /* Electric Tech Blue */
  --color-blue-dark: #000000;
  /* Dark Navy Space */
  --color-red-accent: #FFCE00;
  /* Vibrant US Red */
  --color-orange-accent: #F58220;
  /* Energetic Orange */
  --color-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  /* Slate 50 background */
  --color-border-light: #E2E8F0;
  /* Slate 200 border */
  --color-text-dark: #0F172A;
  /* Slate 900 text */
  --color-text-muted: #475569;
  /* Slate 600 text */

  /* Typography */
  --font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Borders */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-neon: 0 0 15px rgba(245, 130, 32, 0.2);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
       2. BASE STYLES & LAYOUT
       ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

/* Decorative Tech Grid Lines */
.tech-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-blue-primary);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
       3. NAVIGATION HEADER
       ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

header.scrolled {
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 45px;
  list-style: none;
  align-items: center;
}

.nav-links.left-desktop {
  justify-content: flex-end;
  padding-right: 40px;
}

.nav-links.right-desktop {
  justify-content: flex-start;
  padding-left: 40px;
}

.nav-item a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-primary) 0%, var(--color-orange-accent) 100%);
  transition: var(--transition-smooth);
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-blue-primary);
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--color-blue-primary);
  position: relative;
  cursor: pointer;
}

.logo-badge span {
  color: var(--color-red-accent);
}

.logo-icon {
  position: relative;
  width: 100px;
  height: 32px;
  background-image: url("../res/common/logo_v2.svg");
  background-size: contain;
  background-repeat: no-repeat;
}



/* Mobile Menu Drawer style (hidden on desktop) */
.mobile-drawer {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  list-style: none;
  width: 100%;
}

.mobile-nav-links .nav-item a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 10px 0;
  display: block;
}

.mobile-nav-links .nav-item.active a {
  color: var(--color-blue-primary);
  font-weight: 700;
}

/* Hamburger Menu Button for Mobile */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--color-blue-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
       4. PORTFOLIO HERO (Centered Page Title)
       ========================================================================== */
.portfolio-hero {
  padding-top: 150px;
  padding-bottom: 40px;
  background: var(--color-white);
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #B22234;
  /* US Red Accent */
  border-radius: 2px;
}

/* ==========================================================================
       5. MAIN IMAGE SECTION (Centered 1000px wide image)
       ========================================================================== */
.main-image-section {
  padding-bottom: 50px;
  background: var(--color-white);
}

.image-frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.image-frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.featured-project-img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
       6. PORTFOLIO CONTENT (Centered Single Column Layout)
       ========================================================================== */
.portfolio-content-section {
  padding: 20px 0 100px 0;
  background-color: var(--color-white);
}

.content-container {
  max-width: 850px;
  margin: 0 auto;
}

.portfolio-section {
  margin-bottom: 55px;
}

.section-heading {
  font-size: 1.6rem;
  color: var(--color-blue-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-divider {
  height: 1px;
  margin: 12px 0 20px 0;
  background: linear-gradient(90deg, var(--color-blue-primary) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.section-body {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.8;
}

.location-label {
  margin-bottom: 12px;
}

/* Modern Project Bullets */
.project-bullets {
  list-style: none;
  padding-left: 0;
}

.project-bullets li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

/* High-tech electrical circuit node marker */
.project-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  background-color: var(--color-orange-accent);
  border-radius: 50%;
}

.other-text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
       7. CONTACT FOOTER SECTION
       ========================================================================== */
footer {
  background: var(--color-blue-dark);
  padding: 60px 0;
  color: var(--color-white);
  text-align: center;
  border-top: 4px solid var(--color-red-accent);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.footer-brand {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.footer-brand span {
  color: var(--color-red-accent);
}

.footer-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-details a:hover {
  color: var(--color-orange-accent);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  width: 100%;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 99;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-orange-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
}

/* ==========================================================================
       8. ANIMATIONS (SCROLL-REVEAL)
       ========================================================================== */
/* Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
       9. RESPONSIVE DESIGN (MEDIA QUERIES)
       ========================================================================== */
@media (max-width: 1024px) {
  .page-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }

  header.scrolled {
    height: 70px;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    justify-items: center;
    width: 100%;
  }

  .left-desktop,
  .right-desktop {
    display: none;
  }

  .logo-container {
    grid-column: 2;
    justify-content: center;
  }

  .menu-btn {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  /* Mobile Menu Drawer style */
  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border-light);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition-smooth);
  }

  header.scrolled .mobile-drawer {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .mobile-drawer.show {
    left: 0;
  }

  .menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .portfolio-hero {
    padding-top: 120px;
    padding-bottom: 25px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .portfolio-content-section {
    padding-bottom: 60px;
  }

  .footer-details {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .section-body,
  .project-bullets li {
    font-size: 1rem;
  }
}


/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark, #1f2937);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
}

#site-header.scrolled .lang-switcher {
  color: var(--color-white, #fff);
}

.lang-switcher .lang-opt {
  transition: color 0.3s ease;
  opacity: 0.6;
}

.lang-switcher .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

.lang-switcher:hover .lang-opt:not(.active) {
  opacity: 1;
  color: var(--color-blue-primary, #000000);
}

#site-header.scrolled .lang-switcher:hover .lang-opt:not(.active) {
  color: var(--color-white, #fff);
}

.lang-switcher-mobile {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--color-white, #fff);
  font-size: 1.1rem;
}

.lang-switcher-mobile .lang-opt {
  opacity: 0.6;
}

.lang-switcher-mobile .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

@media (max-width: 992px) {
  .lang-switcher {
    display: none;
  }
}

/* ============ [4] AUTH 樣式 ============ */
/* ==========================================================================
   AUTH PAGES (登入 / 註冊 / 會員中心) — 沿用 index.css 的設計 tokens
   ========================================================================== */

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.05), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245, 130, 32, 0.05), transparent 40%),
    var(--color-bg-light);
}

.auth-main .container {
  display: flex;
  justify-content: center;
}

/* 卡片 */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
}

.auth-card.auth-card-wide {
  max-width: 620px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange-accent);
  margin-bottom: 8px;
}

.auth-title {
  font-size: 1.9rem;
  color: var(--color-blue-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 表單 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-group label .required {
  color: var(--color-red-accent);
  margin-left: 2px;
}

.form-group input {
  padding: 13px 15px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  transition: var(--transition-smooth);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.auth-form .btn {
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-blue-primary);
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--color-orange-accent);
}

/* Flash 訊息 */
.auth-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 20px;
  padding: 13px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-flash.success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-flash.error {
  background: rgba(255, 206, 0, 0.08);
  color: var(--color-red-accent);
  border: 1px solid rgba(255, 206, 0, 0.25);
}

/* 會員中心資料表 */
.profile-list {
  list-style: none;
  border-top: 1px solid var(--color-border-light);
  margin-top: 8px;
}

.profile-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 2px solid var(--color-border-light);
}

.profile-list .label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.profile-list .value {
  color: var(--color-text-dark);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============ [5] INDEX + 共用基礎/導覽列 (權威) ============ */
/* ==========================================================================
       1. DESIGN SYSTEM & CSS VARIABLES
       ========================================================================== */
:root {
  /* Colors */
  --color-blue-primary: #000000;
  /* Deep US Blue */
  --color-blue-light: #333333;
  /* Electric Tech Blue */
  --color-blue-dark: #000000;
  /* Dark Navy Space */
  --color-red-accent: #FFCE00;
  /* Vibrant US Red */
  --color-orange-accent: #F58220;
  /* Energetic Orange */
  --color-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  /* Slate 50 background */
  --color-border-light: #E2E8F0;
  /* Slate 200 border */
  --color-text-dark: #0F172A;
  /* Slate 900 text */
  --color-text-muted: #475569;
  /* Slate 600 text */
  --color-card-bg: rgba(255, 255, 255, 0.9);

  /* Gradients */
  --grad-blue-dark: linear-gradient(135deg, #000000 0%, #000000 100%);
  --grad-blue-glow: linear-gradient(135deg, #000000 0%, #333333 100%);
  --grad-tech-gold: linear-gradient(135deg, #DD0000 0%, #F58220 100%);

  /* Typography */
  --font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Borders */
  --section-padding: 100px 0;
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-neon: 0 0 15px rgba(245, 130, 32, 0.2);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
       2. BASE STYLES & LAYOUT
       ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

/* Decorative Tech Grid Lines */
.tech-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-blue-primary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
       3. NAVIGATION HEADER
       ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

header.scrolled {
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 45px;
  list-style: none;
  align-items: center;
}

.nav-links.left-desktop {
  justify-content: flex-end;
  padding-right: 40px;
}

.nav-links.right-desktop {
  justify-content: flex-start;
  padding-left: 40px;
}

.nav-item a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
  padding: 8px 0;
}

/* Custom Tech Underline Hover */
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-primary) 0%, var(--color-orange-accent) 100%);
  transition: var(--transition-smooth);
}

.nav-item a:hover {
  color: var(--color-blue-primary);
}

.nav-item a:hover::after {
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wafer-Style Corporate Logo */
.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--color-blue-primary);
  position: relative;
  cursor: pointer;
}

.logo-badge span {
  color: var(--color-red-accent);
}

.logo-icon {
  position: relative;
  width: 150px;
  height: 48px;
  background-image: url("../res/common/logo_v2.svg");
  background-size: cover;
  background-repeat: no-repeat;
}



/* Mobile Menu Drawer style (hidden on desktop) */
.mobile-drawer {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  list-style: none;
  width: 100%;
}

.mobile-nav-links .nav-item a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 10px 0;
  display: block;
}

/* Hamburger Menu Button for Mobile */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--color-blue-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-blue-primary);
  color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-blue-primary);
  border: 2px solid var(--color-border-light);
}

.btn-outline:hover {
  border-color: var(--color-blue-primary);
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline-dark:hover {
  background: var(--color-white);
  color: var(--color-blue-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   INDEX HERO SECTION
   ========================================================================== */
.index-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background-color: var(--color-white);
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-bg iframe {
  width: 100vw;
  height: 56.25vw;
  /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.77vh;
  /* 16:9 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Prevent clicking the video */
}

/* Overlay to keep it white/tech themed and ensure text is readable */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 1;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.circle-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.circle-blur.top-right {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: rgba(0, 0, 0, 0.1);
}

.circle-blur.bottom-left {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: rgba(245, 130, 32, 0.1);
}

.tech-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.5;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(245, 130, 32, 0.1);
  color: var(--color-orange-accent);
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 130, 32, 0.2);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
}

.highlight-orange {
  color: var(--color-orange-accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Glass Tech Visuals */
.hero-visual {
  position: relative;
  height: 500px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.main-card {
  position: absolute;
  top: 50px;
  right: 0;
  width: 90%;
  animation: float 6s ease-in-out infinite;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-border-light);
}

.dot-group {
  display: flex;
  gap: 6px;
}

.dot-group span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-light);
}

.dot-group span:first-child {
  background: var(--color-red-accent);
}

.dot-group span:nth-child(2) {
  background: var(--color-orange-accent);
}

.dot-group span:last-child {
  background: var(--color-blue-primary);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.data-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.data-row .label {
  color: var(--color-text-muted);
}

.data-row .value {
  font-weight: 600;
  color: var(--color-blue-primary);
}

.data-row .success {
  color: #10B981;
}

.power-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border-light);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

.power-bar .fill {
  width: 100%;
  height: 100%;
  background: var(--grad-blue-dark);
}

.float-card {
  position: absolute;
  bottom: 80px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  animation: float 8s ease-in-out infinite reverse;
}

.float-card i {
  font-size: 2rem;
  color: var(--color-orange-accent);
}

.float-card h4 {
  margin-bottom: 4px;
}

.float-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ==========================================================================
   CORE VALUES SECTION
   ========================================================================== */
.core-values-section {
  padding: var(--section-padding);
  background-color: var(--color-bg-light);
}

.section-header {
  margin-bottom: 60px;
}

.section-category {
  color: var(--color-orange-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-blue-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-blue-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-blue-primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
  background: var(--color-blue-primary);
  color: var(--color-white);
}

.value-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.value-text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SHOWCASE SECTION
   ========================================================================== */
.showcase-section {
  padding: var(--section-padding);
  background-color: var(--color-blue-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-title {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

.showcase-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin-bottom: 40px;
}

.feature-list li {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list i {
  color: var(--color-orange-accent);
  font-size: 1.2rem;
}

.showcase-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

.image-overlay-box {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--color-white);
  padding: 24px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-blue-primary);
  line-height: 1;
}

.stat-number span {
  font-size: 1.5rem;
  color: var(--color-orange-accent);
}

.stat-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

/* Media Queries overrides for index */
@media (max-width: 992px) {

  .hero-container,
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 3rem;
  }

  .main-card {
    position: relative;
    top: 0;
    width: 100%;
  }

  .float-card {
    display: none;
  }

  .hero-visual {
    height: auto;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .showcase-img {
    height: 350px;
  }
}

/* ==========================================================================
       9. FOOTER SECTION (SECTION 6)
       ========================================================================== */
footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border-light);
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-blue-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand span {
  color: var(--color-red-accent);
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  row-gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 900px;
  line-height: 1.6;
}

.footer-divider {
  color: var(--color-border-light);
}

.footer-details a:hover {
  color: var(--color-orange-accent);
}

.footer-copyright {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(100, 116, 139, 0.7);
}

/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 99;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-orange-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
}

/* ==========================================================================
       10. ANIMATIONS (SCROLL-REVEAL)
       ========================================================================== */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 130, 32, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 130, 32, 0);
  }
}

/* Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
       11. RESPONSIVE DESIGN (MEDIA QUERIES)
       ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .grid-2col {
    gap: 40px;
  }

  .global-layout {
    grid-template-columns: 1fr;
  }

  .global-img-container {
    min-height: 300px;
  }

  .global-card {
    padding: 50px 40px;
  }

  .licenses-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  header {
    height: 80px;
  }

  header.scrolled {
    height: 70px;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    justify-items: center;
    width: 100%;
  }

  .left-desktop,
  .right-desktop {
    display: none;
  }

  .logo-container {
    grid-column: 2;
    justify-content: center;
  }

  .menu-btn {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  /* Mobile Menu Drawer style (shown only on mobile) */
  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border-light);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition-smooth);
  }

  header.scrolled .mobile-drawer {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .mobile-drawer.show {
    left: 0;
  }

  .menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-section {
    height: 60vh;
    margin-top: 80px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .grid-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .value-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .value-row.reverse {
    grid-template-columns: 1fr;
  }

  .value-row.reverse .value-img-wrapper {
    grid-column: 1;
  }

  .value-row.reverse .value-content-wrapper {
    grid-column: 1;
    grid-row: auto;
  }

  .value-img {
    height: 250px;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-details {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .tag-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .overview-paragraph,
  .global-text,
  .value-desc {
    font-size: 1rem;
  }

  .blueprint-frame {
    padding: 15px;
  }

  .license-certificate {
    padding: 24px 20px;
  }

  .cert-row {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 8px;
  }

  .cert-seal-wrapper {
    top: 10px;
    right: 15px;
    width: 55px;
    height: 55px;
  }

  .cert-seal-inner {
    width: 45px;
    height: 45px;
    font-size: 0.4rem;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
/* 右側工具列：中英切換 + 會員登入 */
.nav-utils {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.nav-member {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1.5px solid var(--color-blue-primary);
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-blue-primary);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.nav-member:hover {
  background: var(--color-blue-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

#site-header.scrolled .nav-member {
  border-color: var(--color-white);
  color: var(--color-white);
}

#site-header.scrolled .nav-member:hover {
  background: var(--color-white);
  color: var(--color-blue-primary);
}

.lang-switcher {
  /* 明確重設定位，覆蓋舊頁面 CSS 中殘留的 position:absolute 規則 */
  position: static;
  right: auto;
  top: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark, #1f2937);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

#site-header.scrolled .lang-switcher {
  color: var(--color-white, #fff);
}

.lang-switcher .lang-opt {
  transition: color 0.3s ease;
  opacity: 0.6;
}

.lang-switcher .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

.lang-switcher:hover .lang-opt:not(.active) {
  opacity: 1;
  color: var(--color-blue-primary, #000000);
}

#site-header.scrolled .lang-switcher:hover .lang-opt:not(.active) {
  color: var(--color-white, #fff);
}

.lang-switcher-mobile {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--color-white, #fff);
  font-size: 1.1rem;
}

.lang-switcher-mobile .lang-opt {
  opacity: 0.6;
}

.lang-switcher-mobile .lang-opt.active {
  opacity: 1;
  color: var(--color-orange-accent, #F58220);
}

@media (max-width: 1200px) {
  .nav-utils {
    display: none;
  }
}

/* 目前頁面的導覽列項目高亮 (由 base.html 依 request.endpoint 加上 .active) */
.nav-item a.active {
  color: var(--color-blue-primary);
}

.nav-item a.active::after {
  width: 100%;
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news-section {
  background-color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-top: 3px solid transparent;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  border-top-color: #B22234;
  /* US Red Accent */
}

.news-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdfdfd 0%, #f4f6f9 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.news-card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.02));
  pointer-events: none;
}

.news-default-logo {
  max-width: 90px;
  max-height: 45px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.news-card:hover .news-default-logo {
  transform: scale(1.05);
}

.news-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.news-card:hover .news-full-img {
  transform: scale(1.03);
}

.news-card-content {
  background-color: #ffffff;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.news-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #B22234;
  /* US Red */
  background-color: rgba(178, 34, 52, 0.08);
  /* Light Red */
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.news-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  font-weight: 500;
  transition: color 0.3s ease;
}

.news-card:hover .news-desc {
  color: var(--color-blue-primary, #000000);
}

/* ==========================================================================
   INDEX PAGE REDESIGN CLASSES
   ========================================================================== */
.hero-image-bg {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #001a33;
  /* 暗藍底色 */
}

.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

/* 漸層藍色濾鏡 (與Logo深藍色 #000000 相近) */
.hero-image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 15, 30, 0.9) 100%);
  mix-blend-mode: overlay;
  /* 混合模式保留圖片細節 */
  z-index: 1;
}

/* 科技感網格與動態效果 */
.hero-image-bg::before {
  content: '';
  position: absolute;
  inset: -50px;
  /* 稍微擴大避免移動時邊緣留白 */
  background:
    linear-gradient(rgba(0, 150, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 255, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
  opacity: 0.6;
  animation: gridPan 30s linear infinite;
  pointer-events: none;
}

/* 漂浮科技粒子特效 */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  bottom: -20vh;
  left: 0;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow:
    10vw 10vh 2px rgba(0, 255, 255, 0.8),
    30vw 30vh 1px rgba(0, 150, 255, 0.6),
    50vw 50vh 3px rgba(255, 255, 255, 0.9),
    70vw 70vh 1px rgba(0, 255, 255, 0.5),
    90vw 90vh 2px rgba(0, 150, 255, 0.8),
    20vw 20vh 1px rgba(255, 255, 255, 0.7),
    40vw 40vh 2px rgba(0, 255, 255, 0.9),
    60vw 60vh 3px rgba(0, 150, 255, 0.6),
    80vw 80vh 1px rgba(255, 255, 255, 0.5),
    15vw 95vh 3px rgba(0, 255, 255, 0.8),
    35vw 85vh 2px rgba(0, 150, 255, 0.6),
    55vw 15vh 4px rgba(255, 255, 255, 0.9),
    75vw 25vh 2px rgba(0, 255, 255, 0.5),
    95vw 45vh 3px rgba(0, 150, 255, 0.8),
    5vw 55vh 2px rgba(255, 255, 255, 0.7);
  animation: floatUp 25s linear infinite;
  border-radius: 50%;
}

.particles-container::after {
  width: 4px;
  height: 4px;
  box-shadow:
    5vw 20vh 3px rgba(0, 255, 255, 0.8),
    25vw 40vh 2px rgba(0, 150, 255, 0.6),
    45vw 60vh 4px rgba(255, 255, 255, 0.9),
    65vw 80vh 2px rgba(0, 255, 255, 0.5),
    85vw 100vh 3px rgba(0, 150, 255, 0.8),
    10vw 70vh 2px rgba(255, 255, 255, 0.7),
    30vw 90vh 2px rgba(0, 255, 255, 0.9),
    50vw 10vh 3px rgba(0, 150, 255, 0.6),
    70vw 30vh 1px rgba(255, 255, 255, 0.5);
  animation: floatUp 35s linear infinite;
  animation-delay: -15s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-130vh);
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes gridPan {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(40px, 40px);
  }
}

.section-padding {
  padding: 80px 0;
}

.bg-white {
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.intro-text-block {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #000;
  font-weight: bold;
  text-align: justify;
  border-left: 6px solid #B22234;
  /* US Red */
  padding-left: 30px;
}

.intro-text-block p {
  margin-bottom: 2rem;
}

.dark-title {
  font-size: 2.2rem;
  font-weight: bold;
  /* margin-bottom: 40px; */
  color: #000;
  position: relative;
  display: inline-block;
}

.dark-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #B22234;
  /* US Red Accent */
  border-radius: 2px;
}

.global-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-subtitle {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #000;
}

.stat-number {
  font-size: 3rem;
  color: #B22234;
  /* US Red */
}

.world-map-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.world-map-img {
  width: 100%;
  height: auto;
  filter: invert(0.1) sepia(1) hue-rotate(180deg) saturate(3) opacity(0.8);
}

.services-container {
  max-width: 100%;
  margin: 0 auto;
}

.projects-showcase-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.projects-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.projects-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projects-overlay span {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.projects-link:hover .projects-overlay {
  opacity: 1;
}

.projects-link:hover .projects-overlay span {
  transform: translateY(0);
}

.projects-link:hover .projects-showcase-img {
  transform: scale(1.05);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down-indicator:hover {
  opacity: 1;
  color: #fff;
}

.scroll-text {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: 'Noto Sans TC', sans-serif;
}

.scroll-arrow {
  font-size: 1.5rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

body {
  background-color: #ffffff;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#backToTopBtn {
  display: none;
  opacity: 0;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border: none;
  outline: none;
  background-color: var(--color-blue-primary, #000000);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #00509e;
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  #backToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* SEO Visually Hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* KUKA Premium Corporate Industrial Overrides - Adjusted Colors */
/* Clean, flat, high-contrast, yellow/red precision aesthetic */
h1, h2, h3, h4, .section-title { text-transform: none !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }
.section-title span { color: #DD0000 !important; }
.section-category, .tag-badge { text-transform: uppercase !important; font-weight: 700 !important; letter-spacing: 0.1em !important; color: #DD0000 !important; border-color: #DD0000 !important; }
.blueprint-frame, .license-certificate, .global-card, .value-img-wrapper, .service-card, .glass-card, .auth-glass, .news-card { border-radius: var(--border-radius-sm) !important; border: 1px solid rgba(0,0,0,0.05) !important; box-shadow: none !important; transition: all 0.3s ease; }
.blueprint-frame:hover, .service-card:hover, .news-card:hover { box-shadow: 0 4px 12px rgba(221, 0, 0, 0.1) !important; border-color: #FFCE00 !important; transform: translateY(-2px) !important; }
.btn-primary, .btn, button { border-radius: 2px !important; border: none !important; background-color: #FFCE00 !important; color: #000000 !important; box-shadow: none !important; font-weight: 700 !important; text-transform: none !important; transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important; padding: 12px 24px !important; }
.btn-primary:hover, .btn:hover, button:hover { background-color: #DD0000 !important; color: #FFFFFF !important; transform: none !important; box-shadow: none !important; }
.nav-item a { text-transform: none !important; font-weight: 600 !important; }
.nav-item a::after { background: #DD0000 !important; }
.nav-item a:hover { color: #DD0000 !important; }
.logo-badge { color: #000000 !important; }
.logo-badge span { color: #FFCE00 !important; }
/* Clean up specific borders and add strong industrial color lines */
header { border-bottom: 3px solid #FFCE00 !important; border-top: 4px solid #DD0000 !important; }

/* Clean Flat Images */
img, .blueprint-frame, .value-img-wrapper, .global-img-container, .news-img-wrapper, .service-img-wrapper { border: none !important; box-shadow: none !important; }
