/* =====================================================================
   Panni Boglárka Péter - Portfolio stylesheet
   Style: soft blush + rust accent, light geometric headings
   (inspired by her CV), lots of white space
   ---------------------------------------------------------------------
   1. Colours & tokens   2. Base   3. Top bar   4. Intro
   5. Sections   6. Education timeline   7. Languages
   8. Work rows   9. Qualifications   10. Hobbies
   11. Contact & footer   12. Languages (EN/HU)   13. Animations
   ===================================================================== */

/* 1. COLOURS & TOKENS - change colours here */
:root {
  --blush:       #EFE4E2;   /* soft pink background (like the CV) */
  --blush-soft:  #F7F1F0;
  --rust:        #9C3D22;   /* accent: lines, buttons (passes WCAG AA on white) */
  --rust-dark:   #7A2E18;
  --ink:         #1F1B1A;
  --ink-muted:   #5F5654;
  --bg:          #FFFFFF;
  --line:        #EBE1DF;
  --shadow:      0 12px 32px rgba(122, 46, 24, .10);

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Jost", "Century Gothic", "Futura", sans-serif;

  --topbar-height: 62px;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-height) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; background: var(--rust); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: .75rem; }

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 1000px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

/* 3. TOP BAR */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; height: var(--topbar-height); }
.topbar__brand {
  margin-right: auto;
  font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.topbar__links { display: none; gap: .15rem; }
.topbar__links a {
  display: block; padding: .35rem .65rem;
  font-size: .9rem; font-weight: 500; color: var(--ink-muted); text-decoration: none;
  transition: color .2s;
}
.topbar__links a:hover, .topbar__links a.is-active { color: var(--rust); }
@media (min-width: 860px) { .topbar__links { display: flex; } }

.lang-toggle {
  min-width: 46px; height: 34px; padding: 0 .8rem;
  border: 1.5px solid var(--rust); border-radius: 999px;
  background: transparent; color: var(--rust);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-toggle:hover { background: var(--rust); color: #fff; }

/* 4. INTRO - name left, photo right (photo on top on phones) */
.intro {
  position: relative; overflow: hidden;
  padding: 3.5rem 0 4.5rem;
  background: var(--blush);
}
/* soft curved white shape, echoing the CV */
.intro::after {
  content: ""; position: absolute; right: -12%; top: -30%;
  width: 55%; height: 160%;
  border-radius: 50%;
  background: var(--blush-soft);
}
.intro__inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; }
@media (min-width: 800px) {
  .intro { padding: 6rem 0; }
  .intro__inner { grid-template-columns: 1fr auto; align-items: center; gap: 4rem; }
}

.name {
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 4.6rem); line-height: 1.02;
  letter-spacing: .03em; text-transform: uppercase;
}
.headline {
  margin-top: 1.75rem;
  font-size: 1.2rem; font-weight: 700; color: var(--rust);
}
.subline { margin-top: .25rem; color: var(--ink-muted); }

.intro__buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.intro__photo {
  order: -1;
  width: 190px; height: 190px; border-radius: 50%;
  padding: 8px; background: var(--rust);
  box-shadow: var(--shadow);
}
.intro__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (min-width: 800px) { .intro__photo { order: 0; width: 300px; height: 300px; padding: 10px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .93rem; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-dark); }
.btn--ghost { border-color: var(--rust); color: var(--rust); }
.btn--ghost:hover { background: #fff; }
.btn--light { background: #fff; color: var(--rust-dark); }
.btn--light:hover { background: var(--blush); }

/* 5. SECTIONS - lots of breathing room */
.section { padding-top: 6.5rem; }
.section__title {
  margin-bottom: 2.25rem;
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  letter-spacing: .14em; text-transform: uppercase;
}
.section__title::after {
  content: ""; display: block; width: 48px; height: 2px; margin-top: .75rem;
  background: var(--rust);
}
.lead { max-width: 64ch; font-size: 1.12rem; line-height: 1.85; }

/* 6. EDUCATION TIMELINE */
.timeline { position: relative; padding-left: 1.75rem; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline__item { position: relative; }
.timeline__item + .timeline__item { margin-top: 2.5rem; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1.75rem - 8px); top: .35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rust);
}
.timeline__date { font-size: .88rem; font-weight: 700; color: var(--rust); letter-spacing: .03em; }
.timeline__title { margin-top: .3rem; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.timeline__text { margin-top: .3rem; color: var(--ink-muted); max-width: 62ch; }

/* 7. LANGUAGE CERTIFICATES */
.lang-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lang-card {
  padding: 1.75rem 1.6rem;
  background: var(--blush-soft); border-radius: 18px;
  transition: transform .25s, box-shadow .25s;
}
.lang-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lang-card__name {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase;
}
.levels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.levels li {
  padding: .3rem .85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .92rem; color: var(--ink-muted);
}
.levels strong { color: var(--rust); font-weight: 700; margin-right: .15rem; }
.lang-card__note { margin-top: 1rem; font-size: .9rem; line-height: 1.6; color: var(--ink-muted); }

/* 8. WORK EXPERIENCE ROWS */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; gap: .2rem;
  padding: 1.35rem .25rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .row { grid-template-columns: 200px 1fr; gap: 2rem; } }
.row__label { font-size: .88rem; font-weight: 700; color: var(--rust); padding-top: .15rem; }
.row__text { font-size: 1.05rem; }
.row__highlight { font-weight: 700; margin-bottom: .25rem; }

/* 9. QUALIFICATIONS */
.qual-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .qual-grid { grid-template-columns: repeat(3, 1fr); } }
.qual {
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .25s, box-shadow .25s;
}
.qual:hover { border-color: var(--rust); box-shadow: var(--shadow); }
.qual__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blush); color: var(--rust);
}
.qual__icon .icon { width: 22px; height: 22px; }
.qual__meta { margin-top: 1.1rem; font-size: .85rem; font-weight: 700; color: var(--rust); }
.qual__title { margin-top: .2rem; font-size: 1.15rem; font-weight: 700; }
.qual__text { margin-top: .6rem; color: var(--ink-muted); font-size: .98rem; line-height: 1.7; }
.tags { display: grid; gap: .5rem; margin-top: .85rem; }
.tags li {
  padding: .45rem .8rem; border-radius: 10px;
  background: var(--blush-soft); font-size: .92rem; color: var(--ink-muted);
}

