/* O mnie: naglowek z okraglym zdjeciem jak w CV, os czasu, stack, jezyki */

/* ---------- naglowek strony ---------- */

.page-head {
    position: relative;
    background: var(--dark);
    color: var(--on-dark);
    overflow: hidden;
    padding: 64px 0;
}

.page-head::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    top: -220px;
    right: -100px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    background: radial-gradient(circle, rgba(169, 105, 71, 0.85), transparent 68%);
    animation: drift1 18s ease-in-out infinite alternate;
}

.page-head .wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 34px;
}

.page-head .portrait {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(242, 239, 234, 0.85);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    flex: none;
}

.page-head h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    letter-spacing: -0.02em;
    margin: 0;
}

.page-head .role {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.82rem;
    color: var(--accent-light);
    margin: 10px 0 0;
}

/* ---------- profil ---------- */

.bio p { color: var(--text-muted); margin: 0 0 16px; }
.bio p:last-child { margin-bottom: 0; }
.bio strong { color: var(--text); font-weight: 600; }

.pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.pillars li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--text-muted);
    font-size: 0.94rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pillars li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.pillars li:hover { box-shadow: var(--shadow-lg); }

.pillars li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: block;
}

.pillars li b {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 6px;
}

/* ---------- os czasu ---------- */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 34px;
    list-style: none;
}

/* tor osi */
.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-strong);
}

.timeline > li { position: relative; padding-bottom: 34px; }
.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 1;
}

.timeline > li.current::before {
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline .period {
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 12px;
    display: inline-block;
    margin: 0 0 10px;
}

.timeline h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.timeline .company {
    color: var(--accent-dark);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.94rem;
    margin: 0 0 14px;
}

.timeline ul.duties {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.94rem;
    list-style: none;
}

.timeline ul.duties li { margin-bottom: 9px; position: relative; }

.timeline ul.duties li::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-light);
}

.timeline ul.duties b { color: var(--text); font-weight: 600; }

/* ---------- stack ---------- */

.stack-group { margin-bottom: 24px; }
.stack-group:last-child { margin-bottom: 0; }

.stack-group h4 {
    font-family: var(--font-head);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin: 0 0 12px;
    font-weight: 600;
}

/* ---------- jezyki i kompetencje ---------- */

.lang-list { list-style: none; margin: 0; padding: 0; }

.lang-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.lang-list li:last-child { border-bottom: none; }

.lang-list .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.lang-list .name { font-family: var(--font-head); font-weight: 500; }
.lang-list .level { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 0.88rem; }

.lang-list .bar { height: 5px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }

.lang-list .bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s;
}

.lang-list li.in .bar span { width: var(--val, 60%); }

.soft-list { margin: 0; padding: 0; list-style: none; }

.soft-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 11px;
    color: var(--text-muted);
}

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

.soft-list li i { position: absolute; left: 0; top: 0.28em; color: var(--accent); font-size: 0.82rem; }

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

@media (max-width: 620px) {
    .page-head { padding: 40px 0; }
    .page-head .wrap { flex-direction: column; text-align: center; gap: 22px; }
    .page-head .portrait { width: 108px; height: 108px; }
    .timeline { padding-left: 28px; }
    .timeline > li::before { left: -28px; }
}

/* wypelnienie osi czasu w miare przewijania */
.timeline::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 2px;
    height: var(--tl, 0%);
    max-height: calc(100% - 16px);
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    transition: height 0.12s linear;
}

/* kierunek zawodowy pod naglowkiem */
.page-head .aim {
    font-size: 0.95rem;
    color: var(--on-dark-muted);
    margin: 8px 0 0;
}

/* blok z celem zawodowym */
.aim-box {
    margin-top: 34px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.aim-box h3 {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.aim-box h3 i { color: var(--accent); font-size: 0.98rem; }

.aim-box p { margin: 0; color: var(--text-muted); }
.aim-box strong { color: var(--text); font-weight: 600; }
