/* 通用樣式 */
:root {
    --primary-color: #3498db; /* 藍色 */
    --secondary-color: #2c3e50; /* 深藍灰 */
    --accent-color: #e74c3c; /* 紅色 */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #222;
    --white: #fff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header / Hero Section */
.hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.profile-photo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填滿容器並保持比例 */
    display: block;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 2em;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    text-decoration: none;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.skill-tag {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

footer a {
    color: var(--primary-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero .tagline {
        font-size: 1em;
    }
    .profile-photo-container {
        width: 150px;
        height: 150px;
    }
    .section {
        padding: 40px 0;
    }
    .section p {
        font-size: 1em;
    }
}