:root {
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: #0f172a;
    --border-color: #e2e8f0;
    --badge-bg: #f1f5f9;
    --badge-text: #334155;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --radius-sm: 0.375rem;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #818cf8;
        --primary-light: #3730a3;
        --primary-dark: #c7d2fe;
        --text-main: #cbd5e1;
        --text-dark: #f8fafc;
        --text-muted: #94a3b8;
        --bg-page: #0f172a;
        --bg-card: #1e293b;
        --bg-header: #020617;
        --border-color: #334155;
        --badge-bg: #334155;
        --badge-text: #f1f5f9;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    }
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 3rem 1rem;
}

.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 3.5rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.25rem;
    font-size: 0.925rem;
    color: #cbd5e1;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a.contact-item:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.contact-item svg {
    width: 1.15rem;
    height: 1.15rem;
    color: #818cf8;
    flex-shrink: 0;
}

.cv-body {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding: 4rem 3.5rem;
}

section {
    position: relative;
}

h2.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

p.profile-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-main);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .skills-category {
        flex-direction: row;
        align-items: flex-start;
    }

    .skills-category-title {
        width: 180px;
        flex-shrink: 0;
        padding-top: 0.25rem;
    }
}

.skills-category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    flex-grow: 1;
}

.skill-tag {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-tag:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--primary);
    transition: var(--transition);
    z-index: 1;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--primary);
    transform: scale(1.2);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.role-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.date-location {
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--primary);
    white-space: nowrap;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .date-location {
        margin-top: 0;
    }
}

.timeline-body {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

.info-card {
    background-color: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.15);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-main);
}

.references-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    border-left: 3px solid var(--primary-light);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.privacy-note {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 1rem 3.5rem;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    header {
        padding: 3rem 2rem;
    }

    .privacy-note {
        padding: 1rem 2rem;
    }

    .cv-body {
        padding: 3rem 2rem;
        gap: 3rem;
    }

    h1 {
        font-size: 2.25rem;
    }
}