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

:root {
    --bg-color: #fff;
    --text-color: #1a1a1a;
    --text-secondary: #333;
    --text-muted: #555;
    --text-faded: #666;
    --heading-color: #000;
    --section-heading: #888;
    --link-color: royalblue;
    --surface-color: #f8f8f8;
    --surface-alt: #f5f5f5;
    --surface-project: #fafafa;
    --border-color: #e0e0e0;
    --border-light: #eee;
    --timeline-dot: #888;
    --timeline-current: #333;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --text-secondary: #ccc;
    --text-muted: #aaa;
    --text-faded: #999;
    --heading-color: #fff;
    --section-heading: #888;
    --link-color: #6b9fff;
    --surface-color: #1e1e1e;
    --surface-alt: #252525;
    --surface-project: #1a1a1a;
    --border-color: #333;
    --border-light: #2a2a2a;
    --timeline-dot: #666;
    --timeline-current: #e0e0e0;
}

body {
    font-family:
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

strong {
    font-weight: 600;
}

.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background-color: var(--surface-color);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--surface-alt);
}

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

header {
    margin-bottom: 64px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.pronunciation {
    color: var(--text-faded);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background-color: var(--surface-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.flag {
    display: inline-block;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.flag:hover {
    transform: scale(1.3) rotate(10deg);
    cursor: default;
}

.flag:last-child:hover {
    transform: scale(1.3) rotate(-10deg);
}

section {
    margin-bottom: 56px;
}

h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--section-heading);
    margin-bottom: 24px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

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

.skill {
    padding: 6px 14px;
    background-color: var(--surface-alt);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

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

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--bg-color);
    border: 2px solid var(--timeline-dot);
    border-radius: 50%;
}

.timeline-item.current::before {
    background-color: var(--timeline-current);
    border-color: var(--timeline-current);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--section-heading);
    margin-bottom: 4px;
}

.timeline-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.timeline-company {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-faded);
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-list {
    margin-top: 12px;
    padding-left: 20px;
    list-style: disc;
}

.timeline-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 12px;
}

.links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-label {
    color: var(--text-faded);
    min-width: 80px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project {
    padding: 20px;
    background-color: var(--surface-project);
    border-radius: 6px;
}

.project-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.project-tech {
    font-size: 0.85rem;
    color: var(--section-heading);
}

footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--section-heading);
    font-size: 0.9rem;
}

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

    h1 {
        font-size: 2rem;
    }

    .availability {
        flex-wrap: wrap;
        gap: 8px;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
