:root {
    --accent: #2563eb;      /* nicer blue */
    --line: #e5e7eb;
    --card: #ffffff;
    --bg: #f8fafc;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
}

body {
    font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
}

.wrap {
    max-width: var(--max-width);
    margin: 1.2rem auto 2.2rem;
    padding: 0 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

h1,
h2,
h3 {
    font-family: "Alegreya", Georgia, serif;
    margin: 0;
    color: #0f1723;
}

h1 {
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    line-height: 1.1;
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.9rem;
}

.intro {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 1rem;
    align-items: start;
}

.intro img {
    width: 124px;
    height: 124px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.links {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    padding: 0.7rem 1.15rem;

    border: 1px solid rgba(31, 75, 153, 0.12);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);

    color: #10213f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.05);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);

    background: #fff;
    border-color: rgba(31, 75, 153, 0.25);

    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.08),
        0 14px 30px rgba(31, 75, 153, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: linear-gradient(135deg, #295ec7, #1f4b99);
    color: white;
    border-color: transparent;
}

.btn.primary:hover,
.btn.primary:focus-visible {
    background: linear-gradient(135deg, #3368d3, #2756b4);
}

/* icon inside buttons */
.btn .icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 auto;
}


.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.list li {
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
}

.list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.project {
    display: grid;
    gap: 0.45rem;
}

.project-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.project-name {
    font-weight: 700;
}

.role {
    font-weight: 700;
    margin: 0;
}

.meta {
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-skill {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
    font-size: 0.86rem;
    color: #334155;
}

.send-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid #0f3d91;
    background: linear-gradient(135deg, #1f4b99, #0f3d91);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(15, 61, 145, 0.2);
}

.send-cta:hover,
.send-cta:focus-visible {
    filter: brightness(1.05);
}

.send-skills {
    margin: 0;
    color: var(--muted);
}

.skills-group {
    margin-top: 0.75rem;
}

.skills-group:first-of-type {
    margin-top: 0;
}

.skills-group h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.skills-group ul {
    margin: 0;
    padding-left: 1.1rem;
}

.skills-group li {
    margin: 0.18rem 0;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.skill {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7f9fc;
    font-size: 0.92rem;
}

footer {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0 0.5rem;
}

@media (max-width: 840px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .intro {
        grid-template-columns: 1fr;
    }

    .intro img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }
}
