:root {
    --primary-color: #B588F7;
    --secondary-color: #1DE5E2;
    --accent-color: #1DE5E2;
    --background-color: #111111;
    --text-color: #FFFFFF;
    --light-gray: #222222;
    --dark-gray: #555555;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.language-switch button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch button:hover {
    background-color: white;
    color: var(--primary-color);
}

section {
    padding: 2rem 10%;
}

.intro {
    background-color: #222222;
    text-align: center;
    font-size: 1.2rem;
    padding: 3rem 15%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.portfolio {
    background-color: var(--light-gray);
    text-align: center;
    flex: 1;
    padding-top: 2rem;
}

.portfolio h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.project-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.project-item {
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-color);
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-image img {
    width: 100%;
    object-fit: contain;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 10%;
    text-align: center;
    position: relative;
    width: 100%;
}

.contact {
    margin-bottom: 1.5rem;
}

.contact h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.contact a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-media {
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links .social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: -3px;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
    text-shadow: 0 0 8px white;
}

.social-links a .social-icon {
    position: relative;
    transition: all 0.3s ease;
}

.social-links a:hover .social-icon {
    filter: hue-rotate(90deg) brightness(1.2) drop-shadow(0 0 2px var(--accent-color));
}

.en-links,
.zh-links {
    display: none;
}

[data-lang="en"] {
    display: flex;
    gap: 1.5rem;
}

[data-lang="zh"] {
    display: flex;
    gap: 1.5rem;
}

.icp-info {
    margin-left: 15px;
    display: inline-block;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.icp-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .intro {
        padding: 3rem 10%;
    }

    section {
        padding: 3rem 5%;
    }
}