/* ========================================
   AiInPocket (口袋智慧) - 科幻風格樣式
   主色：淡藍色 #87CEEB + 蘋果綠 #7FFF00
   ======================================== */

/* ========================================
   CSS 變數定義
   ======================================== */
:root {
    /* 主色系 */
    --primary-blue: #87CEEB;
    --primary-green: #7FFF00;
    --dark-blue: #4A90E2;
    --light-green: #9FFF40;

    /* 背景色 */
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --card-bg: rgba(15, 25, 50, 0.8);
    --card-hover-bg: rgba(20, 35, 65, 0.9);

    /* 文字色 */
    --text-primary: #E8F4F8;
    --text-secondary: #A0D8EF;
    --text-muted: #6B8FA3;

    /* 光暈效果 */
    --glow-blue: rgba(135, 206, 235, 0.6);
    --glow-green: rgba(127, 255, 0, 0.6);

    /* 間距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* 圓角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* 過渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   全域重置
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* ========================================
   粒子背景
   ======================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
}

/* ========================================
   容器
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   導航列
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    cursor: pointer;
    position: relative;
    z-index: 101;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    display: block;
    margin-top: -0.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem !important;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50px;
    color: var(--dark-bg) !important;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
}

/* ========================================
   隱藏的委託資訊框
   ======================================== */
.secret-info {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 30px var(--glow-green);
    min-width: 300px;
    z-index: 99;
    backdrop-filter: blur(10px);
}

.secret-info.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.secret-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secret-content p {
    margin: 0.7rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.status-active {
    color: var(--primary-green);
    font-weight: bold;
    animation: blink 2s ease-in-out infinite;
}

.secret-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 255, 0, 0.3);
    text-align: center;
}

