.cv-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 55px 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 40px;
}


.cv-hero::after {
    content: '';
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

/* Floating orbs inside hero */
.cv-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    animation: orbDrift 10s linear infinite;
    z-index: 1;
}
.cv-orb-1 { width: 350px; height: 350px; background: #a855f7; top: -120px; right: -80px; animation-delay: 0s; }
.cv-orb-2 { width: 200px; height: 200px; background: #4461e0; bottom: -60px; left: 15%; animation-delay: -5s; }

@keyframes orbDrift {
    0%   { transform: translate(0px,    0px)  scale(1);    }
    20%  { transform: translate(-40px,  30px) scale(1.08); }
    40%  { transform: translate(-20px,  60px) scale(0.95); }
    60%  { transform: translate(30px,   20px) scale(1.05); }
    80%  { transform: translate(10px,  -20px) scale(0.97); }
    100% { transform: translate(0px,    0px)  scale(1);    }
}

.cv-hero-inner { 
    position: relative; 
    z-index: 2;
    flex: 1;
    order: 1;
}


.cv-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.5s ease forwards 0.15s;
}

.cv-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.97;
    margin-bottom: 16px;
    background: none;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.55s ease forwards 0.28s;
}

.cv-name .cv-name-line-1 {
    display: block;
    color: rgba(255,255,255,0.75);
    -webkit-text-fill-color: rgba(255,255,255,0.75);
}

.cv-name .cv-name-line-2 {
    display: block;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-wrapper:has(.cv-hero) {
    padding: 0;
    overflow: hidden; 
}

.cv-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    max-width: 750px;
    line-height: 1.65;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.55s ease forwards 0.4s;
}

.cv-hero .cv-eyebrow {
    margin-bottom: 16px !important;
}

.cv-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.55s ease forwards 0.52s;
}

.cv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(192, 199, 231, 0.313);
    border: 1px solid rgba(209, 213, 231, 0.39);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cv-chip:hover {
    background: rgba(192, 199, 231, 0.543);
    transform: translateY(-1px);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.cv-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #faf4ff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
    order: 2;
    margin-left: auto;
    margin-right: 40px;
}

/* CV Layout */

.cv-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: 50px;
    align-items: start;
}

/* Section Titles */

.cv-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin-bottom: 32px;
}

.cv-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Timeline */

.cv-timeline {
    position: relative;
    padding-left: 28px;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 60%, transparent 100%);
    border-radius: 2px;
}

/* Timeline Entry */

.cv-timeline-entry {
    position: relative;
    margin-bottom: 44px;
}

.cv-timeline-entry:last-child {
    margin-bottom: 0;
}

/* The dot on the line */
.cv-timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transition: all 0.25s ease;
}

.cv-timeline-entry:hover .cv-timeline-dot {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #764ba2;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.2);
    transform: scale(1.2);
}

/* The card */
.cv-timeline-card {
    background: white;
    border: 1px solid #f0f0f4;
    border-radius: 14px;
    padding: 22px 24px;
    transition: all 0.25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.cv-timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 3px 0 0 3px;
}

