/* egritamas.hu / tamasegri.com – v3 */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1626;
  --muted: #5b6478;
  --line: #e4e7ef;

  --mint: #22b39a;
  --mint-soft: #d6f5ee;
  --amber: #ffb52e;
  --amber-soft: #fff0cf;
  --coral: #ff6b5e;
  --coral-soft: #ffe2de;
  --violet: #7a5cff;
  --violet-soft: #e9e4ff;
  --sky: #2f9bff;
  --sky-soft: #dceeff;

  --spark: #ffb52e;
  --radius: 28px;
  --shadow: 0 1px 2px rgb(15 22 38 / 0.04), 0 12px 32px -12px rgb(15 22 38 / 0.14);

  --display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111d;
    --surface: #141b2b;
    --ink: #eef1f7;
    --muted: #9aa4b8;
    --line: #232c40;
    --mint-soft: #123a35;
    --amber-soft: #3a2e12;
    --coral-soft: #3d1f1d;
    --violet-soft: #251f4a;
    --sky-soft: #132f4d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }

/* Menü ---------------------------------------------------------------- */

.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  max-width: 100%;
}
.nav a { text-decoration: none; white-space: nowrap; }
.nav-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--mint), var(--sky), var(--violet), var(--coral), var(--amber), var(--mint));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgb(15 22 38 / 0.45);
}
.nav-links { display: flex; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-lang {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
}
.nav-lang:hover { background: var(--violet); color: #fff; }

@media (max-width: 34rem) {
  .nav-links a { padding: 0.5rem 0.55rem; font-size: 0.8125rem; }
  .nav-mark { width: 34px; height: 34px; }
  .nav-lang { padding: 0.45rem 0.7rem; font-size: 0.8125rem; }
}
@media (max-width: 23rem) {
  .nav-links a:nth-child(3) { display: none; }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  align-items: center;
  gap: 2rem 3rem;
  min-height: min(100svh, 56rem);
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.15fr 1fr; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 700;
}
.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.hero-name {
  font-weight: 700;
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-name span { display: block; }

.hero-role {
  margin: 1.25rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--muted);
}
.hero-role b {
  font-weight: 600;
  background: linear-gradient(90deg, var(--violet), var(--sky) 50%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--violet) 70%, transparent);
}
.btn-primary:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Hero-kép: színes gömb, óriás Bitli, lebegő címkék */
.hero-art {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 1;
  margin: 0 auto;
}
.orb {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.55) 28%, transparent 52%),
    radial-gradient(circle at 22% 25%, var(--amber), transparent 50%),
    radial-gradient(circle at 82% 30%, var(--coral), transparent 50%),
    radial-gradient(circle at 78% 82%, var(--violet), transparent 55%),
    radial-gradient(circle at 20% 80%, var(--sky), transparent 55%),
    var(--violet);
}
.orb::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: inherit;
  filter: blur(48px);
  opacity: 0.45;
  z-index: -1;
}
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}
.hero-bitli {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 52%;
  transform: translateX(-50%);
  cursor: pointer;
}
.hero-bitli svg { display: block; width: 100%; height: auto; overflow: visible; }

.float-chip {
  position: absolute;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 800;
  white-space: nowrap;
}
.float-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--c);
  vertical-align: 0.05em;
}
.fc1 { --c: var(--coral); top: 6%; left: 2%; }
.fc2 { --c: var(--violet); top: 2%; right: 8%; }
.fc3 { --c: var(--mint); top: 46%; right: -4%; }
.fc4 { --c: var(--sky); bottom: 10%; left: -2%; }
.fc5 { --c: var(--amber); bottom: 2%; right: 12%; }