/* 10. HOBBIES */
.hobbies { display: flex; flex-wrap: wrap; gap: .75rem; }
.hobbies li {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--blush-soft); font-weight: 500;
}
.hobbies .icon { color: var(--rust); }

/* 11. CONTACT & FOOTER */
.contact {
  margin-top: 7rem; padding: 5rem 0;
  background: var(--rust); color: #fff; text-align: center;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title {
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: .06em; text-transform: uppercase;
}
.contact__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem;
  margin: 1.75rem 0 2rem; font-size: 1.05rem;
}
.contact__list li { display: flex; align-items: center; gap: .55rem; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.site-footer { padding: 1.5rem 0; background: var(--rust-dark); color: #F0D9D2; font-size: .88rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

/* Logos at the end of the page - always on white (EU logo guidelines) */
.site-footer { padding-top: 2.5rem; }
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem;
  width: fit-content; max-width: 100%; margin: 0 auto 2rem; padding: .9rem 1.5rem;
  background: #FFFFFF; border-radius: 12px;
}
.logo-strip img { height: 60px; width: auto; max-width: 100%; object-fit: contain; }

/* 12. LANGUAGES - hide the language that is not selected */
html[lang="en"] [data-lang="hu"],
html[lang="hu"] [data-lang="en"] { display: none !important; }

/* 13. ANIMATIONS */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .lang-card:hover { transform: none; }
}
