* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background: #0d1117;
    color: #e6edf3;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    display: flex;
    justify-content: center;
}

main {
    width: min(900px, 90%);
    padding: 100px 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #8b949e;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.project {
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.25rem;
    background: #161b22;
}

.project h3 {
    margin-top: 0;
}

footer {
    color: #6e7681;
    font-size: 0.9rem;
    margin-top: 5rem;
}

.cv-category {
    margin-bottom: 2.5rem;
}

.cv-category-title {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 1.25rem;
}

.cv-timeline {
    position: relative;
    margin-left: 0.75rem;
    padding-left: 2rem;
}

/* Main vertical line */
.cv-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 1px;
    background: #30363d;
}

.cv-entry {
    position: relative;
    margin-bottom: 2rem;
}

/* Horizontal branch */
.cv-entry::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0.55rem;
    width: 1.5rem;
    height: 1px;
    background: #30363d;
}

/* Little node on the timeline */
.cv-marker {
    position: absolute;
    left: -2.35rem;
    top: 0.35rem;

    width: 8px;
    height: 8px;

    border: 2px solid #58a6ff;
    border-radius: 50%;
    background: #0d1117;
}

.cv-entry-content {
    padding-left: 0.25rem;
}

.cv-date {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cv-entry h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cv-role {
    color: #58a6ff;
    margin-top: 0.2rem;
}

.cv-entry ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: #8b949e;
}

.cv-entry li {
    margin-bottom: 0.35rem;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.skill-category {
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.25rem;
    background: #161b22;
}

.skill-category h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    padding: 0.35rem 0.65rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 0.9rem;
}

.skill.strong {
    color: #58a6ff;
}

.skill.familiar {
    color: #8b949e;
}

.skills-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;

    color: #8b949e;
    font-size: 0.85rem;
}

.skills-legend .strong {
    color: #58a6ff;
}

.skills-legend .familiar {
    color: #8b949e;
}

/* ANIMATIONS */

.project {
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.25rem;
    background: #161b22;

    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}
