
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #FF6B6B;
            --secondary-color: #4ECDC4;
            --accent-color: #FFE66D;
            --dark-color: #2D3142;
            --light-color: #F8F9FA;
            --gray-color: #6C757D;
            --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Noto Sans TC', 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-color);
            background-color: var(--light-color);
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header & Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: var(--transition);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem; /* 增加垂直空間，避免按鈕與導覽擁擠 */
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-color);
            text-decoration: none;
            position: relative;
        }

        .logo span {
            color: var(--primary-color);
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--dark-color);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: var(--transition);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
        }

        .nav-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            position: relative; /* 讓下拉選單可絕對定位於此 */
        }

        .nav-actions .btn {
            padding: 8px 18px;
            font-size: 0.95rem;
        }

        /* Header secondary CTA (small menu for download/lang) */
        .nav-cta {
            display: inline-flex;
            align-items: center;
            position: relative;
        }

        .nav-cta .btn {
            padding: 8px 12px;
            font-size: 0.95rem;
            background: transparent;
            border: 1px solid rgba(45,49,66,0.08);
            color: var(--dark-color);
            border-radius: 8px;
        }

        .nav-cta-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            min-width: 160px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.12);
            padding: 8px;
            display: none;
            flex-direction: column;
            gap: 6px;
            z-index: 1300;
        }

        .nav-cta-menu.open {
            display: flex;
        }

        .nav-cta-item {
            display: block;
            padding: 8px 10px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--dark-color);
            background: transparent;
            text-align: left;
            font-weight: 600;
            border: none;
            cursor: pointer;
        }

        .nav-cta-item:hover {
            background: rgba(240,240,245,0.9);
        }

        @media (max-width: 768px) {
            .nav-actions {
                display: none;
            }
        }

        /* Modal Contact Form */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.68); /* 稍微加深遮罩，讓 modal 更突出 */
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
        }

        .modal-overlay[aria-hidden="false"] {
            display: flex;
        }

        .modal {
            width: 100%;
            max-width: 680px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
            max-height: 90vh;        /* 限制最大高度為視窗的 90% */
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f0f0f0;
        }

        .modal-title {
            font-weight: 700;
            color: var(--dark-color);
        }

        .modal-close {
            background: transparent;
            border: none;
            font-size: 1.6rem;
            cursor: pointer;
            line-height: 1;
        }

        .modal-body {
            padding: 20px;
            overflow-y: auto;        /* 內容過多時可滾動 */
        flex: 1;
        }

        .modal-body .form-group {
            margin-bottom: 12px;
        }

        .modal-body label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: var(--dark-color);
            font-size: 0.95rem;
        }





        /* Contact input icon (for visual cue) */
        .modal-body .form-group {
            position: relative;
        }
        .modal-body .form-group .input-icon {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            pointer-events: none;
            opacity: 0.7;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            padding: 0 20px 20px;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--dark-color);
            transition: var(--transition);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 140px 20px 50px; /* 與 header 高度對齊，避免被固定 header 遮蓋 */
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .hero-text h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--dark-color);
        }

        .hero-text h1 .highlight {
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-text .subtitle {
            font-size: 1.5rem;
            color: var(--gray-color);
            margin-bottom: 1.5rem;
            font-weight: 300;
        }

        .hero-text p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 2rem;
            color: var(--gray-color);
        }

        .hero-stats {
            display: flex;
            gap: 2rem;
            margin-top: 2rem;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--gray-color);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 3rem;
        }

        .btn {
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--gradient-2);
            color: white;
            box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--dark-color);
            border: 2px solid var(--dark-color);
        }

        .btn-secondary:hover {
            background: var(--dark-color);
            color: white;
        }

        .hero-image {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-circle {
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: var(--gradient-1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            animation: pulse 3s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .profile-circle::before {
            content: '✨';
            position: absolute;
            font-size: 3rem;
            top: -20px;
            right: -20px;
            animation: rotate 4s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .profile-placeholder {
            width: 370px;
            height: 370px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid white;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        }

        /* Section Styles */
        section {
            padding: 100px 20px;
        }

        /* 作品集容器 */
.portfolio-container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 可替換為你原本的字體 */
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* 網格佈局 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
/* 新增：區塊標題樣式 */
.category-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
    border-left: 5px solid #667eea; /* 左側藍條裝飾 */
    padding-left: 15px;
    margin-top: 0;
}

.category-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    margin-left: 20px;
}
.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 60px 0;
}

.portfolio-category {
    margin-bottom: 40px;
}

/* 如果想讓某些橫向長圖跨兩欄 (Optional) */
@media (min-width: 768px) {
    .gallery-item.large-span {
        grid-column: span 2;
    }
}

/* 單個作品卡片 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* 懸停時圖片微放大 */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* 遮罩層 (Overlay) */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- 燈箱 (Lightbox) 樣式 --- */
.lightbox {
    display: none; /* 預設隱藏 */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px); /* 背景模糊特效 */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

#caption strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.close-btn:hover,
.close-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    text-decoration: none;
    cursor: pointer;
}

