:root {
    /* 核心色系 */
    --bg-main: #0f1115;
    --bg-secondary: #0a0b0e;
    --text-main: #eceff4;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6; /* Tech Blue */
    --accent-glow: rgba(59, 130, 246, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* 字體 */
    --font-main: 'Inter', 'Noto Sans TC', sans-serif;
    
    /* 間距與佈局 */
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 互動背景 Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 置於最底層 */
    pointer-events: none;
}

/* 容器與通用樣式 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 按鈕樣式 */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 4px;
    font-weight: 600;
    margin-left: 16px;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 32px; /* Slightly reduced gap to accommodate the button */
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.scroll-indicator .line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

/* Sections General */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
}

/* Cards Grid */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 4px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.social-links a {
    margin-left: 20px;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-header .nav-links {
        display: none; /* Mobile menu implementation TBD */
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}
