/* Modern Resume CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 2rem;
}

.header-content {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.profile-img {
    flex-shrink: 0;
}

.profile-img img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.header-info {
    flex: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
}

.contact-item a:hover {
    border-bottom-color: white;
}

/* Buttons */
.actions {
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Sections */
.section {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Summary */
.summary p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.summary strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Experience */
.job {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.job:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.job h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 500;
}

.period {
    background: var(--bg-light);
    padding: 0.4rem 0.9rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.responsibilities {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.responsibilities li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Projects */
.project {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent-color);
}

.project:last-child {
    margin-bottom: 0;
}

.project h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Education */
.edu-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.edu-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.edu-item .period {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Additional */
.additional-list {
    list-style: none;
    padding: 0;
}

.additional-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 3px solid var(--success-color);
}

.additional-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }

    .header {
        background: var(--primary-color);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .btn {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        padding: 1.5rem 1rem;
    }

    .job, .project {
        page-break-inside: avoid;
    }

    .tag, .skill-category, .project, .additional-list li, .edu-item {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header h1 {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .job-header {
        flex-direction: column;
    }

    .period {
        align-self: flex-start;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 1rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .profile-img img {
        width: 100px;
        height: 100px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .title {
        font-size: 1.1rem;
    }
}
