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

:root {
    --primary-color: #2c3e50;
    --accent-color: #e57373;
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --text-light: #7f8c8d;
    --background: #ffffff;
    --section-bg: #f8f9fa;
    --border-color: #e1e8ed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.section {
    margin-bottom: 45px;
    animation: fadeInUp 0.8s ease-out backwards;
}

.section:nth-child(2) {
    animation-delay: 0.1s;
}

.section:nth-child(3) {
    animation-delay: 0.2s;
}

.section:nth-child(4) {
    animation-delay: 0.3s;
}

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

h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    animation: expandWidth 0.6s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

.summary {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 25px;
    background: var(--section-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.summary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.summary a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.summary a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.summary a:hover::after {
    width: 100%;
}

.job-header {
    margin-bottom: 25px;
}

.job-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.company {
    color: var(--accent-color);
    font-weight: 500;
}

.job-date {
    color: var(--text-light);
    font-size: 0.95rem;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.experience-list li:hover {
    transform: translateX(5px);
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1.7;
    transition: transform 0.2s ease;
}

.experience-list li:hover::before {
    transform: translateX(3px);
}

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

.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 8px rgba(229, 115, 115, 0.3);
}

.education-item {
    margin-bottom: 25px;
}

.education-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.education-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.education-school {
    color: var(--text-secondary);
    font-weight: 500;
}

.education-year {
    color: var(--text-light);
    font-size: 0.95rem;
}

.education-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 0;
    margin-bottom: 8px;
}

.education-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.education-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.education-list li .bullet {
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.placeholder {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media print {
    body {
        background: white;
        animation: none;
        opacity: 1;
    }

    .container {
        max-width: 100%;
        padding: 20px;
    }

    .section {
        animation: none;
    }

    header {
        animation: none;
    }

    .skill-tag {
        border: 1px solid #ddd;
    }

    .skill-tag:hover {
        transform: none;
        box-shadow: none;
    }

    .summary:hover {
        box-shadow: none;
        transform: none;
    }

    .experience-list li:hover {
        transform: none;
    }
}