/* 左右導航按鈕 */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* 圖片計數器 */
.lightbox-counter {
    position: absolute;
    top: 15px;
    left: 35px;
    color: white;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* 燈箱動畫 */
@keyframes zoom {
    from {transform:scale(0.8); opacity: 0} 
    to {transform:scale(1); opacity: 1}
}

/* 手機版調整 */
@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 35px;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-counter {
        font-size: 14px;
        padding: 8px 15px;
    }
}
        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient-2);
            border-radius: 2px;
        }

        .section-title p {
            color: var(--gray-color);
            font-size: 1.1rem;
        }

        /* Experience Section */
        #experience {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            position: relative;
        }

        .experience-grid {
            display: grid;
            gap: 3rem;
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        .experience-grid::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--gradient-2);
            transform: translateX(-50%);
        }

        .experience-card {
            background: white;
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            position: relative;
            width: calc(50% - 40px);
        }

        .experience-card:nth-child(odd) {
            margin-left: 0;
            margin-right: auto;
        }

        .experience-card:nth-child(even) {
            margin-left: auto;
            margin-right: 0;
        }

        .experience-card::before {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: var(--primary-color);
            border-radius: 50%;
            top: 2rem;
            box-shadow: 0 0 0 5px white, 0 0 0 8px var(--primary-color);
        }

        .experience-card:nth-child(odd)::before {
            right: -50px;
        }

        .experience-card:nth-child(even)::before {
            left: -50px;
        }

        .experience-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        .experience-header {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .experience-icon {
            width: 60px;
            height: 60px;
            background: var(--gradient-1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        .experience-title-group {
            flex: 1;
        }

        .experience-card h3 {
            font-size: 1.4rem;
            margin-bottom: 0.3rem;
            color: var(--dark-color);
        }

        .experience-card .company {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 1.1rem;
            display: block;
        }

        .experience-card ul {
            list-style: none;
            padding: 0;
        }

        .experience-card li {
            padding: 0.7rem 0;
            padding-left: 1.8rem;
            position: relative;
            color: var(--gray-color);
            line-height: 1.6;
        }

        .experience-card li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: white;
            background: var(--secondary-color);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

        /* Skills Section */
        #skills {
            background: white;
        }

        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .skill-category {
            background: var(--light-color);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            transition: var(--transition);
        }

        .skill-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .skill-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
        }

        .skill-category h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--dark-color);
        }

        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
        }

        .skill-tag {
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            color: var(--dark-color);
            border: 2px solid var(--secondary-color);
            transition: var(--transition);
        }

        .skill-tag:hover {
            background: var(--secondary-color);
            color: white;
        }

        /* Projects Section */
       .project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* 確保高度一致 */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px; /* 固定圖片高度，與 gallery-item 協調 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

        .project-image {
            width: 100%;
            height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: var(--light-color);
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .project-card:hover .project-image img {
            transform: scale(1.1);
        }

        .project-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
        }

        .project-card:hover .project-overlay {
            opacity: 1;
        }

        .project-overlay-icon {
            font-size: 3rem;
            color: white;
        }

        .project-content {
            padding: 1.5rem;
        }

        .project-content h3 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--dark-color);
        }

        .project-content p {
            color: var(--gray-color);
            margin-bottom: 1rem;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .project-link:hover {
            gap: 1rem;
        }
        /* 讓整張卡片可點擊的連結 */
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.project-content {
    padding: 20px;
    flex-grow: 1; /* 讓內容區塊自動填滿高度 */
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-link {
    text-decoration: none;
    color: #667eea;
    font-weight: bold;
    align-self: flex-start; /* 靠左對齊 */
    position: relative;
    z-index: 11; /* 確保按鈕在 card-link 之上 */
}

.project-link:hover {
    text-decoration: underline;
}

/* RWD 調整：確保手機版標題不跑版 */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
    }
}

        /* Contact Section */
        #contact {
            background: var(--dark-color);
            color: white;
        }

        #contact .section-title h2,
        #contact .section-title p {
            color: white;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient-2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .contact-item-content h3 {
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }

        .contact-item-content p {
            color: var(--gray-color);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-link {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: var(--transition);
            font-size: 1.2rem;
        }

        .social-link:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.05);
            padding: 2rem;
            border-radius: 15px;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            color: white;
            font-family: inherit;
            transition: var(--transition);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
        
