/* ==========================================================================
   Tátrai Bence – portfólió
   Letisztult, barátságos stílus: fehér alap, egy friss zöld szín,
   kerek formák és sok levegő. Egyetlen betűtípus: Figtree.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f4f7f5;
    --surface: #ffffff;
    --ink: #17201b;
    --ink-2: #46514b;
    --muted: #66706a;
    --line: #e3e9e5;
    --accent: #16a34a;
    --accent-ink: #166534;
    --accent-soft: #e7f5ec;
    --btn: #15803d;
    --btn-hover: #166534;
    --btn-text: #ffffff;
    --mark: #cdf3d9;
    --red: #dc2626;
    --red-ink: #b91c1c;
    --red-soft: #fdeaea;
    --shadow: 0 1px 2px rgba(23, 32, 27, .04), 0 10px 30px -18px rgba(23, 32, 27, .18);
    --shadow-hover: 0 2px 6px rgba(23, 32, 27, .05), 0 22px 44px -22px rgba(23, 32, 27, .28);
    --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-h: 68px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1412;
        --bg-soft: #141b17;
        --surface: #171f1b;
        --ink: #edf2ef;
        --ink-2: #c4cdc8;
        --muted: #97a29c;
        --line: #26302b;
        --accent: #4ade80;
        --accent-ink: #6ee7a0;
        --accent-soft: rgba(74, 222, 128, .12);
        --btn: #4ade80;
        --btn-hover: #86efac;
        --btn-text: #052e16;
        --mark: rgba(74, 222, 128, .24);
        --red: #f87171;
        --red-ink: #fca5a5;
        --red-soft: rgba(248, 113, 113, .14);
        --shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
        --shadow-hover: 0 22px 44px -22px rgba(0, 0, 0, .9);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0f1412;
    --bg-soft: #141b17;
    --surface: #171f1b;
    --ink: #edf2ef;
    --ink-2: #c4cdc8;
    --muted: #97a29c;
    --line: #26302b;
    --accent: #4ade80;
    --accent-ink: #6ee7a0;
    --accent-soft: rgba(74, 222, 128, .12);
    --btn: #4ade80;
    --btn-hover: #86efac;
    --btn-text: #052e16;
    --mark: rgba(74, 222, 128, .24);
    --red: #f87171;
    --red-ink: #fca5a5;
    --red-soft: rgba(248, 113, 113, .14);
    --shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
    --shadow-hover: 0 22px 44px -22px rgba(0, 0, 0, .9);
    color-scheme: dark;
}

/* --- Alapok ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

::selection { background: var(--mark); color: var(--ink); }

.icon { flex-shrink: 0; vertical-align: -0.15em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--btn);
    color: var(--btn-text);
}
.skip-link:focus { top: 12px; }

/* --- Gombok és linkek ------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 16px/1.2 var(--font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-soft { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--accent); color: var(--accent-ink); }

.round-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s;
}
.round-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.round-btn > span { place-items: center; }
.theme-icon-light, .nav-open-icon { display: grid; }
.round-btn .icon { display: block; }
.round-btn-lg { width: 46px; height: 46px; }

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-ink);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.icon-circle {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.icon-circle-lg { width: 48px; height: 48px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Halvány kiemelés a legfontosabb mondatokon */
mark.hl {
    color: inherit;
    background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 90% / 100% 38%;
    padding: 0 .1em;
    border-radius: .2em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.js mark.hl { background-size: 0% 38%; transition: background-size 1s cubic-bezier(.3, .7, .2, 1); }
.js mark.hl.is-on { background-size: 100% 38%; }

/* --- Fejléc ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.main-nav a.nav-cta { margin-left: 6px; background: var(--btn); color: var(--btn-text); font-weight: 600; }
.main-nav a.nav-cta:hover { background: var(--btn-hover); color: var(--btn-text); }

.header-actions { display: flex; align-items: center; gap: 6px; }

.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: grid; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-light { display: none; }
    :root:not([data-theme="light"]) .theme-icon-dark { display: grid; }
}

.nav-toggle { display: none; }
.nav-close-icon { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-grid; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed;
        inset: calc(var(--header-h) + 6px) 12px auto 12px;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow-hover);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 12px 16px; font-size: 17px; border-radius: 14px; }
    .main-nav a.nav-cta { margin: 6px 0 0; text-align: center; }
    body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    body.nav-open .nav-open-icon { display: none; }
    body.nav-open .nav-close-icon { display: grid; }
}

/* --- Bemutatkozás (hero) -------------------------------------------------------- */

.hero { padding: 56px 0 24px; }
@media (min-width: 900px) { .hero { padding-top: 80px; } }

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 14.5px;
    font-weight: 600;
}

