/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Color Scheme */
    --anthracite-grey: #2B2D2F;
    --dark-anthracite: #1a1c1e;
    --light-anthracite: #3a3c3e;
    --blood-red: #730039;
    --light-red: #8B0047;
    --hover-red: #A30052;
    --white: #FFFFFF;
    --light-grey: #E0E0E0;
    --medium-grey: #999999;

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--anthracite-grey);
    color: var(--light-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--blood-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--hover-red);
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   Layout Components
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--blood-red);
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    background-color: var(--dark-anthracite);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--light-grey);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--white);
    background-color: var(--blood-red);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--light-anthracite);
}

.lang-btn {
    background-color: transparent;
    color: var(--light-grey);
    border: 1px solid var(--light-anthracite);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--white);
    border-color: var(--blood-red);
    background-color: rgba(115, 0, 57, 0.1);
}

.lang-btn.active {
    background-color: var(--blood-red);
    color: var(--white);
    border-color: var(--blood-red);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--dark-anthracite) 0%, var(--anthracite-grey) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



.hero::after-OLD {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Dense mountain peaks - 50 thin vertical lines creating obvious mountain silhouette */
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 35%, transparent 35%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 38%, transparent 38%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 42%, transparent 42%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 45%, transparent 45%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 48%, transparent 48%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, transparent 50%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 52%, transparent 52%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 55%, transparent 55%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 58%, transparent 58%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 60%, transparent 60%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 58%, transparent 58%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 55%, transparent 55%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, transparent 50%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 45%, transparent 45%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 40%, transparent 40%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 35%, transparent 35%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 30%, transparent 30%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 25%, transparent 25%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 20%, transparent 20%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 15%, transparent 15%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 18%, transparent 18%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 22%, transparent 22%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 28%, transparent 28%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 35%, transparent 35%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 42%, transparent 42%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 48%, transparent 48%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 52%, transparent 52%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 55%, transparent 55%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, transparent 50%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 45%, transparent 45%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 38%, transparent 38%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 32%, transparent 32%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 26%, transparent 26%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 22%, transparent 22%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 18%, transparent 18%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 15%, transparent 15%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 12%, transparent 12%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 10%, transparent 10%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 12%, transparent 12%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 16%, transparent 16%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 20%, transparent 20%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 25%, transparent 25%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 30%, transparent 30%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 36%, transparent 36%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 42%, transparent 42%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 46%, transparent 46%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 50%, transparent 50%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 48%, transparent 48%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 44%, transparent 44%),
        linear-gradient(180deg, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 0.5) 40%, transparent 40%);
    background-size:
        1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%,
        1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%,
        1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%,
        1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%,
        1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%;
    background-position:
        0% 0, 2% 0, 4% 0, 6% 0, 8% 0, 10% 0, 12% 0, 14% 0, 16% 0, 18% 0,
        20% 0, 22% 0, 24% 0, 26% 0, 28% 0, 30% 0, 32% 0, 34% 0, 36% 0, 38% 0,
        40% 0, 42% 0, 44% 0, 46% 0, 48% 0, 50% 0, 52% 0, 54% 0, 56% 0, 58% 0,
        60% 0, 62% 0, 64% 0, 66% 0, 68% 0, 70% 0, 72% 0, 74% 0, 76% 0, 78% 0,
        80% 0, 82% 0, 84% 0, 86% 0, 88% 0, 90% 0, 92% 0, 94% 0, 96% 0, 98% 0;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.hero-photo-container {
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease;
}

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--blood-red);
    box-shadow: 0 15px 50px rgba(115, 0, 57, 0.5);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.hero-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 60px rgba(115, 0, 57, 0.7);
    border-color: var(--hover-red);
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-chinese-name {
    font-size: 2.5rem;
    color: var(--blood-red);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    animation: fadeInUp 0.8s ease 0.1s both;
    letter-spacing: 0.2rem;
}

.hero-nushu {
    font-size: 2rem;
    color: var(--light-red);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease 0.15s both;
    font-family: 'Noto Sans Nushu', serif;
    letter-spacing: 0.3rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--blood-red);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--blood-red);
    color: var(--white);
    border-color: var(--blood-red);
}

.btn-primary:hover {
    background-color: var(--hover-red);
    border-color: var(--hover-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(115, 0, 57, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--anthracite-grey);
    transform: translateY(-2px);
}

/* ===================================
   About Section
   =================================== */

.about-section {
    background-color: var(--dark-anthracite);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.education-highlight {
    background-color: var(--anthracite-grey);
    padding: var(--spacing-md);
    border-left: 4px solid var(--blood-red);
    margin-top: var(--spacing-lg);
    border-radius: 4px;
}

.education-highlight h3 {
    color: var(--blood-red);
    margin-bottom: var(--spacing-sm);
}

.education-highlight ul {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.education-highlight li {
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   Current Position Section
   =================================== */

.current-section {
    background-color: var(--anthracite-grey);
}

.current-position {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--dark-anthracite);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border-left: 5px solid var(--blood-red);
}

.current-position h3 {
    font-size: 2rem;
    color: var(--blood-red);
    margin-bottom: var(--spacing-xs);
}

.company {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 600;
}

.date {
    color: var(--medium-grey);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.responsibilities {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.responsibilities li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

/* ===================================
   Resume Section
   =================================== */

.resume-section {
    background-color: var(--dark-anthracite);
}

.resume-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--medium-grey);
}

.resume-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.resume-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blood-red);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--blood-red);
    border: 3px solid var(--anthracite-grey);
    z-index: 1;
}