@media (prefers-reduced-motion: no-preference) {
  /* egyetlen, összehangolt nyitó animáció */
  .hero-text > * { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-text > :nth-child(5) { animation-delay: 0.32s; }
  .orb { animation: orb-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
  .hero-bitli { animation: drop-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both; }
  .float-chip { animation: chip-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, bob 5s ease-in-out infinite; }
  .fc1 { animation-delay: 0.9s, 1.6s; }
  .fc2 { animation-delay: 1s, 0.6s; }
  .fc3 { animation-delay: 1.1s, -0.6s; }
  .fc4 { animation-delay: 1.2s, -1.5s; }
  .fc5 { animation-delay: 1.3s, -2.4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes orb-in { from { opacity: 0; transform: scale(0.7) rotate(-30deg); } }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -60%) scale(0.6); } }
@keyframes chip-in { from { opacity: 0; transform: scale(0.4); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 40rem) {
  .hero { padding-top: 6rem; }
  .hero-art { width: min(100%, 22rem); }
  .float-chip { font-size: 0.75rem; padding: 0.35rem 0.65rem; }
  .fc3 { right: 0; }
  .fc4 { left: 0; }
}

/* Szekciók ------------------------------------------------------------ */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section h2 { scroll-margin-top: 6rem; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec-head h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.sec-head p { margin: 0; max-width: 30rem; color: var(--muted); }

/* Színes csempék */
.tiles { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .tiles-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .tiles-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40rem) and (max-width: 63.99rem) { .tiles-4 { grid-template-columns: repeat(2, 1fr); } }

.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--soft);
}
.tile::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.12;
  pointer-events: none;
}
.tile h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; margin: 1.25rem 0 0.5rem; }
.tile p { margin: 0; color: color-mix(in srgb, var(--ink) 72%, var(--soft)); position: relative; }
.icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--c);
  color: #fff;
  box-shadow: 0 10px 20px -10px var(--c);
}
.icon svg { width: 1.6rem; height: 1.6rem; }

.t-mint { --c: var(--mint); --soft: var(--mint-soft); }
.t-violet { --c: var(--violet); --soft: var(--violet-soft); }
.t-amber { --c: var(--amber); --soft: var(--amber-soft); }
.t-coral { --c: var(--coral); --soft: var(--coral-soft); }
.t-sky { --c: var(--sky); --soft: var(--sky-soft); }

/* Mottó */
.quote {
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: #0f1626;
  color: #f6f7fb;
}
.quote::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral), transparent 65%);
  opacity: 0.6;
}
.quote::after {
  content: "";
  position: absolute;
  left: 35%;
  top: -70%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet), transparent 65%);
  opacity: 0.5;
}
.quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 44rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Pálya */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0.5rem clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.timeline li {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
@media (min-width: 44rem) {
  .timeline li { grid-template-columns: 9rem 1fr 1.4fr; align-items: baseline; }
}
.years {
  justify-self: start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  color: color-mix(in srgb, var(--c) 70%, var(--ink));
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.timeline .role {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}
.timeline p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--mint);
  color: #fff;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: 0.15em;
}

/* Eszköztár */
.stack-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; }
.tags { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Kapcsolat */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--amber) 70%, transparent), transparent 40%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--mint) 80%, transparent), transparent 45%),
    linear-gradient(135deg, var(--violet), var(--sky));
  color: #fff;
}
.cta h2 { font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.045em; line-height: 1; }
.cta p { max-width: 34rem; margin: 1.25rem 0 0; font-size: 1.125rem; color: rgb(255 255 255 / 0.9); }
.mail {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(255 255 255 / 0.45);
  word-break: break-word;
}
.mail:hover { text-decoration-color: #fff; }
.cta :focus-visible { outline-color: #fff; }

footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--violet); }

/* 404 */
.lost { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1rem; }
.lost .actions { justify-content: center; }

/* Bitli, a kabala ----------------------------------------------------- */

.mascot {
  --size: 112px;
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 60;
  width: var(--size);
  transform: translateX(calc(100% + 48px)) rotate(12deg);
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.mascot.from-left { right: auto; left: 18px; transform: translateX(calc(-100% - 48px)) rotate(-12deg); }
.mascot.is-in { transform: none; pointer-events: auto; }
.mascot.no-trans { transition: none; }

.mascot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 40%; }
.mascot-btn svg { display: block; width: 100%; height: auto; overflow: visible; }

