/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E8956B; /* Pastel orange */
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-cream: #FAF7F4;
    --bg-white: #ffffff;
    --spacing-lg: 120px;
    --spacing-md: 80px;
    --spacing-sm: 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* Chinese Font Style */
:lang(zh), .chinese-text {
    font-family: 'Long Cang', cursive;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-cream);
    padding: var(--spacing-lg) 20px;
    margin-top: 60px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-image {
    display: inline-block;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 0;
    font-size: 0;
}

.hero-image img {
    height: 100%;
    width: auto;
    display: block;
}

.hero-name {
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 200;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -2px;
    text-transform: capitalize;
}

.hero-title {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #d67f56;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 149, 107, 0.3);
}

/* Section Titles */
.section-title {
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: var(--spacing-lg) 20px;
    background-color: var(--bg-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 20px;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Projects Section */
.projects {
    padding: var(--spacing-lg) 20px;
    background-color: var(--bg-cream);
}

/* Skills Section */
.skills {
    padding: var(--spacing-lg) 20px;
    background-color: var(--bg-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: var(--spacing-md);
}

.skill-category {
    padding: 30px;
    background-color: var(--bg-cream);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.skill-category > p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: #d67f56;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: var(--spacing-md);
}

.project-item {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 4px;
    color: var(--text-light);
}

.project-image {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
}

.project-number {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-color);
    margin: 10px 0;
}

.project-desc {
    color: var(--text-light);
    font-size: 16px;
}

/* Experience Section */
.experience {
    padding: var(--spacing-lg) 20px;
    background-color: var(--bg-white);
}

.experience .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.timeline {
    max-width: 800px;
    margin-top: var(--spacing-md);
}

.timeline-item {
    padding: 30px 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-date {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-item p:not(.timeline-date) {
    color: var(--text-light);
    font-size: 16px;
}

/* Contact Section */
.contact {
    padding: var(--spacing-lg) 20px;
    background-color: var(--bg-cream);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: var(--spacing-md);
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding: var(--spacing-md) 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        height: 400px;
        order: -1;
    }

    .section-title {
        margin-bottom: var(--spacing-sm);
    }

    .about,
    .skills,
    .projects,
    .experience,
    .contact {
        padding: var(--spacing-md) 20px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}