/* style.css - Modern Portfolio Layout (Dark Theme) */

/* 1. Global Styles and Typography */
body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333; /* Dark gray background */
    color: #fff; /* White text color */
    line-height: 1.6;
}

/* 2. Container and Centering */
.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto; /* 置中整個容器 (Container) */
    padding: 40px 0;
    text-align: center; /* <-- 關鍵：置中容器內所有文字和行內元素 (如連結) */
}

/* 3. Headings and Separators */
h1 {
    font-weight: 700;
    color: #fff;
    border-bottom: 3px solid #777;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h2 {
    font-weight: 500;
    color: #fff;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #555;
}

h3 {
    color: #00bcd4;
}

/* 4. Profile Photo and Info */
img {
    border-radius: 50%;
    border: 4px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    width: 150px;
    height: 150px;
    
    display: block;    /* <-- 關鍵：將圖片視為區塊元素 */
    margin: 0 auto 20px auto; /* <-- 關鍵：使用自動邊距置中圖片本身 */
}

/* 5. Project Card Styles */
section {
    background-color: #444;
    border-left: 5px solid #00bcd4;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); 
    transition: transform 0.2s;
    color: #fff; 
}

section:hover {
    transform: translateY(-3px); 
}

/* 6. Contact Information */
ul {
    list-style: none; 
    padding: 0;
}

li {
    margin-bottom: 10px;
}

/* 7. Link Styling for Projects */
.links a {
    text-decoration: none;
    color: #00bcd4;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

h3 a {
    color: #00bcd4;
    text-decoration: none;
}
h3 a:hover {
    text-decoration: underline;
}