/* ==========================================================================
   TITAN SCADA Industrial Theme — Nick Zhang Portfolio Showcase
   High-Tech Dark SCADA, Cyber-Industrial Control & Glassmorphism Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #060a12;
  --bg-secondary: #0b1120;
  --bg-card: rgba(13, 22, 40, 0.75);
  --bg-card-hover: rgba(18, 30, 56, 0.85);
  --bg-glass: rgba(10, 18, 34, 0.65);
  
  --border-dim: rgba(0, 240, 255, 0.15);
  --border-bright: #00f0ff;
  --border-gold: rgba(255, 183, 0, 0.3);
  --border-emerald: rgba(0, 255, 136, 0.3);
  --border-crimson: rgba(255, 51, 102, 0.3);
  
  --text-primary: #e6edf3;
  --text-secondary: #8b9bb4;
  --text-muted: #53647c;
  --text-highlight: #ffffff;
  
  --scada-cyan: #00f0ff;
  --scada-emerald: #00ff88;
  --scada-amber: #ffb700;
  --scada-crimson: #ff3366;
  --scada-purple: #a855f7;
  --scada-blue: #38bdf8;
  
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-scada: 'Chakra Petch', 'Orbitron', var(--font-sans);
  
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
  --glow-emerald: 0 0 20px rgba(0, 255, 136, 0.35);
  --glow-amber: 0 0 20px rgba(255, 183, 0, 0.35);
  --glow-crimson: 0 0 20px rgba(255, 51, 102, 0.35);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --container-max: 1240px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

/* SCADA Grid Pattern Overlay */
.scada-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar (SCADA Telemetry Header)
   ========================================================================== */
.scada-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.scada-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.scada-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid var(--scada-cyan);
  border-radius: var(--radius-sm);
  color: var(--scada-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--glow-cyan);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--scada-cyan);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--scada-cyan);
}

.nav-links a.active {
  color: #00f3ff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.8), 0 0 20px rgba(0, 243, 255, 0.4);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00f3ff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px #00f3ff;
}

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

.nav-links a.active::after {
  width: 100%;
  height: 2.5px;
  background: #00f3ff;
  box-shadow: 0 0 10px #00f3ff, 0 0 18px rgba(0, 243, 255, 0.7);
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--border-emerald);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--scada-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scada-emerald);
  box-shadow: 0 0 10px var(--scada-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Section Layout & Headings
   ========================================================================== */
section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--scada-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-dim);
  border-radius: 999px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-highlight);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cards & Panels */
.scada-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scada-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-dim), transparent);
}

.scada-panel:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

/* ==========================================================================
   Hero Section & Digital Business Card (展區 1)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  min-height: 95vh;
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c084fc;
  font-weight: 500;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-highlight);
  margin-bottom: 12px;
}

.hero-title .title-accent {
  background: linear-gradient(135deg, var(--scada-cyan), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--scada-cyan);
  margin-bottom: 20px;
  font-family: var(--font-scada);
  letter-spacing: 0.5px;
}

.hero-quote-box {
  background: rgba(0, 240, 255, 0.04);
  border-left: 4px solid var(--scada-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-bottom: 28px;
  position: relative;
}

.hero-quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d1d5db;
  font-style: italic;
}

.hero-quote-text strong {
  color: var(--scada-cyan);
  font-style: normal;
}

/* Service Highlights (源自實體顧問名片) */
.service-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.service-chip:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--scada-cyan);
  transform: translateY(-2px);
}

.service-chip .chip-icon {
  font-size: 1.15rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--scada-cyan), #0284c7);
  color: #040914;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
  color: var(--text-highlight);
  transform: translateY(-2px);
}

/* Digital Business Card (Right Column) */
.business-card-wrap {
  perspective: 1000px;
}

.consultant-card {
  background: linear-gradient(145deg, #0d172a, #0a1120);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  position: relative;
  overflow: hidden;
}

.consultant-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.card-header-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--scada-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
}

.card-serial {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-identity {
  margin-bottom: 24px;
}

.card-identity h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-highlight);
  margin-bottom: 4px;
}

.card-identity .identity-role {
  font-size: 0.95rem;
  color: var(--scada-cyan);
  font-weight: 600;
}

.card-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.contact-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.contact-val {
  font-family: var(--font-mono);
  color: var(--text-highlight);
  font-weight: 600;
}

