/* 全域樣式 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h5 {
    font-weight: 600;
}

p {
    font-weight: 300;
    margin-bottom: 0.5rem;
}

/*-----------------------------------------------------*/
/* 固定導航條 */
nav.navbar {
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(52, 58, 64, 0.5) !important;  /* 半透明背景 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 隊徽 */
.navbar-brand {
    color: #fff !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    border-radius: 50%;
    height: 70px;
}

/* 導覽文字 */
.navbar-nav .nav-link {
    color: #fff !important;
    padding: 10px 15px;
    font-weight: 400;
}

.navbar-nav .nav-link:hover {
    color: #fdaa10 !important;
}

/* 漢堡選單圖示（Bootstrap 5 可改用預設 icon，也可自行設計） */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}
.navbar-toggler-icon {
    background-image: none;
    width: 1.5em;
    height: 1.5em;
    position: relative;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}
.navbar-toggler-icon::before {
    top: 6px;
}
.navbar-toggler-icon::after {
    bottom: 6px;
}

/*-----------------------------------------------------*/
/* Hero Section */
#hero {
    background: url('images/202412.JPG') no-repeat center center / cover;
    color: rgb(190, 206, 252);
    position: relative;
    padding-top: 60px; /* 避開 navbar */
}

#hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#hero .btn {
    background-color: #fdaa10;
    border: none;
    padding: 12px 25px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

#hero .btn:hover {
    background-color: #ff6f00;
    transform: scale(1.1);
}

/*-----------------------------------------------------*/
/* 關於我們 */
#about-us {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

#about-us .section-title {
    color: #e3450b;
    margin-bottom: 20px;
}

/*-----------------------------------------------------*/
/* 導師介紹 */
#mentor h2 {
    font-weight: 600;
    color: #fdaa10;
    font-size: 2rem;
    margin-bottom: 20px;
}

#mentor p {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.7;
}

#mentor img {
    max-width: 220px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/*-----------------------------------------------------*/
/* 成員介紹 */
#members {
    padding-top: 60px;
    padding-bottom: 60px;
}

#members img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(69, 173, 211, 0.3);
    transition: transform 0.3s;
}

#members .col-md-3:hover img {
    transform: scale(1.05);
}

#members h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
}

#members p {
    font-size: 1rem;
    color: #c41309c6;
}

/* 小小的 IG 圓形按鈕 */
.button.is-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: #fdaa10;
    color: #fff;
    transition: background-color 0.3s, transform 0.3s;
}

.button.is-rounded i {
    font-size: 1.1rem;
}

.button.is-rounded:hover {
    background-color: #ff6f00;
    transform: scale(1.05);
}

/*-----------------------------------------------------*/
/* 組別介紹 */
.team-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.team-section .section-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
}

.team-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #555;
    margin-top: 10px;
}

.team-description {
    font-size: 0.95rem;
    color: #777;
    margin-top: 10px;
    line-height: 1.6;
}

/*-----------------------------------------------------*/
/* 活動歷程時間軸 */
.timeline-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.timeline-section .section-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    margin: 20px 0;
    padding: 0 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    align-items: flex-start;
}

.timeline-date {
    flex: 0 0 25%;
    text-align: right;
    padding-right: 20px;
    font-size: 1.1rem;
    color: #888;
    font-weight: bold;
}

.timeline-content {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -8px;
    width: 16px;
    height: 16px;
    background-color: #ff6f61;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f8f9fa;
}

.timeline-title {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 手機版時間軸 */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-date {
        text-align: center;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .timeline-content::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/*-----------------------------------------------------*/
/* 贊助商 */
#sponsors {
    background-color: #f8f9fa;
    padding: 40px 20px;
}

#sponsors h2 {
    font-size: 2rem;
    color: #004c6d;
    margin-bottom: 20px;
}

#sponsors p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 30px;
}

.sponsor-logo {
    max-width: 80%;
    height: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sponsor-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*-----------------------------------------------------*/
/* 聯絡資訊 */
#contact {
    background-color: #f8f9fa;
    text-align: center;
}

#contact h2 {
    color: #e79b0d;
    margin-bottom: 30px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.mentor-info,
.student-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#contact p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/*-----------------------------------------------------*/
/* Footer */
footer {
    background-color: #333;
    color: #aaa;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: #aaa;
    transition: color 0.3s;
}

footer a:hover {
    color: #fdaa10;
}

/*-----------------------------------------------------*/
/* 返回頂部按鈕 */
.back-to-top-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #fdaa10;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1200;
}

.back-to-top-button:hover {
    background-color: #ff6f00;
    transform: translateY(-2px);
}