.bitli svg g, .bitli svg ellipse, .bitli svg path { transform-box: fill-box; }
.b-shadow { fill: #0b1220; opacity: 0.18; transform-origin: center; }
.b-hop { transform-origin: 50% 100%; }
.b-breathe { transform-origin: 50% 100%; animation: b-breathe 3.2s ease-in-out infinite; }
.b-eye { transform-origin: center; animation: b-blink 5.2s infinite; }
.b-wink, .b-mouth-open { opacity: 0; }
.b-arm-l { transform-origin: 75% 12%; }
.b-arm-r { transform-origin: 25% 12%; }
.b-bulb { fill: var(--spark); filter: drop-shadow(0 0 4px var(--spark)); animation: b-glow 2.4s ease-in-out infinite; }
.b-sparks path { fill: var(--spark); opacity: 0; transform-origin: center; }

@keyframes b-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 0.975); } }
@keyframes b-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes b-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }

.bitli.hop .b-hop { animation: b-hop 0.55s cubic-bezier(0.3, 0.7, 0.4, 1) 2; }
.bitli.hop .b-shadow { animation: b-shadow 0.55s cubic-bezier(0.3, 0.7, 0.4, 1) 2; }
@keyframes b-hop {
  0% { transform: translateY(0) scale(1.08, 0.9); }
  35% { transform: translateY(-30px) scale(0.94, 1.07); }
  70% { transform: translateY(0) scale(1.1, 0.88); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes b-shadow { 35% { transform: scale(0.6); opacity: 0.08; } }

.bitli.wave .b-arm-r { animation: b-wave 0.32s ease-in-out 4 alternate; }
@keyframes b-wave { from { transform: rotate(-140deg); } to { transform: rotate(-172deg); } }

.bitli.cheer .b-arm-l { animation: b-arm-l 0.28s ease-in-out 4 alternate; }
.bitli.cheer .b-arm-r { animation: b-arm-r 0.28s ease-in-out 4 alternate; }
.bitli.cheer .b-mouth { opacity: 0; }
.bitli.cheer .b-mouth-open { opacity: 1; }
.bitli.cheer .b-sparks path { animation: b-spark 0.6s ease-out 2; }
.bitli.cheer .b-sparks path:nth-child(2) { animation-delay: 0.12s; }
.bitli.cheer .b-sparks path:nth-child(3) { animation-delay: 0.24s; }
.bitli.cheer .b-sparks path:nth-child(4) { animation-delay: 0.18s; }
@keyframes b-arm-l { from { transform: rotate(135deg); } to { transform: rotate(170deg); } }
@keyframes b-arm-r { from { transform: rotate(-135deg); } to { transform: rotate(-170deg); } }
@keyframes b-spark {
  0% { opacity: 0; transform: scale(0.2) rotate(0); }
  40% { opacity: 1; transform: scale(1.15) rotate(25deg); }
  100% { opacity: 0; transform: scale(0.6) rotate(60deg); }
}

.bitli.wink .b-eye-r { animation: none; transform: scaleY(0.08); }
.bitli.wink .b-wink { opacity: 1; }

.mascot-bubble {
  position: absolute;
  bottom: calc(100% - 4px);
  right: 30%;
  width: max-content;
  max-width: 13rem;
  padding: 0.55rem 0.85rem;
  border-radius: 16px 16px 4px 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: 90% 100%;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.mascot.from-left .mascot-bubble { right: auto; left: 30%; border-radius: 16px 16px 16px 4px; transform-origin: 10% 100%; }
.mascot-bubble.show { opacity: 1; transform: none; }

@media (max-width: 40rem) {
  .mascot { --size: 80px; right: 10px; bottom: 8px; }
  .mascot.from-left { left: 10px; }
  .mascot-bubble { font-size: 0.8125rem; max-width: 10.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot.from-left { transform: none; opacity: 0; transition: opacity 0.3s; }
  .mascot.is-in { opacity: 1; }
  .b-breathe, .b-eye, .b-bulb { animation: none; }
}

@media print { .mascot, .nav-wrap, .hero-art { display: none; } }