.modal-body .form-group input, .modal-body .form-group textarea {
width: 100%;
padding: 14px 44px 14px 18px; /* 預留右側icon空間 */
border: 2.5px solid var(--primary-color);
background: linear-gradient(135deg, #f8f9fa 0%, #eafaf7 100%);
border-radius: 14px;
font-family: inherit;
font-size: 1.08rem;
color: var(--dark-color);
box-shadow: 0 4px 18px rgba(78,205,196,0.13), 0 1px 6px rgba(0,0,0,0.07) inset;
transition: border-color 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s, transform 0.12s;
outline: none;
position: relative;
}

       .modal-body textarea { min-height: 140px; }
.modal-body input::placeholder,.modal-body textarea::placeholder {
    color: var(--primary-color);
opacity: 0.8;
font-weight: 500;
letter-spacing: 0.5px;
}
       .modal-body input:focus,.modal-body textarea:focus {
border-color: var(--secondary-color);
box-shadow: 0 0 0 4px rgba(255,107,107,0.12), 0 6px 22px rgba(15,15,15,0.08);
transform: translateY(-2px) scale(1.02);

}



        /* Footer */
        footer {
            background: #1a1a2e;
            color: white;
            text-align: center;
            padding: 2rem;
        }

        footer p {
            margin-bottom: 0.5rem;
        }

        .quote {
            font-style: italic;
            color: var(--accent-color);
            margin-top: 1rem;
        }

        /* Responsive Design */
        @media (max-width: 968px) {
            .hero-content,
            .contact-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .hero-text h1 {
                font-size: 2.5rem;
            }

            .profile-circle {
                width: 300px;
                height: 300px;
            }

            .profile-placeholder {
                width: 270px;
                height: 270px;
            }

            .hero-stats {
                justify-content: center;
            }

            /* Experience Timeline Mobile */
            .experience-grid::before {
                left: 30px;
            }

            .experience-card {
                width: calc(100% - 60px);
                margin-left: 60px !important;
                margin-right: 0 !important;
            }

            .experience-card::before {
                left: -50px !important;
                right: auto !important;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                padding: 2rem;
                box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            .hero-text h1 {
                font-size: 2rem;
            }

            .hero-text .subtitle {
                font-size: 1.2rem;
            }

            .section-title h2 {
                font-size: 2rem;
            }

            .projects-grid,
            .skills-container {
                grid-template-columns: 1fr;
            }

            /* Experience Mobile Adjustments */
            .experience-grid::before {
                left: 15px;
            }

            .experience-card {
                width: calc(100% - 40px);
                margin-left: 40px !important;
            }

            .experience-card::before {
                left: -30px !important;
                width: 15px;
                height: 15px;
                box-shadow: 0 0 0 3px white, 0 0 0 5px var(--primary-color);
            }

            .experience-icon {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }

            .experience-card h3 {
                font-size: 1.2rem;
            }

            .go-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
            }

            /* Adjust floating CTA for smaller screens */
            .fab-cta {
                right: 20px;
                bottom: 100px;
                padding: 10px 12px;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        /* Scroll Progress Bar */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            background: var(--gradient-2);
            z-index: 9999;
            transition: width 0.1s ease;
        }

        /* Go to Top Button */
        .go-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--gradient-2);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
        }

        .go-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .go-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
        }

        /* Floating CTA (固定在右下角的聯絡我按鈕) */
        .fab-cta {
            position: fixed;
            right: 30px;
            bottom: 120px; /* 與 go-to-top 保持較寬間距 */
            z-index: 1200;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: 999px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            font-weight: 700;
            box-shadow: 0 10px 30px rgba(245,87,108,0.25);
            border: none;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            animation: cta-pulse 6s ease-in-out infinite;
        }

        @keyframes cta-pulse {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }

        .fab-cta:hover {
            transform: translateY(-6px);
            box-shadow: 0 18px 48px rgba(245,87,108,0.34);
            animation: none; /* 停止脈衝在 hover */
        }

        .fab-cta .label {
            display: inline-block;
        }

        .fab-cta .icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.12);
            font-size: 1.1rem;
        }

        .go-to-top:active {
            transform: translateY(-2px);
        }
  