.cv-timeline-entry:hover .cv-timeline-card {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.cv-timeline-entry:hover .cv-timeline-card::before {
    opacity: 1;
}

.cv-timeline-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.cv-timeline-role {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.cv-timeline-period {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-timeline-company {
    font-size: 0.88rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cv-timeline-company .cv-location-sep {
    color: #d1d5db;
}

.cv-timeline-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 0;
}

.cv-timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.cv-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    letter-spacing: 0.02em;
    transition: background 0.3s ease;
}

.cv-tag a {
    text-decoration: none;
    color:#374151;
}

.cv-tag:hover {
    background: #a5a0d5;
    /* background: rgba(140, 134, 194, 0.555); */
}

/* Education (same timeline, different dot color) */
.cv-timeline--education .cv-timeline::before {
    background: linear-gradient(180deg, #f59e0b 0%, #ef4444 60%, transparent 100%);
}

.cv-timeline--education .cv-timeline-dot {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.cv-timeline--education .cv-timeline-entry:hover .cv-timeline-dot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-color: #ef4444;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
}

.cv-timeline--education .cv-timeline-card::before {
    background: linear-gradient(180deg, #f59e0b, #ef4444);
}

.cv-timeline--education .cv-timeline-period {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Sidebar Panels */

.cv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cv-sidebar-panel {
    background: white;
    border: 1px solid #f0f0f4;
    border-radius: 14px;
    padding: 24px;
}

/* Skills */

.cv-skill-row {
    margin-bottom: 16px;
}

.cv-skill-row:last-child {
    margin-bottom: 0;
}

.cv-skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cv-skill-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
}

.cv-skill-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
}

.cv-skill-bar-track {
    height: 5px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
}

.cv-skill-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.cv-skill-row:hover .cv-skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 0.55s ease forwards;
}

@keyframes shimmer {
    to { left: 130%; }
}

/* Languages */

.cv-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: background 0.3s ease, box-shadow 0.3s;
    margin-bottom: 8px;
}

.cv-lang-row:hover {
    background: rgba(165, 160, 213, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
}

.cv-lang-row:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.cv-lang-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
}

.cv-lang-dots {
    display: flex;
    gap: 5px;
}

.cv-lang-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.2s ease;
}

.cv-lang-dot.filled {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Interests */

.cv-interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cv-interest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #4b5563;
    font-weight: 400;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cv-interest-item:hover {
    background: rgba(165, 160, 213, 0.2);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
}

@media (max-width: 1240px) {
    .cv-hero {
        padding: 40px 35px 35px;
    }
    
    .cv-body {
        grid-template-columns: 1fr;
        padding: 20px !important;
    }

    .cv-main {
        order: 1;
    }

    .cv-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .cv-hero {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cv-avatar {
        order: -1;
        margin-left: 0;
        margin-right: 0;
    }

    .cv-hero-inner {
        text-align: center;
    }

    .cv-contact-chips {
        justify-content: center;
    }
}
/* Modals */

.cv-modal-trigger {
    cursor: pointer;
}

.cv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cv-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cv-modal {
    background: white;
    border-radius: 18px;
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-bottom: 25px;
}

.cv-modal-overlay.active .cv-modal {
    transform: translateY(0) scale(1);
}

.cv-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.cv-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.cv-modal-header {
    padding: 36px 36px 24px;
    border-bottom: 1px solid #f0f0f4;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-radius: 18px 18px 0 0;
}

.cv-modal-period {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.cv-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.cv-modal-company {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0;
}

.cv-modal-body {
    padding: 10px 36px;
}

.cv-modal-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 20px;
}

.cv-modal-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-left: 10px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.cv-modal-body ul,
.cv-modal-body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.cv-modal-body ul li,
.cv-modal-body ol li {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 6px;
}
/* Hint banner */

.cv-hint-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    background: rgba(102, 126, 234, 0.07);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    font-size: 0.82rem;
    font-weight: 500;
    color: #667eea;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

.cv-hint-banner.visible {
    opacity: 1;
    max-height: 48px;
    padding: 10px 20px;
}

.cv-hint-close {
    background: none;
    border: none;
    color: rgba(102, 126, 234, 0.5);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1;
    margin-left: 4px;
}

.cv-hint-close:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Pulse on first card */

@keyframes cardPulse {
    0%   { box-shadow: 0 0 0 0px rgba(102, 126, 234, 0.4); }
    60%  { box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.0); }
    100% { box-shadow: 0 0 0 0px rgba(102, 126, 234, 0.0); }
}

.cv-card-pulse {
    animation: cardPulse 1.1s ease-out 3;
}

/* Trigger tooltip */

.cv-modal-trigger {
    position: relative;
}

.cv-modal-trigger::after {
    content: 'click for details';
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #c4c9e2;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.cv-modal-trigger:hover::after {
    opacity: 1;
}