/* ==========================================================================
   andrzejolczak.pl — wizytówka rekrutacyjna
   Spis treści:
     1. Zmienne motywu (ciemny / jasny)
     2. Reset i typografia bazowa
     3. Układ (kontener, sekcje, nagłówki)
     4. Nawigacja
     5. Sekcja powitalna (hero)
     6. Komponenty: karty, os czasu, chipy, listy, kontakt
     7. Stopka
     8. Warianty responsywne
   ========================================================================== */

/* --- 1. Zmienne motywu ---------------------------------------------------- */
:root {
  --bg: #0d1117;
  --bg2: #161c26;
  --card: #1a2230;
  --ink: #e8edf4;
  --muted: #93a0b4;
  --accent: #4d9fff;
  --accent-soft: rgba(77, 159, 255, .55);
  --line: #26304180;
  --btn-ink: #0b1420;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg2: #ffffff;
    --card: #ffffff;
    --ink: #1a2230;
    --muted: #5a6778;
    --accent: #1f5fa8;
    --accent-soft: rgba(31, 95, 168, .45);
    --line: #dde4ee;
    --btn-ink: #ffffff;
    --shadow: 0 10px 30px rgba(23, 43, 77, .10);
  }
}

/* --- 2. Reset i typografia ------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

img { max-width: 100%; }

/* --- 3. Układ ------------------------------------------------------------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

section { padding: 58px 0; }

section.alt {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; margin-bottom: 30px; }

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 10px;
}

/* Mniejszy nagłówek dla podsekcji (wykształcenie, języki) */
.h-sm { font-size: 20px; }

/* Podnagłówek w sekcji nauki */
.subhead { font-size: 16px; margin-top: 28px; }
.subhead--spaced { margin-top: 34px; }

/* Akapit wprowadzający sekcję */
.lead { color: var(--muted); max-width: 820px; }
.lead--sm { font-size: 14.5px; margin-top: 6px; }

/* --- 4. Nawigacja -------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo { font-weight: 800; font-size: 17px; color: var(--ink); }
.logo b { color: var(--accent); }

.nav-links { display: flex; gap: 20px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent); }

.lang {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
  color: var(--accent) !important;
}

/* --- 5. Sekcja powitalna ------------------------------------------------- */
.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(77, 159, 255, .14), transparent 60%),
    radial-gradient(600px 300px at -10% 40%, rgba(77, 159, 255, .08), transparent 60%);
}

.hero-grid {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.hero-txt { max-width: 640px; }

.hero-photo img {
  width: min(270px, 60vw);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--accent-soft);
  box-shadow: var(--shadow);
  display: block;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.15; font-weight: 800; }
h1 span { color: var(--accent); }

.hero p { margin: 20px 0 26px; font-size: clamp(15px, 2vw, 17.5px); color: var(--muted); }

.loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 600;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-ink);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
  margin: 0 10px 10px 0;
}

.cta:hover { transform: translateY(-2px); }

.cta.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}

/* --- 6. Komponenty ------------------------------------------------------- */

/* Karty osiągnięć */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card .ico { font-size: 24px; margin-bottom: 10px; }
.card h3 { font-size: 16px; margin-bottom: 7px; }
.card p { font-size: 14px; color: var(--muted); }

/* Oś czasu doświadczenia */
.tl {
  position: relative;
  margin-left: 10px;
  padding-left: 28px;
  border-left: 2px solid var(--line);
}

.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

section.alt .tl-item::before { border-color: var(--bg2); }

.tl-date { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.tl-co { font-weight: 800; font-size: 16.5px; margin: 2px 0; }
.tl-role { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tl-desc { font-size: 14px; color: var(--muted); max-width: 760px; }

/* Grupy umiejętności */
.skillgroup { margin-bottom: 18px; }

.skillgroup h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 9px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* Adnotacja "obecnie zgłębiam" */
.learning { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Listy publikacji / wystąpień / szkoleń */
.pubs { margin: 16px 0 14px; padding-left: 20px; }
.pubs li { margin-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.pubs li b { color: var(--ink); }
.pubs--tight { margin-top: 10px; }

/* Dwie kolumny: wykształcenie + języki */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }

.edu-i { margin-bottom: 14px; }
.edu-i .d { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.edu-i .t { font-weight: 700; font-size: 15px; }
.edu-i .s { font-size: 13.5px; color: var(--muted); }

.lang-i {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 8px 2px;
  font-size: 14.5px;
}

.lang-i span { color: var(--muted); }

/* Kontakt */
.c-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.c-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin-bottom: 13px;
  font-size: 15.5px;
}

.c-item b {
  min-width: 84px;
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.c-item a { overflow-wrap: anywhere; }

.c-intro { color: var(--muted); margin-bottom: 22px; }

.cv-dl {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.cv-dl h3 { margin-bottom: 14px; font-size: 16px; }

/* --- 7. Stopka ----------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted);
}

.f-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* --- 8. Warianty responsywne -------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { flex-direction: column-reverse; align-items: flex-start; gap: 26px; }
  .hero-photo img { width: min(190px, 55vw); }
  .two,
  .c-box { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { gap: 13px; font-size: 13.5px; }
  .nav-links a.hide-m { display: none; }
  .hero { padding: 54px 0 46px; }
}

/* Szanuj ustawienie ograniczonego ruchu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
