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

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #ffffff;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Profile Section */
.profile-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
}

.profile-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-10px);
}

.profile-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #4ecdc4;
}

/* 個人資料卡片樣式 - 透明有質感版本 */
.info-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.5), transparent);
}

.info-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(78, 205, 196, 0.2);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(78, 205, 196, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.info-card h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 12px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 1px;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 8px;
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 100px;
    font-size: 0.95rem;
}

.info-value {
    color: #ffffff;
    text-align: right;
    flex: 1;
    font-size: 0.95rem;
}

.info-value.highlight {
    color: #ff6b6b;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.skills-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-category {
    display: flex;
    align-items: center;
}

.skill-level {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.skill-level:hover {
    transform: translateX(4px);
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.skill-level.excellent .skill-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.skill-level.good .skill-badge {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.skill-level.basic .skill-badge {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
}

.skill-badge:hover {
    transform: scale(1.05);
}

.skill-list {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.bio-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
    text-align: justify;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

.contact-info {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(78, 205, 196, 0.05));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(78, 205, 196, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(78, 205, 196, 0.1),
        inset 0 1px 0 rgba(78, 205, 196, 0.1);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.contact-info h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 205, 196, 0.3);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(78, 205, 196, 0.5));
}

.contact-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-image.emoji-fallback {
    font-size: 3rem;
    color: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.project-time {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-content {
    margin-bottom: 20px;
    opacity: 0.9;
    color: #ffffff;
}

.detail-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.detail-button:active {
    transform: scale(0.95);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 900px;
    max-height: 80vh;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.modal-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
}

.close-button {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
    color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 80px;
    color: #ffffff;
}

.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .profile-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .skill-level {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.4rem;
        padding-right: 50px;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 80px);
    }

    .close-button {
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