.btn-copy-sm {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-dim);
  color: var(--scada-cyan);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-sm:hover {
  background: var(--scada-cyan);
  color: #000;
}

.card-footer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* KPI Highlights (4 置頂實測指標) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.kpi-card:hover {
  border-color: var(--scada-cyan);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.kpi-metric {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--scada-cyan);
  line-height: 1.2;
  margin-bottom: 8px;
}

.kpi-card:nth-child(2) .kpi-metric { color: var(--scada-emerald); }
.kpi-card:nth-child(3) .kpi-metric { color: var(--scada-blue); }
.kpi-card:nth-child(4) .kpi-metric { color: var(--scada-purple); }

.kpi-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 6px;
}

.kpi-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Closed-Loop Governance Simulator (展區 2)
   ========================================================================== */
.simulator-panel {
  background: linear-gradient(180deg, #0b1324, #070c17);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Flowchart Visual */
.loop-diagram-wrap {
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.loop-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 900px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
}

.loop-node {
  flex: 1;
  text-align: center;
  background: rgba(13, 22, 40, 0.9);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  transition: all 0.3s ease;
  position: relative;
}

.loop-node.active-node {
  border-color: var(--scada-cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(0, 240, 255, 0.12);
}

.loop-node .node-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--scada-cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.loop-node .node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 4px;
}

.loop-node .node-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.loop-arrow {
  color: var(--scada-cyan);
  font-size: 1.2rem;
  padding: 0 10px;
  opacity: 0.7;
}

/* Quadrant Toggle Tabs */
.sim-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.sim-btn {
  background: rgba(13, 22, 40, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-primary);
}

.sim-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
}

.sim-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--scada-cyan);
  box-shadow: var(--glow-cyan);
}

.sim-btn-q1.active { border-color: var(--scada-crimson); box-shadow: var(--glow-crimson); }
.sim-btn-q2.active { border-color: var(--scada-amber); box-shadow: var(--glow-amber); }
.sim-btn-q3.active { border-color: var(--scada-blue); }
.sim-btn-q4.active { border-color: var(--scada-emerald); box-shadow: var(--glow-emerald); }

.sim-btn-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.sim-btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 4px;
}

.sim-btn-score {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
}

/* Simulator Output Dashboard */
.sim-dashboard {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sim-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diag-status-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-critical {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid var(--scada-crimson);
  color: var(--scada-crimson);
  box-shadow: var(--glow-crimson);
}

.status-protected {
  background: rgba(255, 183, 0, 0.15);
  border: 1px solid var(--scada-amber);
  color: var(--scada-amber);
  box-shadow: var(--glow-amber);
}

.status-unverified {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--scada-blue);
  color: var(--scada-blue);
}

.status-zero-risk {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--scada-emerald);
  color: var(--scada-emerald);
  box-shadow: var(--glow-emerald);
}

.sim-score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.score-max {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.sim-diagnosis-box {
  background: rgba(13, 22, 40, 0.6);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.diagnosis-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.sim-telemetry-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.telemetry-col {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-col .t-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.telemetry-col .t-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-highlight);
  font-weight: 600;
}

/* ==========================================================================
   Dual-Domain Skill Matrix (展區 3: OT × IT)
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.matrix-card-ot {
  border-color: rgba(255, 183, 0, 0.3);
}

.matrix-card-ot:hover {
  border-color: var(--scada-amber);
  box-shadow: var(--glow-amber);
}

.matrix-card-it {
  border-color: rgba(0, 240, 255, 0.3);
}

.matrix-card-it:hover {
  border-color: var(--scada-cyan);
  box-shadow: var(--glow-cyan);
}

.matrix-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.matrix-card-ot .matrix-icon-box {
  background: rgba(255, 183, 0, 0.15);
  border: 1px solid var(--scada-amber);
  color: var(--scada-amber);
}

.matrix-card-it .matrix-icon-box {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--scada-cyan);
  color: var(--scada-cyan);
}

.matrix-card-title h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-highlight);
}

.matrix-card-title p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px;
}

.skill-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.skill-item-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.skill-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-item p strong {
  color: #f3f4f6;
}

/* ==========================================================================
   Industrial Track Record Timeline (展區 4)
   ========================================================================== */
.timeline-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--scada-cyan), var(--scada-purple), rgba(0, 240, 255, 0.1));
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--scada-cyan);
  box-shadow: 0 0 12px var(--scada-cyan);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--scada-cyan);
  transform: scale(1.3);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--scada-cyan);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-highlight);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--scada-cyan);
  font-weight: 600;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.timeline-desc strong {
  color: #fff;
}

