/* ── CV Page Styles ── */

.cv_hero {
    padding-top: 8.5rem;
    padding-bottom: 3rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(24, 185, 143, 0.14), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(79, 140, 255, 0.10), transparent 30%),
        var(--color-bg);
}

.cv_hero_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cv_hero_inner h1 {
    margin-top: 0.5rem;
}

.cv_hero_inner p {
    margin-top: 0.6rem;
    max-width: 520px;
}

.cv_actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-download {
    background: linear-gradient(135deg, var(--color-accent), #4f8cff);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(24, 185, 143, 0.25);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(24, 185, 143, 0.35);
}

.btn-download i {
    margin-right: 0.5rem;
}

/* ── CV Layout ── */

.cv_wrapper {
    padding: 3rem 0 5rem;
}

.cv_grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 2rem;
    align-items: start;
}

/* ── Sidebar ── */

.cv_sidebar {
    display: grid;
    gap: 1.5rem;
    position: sticky;
    top: 6.5rem;
}

.cv_card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    padding: 1.6rem;
    transition: border-color 0.3s ease;
}

.cv_card:hover {
    border-color: rgba(24, 185, 143, 0.3);
}

.cv_card_title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.cv_card_title i {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: rgba(24, 185, 143, 0.12);
    color: var(--color-accent);
    font-size: 0.85rem;
}

.cv_card_title h3 {
    font-size: 1.05rem;
}

/* Contact info */

.cv_contact_list {
    display: grid;
    gap: 0.7rem;
}

.cv_contact_item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.cv_contact_item:hover {
    color: var(--color-text);
}

.cv_contact_item i {
    width: 1.6rem;
    text-align: center;
    color: var(--color-accent);
    font-size: 0.9rem;
}

.cv_contact_item a {
    color: inherit;
    transition: color 0.2s ease;
}

.cv_contact_item a:hover {
    color: var(--color-accent);
}

/* Skills */

.cv_skills_grid {
    display: grid;
    gap: 0.85rem;
}

.cv_skill {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cv_skill_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv_skill_name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.cv_skill_level {
    font-size: 0.75rem;
    color: var(--color-soft);
}

.cv_skill_bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.cv_skill_fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--color-accent), #4f8cff);
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 0;
}

.cv_skill_fill.animate {
    /* width is set via inline style */
}

/* Languages */

.cv_lang_list {
    display: grid;
    gap: 0.6rem;
}

.cv_lang_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cv_lang_name {
    font-weight: 600;
    font-size: 0.9rem;
}

.cv_lang_level {
    font-size: 0.78rem;
    color: var(--color-accent);
    background: rgba(24, 185, 143, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
}

/* ── Main Content ── */

.cv_main {
    display: grid;
    gap: 1.5rem;
}

/* Summary */

.cv_summary {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-muted);
}

/* Timeline sections */

.cv_timeline {
    display: grid;
    gap: 0;
    position: relative;
}

.cv_timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent), rgba(79, 140, 255, 0.4), transparent);
    border-radius: 99px;
}

.cv_timeline_item {
    position: relative;
    padding-left: 2.6rem;
    padding-bottom: 1.5rem;
}

.cv_timeline_item:last-child {
    padding-bottom: 0;
}

.cv_timeline_dot {
    position: absolute;
    left: 7px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 3px solid var(--color-accent);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(24, 185, 143, 0.12);
    transition: box-shadow 0.3s ease;
}

.cv_timeline_item:hover .cv_timeline_dot {
    box-shadow: 0 0 0 6px rgba(24, 185, 143, 0.2);
}

.cv_timeline_header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.cv_timeline_role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.cv_timeline_date {
    font-size: 0.8rem;
    color: var(--color-accent);
    background: rgba(24, 185, 143, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-weight: 600;
    white-space: nowrap;
}

.cv_timeline_org {
    font-size: 0.9rem;
    color: var(--color-soft);
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cv_timeline_org i {
    font-size: 0.75rem;
    color: var(--color-accent);
}

.cv_timeline_desc {
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Projects in CV */

.cv_projects_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cv_project_item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.3rem;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.cv_project_item:hover {
    border-color: rgba(24, 185, 143, 0.3);
    transform: translateY(-2px);
}

.cv_project_name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv_project_name i {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.cv_project_desc {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 0.7rem;
}

.cv_project_link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap 0.2s ease;
}

.cv_project_link:hover {
    gap: 0.55rem;
}

/* Achievements */

.cv_achievements_list {
    display: grid;
    gap: 0.8rem;
}

.cv_achievement {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease;
}

.cv_achievement:hover {
    border-color: rgba(24, 185, 143, 0.2);
}

.cv_achievement_icon {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: rgba(255, 122, 89, 0.1);
    color: var(--color-warm);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cv_achievement_content h4 {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.cv_achievement_content p {
    font-size: 0.84rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Certifications */

.cv_certs_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.cv_cert {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease;
}

.cv_cert:hover {
    border-color: rgba(79, 140, 255, 0.3);
}

.cv_cert_icon {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--color-accent-2);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cv_cert_info h4 {
    font-size: 0.9rem;
    color: var(--color-text);
}

.cv_cert_info span {
    font-size: 0.78rem;
    color: var(--color-soft);
}

.cv_cert_info a {
    font-size: 0.78rem;
    color: var(--color-accent);
    display: block;
    margin-top: 0.15rem;
}

/* ── Scroll animations ── */

.cv_card,
.cv_timeline_item,
.cv_project_item,
.cv_achievement,
.cv_cert {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}

.cv_card.visible,
.cv_timeline_item.visible,
.cv_project_item.visible,
.cv_achievement.visible,
.cv_cert.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Print / PDF Styles ── */

@media print {
    * {
        color: #1a1a1a !important;
        background: white !important;
        border-color: #ddd !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    nav, footer, .cv_actions, .btn-download, .cv_project_link {
        display: none !important;
    }

    body {
        font-size: 10pt;
        line-height: 1.5;
    }

    .cv_hero {
        padding-top: 0;
        padding-bottom: 1rem;
    }

    .cv_wrapper {
        padding: 0;
    }

    .cv_grid {
        grid-template-columns: 1fr 2fr;
        gap: 1.5rem;
    }

    .cv_sidebar {
        position: static;
    }

    .cv_card {
        padding: 0.8rem;
        break-inside: avoid;
    }

    .cv_skill_bar {
        background: #e8e8e8 !important;
    }

    .cv_skill_fill {
        background: #18b98f !important;
    }

    .cv_card, .cv_timeline_item, .cv_project_item, .cv_achievement, .cv_cert {
        opacity: 1 !important;
        transform: none !important;
    }

    section {
        padding: 1rem 0;
    }

    .cv_timeline::before {
        background: #18b98f !important;
    }

    .cv_timeline_dot {
        border-color: #18b98f !important;
    }

    .cv_timeline_date {
        background: transparent !important;
        color: #18b98f !important;
    }

    .cv_lang_level {
        background: transparent !important;
    }
}

/* ── Responsive ── */

@media screen and (max-width: 1024px) {
    .cv_hero_inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .cv_sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 700px) {
    .cv_hero {
        padding-top: 7rem;
    }

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

    .cv_projects_grid,
    .cv_certs_grid {
        grid-template-columns: 1fr;
    }

    .cv_hero_inner h1 {
        font-size: 1.8rem;
    }

    .cv_actions {
        flex-direction: column;
        width: 100%;
    }

    .cv_actions .btn-download {
        width: 100%;
        justify-content: center;
    }
}
