/* =================================================== */
/* GLOBAL STYLES */
/* =================================================== */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 40px 60px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
}

/* Ẩn ảnh (vì không dùng) */
.profile-pic {
    display: none; 
}

/* =================================================== */
/* HEADER STYLES */
/* =================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap; 
}

.profile-info {
    text-align: left;
    flex-basis: 55%; 
    min-width: 300px; 
}

.header h1 {
    font-size: 2.8em;
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.job-title {
    font-size: 1.4em;
    color: #555;
    margin: 5px 0 0;
    font-weight: 400;
}

.contact-info {
    flex-basis: 40%;
    text-align: right;
    min-width: 200px; 
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #666;
}

.contact-info li i {
    color: #4CAF50;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease; /* Hiệu ứng chuyển màu */
}

.contact-info a:hover {
    color: #0056b3;
}

/* =================================================== */
/* SECTION STYLES & TRANSITIONS */
/* =================================================== */
.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    font-size: 2em;
    color: #2c3e50;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    display: inline-block; 
}

/* Hiệu ứng chuyển động (Transitions) cho các tiêu đề con */
.job-item h3, .edu-item h3, .project-item h3 {
    font-size: 1.5em;
    color: #34495e;
    margin-bottom: 5px;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out; 
}

.job-item h3:hover, .edu-item h3:hover, .project-item h3:hover {
    color: #4CAF50; /* Đổi màu xanh lá khi hover */
    transform: translateX(5px); /* Dịch chuyển nhẹ sang phải */
}

.dates {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

/* List styles */
.job-item ul, .edu-item ul, .section.languages ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
    color: #444;
}

.job-item li, .edu-item li, .section.languages li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.summary p, .skills-category p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #888;
}

/* =================================================== */
/* RESPONSIVE DESIGN (Bổ sung Responsive) */
/* =================================================== */

/* Dành cho Tablet (Max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 20px 30px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info, .contact-info {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contact-info ul {
        display: block; /* Xếp lại thành cột */
        padding: 0;
        margin: 0;
    }

    .contact-info li {
        margin: 10px 0; 
        text-align: center;
    }

    h1 {
        font-size: 2em; /* Giảm cỡ chữ tiêu đề chính */
    }

    .job-title {
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.7em;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .job-item ul, .edu-item ul {
        text-align: left; /* Giữ danh sách căn trái để dễ đọc */
    }
}

/* Dành cho Mobile (Max-width: 480px) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 10px 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    .job-title {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.4em;
    }
    
    /* Điều chỉnh cỡ chữ nội dung nhỏ hơn */
    .contact-info li, .summary p, .job-item li, .edu-item li, .skills-category p {
        font-size: 0.9em;
    }
    
    .section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}