:root {
    /* 深綠商務色調 - 專業穩重 */
    --primary-color: #2f855a;
    --secondary-color: #38a169;
    --accent-color: #68d391;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navigation Sidebar */
.navbar {
    background: linear-gradient(180deg, #1a365d 0%, var(--primary-color) 50%, var(--secondary-color) 100%) !important;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    border: none;
    width: 18rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 2rem;
    width: 100%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.img-profile {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}

.img-profile::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-profile:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.img-profile:hover::before {
    opacity: 1;
}

/* 名字樣式 */
.profile-name {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.profile-name h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.profile-name p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
}

.navbar-nav {
    width: 100%;
    padding: 0.5rem 0 2rem;
}

.nav-item {
    margin: 0.2rem 1rem;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link::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 ease;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
    transform: translateX(5px);
}

/* Main Content */
.container-fluid {
    margin-left: 18rem;
    padding: 0;
}

.resume-section {
    padding: 4rem 3rem;
    background: white;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.resume-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.resume-section h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.resume-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* About Section */
#about h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-primary {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheading {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: white;
}

/* Experience Cards */
.experience-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.experience-card:hover::before {
    opacity: 0.03;
}

/* Skills Section */
.dev-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.dev-icons li {
    background: var(--gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dev-icons li:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Awards Section Enhancement */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.award-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.award-image {
    width: 100%;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.award-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.award-card:hover .award-image img {
    transform: scale(1.1);
}

.award-content {
    padding: 1.5rem;
}

.award-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.award-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 250px;
    background: var(--gradient);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .container-fluid {
        margin-left: 0;
    }
    
    .resume-section {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    #about h1 {
        font-size: 2.5rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
}

/* 側邊欄導航列表樣式調整 */
#sideNav .navbar-nav {
    text-align: center; /* 文字置中 */
    list-style: none; /* 移除列點符號 */
    padding-left: 0; /* 移除預設的左側內距 */
}

#sideNav .navbar-nav .nav-item {
    list-style: none; /* 確保沒有列點符號 */
    margin: 0; /* 移除外距 */
}

#sideNav .navbar-nav .nav-link {
    font-size: 1.2rem; /* 調整字體大小，原本可能是 1rem */
    font-weight: 500; /* 字體粗細 */
    text-align: center; /* 文字置中 */
    display: block; /* 確保是區塊元素 */
    padding: 12px 20px; /* 調整內距讓點擊區域更大 */
}



/* 側邊欄整體置中對齊 */
#sideNav {
    text-align: center;
}

/* 確保導航項目沒有任何列表樣式 */
#sideNav ul, #sideNav li {
    list-style-type: none !important;
    list-style: none !important;
}