/* ==========================================================================
   Cursor Forum Publications (展區 5)
   ========================================================================== */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.pub-card:hover {
  border-color: var(--scada-cyan);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.pub-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--scada-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.45;
  margin-bottom: 16px;
}

.pub-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--scada-cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pub-btn:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================================
   Live Demos & Weapons (展區 6)
   ========================================================================== */
.weapons-hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.weapon-card {
  background: linear-gradient(135deg, rgba(13, 22, 40, 0.8), rgba(6, 10, 18, 0.9));
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.weapon-card:hover {
  border-color: var(--scada-emerald);
  box-shadow: var(--glow-emerald);
  transform: translateY(-4px);
}

.weapon-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-highlight);
  margin-bottom: 6px;
}

.weapon-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: var(--scada-cyan);
  box-shadow: var(--glow-cyan);
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-content {
  padding: 24px;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.4;
  margin-bottom: 12px;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--scada-cyan);
  text-decoration: none;
  font-weight: 600;
}

.video-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Direct Contact & CTA (展區 7)
   ========================================================================== */
.contact-section {
  padding-bottom: 120px;
}

.contact-card-main {
  background: linear-gradient(135deg, rgba(13, 22, 40, 0.95), rgba(7, 12, 22, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-left h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-highlight);
  margin-bottom: 8px;
}

.contact-left .consultant-title {
  font-size: 1.15rem;
  color: var(--scada-cyan);
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-left p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.sla-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sla-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.contact-action-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.action-row:hover {
  border-color: var(--scada-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.action-row-info {
  display: flex;
  flex-direction: column;
}

.action-row-info .row-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.action-row-info .row-value {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-highlight);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--scada-cyan);
  color: var(--scada-cyan);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--scada-cyan);
  color: #000;
  box-shadow: var(--glow-cyan);
}

.contact-meta-info {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(6, 10, 18, 0.95);
  border: 1px solid var(--scada-emerald);
  color: var(--scada-emerald);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--glow-emerald);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-dim);
  background: rgba(4, 7, 14, 0.95);
  padding: 36px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-rights strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .pub-grid {
    grid-template-columns: 1fr;
  }
  
  .weapons-hero-banner {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card-main {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  
  .sim-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 10, 18, 0.98);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-dim);
    gap: 16px;
  }
  
  .nav-links.mobile-open {
    display: flex;
  }
  
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-highlights {
    grid-template-columns: 1fr;
  }
  
  .sim-telemetry-rows {
    grid-template-columns: 1fr;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SCADA Whitepaper Modal Reader (展區 5 防外部刪文雙保險)
   ========================================================================== */
.pub-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.btn-paper-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.25));
  border: 1px solid var(--scada-cyan);
  color: var(--text-highlight);
  font-family: var(--font-scada);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.25);
}

.btn-paper-read:hover {
  background: var(--scada-cyan);
  color: #040914;
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-paper-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-paper-external:hover {
  border-color: var(--text-primary);
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.08);
}

/* Modal Overlay & Window */
.scada-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.scada-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.scada-modal-window {
  background: linear-gradient(145deg, #0b1426, #070d1a);
  border: 1px solid var(--scada-cyan);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scada-modal-overlay.active .scada-modal-window {
  transform: scale(1);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
}

.modal-header-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--scada-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.35;
}

.modal-close-btn {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: var(--scada-crimson);
  font-size: 1.5rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.modal-close-btn:hover {
  background: var(--scada-crimson);
  color: #fff;
  box-shadow: var(--glow-crimson);
}

.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  color: var(--text-primary);
  line-height: 1.75;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
  color: var(--text-highlight);
  margin-top: 24px;
  margin-bottom: 12px;
}

.modal-body h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 8px;
  color: var(--scada-cyan);
}

.modal-body h3 {
  font-size: 1.15rem;
  color: #38bdf8;
}

.modal-body p {
  margin-bottom: 16px;
  color: #d1d5db;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-body th, .modal-body td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.modal-body th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--scada-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.modal-body code {
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.1);
  color: var(--scada-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.modal-body pre {
  background: #040812;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}

.modal-body pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
}

.modal-body blockquote {
  border-left: 4px solid var(--scada-cyan);
  background: rgba(0, 240, 255, 0.05);
  padding: 12px 18px;
  margin: 16px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.modal-body hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

