@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@400;700&display=swap');

:root {
    --primary-color: #38bdf8;
    --secondary-color: #2563eb;
    --accent-color: #38bdf8;
    --light-accent: #a5b4fc;
    --card-bg: #232946;
    --dark-bg: #181e29;
    --text-color: #f3f4f6;
    --text-light: #a5b4fc;
    --white: #ffffff;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #232946 0%, #181e29 100%);
    --gradient-2: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
    --gradient-3: linear-gradient(135deg, #a5b4fc 0%, #2563eb 100%);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
    overflow-x: hidden;
    letter-spacing: 0.01em;
    position: relative;
    min-height: 100vh;
    font-size: 16px;
}

body::before {
    display: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(24, 30, 41, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
    background: rgba(24, 30, 41, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: 0.08em;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
}

.nav-links a:hover i {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.hero {
    min-height: 100vh;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 2rem;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    background: var(--card-bg);
    object-fit: cover;
}

.badge-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: rgba(56, 189, 248, 0.2);
}

.badge i {
    font-size: 1rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--text-light);
}

.hero-text .tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.circle1 {
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.15);
    top: 20%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.circle2 {
    width: 250px;
    height: 250px;
    background: rgba(37, 99, 235, 0.1);
    bottom: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-code {
    position: absolute;
    bottom: 10%;
    right: 10%;
    background: rgba(35, 41, 70, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    transform: rotate(2deg);
}

.hero-code pre {
    margin: 0;
}

.hero-code code {
    color: var(--text-color);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes avatar-glow {
    0% { box-shadow: 0 0 32px 0 rgba(56, 189, 248, 0.3), 0 0 0 8px rgba(24, 30, 41, 0.8); }
    100% { box-shadow: 0 0 64px 8px rgba(56, 189, 248, 0.5), 0 0 0 8px rgba(24, 30, 41, 0.8); }
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    color: var(--text-color);
    border: none;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 80px;
}

.section::before {
    display: none;
}

.section.dark {
    background: #232946;
}

.section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: block;
    text-shadow: none;
    color: var(--white);
    font-weight: 600;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.btn, .btn.primary, .service-btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    background: transparent;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color);
    letter-spacing: 0.1em;
    box-shadow: none;
}

.btn::before, .btn.primary::before, .service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::before, .btn.primary:hover::before, .service-btn:hover::before {
    transform: translateX(0);
}

.btn:hover, .btn.primary:hover, .service-btn:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 24px #38bdf855;
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* 技能區塊樣式 */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    font-size: 1.4rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tag:hover {
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 舊的技能樣式（保留以防萬一） */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background: transparent;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 280px;
}

.skill-category::before {
    display: none;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb33 0%, #18181b 100%);
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 12px #2563eb55;
}
.skill-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 2px 12px #2563eb55;
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.skill-category li {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
    line-height: 1.7;
    letter-spacing: 0.01em;
    border-left: 3px solid #38bdf822;
    transition: border-color 0.2s;
}

.skill-category li b {
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
}

.skill-category li:last-child {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background: transparent;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.service-card::before {
    display: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    margin-bottom: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background: transparent;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.pricing-card::before {
    display: none;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.2rem 0;
    text-shadow: none;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
}

.pricing-card li {
    margin-bottom: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--primary-color);
    box-shadow: 0 -2px 16px #38bdf822;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

::-webkit-scrollbar {
    width: 8px;
    background: #181f2a;
}
::-webkit-scrollbar-thumb {
    background: #38bdf844;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 1.5rem 0.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .pricing-card,
    .skill-category {
        padding: 1rem 0.5rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
}

.service-note {
    color: var(--text-light);
    font-size: 1.15rem;
    text-align: center;
    margin-top: 2rem;
    letter-spacing: 0.05em;
    font-family: 'Inter', 'Noto Sans TC', 'Fira Mono', 'JetBrains Mono', sans-serif;
}

.modern-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modern-list li {
    display: flex;
    align-items: center;
    font-size: 1.18rem;
    background: rgba(0,255,174,0.07);
    border-radius: 0.8rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 12px #00ffae11;
    color: var(--text-color);
    font-family: 'Inter', 'Noto Sans TC', 'Fira Mono', 'JetBrains Mono', sans-serif;
    transition: background 0.2s, box-shadow 0.2s;
}

.modern-list li i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 1.5rem;
    text-shadow: 0 2px 8px #00ffae44;
}

.modern-list li:hover {
    background: rgba(0,255,174,0.15);
    box-shadow: 0 4px 24px #00ffae33;
}

.system-types {
    margin-top: 2.5rem;
}
.system-types h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
    letter-spacing: 0.04em;
}
.system-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.system-list li {
    display: flex;
    align-items: center;
    background: rgba(0,255,174,0.08);
    border-radius: 0.7rem;
    padding: 0.7rem 1.3rem;
    font-size: 1.08rem;
    color: var(--text-color);
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
    box-shadow: 0 2px 10px #00ffae11;
    transition: background 0.2s, box-shadow 0.2s;
}
.system-list li i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 0.7rem;
    min-width: 1.3rem;
}
.system-list li:hover {
    background: rgba(0,255,174,0.18);
    box-shadow: 0 4px 16px #00ffae33;
}

.cooperation-card {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid var(--primary-color);
    border-radius: 2rem;
    padding: 0.5rem 1.3rem;
    margin: 0 0.5rem;
    font-size: 1.08rem;
    color: var(--primary-color);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    box-shadow: 0 2px 12px #0002;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}
.cooperation-card i {
    margin-right: 0.7rem;
    font-size: 1.2rem;
}
.cooperation-card.short {
    background: linear-gradient(90deg, var(--primary-color) 10%, var(--card-bg) 100%);
    color: var(--dark-bg);
    border: none;
}
.cooperation-card.long {
    background: linear-gradient(90deg, var(--card-bg) 10%, var(--primary-color) 100%);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.service-btn {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white) !important;
    font-family: 'Poppins', 'Montserrat', 'Inter', 'Noto Sans TC', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: none;
    box-shadow: 0 4px 24px #2563eb55;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.service-btn:hover {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white) !important;
    box-shadow: 0 8px 32px #38bdf899;
}

/* 舊的技能區塊樣式（已棄用，改用 skills-wrapper） */
/* .main-skill-list, .main-skill-block, .main-skill-title 等樣式已移除 */

.timeline {
    position: relative;
    margin: 3rem 0 1rem 0;
    padding-left: 2.5rem;
    border-left: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.timeline-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-dot {
    position: absolute;
    left: -2.2rem;
    top: 0.2rem;
    width: 2.1rem;
    height: 2.1rem;
    background: var(--dark-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    transition: background 0.3s, color 0.3s, border 0.3s;
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}
.timeline-content {
    background: #20263a;
    border-radius: 1.1rem;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 2px 12px #38bdf822;
    min-width: 220px;
    max-width: 420px;
    border-left: 4px solid var(--primary-color);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.timeline-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}
.timeline-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}
.timeline-discount {
    color: #fff;
    background: var(--primary-color);
    border-radius: 0.7rem;
    padding: 0.2rem 0.7rem;
    font-weight: 700;
    margin-left: 0.3rem;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px #38bdf855;
}
.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    color: #fff;
    border-color: #fff;
}
.timeline-item:hover .timeline-content {
    box-shadow: 0 6px 24px #38bdf855;
    border-color: #fff;
}

/* RWD 響應式設計 */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .skills-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 992px) {
    .nav-content {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        margin: 5px 10px;
    }

    .hero-content {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding: 20px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-dot {
        margin: 0 0 15px 0;
    }

    .timeline-content {
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        padding: 20px;
    }

    .system-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .system-list {
        grid-template-columns: 1fr;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 0;
    }
}

/* 確保圖片響應式 */
img {
    max-width: 100%;
    height: auto;
}

/* 確保表格響應式 */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

@media screen and (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

html {
    scroll-behavior: smooth;
}

.contact-form-embed {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-embed .form-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.contact-form-embed .form-btn {
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-form-embed iframe {
    width: 100%;
    min-height: 700px;
    border: none;
    border-radius: 8px;
    background: #181f2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}
@media (max-width: 768px) {
    .contact-form-embed {
        padding: 1.2rem 0.3rem 1.2rem 0.3rem;
        max-width: 100%;
    }
    .contact-form-embed iframe {
        min-height: 520px;
    }
}

/* 行動裝置選單樣式 */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(56, 189, 248, 0.1);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(56, 189, 248, 0.2);
    }
    
    .mobile-menu-toggle.active {
        background: rgba(56, 189, 248, 0.25);
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(24, 30, 41, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        height: auto;
        z-index: 100;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        justify-content: flex-start;
    }
}

/* 新增動畫類 */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 導航欄活躍狀態 */
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.15);
    font-weight: 500;
}

/* 代碼塊樣式 */
pre {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

pre code {
    display: block;
    overflow-x: auto;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    line-height: 1.5;
}

.line-numbers {
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', 'Fira Mono', monospace;
    font-size: 0.85rem;
}

pre code {
    padding-left: 4rem;
}

/* 頁面載入動畫 */
body.loaded .hero-content {
    opacity: 1;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        padding: 4rem 1.5rem 6rem;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-code {
        display: none;
    }
    
    .bg-circle {
        opacity: 0.6;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
}

/* 更多專業化UI元件 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 0.75rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--card-bg) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 標籤樣式 */
.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: var(--gradient-2);
    color: var(--white);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 底部的浮動動作按鈕 */
.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    transform: scale(0);
    animation: floatIn 0.5s ease 1s forwards;
}

.floating-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.floating-action-btn.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 頁面載入進度指示器 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-2);
    z-index: 1001;
    transition: width 0.2s ease;
}

/* 更新關於區塊樣式 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-intro p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-light);
}

.about-features,
.about-experience {
    margin-bottom: 2.5rem;
}

.about-features h3,
.about-experience h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-left: 0;
}

.feature-list,
.experience-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li,
.experience-list li {
    padding: 0.8rem 1rem;
    background: rgba(56, 189, 248, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.feature-list li:hover,
.experience-list li:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateX(5px);
}

/* 更多新樣式 ... */ 