.hero-hello { margin-bottom: 8px; color: var(--muted); font-size: 19px; font-weight: 500; }

.hero h1 {
    margin-bottom: 14px;
    font-size: clamp(40px, 6vw, 62px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.name-extra { color: var(--muted); font-weight: 700; }

.hero-role { margin-bottom: 18px; color: var(--accent-ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
.hero-lead { max-width: 56ch; margin-bottom: 30px; color: var(--ink-2); font-size: 18px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.socials { display: inline-flex; gap: 8px; }

.hero-photo { position: relative; width: min(100%, 340px); margin-left: auto; }
.hero-photo::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border-radius: 36px;
    background: var(--accent-soft);
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: var(--shadow);
}
.hero-grid { position: relative; z-index: 0; }

@media (max-width: 899px) {
    .hero-photo { order: -1; width: 150px; margin: 0; }
    .hero-photo::before { inset: 10px -10px -10px 10px; border-radius: 28px; }
    .hero-photo img { border-radius: 26px; }
}

/* Számokban */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    margin-top: 56px;
    padding: 28px;
    border-radius: 24px;
    background: var(--bg-soft);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); padding: 30px 36px; } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stat dd { color: var(--accent-ink); font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat dt { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* --- Szakaszok -------------------------------------------------------------------- */

.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 100px 0; } }
.section-soft { background: var(--bg-soft); }

.section-title { margin-bottom: 14px; font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.section-intro { max-width: 62ch; margin-bottom: 40px; color: var(--ink-2); font-size: 18px; }

.prose p { max-width: 64ch; margin-bottom: 16px; color: var(--ink-2); font-size: 17.5px; }
.prose p:last-child { margin-bottom: 0; }

.ticks { display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.ticks .icon { margin-top: 5px; color: var(--accent); }

.dot-list { display: flex; flex-wrap: wrap; row-gap: 2px; }
.dot-list li:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 13.5px; font-weight: 500; line-height: 1.6; }

/* Rólam */
.about-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; } }

/* Röviden: CMD-ablak */
.terminal {
    overflow: hidden;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
    background: #0c0c0c;
    color: #cccccc;
    box-shadow: var(--shadow-hover);
    font-family: "Cascadia Mono", Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14.5px;
    line-height: 1.65;
}
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 8px 16px; background: #1f1f1f; color: #d4d4d4; font-size: 12.5px; }
.terminal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-controls { display: flex; align-items: center; gap: 16px; color: #a3a3a3; }
.terminal-controls i { position: relative; display: block; width: 10px; height: 10px; }
.terminal-controls i:nth-child(1)::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.terminal-controls i:nth-child(2) { border: 1.5px solid currentColor; }
.terminal-controls i:nth-child(3)::before, .terminal-controls i:nth-child(3)::after { content: ""; position: absolute; left: 4px; top: -2px; width: 1.5px; height: 14px; background: currentColor; transform: rotate(45deg); }
.terminal-controls i:nth-child(3)::after { transform: rotate(-45deg); }
.terminal-body { padding: 16px 18px 18px; }
.terminal-prompt { color: #9d9d9d; }
.terminal-name { margin: 2px 0 10px; color: #ffffff; font-weight: 700; }
.terminal-facts { display: grid; gap: 4px; margin-bottom: 12px; }
.terminal-facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.terminal-facts dt { color: #4ade80; }
.terminal-facts dt::after { content: ":"; }
.terminal-facts dd { color: #f2f2f2; }
.terminal-cursor { display: inline-block; width: 9px; height: 1.15em; margin-left: 6px; vertical-align: -0.22em; background: #cccccc; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* Tapasztalat: idővonal */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 30px; }
.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
}
.timeline-item {
    position: relative;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 30px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--bg-soft);
    border-radius: 50%;
    background: var(--line);
}
.timeline-item.is-current::before { background: var(--accent); }
.timeline-date { margin-bottom: 4px; color: var(--accent-ink); font-size: 14.5px; font-weight: 600; }
.timeline-item h3 { font-size: 21px; font-weight: 700; }
.timeline-company { margin-bottom: 14px; color: var(--muted); }
.timeline-item .ticks { margin-bottom: 14px; }

/* Projektek */
.projects { display: grid; gap: 24px; }
@media (min-width: 820px) { .projects { grid-template-columns: 1fr 1fr; } }

.project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.project-shot { display: block; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.project-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .5s ease; }
.project:hover .project-shot img { transform: scale(1.03); }
.project-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.project-kicker { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.project h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.project-text { color: var(--ink-2); font-size: 16px; }
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 6px;
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: none;
}
.project-link:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Forgatókönyv: csak kattintásra nyílik le */
.scenario summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.scenario summary::-webkit-details-marker { display: none; }
.scenario summary:hover { color: var(--accent-ink); }
.scenario summary .icon { transition: transform .2s ease; }
.scenario[open] summary .icon { transform: rotate(180deg); }
.scenario dl { display: grid; gap: 6px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); font-size: 15px; }
.scenario dl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.scenario dt { color: var(--accent-ink); font-weight: 700; }
.scenario dd { color: var(--ink-2); }

/* Díj */
.award {
    display: grid;
    overflow: hidden;
    margin-top: 24px;
    border-radius: 24px;
    background: var(--accent-soft);
}
@media (min-width: 820px) { .award { grid-template-columns: 1fr 1.15fr; } }
.award img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: 28% center; }
.award-body { display: flex; flex-direction: column; gap: 12px; padding: 30px 32px; }
.award-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-size: 14.5px; font-weight: 700; }
.award h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.award p { color: var(--ink-2); font-size: 16px; }
.award .text-link { align-self: flex-start; }
.award-credit { color: var(--muted) !important; font-size: 13px !important; }

/* Saját projektek */
.side-box { margin-top: 48px; border-radius: 28px; background: var(--bg-soft); }
.side-summary { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 28px; list-style: none; cursor: pointer; }
.side-summary::-webkit-details-marker { display: none; }
.side-summary-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.side-title { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.side-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700; vertical-align: 3px; }
.side-hint { color: var(--muted); font-size: 15.5px; }
.side-summary:hover .acc-toggle { background: var(--accent-soft); color: var(--accent-ink); }
.side-box[open] > .side-summary .acc-toggle { transform: rotate(180deg); background: var(--btn); color: var(--btn-text); }
.side-content { padding: 0 26px 28px; }
.side-box[open] > .side-content { animation: fade-in .3s ease; }
@media (max-width: 560px) { .side-summary { padding: 18px 16px; } .side-content { padding: 0 12px 16px; } }
.side-intro { max-width: 64ch; margin-bottom: 18px; color: var(--ink-2); }

.accordion { display: grid; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: box-shadow .2s ease; }
.acc[open] { box-shadow: var(--shadow); }
.acc summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    list-style: none;
    cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; flex: 1; min-width: 0; }
.acc-title { font-size: 18px; font-weight: 700; }
.acc-badge { padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.acc-tagline { flex-basis: 100%; color: var(--ink-2); font-size: 15.5px; }
.acc-toggle {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-2);
    transition: transform .25s ease, background-color .2s, color .2s;
}
.acc summary:hover .acc-toggle { background: var(--accent-soft); color: var(--accent-ink); }
.acc[open] .acc-toggle { transform: rotate(45deg); background: var(--btn); color: var(--btn-text); }
.acc-body { display: grid; gap: 14px; padding: 0 18px 20px; color: var(--ink-2); }
.acc[open] .acc-body { animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.acc-body > p:first-child { max-width: 68ch; }
.acc-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; }
.acc-links a, .acc-links span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
}
.acc-links a { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.acc-links a:hover { background: var(--btn); color: var(--btn-text); }
.soon { background: var(--bg-soft); color: var(--muted); }


/* Ismeretek */
.skills { display: grid; }
.skills > div { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.skills > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .skills > div { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; } }
.skills dt { font-weight: 700; padding-top: 2px; }
.skills .tag-list li { font-size: 14px; }
.skills dd { color: var(--ink-2); }

/* Tanulmányok */
.edu { display: grid; gap: 14px; margin-bottom: 32px; }
.edu li { display: grid; gap: 6px 20px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 640px) { .edu li { grid-template-columns: 130px minmax(0, 1fr); align-items: baseline; } }
.edu-year { color: var(--accent-ink); font-size: 14.5px; font-weight: 600; }
.edu h3 { font-size: 18px; font-weight: 700; }
.edu p { color: var(--muted); font-size: 15.5px; }

.mini-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .mini-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); } }
.mini-card { padding: 24px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.mini-card h3 { margin-bottom: 14px; font-size: 18px; font-weight: 700; }

.info-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; border-top: 0; }
.info-list li:last-child { padding-bottom: 0; }
.row-main { display: flex; flex-direction: column; }
.row-title { font-weight: 600; }
.row-note { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.row-text { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.pill { padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.pill-muted { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Kapcsolat */
.contact-card { display: grid; gap: 32px; padding: 32px; border-radius: 32px; background: var(--bg-soft); }
@media (min-width: 900px) { .contact-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; padding: 48px; } }
@media (max-width: 560px) { .contact-card { padding: 22px 16px; border-radius: 26px; } }
.contact-text { margin-bottom: 26px; color: var(--ink-2); font-size: 17.5px; }
.contact-side { margin: -14px 0 26px; color: var(--muted); font-size: 16px; }
.contact-list { display: grid; gap: 12px; margin-bottom: 28px; }
.contact-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: .2em; }
.copy-btn { width: 30px; height: 30px; }
.copy-btn.is-copied { border-color: var(--accent); color: var(--accent-ink); }

.contact-form { display: grid; gap: 16px; align-content: start; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 560px) { .contact-form { padding: 20px 16px; } }
.contact-form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--ink);
    font: 16px/1.5 var(--font);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-error { display: none; color: var(--red-ink); font-size: 14px; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field.has-error .field-error { display: block; }
.form-status { padding: 12px 16px; border-radius: 14px; font-size: 15.5px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: var(--accent-soft); color: var(--accent-ink); }
.form-status.is-error { background: var(--red-soft); color: var(--red-ink); }
.form-note { color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Lábléc: halkan a teszteredmény és a bugvadászat ------------------------------- */

.site-footer { padding: 44px 0 36px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 12px; }
.footer-line { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14.5px; }
.footer-line[hidden] { display: none; }
.footer-line strong { color: var(--ink-2); font-weight: 600; }
.footer-line a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.footer-line a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-check, .bughunt-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
}
.footer-check { background: var(--accent-soft); color: var(--accent-ink); }
.bughunt-icon { background: var(--red-soft); color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-ink); }

/* --- Bugvadászat ------------------------------------------------------------------- */

body.bughunt { cursor: crosshair; }
body.bughunt a, body.bughunt button, body.bughunt summary, body.bughunt .bug-active { cursor: pointer; }

[data-bug="layout"] { transition: transform .6s cubic-bezier(.3, 1.4, .4, 1), box-shadow .3s; }
body.bughunt [data-bug="layout"].bug-active {
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-hover);
    transform: translate(14px, 10px) rotate(-1.6deg);
}

