:root {
    --bg-dark: #1e1e1e;
    --sidebar-bg: #2d2d2d;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ededed;
    --text-secondary: #aaaaaa;
    --accent: #4a90e2;
    --accent-hover: #5aa1f3;
    --accent-glow: rgba(74, 144, 226, 0.3);
    --gold: #f1c40f;
    --font-sans: 'Inter', 'Noto Sans SC', 'Noto Sans KR', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.2s ease-out;
    opacity: 0.6;
}

/* 语言切换器样式 */
.lang-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.resume-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 2rem;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid var(--card-border);
    padding-right: 2rem;
    margin-top: 3rem;
}

.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform var(--transition-smooth);
}

.avatar-container:hover {
    transform: translateY(-5px) scale(1.02);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
    transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

.avatar-container:hover .avatar {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.03);
}

.contact-info {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--text-primary);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-section h2 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--card-border);
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.module-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: 0.3s;
}

.tag-cloud span:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Skills */
.skill-group {
    margin-bottom: 1.5rem;
}

.skill-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.skill-tag.highlighted {
    background: var(--card-border);
    color: #fff;
}

.badge {
    background: rgba(241, 196, 15, 0.1);
    border-color: rgba(241, 196, 15, 0.3);
    color: var(--gold);
}

.watermark-text {
    position: absolute;
    bottom: -40px;
    left: 0;
    font-size: 160px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    writing-mode: vertical-rl;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding-top: 3rem;
    max-width: 800px;
}

.header {
    margin-bottom: 4rem;
}

.greeting {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    letter-spacing: 2px;
}

.greeting .accent-dot {
    color: var(--accent);
}

.name-intro {
    margin-top: -10px;
    margin-left: 5px;
}

.prefix {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.content-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--card-border), transparent);
}

/* Glass UI Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.badge-role,
.en-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.company-name {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.bullet-list {
    list-style: none;
    margin-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.bullet-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.9rem;
}

.bullet-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.spotlight-card {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.spotlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Awards */
.award-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.award-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(241, 196, 15, 0.1);
}

.award-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.award-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.award-level {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.gold {
    background: rgba(241, 196, 15, 0.15);
    color: var(--gold);
}

.national {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .resume-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }

    .lang-switcher {
        position: relative;
        top: 0;
        right: 0;
        margin: 1.5rem auto 0;
        width: max-content;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .profile-section {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .avatar-container {
        margin-bottom: 0;
    }

    .watermark-text {
        display: none;
    }

    .header {
        margin-bottom: 2.5rem;
    }

    .award-list {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding-top: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .sidebar {
        grid-template-columns: 1fr;
    }

    .profile-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .greeting {
        font-size: 3rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}