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

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent);
    color: white;
}

:root {
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-muted: #666666;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-highlight: rgba(37, 99, 235, 0.12);
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --accent-past: #0d9488;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --text: #f0f0f0;
        --text-muted: #a0a0a0;
        --accent: #3b82f6;
        --accent-hover: #60a5fa;
        --accent-highlight: rgba(59, 130, 246, 0.15);
        --card-bg: #1a1a1a;
        --border: #2a2a2a;
        --accent-past: #2dd4bf;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px;
}

.header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 56px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.header-text {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.timeline {
    position: relative;
    margin-bottom: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-past), var(--border));
}

.timeline-section {
    position: relative;
    padding-left: 56px;
    padding-bottom: 40px;
}

.timeline-section:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.timeline-section:first-child .timeline-marker {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

.timeline-section.past .timeline-marker {
    border-color: var(--accent-past);
}

.timeline-section.education .timeline-marker {
    border-color: var(--accent-past);
    background: var(--card-bg);
}

.timeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.timeline-section.past .timeline-label {
    color: var(--accent-past);
}

.timeline-section.education .timeline-label {
    color: var(--accent-past);
}

.timeline-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.company-chain {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.company-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 50px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.company-logo-wrapper:hover {
    border-color: var(--accent);
    background: var(--card-bg);
}

.company-logo-wrapper:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.company-logo {
    max-height: 32px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .company-logo-wrapper {
        background: #ffffff;
        border-color: #e2e8f0;
    }

    .company-logo-wrapper:hover {
        background: #fafafa;
        border-color: var(--accent);
    }
}

.company-logo-wrapper:hover .company-logo {
    opacity: 1;
}

.chain-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
}

.chain-plus {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

a {
    color: var(--accent);
    text-decoration: none;
    background: linear-gradient(to top, var(--accent-highlight) 30%, transparent 30%);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    background: var(--accent-highlight);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 48px 0 32px 0;
}

.footer {
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-link svg {
    width: 20px;
    height: 20px;
}


@media (max-width: 480px) {
    .container {
        padding: 48px 20px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .name {
        font-size: 2rem;
    }

    .timeline-section {
        padding-left: 48px;
    }

    .company-chain {
        justify-content: center;
    }

    .company-logo-wrapper {
        min-width: 80px;
        height: 44px;
        padding: 6px 12px;
    }

    .company-logo {
        max-height: 28px;
        max-width: 100px;
    }

    .chain-arrow,
    .chain-plus {
        font-size: 1rem;
    }
}
