/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --accent-color: #3b82f6;
    --success-color: #10b981;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.icon {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Section Styles */
.section {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Professional Summary */
.summary-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

/* Job Styles */
.job {
    margin-bottom: 2.5rem;
}

.job:last-child {
    margin-bottom: 0;
}

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

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.job-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.job-period,
.job-period-sub {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.company {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.job-subsection {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--border-color);
}

.job-description {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.job-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.job-description li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Education */
.education {
    margin-bottom: 1rem;
}

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

.education-degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.education-institution {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.skill-category-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-list {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications */
.certifications-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.certifications-list li {
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.certifications-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
    background: #d1fae5;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Languages */
.languages {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.language {
    display: flex;
    gap: 0.5rem;
}

.language-name {
    font-weight: 600;
    color: var(--text-primary);
}

.language-level {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        border-radius: 0;
    }

    .header {
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .job-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-subsection {
        padding-left: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .languages {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.75rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .job-subsection {
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .header {
        background: var(--text-primary);
        color: white;
    }

    .section {
        page-break-inside: avoid;
    }

    .job {
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    .skill-category {
        break-inside: avoid;
    }
}
