* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #7f8c9a;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e1e8ed;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    box-shadow: 0 4px 6px var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 10px;
}

.location {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 20px;
    display: block;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background-color: var(--background);
}

.section {
    margin-bottom: 50px;
    padding: 40px;
    background-color: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.section:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-content {
    color: var(--text-secondary);
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Experience */
.experience-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
    min-width: 200px;
}

.company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-color);
    flex: 1;
    min-width: 150px;
}

.period {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.location-text {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
    font-style: italic;
}

.job-description {
    list-style: none;
    padding-left: 0;
}

.job-description li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.job-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Education */
.education-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.institution {
    display: block;
    font-size: 1.05rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.skill-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Certifications */
.certification-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.certification-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cert-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cert-issuer {
    display: block;
    font-size: 1.05rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

/* Languages */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.language-item:last-child {
    border-bottom: none;
}

.language-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.language-level {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-text strong {
    font-weight: 600;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 40px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .main-content {
        padding: 40px 0;
    }

    .section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .job-title,
    .degree,
    .cert-name {
        font-size: 1.1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .header {
        background: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .footer {
        background: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
