/* 基礎樣式 */
* {
    color: #02404a;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #18bc9c;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --text-muted: #6c757d;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem; /* 再增大字體 */
    height: 100%;
    /* background-color: rgba(236, 236, 236, 1); */
    background-blend-mode: multiply;
    background-image: url("../images/background.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    color: var(--secondary-color);
}

.background-filter {
    position: relative;
}

.background-filter::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
    backdrop-filter: blur(2px);
    z-index: -1;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.profile-section {
    padding: 3rem 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.section-title {
    font-size: 1.7rem; /* 再增大標題字體 */
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.skill-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.95rem; /* 再稍微增大字體 */
    margin: 0.2rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.skill-tag > i, .badge > i {
    color: white;
}

.link-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem; /* 再增大字體 */
}

.link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.link-btn:hover i {
    color: var(--primary-color);
}

a:hover > i {
    color: white;
}

.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-year-badge {
    background-color: #7db1df !important; /* 統一年份顏色為灰色 */
}

.badge-container {
    text-align: center;
    padding: 1rem;
}

.spotify-widget {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.icon-svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    position: relative;
    left: -80000rem;
    filter: drop-shadow(#ffffff 80000rem 0);
}

.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.status-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem; /* 再增大字體 */
}

.text-muted {
    --bs-text-opacity: 1;
    color: #95a5a6!important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.btn-lg, .btn-group-lg > .btn {
    display: inline-block;
    width: 300px;
    height: 48px;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem; /* 增大字體 */
    border-radius: 0.4rem;
    white-space: wrap;
    text-align: center;
    vertical-align: middle;
    line-height: 48px;
}

.btn-toggle::before,
* > .btn-toggle::before {
    display: inline-flex;
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"]::before,
* > .btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe, 
.video-container object, 
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* 響應式設計 */
@media (max-width: 768px) {
    body {
        font-size: 1.05rem;
    }
    
    .profile-section {
        padding: 2rem 0;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -22px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .link {
        margin: 0.75rem auto;
        width: 90%;
        max-width: 300px;
    }
}