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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%), url('/images/tech-pattern.png');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/tech-pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
}

.header h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.job-title {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.95em;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.contact-info a:hover {
    border-bottom-color: white;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 18px;
    height: 18px;
}

.section {
    padding: 50px 40px;
    border-bottom: 1px solid #e8ecf1;
}

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

.section h2 {
    font-size: 2em;
    color: #2563eb;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
}

.strengths-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.strength-tag {
    background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
}

.job {
    margin-bottom: 40px;
}

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

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.job h3 {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 5px;
    font-weight: 600;
}

.company {
    font-size: 1.1em;
    color: #2563eb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.job-meta {
    text-align: right;
}

.date {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 3px;
}

.location {
    color: #718096;
    font-size: 0.95em;
}

.job-description {
    margin-bottom: 10px;
    color: #4a5568;
    font-style: italic;
}

.subsection-title {
    font-weight: 600;
    color: #2d3748;
    margin: 15px 0 10px 0;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #4a5568;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.skills-category {
    margin-bottom: 35px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.skill-name {
    font-weight: 500;
    color: #2d3748;
}

.skill-level {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

.skill-level.professional {
    background-color: #c3dafe;
    color: #2c5282;
}

.skill-level.limited {
    background-color: #fed7d7;
    color: #9b2c2c;
}

.education h3 {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.education p {
    color: #4a5568;
    margin-bottom: 8px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hobby-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
    color: #2d3748;
    font-weight: 500;
}

.footer {
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 40px;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer .version {
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 10px;
}

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

    .header h1 {
        font-size: 2em;
    }

    .job-title {
        font-size: 1.2em;
    }

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

    .section {
        padding: 30px 20px;
    }

    .section h2 {
        font-size: 1.6em;
    }

    .job-header {
        flex-direction: column;
        gap: 10px;
    }

    .job-meta {
        text-align: left;
    }

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

@media print {
    body {
        background-color: white;
    }

    .resume-container {
        box-shadow: none;
    }

    .header {
        background: #2563eb;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

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

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