:root {
    --primary: #2d3142;
    --accent: #ef8354;
    --bg: #f5f5f5;
    --text: #22223b;
    --gray: #bfc0c0;
}

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

body {
    background: var(--bg);
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    padding: 36px 44px;
}

/* Hiệu ứng scroll reveal - trạng thái ẩn mặc định */
.header,
.avatar,
.intro h1,
.intro p,
.contacts,
.section,
.section h2,
.section ul,
.section p,
.timeline,
.skill {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

/* Khi có class .show sẽ hiện animation */
.header.show,
.avatar.show,
.intro h1.show,
.intro p.show,
.contacts.show,
.section.show,
.section h2.show,
.section ul.show,
.section p.show,
.timeline.show,
.skill.show {
    opacity: 1;
    transform: none;
}

/* Skill pop riêng */
.skill {
    transition: opacity 0.5s, transform 0.5s;
    transform: scale(0.95) translateY(30px);
}

.skill.show {
    transform: scale(1) translateY(0);
}

/* Section title slide riêng */
.section h2 {
    transform: translateX(-18px) translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

.section h2.show {
    transform: none;
}

/* Các style layout khác giữ nguyên */
.header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--bg);
    padding-bottom: 24px;
    margin-bottom: 32px;
    gap: 32px;
}

.avatar {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gray);
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 2px 16px #eee;
}

.intro h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.intro p {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 1.13rem;
}

.contacts {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 1rem;
}

.contacts span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 18px;
    position: relative;
}

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

.section li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 10px;
}

.skill {
    background: var(--bg);
    color: var(--primary);
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 20px;
    font-size: 1rem;
    box-shadow: 0 1px 4px #eee;
    margin-bottom: 8px;
}

.timeline {
    margin-left: 8px;
}

.timeline-item {
    margin-bottom: 18px;
}

.timeline-title {
    font-weight: 700;
    color: var(--primary);
}

.timeline-duration {
    color: var(--accent);
    font-size: 0.98rem;
    margin-left: 8px;
}

.timeline-desc {
    margin-top: 2px;
    color: #555;
    font-size: 1.06rem;
}

/* Responsive */
@media (max-width: 750px) {
    .container {
        padding: 20px 8px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .intro h1 {
        font-size: 1.7rem;
    }

    .avatar {
        width: 110px;
        height: 110px;
    }
}