html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #232323;
    color: #ccc;
}
/* 導覽列容器 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding-left: 20px;
    background-color: #1a1a1a;
}

/* 靠左的 Logo */
.logo {
    font-size: 20px;
    font-weight: bold;
    flex: 1; /* 佔用 1 份等寬空間 */
    text-decoration: none;
}

.logo a {
    color: #ccc;
    text-decoration: none;
}
/* 置中的選單 */
.menu {
    flex: 1; /* 同樣佔用空間以確保中心點對齊 */
    display: flex;
    justify-content: center;
    gap: 40px;
    white-space: nowrap;
    list-style: none;
}

.menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.menu a:hover {
    color: #fff;
}

/* 靠右的隱藏占位符 (確保視覺平衡) */
.spacer {
    flex: 1; /* 寬度與 .logo 保持一致 */
}

/*==========================以上是導覽列==========================*/
#hero {
    text-align: center;  /* 全部置中 */
    padding: 30px 0;
    padding-left: 0;
    padding-right: 0;  /* 上下留空 */
}

#hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ccc;
}

#hero p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 30px;
}

.hero-buttons a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ccc;
    color: rgba(0, 0, 0, 0.725);
    text-decoration: none;

    border-radius: 5px;

    transition: 0.3s;
}

.hero-buttons a:hover {
    background-color: #333;
}
/* 卡片容器 */
.carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;

    padding: 20px 0;
}

#carousel {
    width: 85%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    justify-content: center;
    position: relative;
    margin: 25px auto;

    border-radius: 8px;
}

.carousel-track {
    display: flex;
    
    height: 100%;
    
    transition: transform 0.7s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;

    padding: 10px;
    cursor: pointer;
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

#carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}
/*==========================以上是index.html的css==========================*/

/* 修改容器比例為 4:6 */
.about-card {
    width: 950px;
    min-height: 520px;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin: auto;
}

/* 左側 40%：名片風格 */
.card-left {
    flex: 4; 
    background-color: #222;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #333;
}

.profile-img {
    width: 140px;
    height: 140px;
    background-color: #333;
    border-radius: 50%;
    border: 2px solid #444;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.profile-img img {
    width: 140px;      /* 寬度與高度必須一致 */
    height: 140px;
    border-radius: 50%; /* 關鍵：強制照片變成圓形 */
    
    /* 核心：這行確保不同比例的照片不會被壓扁，而是自動裁切置中 */
    object-fit: cover;  
    
    /* 視覺對齊：確保邊界與你的邊框一致 */
    border: 2px solid #333; 
    display: block;    /* 移除下方微小的空隙 */
}

.name {
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.status {
    font-size: 14px;
    color: #888;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
}

.contact-box {
    width: 100%;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.contact-box .label {
    display: block;
    font-size: 10px;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-box p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 15px;
    word-break: break-all; /* 確保長 Email 不會撐破容器 */
}

/* 右側 60%：內容區 */
.card-right {
    flex: 6;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h2 span {
    font-size: 12px;
    color: #444;
    letter-spacing: 1px;
}

.info-section p {
    color: #aaa;
    line-height: 1.8;
    font-size: 15px;
}

/* 技能標籤樣式 */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background-color: #333;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #ddd;
    border: 1px solid #444;
}

/* 時間軸的主線 */
.timeline {
  border-left: 2px solid #333; 
  padding-left: 25px;
  margin-left: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

/* 時間軸上的圓點 */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; /* 剛好對齊 border-left */
  top: 5px;
  width: 10px;
  height: 10px;
  background-color: hsl(0, 0%, 100%);
  border-radius: 50%;
  border: 2px solid #1a1a1a;
}

.time { font-size: 12px; color: #666; margin-bottom: 5px; }
.event-title { font-size: 16px; font-weight: bold; color: #eee; margin-bottom: 8px; }
.timeline-item p { font-size: 14px; color: #999; line-height: 1.6; margin: 0; }

/*=====================================以上是about.html的css==========================================*/

#layout {
    display: flex;
}

#sidebar {
    width: 200px;
    position: sticky;
    height: fit-content;
    top: 20px;
    background-color: #1a1a1a;
    color: #ccc;
}

#project-content {
    margin-left: 220px;
    padding: 20px;
    color: #ccc;
}