.bug-revealed { outline: 2px dashed var(--red); outline-offset: 5px; animation: bug-pulse 1.2s ease-in-out infinite; }
@keyframes bug-pulse { 50% { outline-color: transparent; } }

.bug-squashed { animation: bug-squash 1s ease; }
@keyframes bug-squash {
    0% { background-color: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
    100% { background-color: transparent; box-shadow: 0 0 0 0 transparent; }
}

.bh-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: min(340px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-hover);
    font-size: 15px;
    cursor: default;
    animation: panel-in .35s ease both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bh-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.bh-head > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.bh-title { font-weight: 700; }
.bh-count { margin-left: auto; color: var(--ink); font-weight: 700; text-decoration: none; }
.bh-close { width: 30px; height: 30px; font-size: 16px; }
.bh-body { padding: 14px 16px 16px; }
.bh-intro { margin-bottom: 12px; color: var(--ink-2); }
.bh-list { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.bh-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; color: var(--muted); }
.bh-list li.is-found { color: var(--ink); }
.bh-id { font-weight: 600; }
.bh-state { font-size: 13px; }
.bh-list li.is-found .bh-state { color: var(--accent-ink); font-weight: 600; }
.bh-progress { height: 6px; margin-bottom: 14px; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
.bh-progress span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s ease; }
.bh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.bh-note { margin-top: 10px; color: var(--red-ink); font-size: 14px; }
.bh-done-stamp {
    display: inline-flex;
    margin: 2px 0 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btn-text);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}
