@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #1e3a5f;
    --accent: #e85d4c;
    --accent-light: #f9735a;
    --accent-subtle: #fdf2ef;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #7a7a8c;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --border: #e8eaf0;
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.12);
    --shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.15);
    --radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(232, 93, 76, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
}

.print-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 93, 76, 0.35);
    transition: var(--transition);
    z-index: 1001;
    text-decoration: none;
}

.action-buttons {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.print-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 28px rgba(232, 93, 76, 0.45);
}

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

.download-btn {
    background: var(--primary);
}

.download-btn:hover {
    background: #2a4a6f;
}

.cv-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4a6f 100%);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.cv-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 93, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cv-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 24px auto 0;
    border-radius: 2px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cv-header h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    margin-top: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cv-header .titles {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.contact-item .icon {
    font-size: 1rem;
    color: var(--accent);
}

.cv-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.cv-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.cv-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
}

.cv-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    padding: 20px 28px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cv-section > p {
    color: var(--text-medium);
    padding: 24px 28px;
    line-height: 1.8;
    font-size: 1.02rem;
}

.experience-item,
.education-item {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.experience-item:hover {
    background: var(--accent-subtle);
}

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

.experience-item:first-child {
    padding-top: 24px;
}

.job-header {
    margin-bottom: 14px;
}

.job-header h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.job-header .company {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-right: 12px;
}

.job-header .date {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 20px;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

.education-item {
    padding: 18px 28px;
}

.education-item h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.education-item .institution {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.education-item .date {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
}

.skills-category {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}

.skills-category:last-child {
    border-bottom: none;
}

.skills-category h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
    color: var(--text-medium);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 93, 76, 0.3);
}

.languages-list {
    list-style: none;
    padding: 20px 28px;
}

.languages-list li {
    padding: 12px 0;
    color: var(--text-medium);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.languages-list li:last-child {
    border-bottom: none;
}

.languages-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 3px;
    transform: rotate(45deg);
}

.languages-list li strong {
    color: var(--primary);
    font-weight: 600;
    min-width: 80px;
}

.cv-footer {
    display: none;
}

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

    .cv-header h1 {
        font-size: 2.2rem;
    }

    .cv-header .titles {
        font-size: 1rem;
    }

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

    .contact-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cv-main {
        padding: 24px 16px;
    }

    .cv-section h2 {
        padding: 16px 20px;
        font-size: 1.1rem;
    }

    .cv-section > p,
    .experience-item,
    .education-item,
    .skills-category,
    .languages-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .print-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .cv-header h1 {
        font-size: 1.8rem;
    }

    .job-header h3 {
        font-size: 1.05rem;
    }

    .skills-tags {
        gap: 8px;
    }

    .skill-tag {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
