/* =========================================================
   Moldován Csaba Kft — professional site
   ========================================================= */

:root {
  --bg: #0b0d12;
  --bg-alt: #11141c;
  --surface: #161a24;
  --surface-2: #1c212d;
  --border: #262c3a;
  --text: #e8ecf4;
  --muted: #9aa3b6;
  --brand: #6c8cff;
  --brand-2: #46e1c0;
  --accent: #ff7a59;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --grad: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 100%);
}

[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-alt: #eceff7;
  --surface: #ffffff;
  --surface-2: #f1f3fa;
  --border: #e2e6f0;
  --text: #131722;
  --muted: #5b6478;
  --shadow: 0 18px 50px -24px rgba(20, 30, 70, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .brand__text { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand);
  color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #0b0d12; box-shadow: 0 10px 30px -10px rgba(108, 140, 255, 0.6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); }

.icon-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.icon-btn:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--brand); font-size: 1.4rem; }
.brand__text { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__sub {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-2); margin-left: 6px; vertical-align: super;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero__text { max-width: 640px; }
.hero__portrait { margin: 0; position: relative; }
.hero__portrait img {
  width: 100%; max-width: 380px; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 0; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: block; margin-left: auto;
}
.hero__portrait figcaption {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--text);
  padding: 6px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.hero__eyebrow { color: var(--brand-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 16px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; margin: 0 0 22px; letter-spacing: -0.03em; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.hero__lead strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 0; margin: 0; }
.hero__stats li { display: flex; flex-direction: column; }
.stat__num { font-family: "Sora", sans-serif; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 0.9rem; }
.hero__glow {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(600px 400px at 78% 10%, rgba(108, 140, 255, 0.22), transparent 60%),
    radial-gradient(500px 380px at 92% 60%, rgba(70, 225, 192, 0.16), transparent 60%);
  pointer-events: none;
}

.hero__award {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 40px;
  background: color-mix(in srgb, #ffc861 16%, transparent);
  border: 1px solid color-mix(in srgb, #ffc861 45%, transparent);
  color: var(--text); font-weight: 600; font-size: 0.88rem;
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- Award banner ---------- */
.award {
  display: flex; align-items: center; gap: 20px; margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, #ffc861 40%, var(--border));
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.award::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 120px at 0% 0%, color-mix(in srgb, #ffc861 18%, transparent), transparent 70%);
}
.award__trophy { font-size: 2.4rem; line-height: 1; position: relative; }
.award__body { position: relative; }
.award__title { margin: 0 0 4px; font-family: "Sora"; font-weight: 700; font-size: 1.15rem; }
.award__desc { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { color: var(--brand-2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 12px; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.section__intro { color: var(--muted); max-width: 640px; font-size: 1.05rem; margin: 0 0 36px; }
.prose { color: var(--muted); margin: 0 0 18px; max-width: 560px; }
.prose strong { color: var(--text); }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.tags li {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}

.profile-card { position: sticky; top: 90px; }
.profile-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-family: "Sora"; font-weight: 700; color: #0b0d12;
  background: var(--grad); font-size: 1.2rem;
}
.profile-card__head h3 { margin: 0; font-size: 1.1rem; }
.profile-card__head p { margin: 2px 0 0; font-size: 0.9rem; }
.facts { margin: 0 0 20px; display: grid; gap: 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.facts dt { color: var(--muted); font-size: 0.88rem; }
.facts dd { margin: 0; text-align: right; font-weight: 500; font-size: 0.9rem; }
.profile-card__links { display: flex; flex-wrap: wrap; gap: 16px; }
.profile-card__links a { font-weight: 600; font-size: 0.9rem; }

/* ---------- Method ---------- */
.method { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.method li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; position: relative; transition: transform 0.18s ease, border-color 0.18s ease; }
.method li:hover { transform: translateY(-4px); border-color: var(--brand); }
.method__n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand);
  font-family: "Sora"; font-weight: 700; margin-bottom: 14px;
}
.method h3 { margin: 0 0 6px; font-size: 1.05rem; }
.method p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 0.9rem;
  transition: all 0.18s ease;
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.is-active { background: var(--grad); color: #0b0d12; border-color: transparent; font-weight: 600; }

/* ---------- Projects ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease; }
.project:hover { transform: translateY(-5px); border-color: var(--brand); }
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.project__head h3 { margin: 0; font-size: 1.2rem; }
.badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 14%, transparent);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.project p { color: var(--muted); margin: 0 0 14px; font-size: 0.94rem; }
.project__tech { font-size: 0.8rem !important; color: var(--text) !important; opacity: 0.7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.project__link { margin-top: auto; font-weight: 600; font-size: 0.9rem; }
.project.is-hidden { display: none; }

.work__more { margin-top: 32px; color: var(--muted); }
.work__more strong { color: var(--text); font-weight: 600; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service { padding: 22px; }
.service h3 { margin: 0 0 8px; font-size: 1.05rem; }
.service p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section__intro { margin-left: auto; margin-right: auto; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 30px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.contact__links a { color: var(--muted); font-weight: 500; }
.contact__links a:hover { color: var(--text); }

/* ---------- Avatar image (profile card) ---------- */
.avatar-img {
  width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}

/* ---------- Timeline (experience) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2)); opacity: 0.4;
}
.timeline__item { position: relative; padding: 0 0 28px 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border);
}
.timeline__date { font-size: 0.8rem; font-weight: 600; color: var(--brand-2); letter-spacing: 0.03em; }
.timeline__item h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.timeline__org { margin: 0 0 8px; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.timeline__item p:last-child { margin: 0; color: var(--muted); max-width: 720px; }

/* ---------- Reviews ---------- */
.rating {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.rating__score { font-family: "Sora"; font-size: 3rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating__stars { color: #ffc861; font-size: 1.3rem; letter-spacing: 2px; }
.rating__meta { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.rating__cta { margin-left: auto; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; margin: 0; }
.review__stars { color: #ffc861; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; font-weight: 700; font-style: normal; }
.review blockquote { margin: 0 0 16px; color: var(--text); font-size: 0.96rem; line-height: 1.6; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review__who { font-weight: 600; font-size: 0.95rem; }
.review__src { color: var(--muted); font-size: 0.8rem; }

/* ---------- Collaborations ---------- */
.collabs { margin-top: 40px; }
.collabs__label { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.collabs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.collabs__list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
}
.collabs__list li span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }

/* ---------- Credentials ---------- */
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 14px 0; border-bottom: 1px dashed var(--border); display: flex; flex-direction: column; gap: 2px; }
.creds li:last-child { border-bottom: none; }
.creds strong { font-size: 1rem; }
.creds span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Gallery (speaking) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; padding: 28px 18px 14px; font-size: 0.88rem; font-weight: 500;
}

.gallery__item--extra { display: none; }
.gallery.is-open .gallery__item--extra { display: block; }
.gallery__more { text-align: center; margin-top: 26px; }

/* ---------- Full Timeline ---------- */
.ftl { list-style: none; margin: 0; padding: 0; position: relative; }
.ftl::before {
  content: ""; position: absolute; left: 176px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: 0.25;
}
.ftl__item { position: relative; padding: 0 0 44px 200px; }
.ftl__item:last-child { padding-bottom: 0; }
.ftl__aside { position: absolute; left: 0; top: 0; width: 152px; text-align: right; padding-top: 3px; }
.ftl__date { display: block; font-size: 0.8rem; font-weight: 700; color: var(--brand-2); letter-spacing: 0.03em; margin-bottom: 6px; }
.ftl__type { display: inline-block; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.ftl__item--corporate .ftl__type { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.ftl__item--speaking .ftl__type { color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, transparent); border-color: color-mix(in srgb, var(--brand-2) 35%, transparent); }
.ftl__item--personal .ftl__type { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.ftl__item--award .ftl__type { color: #ffc861; background: color-mix(in srgb, #ffc861 12%, transparent); border-color: color-mix(in srgb, #ffc861 40%, transparent); }
.ftl__dot { position: absolute; left: 168px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg-alt); box-shadow: 0 0 0 1px var(--border); z-index: 1; }
.ftl__item--speaking .ftl__dot { background: var(--brand-2); }
.ftl__item--personal .ftl__dot { background: var(--accent); }
.ftl__item--award .ftl__dot { background: #ffc861; }
.ftl__item--review .ftl__dot { background: var(--surface-2); }
.ftl__body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ftl__org { margin: 0 0 8px; color: var(--text); font-weight: 500; font-size: 0.92rem; }
.ftl__body > p { margin: 0 0 8px; color: var(--muted); max-width: 640px; }
.ftl__body > p:last-child { margin-bottom: 0; }
.ftl__photo { margin: 14px 0 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); max-width: 480px; }
.ftl__photo img { width: 100%; display: block; max-height: 300px; object-fit: cover; }
.ftl__photo figcaption { padding: 9px 14px; font-size: 0.82rem; color: var(--muted); background: var(--surface); }
.ftl__quote { margin: 0; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; }
.ftl__stars { color: #ffc861; font-size: 0.95rem; letter-spacing: 2px; margin: 0 0 10px; font-style: normal; }
.ftl__quote blockquote { margin: 0 0 12px; font-style: italic; color: var(--text); font-size: 0.95rem; line-height: 1.65; }
.ftl__quote footer { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.ftl__quote footer span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.ftl__item--extra { display: none; }
.ftl.is-open .ftl__item--extra { display: block; }
.ftl__more { text-align: center; margin: 40px 0 0; }
.ftl__gallery-title { font-family: "Sora", sans-serif; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin: 0 0 32px; letter-spacing: -0.02em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer p { margin: 0; font-size: 0.9rem; }

/* ---------- Reveal animation ---------- */
.section, .hero__inner { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__portrait { order: -1; }
  .hero__portrait img { max-width: 280px; margin: 0; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { position: static; }
  .method { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .ftl::before { left: 7px; }
  .ftl__item { padding: 0 0 36px 32px; }
  .ftl__aside { position: static; width: auto; text-align: left; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ftl__dot { left: 0; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
  .method, .cards, .services, .reviews, .gallery { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px 24px; }
  .stat__num { font-size: 1.7rem; }
  .rating__cta { margin-left: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
