/* 全域設定 */
:root {
    --nv-green: #76B900;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* 導覽列 */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(118, 185, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo span {
    color: var(--nv-green);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--nv-green);
}

/* 首頁 Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 35px;
    border: 2px solid var(--nv-green);
    color: var(--nv-green);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--nv-green);
    color: black;
}

/* 通用區塊設定 */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    border-left: 5px solid var(--nv-green);
    padding-left: 20px;
}

/* 生平區塊 */
/* 時間軸容器 */
.timeline {
    border-left: 2px solid var(--nv-green);
    margin-left: 20px;
    padding-left: 30px;
}

/* 每個項目間距 */
.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

/* 標題與年份 */
.timeline-date {
    color: var(--nv-green);
    font-weight: bold;
    font-family: 'Courier New', monospace; /* 增加一點科技感 */
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

/* 列表樣式調整 */
.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    margin-bottom: 10px;
    color: #bbb;
}

/* 強調關鍵字 */
strong {
    color: #fff;
}

/* 技術卡片 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-top: 4px solid var(--nv-green);
    transition: transform 0.3s;
}

.tech-card:hover {
    transform: translateY(-10px);
}

/* 影響力區塊 */
.impact-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.quote-box {
    margin-top: 20px;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--nv-green);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: #000;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--nv-green);
}

/* 智語錄 */
.big-quote {
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.copyright {
    margin-top: 50px;
    color: #555;
    font-size: 0.9rem;
}

.nav-links a.active {
    color: var(--nv-green);
    border-bottom: 2px solid var(--nv-green);
    padding-bottom: 5px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .bio-grid, .impact-layout { grid-template-columns: 1fr; flex-direction: column; }
    .hero-content h1 { font-size: 2.5rem; }
}