.bh-done-title { margin-bottom: 6px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.bh-done p { margin-bottom: 14px; color: var(--ink-2); }
.bh-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bh-toast {
    position: absolute;
    z-index: 80;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btn-text);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    animation: toast 1.8s ease forwards;
}
@keyframes toast {
    0% { opacity: 0; transform: translateY(6px); }
    12% { opacity: 1; transform: none; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}
@media (max-width: 640px) {
    .bh-panel { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .bh-intro { display: none; }
    .bh-panel.is-collapsed .bh-body { display: none; }
    .bh-panel.is-collapsed .bh-head { border-bottom: 0; }
    .bh-count::after { content: " ▾"; color: var(--muted); }
    .bh-panel.is-collapsed .bh-count::after { content: " ▴"; }
}

/* --- 404: hibajegy ------------------------------------------------------------------- */

.ticket-page { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; background: var(--bg-soft); }
.ticket { width: 100%; max-width: 540px; padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-hover); }
.ticket-id { display: inline-flex; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); font-size: 13.5px; font-weight: 700; }
.ticket h1 { margin-bottom: 20px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.ticket-fields { display: grid; gap: 10px; margin-bottom: 26px; font-size: 16px; }
.ticket-fields div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.ticket-fields dt { color: var(--muted); font-weight: 600; }
.ticket-fields dd { color: var(--ink-2); overflow-wrap: anywhere; }
.ticket-fields code { font-size: .95em; }
@media (max-width: 480px) { .ticket-fields div { grid-template-columns: 1fr; gap: 2px; } }

/* --- Megjelenési animáció, mozgáscsökkentés, nyomtatás --------------------------------- */

.js .reveal { opacity: 0; transform: translateY(12px); 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 { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js mark.hl { background-size: 100% 38%; }
}

@media print {
    .site-header, .header-actions, .contact-form, .footer-bughunt, .bh-panel, .acc-toggle, .hero-actions { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .section, .section-soft { padding: 18pt 0; background: #fff; }
    .js .reveal { opacity: 1; transform: none; }
    .js mark.hl { background-size: 100% 38%; }
    .project, .timeline-item, .acc { break-inside: avoid; box-shadow: none; }
}