.secret-footer small {
    color: var(--primary-blue);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

/* ========================================
   主要內容區
   ======================================== */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

/* ========================================
   Hero 區塊
   ======================================== */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--spacing-xl) 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-glitch {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.text-highlight {
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    display: inline-block;
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   浮動元素
   ======================================== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.float-item {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.float-1 { top: 10%; left: 10%; animation-delay: 0s; }
.float-2 { top: 20%; right: 15%; animation-delay: 2s; }
.float-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.float-4 { bottom: 20%; right: 10%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-60px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

/* ========================================
   按鈕樣式
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--glow-green);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: rgba(135, 206, 235, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--glow-blue);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-glow {
    left: 100%;
}

/* ========================================
   區塊標題
   ======================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.title-number {
    display: inline-block;
    font-size: 1rem;
    color: var(--primary-green);
    font-family: 'Courier New', monospace;
    margin-right: 1rem;
    opacity: 0.7;
}

/* ========================================
   服務卡片
   ======================================== */
.services-section {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-green) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px var(--glow-blue);
    background: var(--card-hover-bg);
}

.service-card:hover::before {
    opacity: 0.05;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.card-features {
    list-style: none;
    margin: 1.5rem 0;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.card-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.card-tech {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    font-size: 0.85rem;
    color: var(--primary-green);
    font-family: 'Courier New', monospace;
}

/* ========================================
   數據展示
   ======================================== */
.stats-section {
    padding: var(--spacing-xl) 0;
    background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ========================================
   CTA 區塊
   ======================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: rgba(5, 8, 18, 0.95);
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    padding: 3rem 0 1.5rem;
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.7rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(135, 206, 235, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
    color: var(--primary-green);
    opacity: 0.6;
}

/* ========================================
   彩蛋彈窗
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-green);
    text-align: center;
    box-shadow: 0 0 50px var(--glow-green);
    animation: modalBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.modal-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.magic-text {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
    margin: 2rem 0;
    animation: glow 2s ease-in-out infinite;
}

.modal-close {
    margin-top: 1.5rem;
}

/* ========================================
   頁面標題
   ======================================== */
.page-header {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* ========================================
   作品集頁面
   ======================================== */
.portfolio-filters {
    padding: 2rem 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px var(--glow-blue);
}

.portfolio-section {
    padding: var(--spacing-lg) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px var(--glow-blue);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(127, 255, 0, 0.2));
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.6;
}

.portfolio-content {
    padding: 2rem;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(127, 255, 0, 0.2);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-stats span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-stats strong {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(135, 206, 235, 0.2);
}

.project-tech span {
    padding: 0.4rem 0.8rem;
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-family: 'Courier New', monospace;
}

/* ========================================
   技術棧頁面
   ======================================== */
.tech-section {
    padding: var(--spacing-lg) 0;
}

.tech-category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    font-size: 2.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px var(--glow-blue);
    background: var(--card-hover-bg);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tech-philosophy {
    padding: var(--spacing-xl) 0;
    background: rgba(0, 0, 0, 0.3);
    margin-top: var(--spacing-lg);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-item {
    text-align: center;
    padding: 2rem;
}

.philosophy-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.philosophy-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   關於我們頁面
   ======================================== */
.about-mission {
    padding: var(--spacing-xl) 0;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.mission-text strong {
    color: var(--primary-green);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.value-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 35px var(--glow-blue);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.team-section {
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px var(--glow-blue);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.3), rgba(127, 255, 0, 0.2));
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.member-name {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-green);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.member-skills span {
    padding: 0.4rem 0.8rem;
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-blue);
}

.timeline-section {
    padding: var(--spacing-xl) 0;
    background: rgba(0, 0, 0, 0.3);
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-green));
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-year {
    order: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-year {
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-year {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 2rem;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

.why-us-section {
    padding: var(--spacing-xl) 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.why-us-item {
    padding: 2rem;
    text-align: center;
}

.why-number {
    font-size: 3rem;
    color: var(--primary-green);
    font-weight: 800;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.why-us-item h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.why-us-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   聯絡頁面
   ======================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    border-color: var(--primary-green);
    transform: translateX(5px);
    box-shadow: 0 10px 30px var(--glow-blue);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.contact-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-value a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    text-decoration: underline;
}

.contact-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.social-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-green);
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(135, 206, 235, 0.05);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 15px var(--glow-green);
    background: rgba(127, 255, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.form-success h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.faq-section {
    padding: var(--spacing-xl) 0;
    background: rgba(0, 0, 0, 0.3);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow-blue);
}

.faq-question {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
}

.process-section {
    padding: var(--spacing-xl) 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 35px var(--glow-blue);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.process-step h3 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary-green);
    opacity: 0.5;
}

/* ========================================
   動畫效果
   ======================================== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalBounce {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--glow-green);
    }
    50% {
        text-shadow: 0 0 30px var(--glow-green),
                     0 0 40px var(--primary-green);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--glow-green));
    }
    50% {
        filter: drop-shadow(0 0 40px var(--glow-green))
                drop-shadow(0 0 60px var(--primary-green));
    }
}

/* ========================================
   響應式設計
   ======================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
        border-top: 1px solid rgba(135, 206, 235, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; letter-spacing: 2px; }
    .hero-buttons { flex-direction: column; gap: 1rem; }

    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    .secret-info {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .portfolio-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }

    .timeline::before { left: 0; }
    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 2rem;
    }
    .timeline-item:nth-child(even) .timeline-year { order: 1; }
    .timeline-item:nth-child(even) .timeline-content { text-align: left; }
    .timeline-year {
        justify-content: flex-start !important;
        padding: 0 0 0 1rem !important;
    }

    .process-steps { flex-direction: column; }
    .process-arrow { transform: rotate(90deg); }

    .page-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 3rem; }
    .tech-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}

/* ========================================
   語言切換器
   ======================================== */
.language-switcher {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 900;
    display: flex;
    gap: 0.3rem;
    background: var(--card-bg);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(135, 206, 235, 0.1);
    color: var(--primary-blue);
}

.lang-btn.active {
    background: var(--primary-green);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--glow-green);
}

@media (max-width: 768px) {
    .language-switcher {
        top: 80px;
        right: 1rem;
        padding: 0.3rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   Cookie 同意橫幅
   ======================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--primary-green);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 1.5rem 0;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-text a:hover {
    color: var(--primary-green);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    white-space: nowrap;
    padding: 0.8rem 1.5rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}
