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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    overflow-x: hidden;
    padding-top: 40px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: hidden;
}

.header {
    background: #667eea;
    color: white;
    padding: 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0;
    min-height: 200px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}


.photo {
    width: 200px;
    min-height: 200px;
    height: 100%;
    object-fit: cover;
    display: block;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
}

.header-info {
    padding: 40px 40px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    grid-column: 2;
    grid-row: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    font-size: 0.9em;
    line-height: 1.6;
    padding: 0 40px 40px 40px;
    grid-column: 2;
    grid-row: 2;
}

.header-info h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
}

.header-info h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 10;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.pdf-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.pdf-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}

.pdf-btn svg {
    flex-shrink: 0;
}

.content {
    padding: 40px;
    max-width: 100%;
    overflow-x: hidden;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    font-weight: 400;
}

.key-point {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
}

.experience-item, .project-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.experience-item:last-child, .project-item:last-child {
    border-bottom: none;
}

.experience-header, .project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.experience-title, .project-title {
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.experience-period, .project-type {
    color: #667eea;
    font-weight: 500;
    font-size: 0.95em;
}

.project-type a {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    position: relative;
}

.project-type a::before {
    content: "▶";
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.project-type a:hover {
    color: #764ba2;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateX(2px);
}

.project-type a:hover::before {
    transform: translateX(2px);
}

.experience-description, .project-description {
    color: #666;
    line-height: 1.8;
    margin-top: 10px;
}

.project-features {
    margin-top: 10px;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
    color: #555;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.skill-category h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.skill-item > div {
    flex: 1;
}

.skill-description {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.soft-skills-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.soft-skill-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.soft-skill-item h4 {
    color: #333;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.soft-skill-item p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.skill-name {
    color: #333;
}

.skill-level {
    color: #667eea;
    font-weight: 600;
}

.education-item {
    margin-bottom: 20px;
}

.education-title {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-details {
    color: #666;
    line-height: 1.8;
}

.education-details strong {
    color: #333;
}

@media print {
    body {
        background: white;
        padding-top: 0;
    }
    .container {
        box-shadow: none;
    }
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 20px;
    }
    .container {
        width: 100%;
    }
    .content {
        padding: 30px 20px;
    }
    .header {
        grid-template-columns: 160px 1fr;
    }
    .photo {
        width: 160px;
    }
    .header-info {
        padding: 30px 20px 0 20px;
    }
    .contact-info {
        padding: 0 20px 30px 20px;
        font-size: 0.9em;
    }
    .header-info h1 {
        font-size: 1.8em;
    }
    .header-info h2 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 10px;
    }
    .header {
        flex-direction: column;
        text-align: left;
        align-items: stretch;
        padding: 15px;
    }
    .header-controls {
        position: relative;
        top: 0;
        right: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        width: 100%;
    }
    .language-switcher {
        justify-content: flex-start;
        flex: 1;
    }
    .pdf-btn {
        margin-left: 10px;
    }
    .header {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0 15px;
        align-items: start;
    }
    .header-controls {
        grid-column: 1 / -1;
        margin-bottom: 15px;
    }
    .photo {
        width: 100px;
        height: 100px;
        min-height: auto;
        border-radius: 50%;
        margin-bottom: 0;
        object-fit: cover;
        flex-shrink: 0;
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }
    .header-info {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
    .header-info h1 {
        font-size: 1.4em;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    .header-info h2 {
        font-size: 1.1em;
        margin-bottom: 0;
    }
    .contact-info {
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: flex-start;
        margin-top: 15px;
        grid-column: 1 / -1;
        grid-row: 3;
    }
    .contact-column {
        width: 100%;
    }
    .contact-item {
        justify-content: flex-start;
    }
    .content {
        padding: 20px;
    }
    .experience-header, .project-header {
        flex-direction: column;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .soft-skills-grid {
        grid-template-columns: 1fr;
    }
}

