/* 重置和基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景場景 */
.intro-bg {
    background-image: url('https://images.unsplash.com/photo-1571266028243-e68fdfbfe60e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.intro-bg .container {
    position: relative;
    z-index: 2;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 區段 */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

/* 圖標樣式 */
.section-title i,
.interest-title i,
.gradient-title i {
    margin-right: 15px;
    color: #4A90E2;
}

/* 漸層標題效果 */
.gradient-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #5c29d2, #06b6d4, #f1238a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}


.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4, #ec4899);
}

/* 第一部分：自我介紹 */
#intro {
    background: #000000;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.intro-text {
    padding-left: 2rem;
}

.intro-description {
    font-size: 1.2rem;
    color: #cccccc;
    line-height: 1.8;
}


/* 第二部分：修課資訊 */
#courses {
    background: #000000;
}

.courses-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.semester {
    background: #111111;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 300px;
}

.semester:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.semester-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 1.5rem;
    text-align: center;
}

.semester-title i {
    margin-right: 10px;
    color: #4A90E2;
}

.course-list {
    list-style: none;
}

.course-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
    color: #cccccc;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li i {
    color: #4A90E2;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.course-list li:hover {
    color: #ffffff;
    padding-left: 10px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 5px;
}

/* 第三部分：過往經歷 */
#experience {
    background: #000000;
}

.experience-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.experience-item {
    background: #111111;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 350px;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.2);
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7B68EE;
    margin-bottom: 1rem;
}

.experience-title i {
    margin-right: 10px;
    color: #7B68EE;
}

.experience-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.experience-description i {
    color: #7B68EE;
    margin-right: 8px;
}

.project-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #FF69B4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.project-link i {
    margin-left: 5px;
}

.experience-item p:last-child {
    color: #cccccc;
    font-size: 1rem;
}

.experience-item p:last-child i {
    color: #4A90E2;
    margin-right: 8px;
}

/* 第四部分：興趣 */
#interests {
    background: #000000;
}

.interest-section {
    margin-bottom: 4rem;
}

.interest-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.interest-title i {
    margin-right: 15px;
    color: #4A90E2;
}

.interest-description {
    font-size: 1.2rem;
    color: #cccccc;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.interest-description i {
    color: #4A90E2;
    margin-right: 10px;
}

/* EDM 內容樣式 */
.edm-content {
    background: #111111;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
}

.edm-info {
    margin-bottom: 2rem;
}

.edm-text {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.edm-text i {
    color: #4A90E2;
    margin-right: 10px;
}

.edm-highlight {
    font-size: 1.4rem;
    color: #00FF88;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.edm-highlight i {
    margin-right: 10px;
}

/* DJ 標籤 */
.dj-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dj-tag {
    background: linear-gradient(45deg, #8b5cf6, #06b6d4, #ec4899);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dj-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dj-tag:hover::before {
    left: 100%;
}

.dj-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 導航 */
.navigation {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    padding: 0.8rem 1rem;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 25px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    font-weight: 700;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}


.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(90deg, #4A90E2 0%, #7B68EE 50%, #FF69B4 100%);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .intro-text {
        padding-left: 0;
    }
    
    .gradient-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid {
        flex-direction: column;
    }
    
    .experience-grid {
        flex-direction: column;
    }
    
    .dj-tags {
        justify-content: center;
    }
    
    .navigation {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
        background: rgba(17, 17, 17, 0.9);
        padding: 1rem;
        border-radius: 25px;
        border: 1px solid #333;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .gradient-title {
        font-size: 2rem;
    }
    
    .profile-image img {
        width: 250px;
        height: 250px;
    }
    
    .edm-content {
        padding: 2rem 1rem;
    }
    
    .dj-tag {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* 滾動動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}