.timeline-content {
    background-color: var(--anthracite-grey);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: all var(--transition-normal);
    display: block;
}

.timeline-link {
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
}

.timeline-link:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.2);
    color: var(--white);
}

.timeline-link h3 {
    color: var(--blood-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.timeline-link:hover h3 {
    color: var(--hover-red);
}

/* Legacy support for old job-link class (can be removed if not used) */
.job-link {
    color: var(--blood-red);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.job-link:hover {
    color: var(--hover-red);
    text-decoration: underline;
}

/* ===================================
   Job Detail Sections
   =================================== */

.job-detail {
    background-color: var(--anthracite-grey);
    min-height: 100vh;
}

.job-detail:nth-child(even) {
    background-color: var(--dark-anthracite);
}

.back-link {
    margin-bottom: var(--spacing-md);
}

.back-link a {
    color: var(--blood-red);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.back-link a:hover {
    color: var(--hover-red);
    padding-left: 5px;
}

.job-period {
    color: var(--medium-grey);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.job-description {
    background-color: var(--light-anthracite);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
}

.job-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.job-description h4 {
    color: var(--blood-red);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.job-description ul {
    margin-left: var(--spacing-md);
}

.job-description li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

/* ===================================
   Documents Section
   =================================== */

.documents-section {
    margin-top: var(--spacing-lg);
}

.documents-section h3 {
    color: var(--blood-red);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

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

.document-card {
    background-color: var(--light-anthracite);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    display: block;
}

.document-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.document-link:hover {
    transform: translateY(-5px);
    border-color: var(--blood-red);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.2);
}

.document-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.document-card h4 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.document-card p {
    color: var(--medium-grey);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.doc-link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--blood-red);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.document-link:hover .doc-link {
    background-color: var(--hover-red);
    transform: scale(1.05);
}

/* ===================================
   Skills Section
   =================================== */

.skills-section {
    background-color: var(--dark-anthracite);
}

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

.skill-category {
    background-color: var(--anthracite-grey);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border-top: 4px solid var(--blood-red);
}

.skill-category h3 {
    color: var(--blood-red);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.skill-tag {
    background-color: var(--light-anthracite);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--blood-red);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background-color: var(--blood-red);
    transform: scale(1.05);
}

/* ===================================
   Projects Section
   =================================== */

.projects-section {
    margin-top: var(--spacing-xl);
}

.projects-section h3 {
    color: var(--blood-red);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.project-card {
    background-color: var(--anthracite-grey);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--blood-red);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.2);
}

.project-card h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.project-card p {
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    background-color: var(--anthracite-grey);
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--medium-grey);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background-color: var(--dark-anthracite);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-link:hover {
    border-color: var(--blood-red);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-item h3 {
    color: var(--blood-red);
    font-size: 1.1rem;
    margin: 0;
}

.contact-text {
    color: var(--light-grey);
    font-size: 1rem;
    word-break: break-all;
    margin: 0;
}

.contact-link:hover .contact-text {
    color: var(--white);
}

.contact-item a {
    color: var(--light-grey);
    font-size: 1rem;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--white);
}

.contact-item p {
    color: var(--medium-grey);
    margin-bottom: var(--spacing-xs);
}

.contact-item em {
    color: var(--blood-red);
    font-size: 0.9rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--dark-anthracite);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 2px solid var(--blood-red);
}

.footer p {
    color: var(--medium-grey);
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   Animations
   =================================== */

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

/* ===================================
   Photo Gallery Modal
   =================================== */

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: 3% auto;
    padding: var(--spacing-lg);
    max-width: 1400px;
    width: 90%;
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 2001;
}

.gallery-close:hover {
    color: var(--blood-red);
}

.gallery-modal h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--blood-red);
    box-shadow: 0 10px 30px rgba(115, 0, 57, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--blood-red);
}

.gallery-item-desc {
    font-size: 0.9rem;
    color: var(--light-grey);
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-xs);
        width: 100%;
    }

    .language-switcher {
        border-left: none;
        border-top: 1px solid var(--light-anthracite);
        padding-left: 0;
        padding-top: var(--spacing-sm);
        justify-content: center;
    }

    .hero-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .hero-photo {
        width: 220px;
        height: 220px;
    }

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

    .hero-chinese-name {
        font-size: 2rem;
    }

    .hero-nushu {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .resume-timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: 1px;
    }

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-photo {
        width: 180px;
        height: 180px;
        border-width: 4px;
    }

    .hero-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .navbar,
    .hero-cta,
    .back-link,
    .footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}
