.about-timeline-label-wrap {
    width: 100%;
    display: block;
    margin-bottom: 0.1rem;
}
.about-timeline-label {
    display: inline-block;
    width: auto;
    margin-bottom: 0.7rem;
    margin-left: 0;
    text-align: left;
}
.about-timeline-horizontal {
    clear: both;
    width: 100%;
    margin-top: 0.2rem;
}
.about-timeline-label {
    display: block;
    margin-bottom: 0.7rem;
    margin-left: 0;
    text-align: left;
}
.about-timeline-horizontal {
    margin-top: 0.2rem;
}
/* --- about 區塊標籤 --- */
.about-section-label {
    display: inline-block;
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #ffb347;
    border-radius: 0.7rem;
    padding: 0.32rem 1.1rem;
    margin-bottom: 1.1rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1.5px solid #ffb34733;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.08);
}
/* --- 橫向工作經歷時間軸 --- */
.about-timeline-horizontal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.timeline-horizontal-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(30, 32, 40, 0.85);
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    border: 1.5px solid #23242a;
    padding: 0.7rem 1.1rem;
    min-width: 120px;
}
.timeline-horizontal-line {
    height: 3px;
    width: 32px;
    background: linear-gradient(90deg, #ffb347 0%, #ffd580 100%);
    border-radius: 2px;
}
.timeline-h-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.timeline-h-content .timeline-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.1rem;
}
.timeline-h-content .timeline-date {
    font-size: 0.92rem;
    color: #ffb347;
    font-weight: 600;
}
@media (max-width: 600px) {
    .about-timeline-horizontal {
        flex-direction: column;
        gap: 0.7rem;
        align-items: flex-start;
    }
    .timeline-horizontal-line {
        width: 3px;
        height: 24px;
        background: linear-gradient(180deg, #ffb347 0%, #ffd580 100%);
    }
}
/* --- 關於我 all-in-one 玻璃卡片 --- */
.about-glass-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    background: rgba(30, 32, 40, 0.85);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28), 0 1.5px 8px 0 rgba(0,0,0,0.10) inset;
    padding: 2.5rem 2.5rem 2.5rem 2rem;
    margin: 2.5rem 0;
    border: 1.5px solid #23242a;
    backdrop-filter: blur(16px) saturate(1.2);
    transition: box-shadow 0.3s, border 0.3s;
    position: relative;
    align-items: flex-start;
}
.about-card-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}
.about-avatar-wrap {
    position: relative;
    margin-bottom: 1.2rem;
}
.about-avatar-border {
    border-radius: 50%;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 8px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.25), 0 0.5px 2px 0 rgba(255,255,255,0.08) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.about-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18), 0 0.5px 2px 0 rgba(255,255,255,0.10) inset;
    background: #23242a;
    z-index: 1;
}
.about-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, #ffb347 60%, #ffd580 100%);
    color: #23242a;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(255,179,71,0.18);
    border: 2.5px solid #fff;
    z-index: 2;
}
.about-location {
    color: #ffd580;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.7rem;
    text-align: center;
}
.about-location i {
    margin-right: 0.4em;
}
.about-card-right {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.about-desc {
    color: #e0e0e0;
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.about-skills-block h3, .about-timeline-block h3 {
    color: #ffb347;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    letter-spacing: 0.2px;
}
.about-skills-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
}
.about-skill-card {
    background: rgba(30, 32, 40, 0.85);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18), 0 0.5px 2px 0 rgba(0,0,0,0.10) inset;
    border: 1.5px solid #23242a;
    backdrop-filter: blur(12px) saturate(1.2);
    width: 120px;
    min-width: 100px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s, box-shadow 0.25s, border 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.about-skill-card:hover {
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 40px 0 rgba(255,179,71,0.18), 0 2px 12px 0 rgba(0,0,0,0.18) inset;
    border: 1.5px solid #ffb347;
}
.about-skill-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #ffb347;
    background: linear-gradient(135deg, #23242a 60%, #444 100%);
    border-radius: 0.7rem;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 2px 8px 0 rgba(255,179,71,0.10);
    transition: background 0.3s, color 0.3s;
}
.about-skill-card:hover .about-skill-icon {
    background: linear-gradient(135deg, #ffb347 60%, #ffd580 100%);
    color: #23242a;
}
.about-skill-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-align: center;
}
.about-skill-icon.python { color: #ffb347; }
.about-skill-icon.discord { color: #7289da; }
.about-skill-icon.web { color: #4fd1c5; }
.about-skill-icon.backend { color: #b388ff; }
.about-timeline-block {
    margin-top: 2.2rem;
}
.about-timeline {
    background: rgba(30, 32, 40, 0.85);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18), 0 0.5px 2px 0 rgba(0,0,0,0.10) inset;
    border: 1.5px solid #23242a;
    padding: 1.2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb347 0%, #ffd580 100%);
    box-shadow: 0 2px 8px 0 rgba(255,179,71,0.18);
    border: 3px solid #fff;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
    position: relative;
    z-index: 2;
}
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 22px;
    width: 2.5px;
    height: calc(100% - 22px);
    background: linear-gradient(180deg, #ffb347 0%, #ffd580 100%);
    opacity: 0.7;
    z-index: 1;
    border-radius: 2px;
}
.timeline-content {
    text-align: left;
    flex: 1;
    padding-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.timeline-date {
    font-size: 0.98rem;
    color: #ffb347;
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.timeline-desc {
    color: #e0e0e0;
    font-size: 0.98rem;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .about-glass-card {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.2rem;
    }
    .about-card-left {
        margin-bottom: 1.2rem;
    }
    .about-avatar {
        width: 120px;
        height: 120px;
    }
    .about-timeline {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .about-glass-card {
        padding: 1.2rem 0.5rem;
        border-radius: 1.1rem;
    }
    .about-avatar {
        width: 80px;
        height: 80px;
    }
    .about-skills-cards {
        flex-direction: column;
        gap: 0.7rem;
    }
    .about-skill-card {
        width: 100%;
        min-width: 0;
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    }
    .about-timeline {
        padding: 0.7rem 0.3rem;
    }
}
:root {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --dark-color: #1a1a1a;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: var(--dark-color);
    line-height: 1.6;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

main {
    padding-top: 60px;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--overlay-color);
}

#home {
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
}

.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

.container {
    max-width: 960px;
    margin: auto;
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

#contact p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark-color);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .about-content {
        flex-direction: column;
    }
    .social-icons a {
        font-size: 1.8rem;
    }
}
