:root {
  --bg: #060712;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);

  --blue: #5aa7ff;
  --pink: #ff4fd8;
  --purple: #a56bff;

  --max: 1180px;
  --r: 18px;

  /* hover erő (később finomhangoljuk) */
  --hoverFillBlue: 0.16;
  --hoverFillPink: 0.14;
  --hoverGlowStrong: 18px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* háttér - “galaxis” */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      1100px 800px at 55% 35%,
      rgba(120, 90, 255, 0.2),
      transparent 62%
    ),
    radial-gradient(
      950px 700px at 20% 75%,
      rgba(90, 167, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 650px at 85% 80%,
      rgba(255, 79, 216, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #050611, #04040b 60%, #050512);
}
.bg::after {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 70% 35%,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 45% 78%,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 2px
    );
  background-size:
    220px 220px,
    280px 280px,
    360px 360px;
  opacity: 0.55;
  pointer-events: none;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 20, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}

/* layout */
.page {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 26px 18px 46px;
}
.hero {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.35fr 1.35fr auto;
  gap: 15px;
  align-items: start;
}

/* BAL */
.title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.6px;
  white-space: nowrap;

  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.25),
    0 0 16px rgba(90, 167, 255, 0.18),
    0 0 20px rgba(165, 107, 255, 0.18);

  animation: nameGlow 10s ease-in-out infinite;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  letter-spacing: 0.4px;
  opacity: 0.9;
}

.chips {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.chip {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chip:hover {
  color: var(--text);
}

/* JOBB (portré) */
.hero__right {
  display: grid;
  justify-items: end;
  margin-top: 5rem;
}

.portrait {
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 0 20px rgba(90, 167, 255, 0.25),
    0 0 30px rgba(255, 79, 216, 0.18);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* KÖZÉP */
.hero__center {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 8rem;
  transform: none;
}

/* CTA */
.cta {
  display: flex;
  gap: 14px;
}
.btn {
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);

  min-width: 130px; /* ettől lesz egyforma */
  text-align: center;

  transition: all 0.2s ease;
}
.btn--blue:hover {
  background: rgba(90, 167, 255, 0.12);
  border-color: rgba(90, 167, 255, 0.45);
  box-shadow: 0 0 18px rgba(90, 167, 255, 0.35);
}

.btn--pink:hover {
  background: rgba(255, 79, 216, 0.1);
  border-color: rgba(255, 79, 216, 0.4);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

/* ===== Yin-Yang (stabil, hover biztos) ===== */
/* ===== YIN-YANG (stabil, bal/jobb glow) ===== */

.yy {
  width: min(440px, 84vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  position: relative;
  overflow: visible;
  animation: floatYY 10s ease-in-out infinite;
}

@keyframes floatYY {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* A látvány (SVG) */
.yy__svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(90, 167, 255, 0.1))
    drop-shadow(0 0 14px rgba(255, 79, 216, 0.08));
}

/* Külső ring */
.yy__ring {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    rgba(90, 167, 255, 0),
    rgba(90, 167, 255, 0.65),
    rgba(255, 79, 216, 0.65),
    rgba(255, 79, 216, 0)
  );
  filter: blur(10px);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

/* A glow rétegek: NINCS clip-path -> nincs felezőcsík */
.yy__glow {
  position: absolute;
  inset: -22px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2; /* SVG fölött */
  pointer-events: none;
  filter: blur(14px);
}

/* BAL: fényfolt */
.yy__glow--left {
  background: radial-gradient(
    circle at 30% 50%,
    rgba(90, 167, 255, 0.55) 0%,
    rgba(90, 167, 255, 0.18) 40%,
    rgba(90, 167, 255, 0) 70%
  );
}

/* JOBB: fényfolt */
.yy__glow--right {
  background: radial-gradient(
    circle at 70% 50%,
    rgba(255, 79, 216, 0.5) 0%,
    rgba(255, 79, 216, 0.16) 40%,
    rgba(255, 79, 216, 0) 70%
  );
}

/* A kattintható fél-területek (ezek vágottak, de ÁTLÁTSZÓK) */
.yy__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent; /* fontos: ne rajzoljon semmit */
  text-decoration: none;
}
.yy__hit--left {
  clip-path: inset(0 50% 0 0);
}
.yy__hit--right {
  clip-path: inset(0 0 0 50%);
}

/* Szövegek/ikonok */
.yy__txt {
  position: absolute;
  z-index: 4;
  width: 44%;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  transform: translateY(-6px);
}
.yy__txt--left {
  left: 10%;
  top: 25%;
}
.yy__txt--right {
  right: 10%;
  top: 65%;
}

.yy__icon {
  font-size: 26px;
  margin-bottom: 8px;
  opacity: 0.92;
}
.yy__label {
  font-size: 18px;
  letter-spacing: 0.2px;
}

/* Aktiválás – itt ragyogjon a megfelelő oldal */
.yy.is-left .yy__glow--left {
  opacity: 1;
}
.yy.is-right .yy__glow--right {
  opacity: 1;
}

/* Opcionális: a teljes kör is kap egy picit több fényt hoverre */
.yy.is-left .yy__svg {
  filter: drop-shadow(0 0 18px rgba(90, 167, 255, 0.18))
    drop-shadow(0 0 14px rgba(255, 79, 216, 0.06));
}
.yy.is-right .yy__svg {
  filter: drop-shadow(0 0 18px rgba(255, 79, 216, 0.16))
    drop-shadow(0 0 14px rgba(90, 167, 255, 0.06));
}
.yy.is-left .yy__ring,
.yy.is-right .yy__ring {
  opacity: 0.82;
}

.yy__icon {
  font-size: 26px;
  margin-bottom: 8px;
  opacity: 0.92;
}
.yy__label {
  font-size: 18px;
  letter-spacing: 0.2px;
}

/* Hover erősítés – a megfelelő oldalra */
.yy.is-left .yy__svg {
  filter: drop-shadow(0 0 18px rgba(90, 167, 255, 0.22))
    drop-shadow(0 0 14px rgba(255, 79, 216, 0.08));
}
.yy.is-right .yy__svg {
  filter: drop-shadow(0 0 18px rgba(255, 79, 216, 0.2))
    drop-shadow(0 0 14px rgba(90, 167, 255, 0.08));
}
.yy.is-left .yy__ring {
  opacity: 0.82;
}
.yy.is-right .yy__ring {
  opacity: 0.82;
}

/* finom “oldal-glow” */
.yy.is-left {
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.yy.is-right {
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

/* tartalom pozíció: picit feljebb, hogy ne lógjon át */
.yy__content {
  transform: translateY(-6px);
  text-align: center;
}
.yy__icon {
  font-size: 28px;
  opacity: 0.92;
  margin-bottom: 10px;
}
.yy__label {
  font-size: 18px;
  letter-spacing: 0.2px;
}

/* S-ív dísz: egyszerű “két kör” + finom kontúr */
.yy__s {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 255, 255, 0) 0 44%,
      rgba(255, 255, 255, 0.14) 45% 46%,
      rgba(255, 255, 255, 0) 47% 100%
    ),
    radial-gradient(
      circle at 50% 72%,
      rgba(255, 255, 255, 0) 0 44%,
      rgba(255, 255, 255, 0.14) 45% 46%,
      rgba(255, 255, 255, 0) 47% 100%
    );
}

/* két “dot” */
.yy__dot {
  position: absolute;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.22;
  pointer-events: none;
}
.yy__dot--top {
  left: 28%;
  top: 12%;
}
.yy__dot--bottom {
  left: 28%;
  top: 44%;
}

/* ---------- HOVER: látványos, de nem túl erős ---------- */
/* alap: semmi “össze-vissza”, csak a fél, amin vagy */
.yy.is-left .yy__half--left {
  background-color: rgba(90, 167, 255, var(--hoverFillBlue));
  filter: drop-shadow(0 0 var(--hoverGlowStrong) rgba(90, 167, 255, 0.28));
}
.yy.is-right .yy__half--right {
  background-color: rgba(255, 79, 216, var(--hoverFillPink));
  filter: drop-shadow(0 0 var(--hoverGlowStrong) rgba(255, 79, 216, 0.24));
}

/* a ring is kicsit élénkül */
.yy.is-left .yy__ring {
  opacity: 0.78;
}
.yy.is-right .yy__ring {
  opacity: 0.78;
}

/* Reszponzív */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 4rem;
    }

    .hero__right {
        justify-items: center;
        margin-top: 2rem;
        margin-bottom: 4rem;
        position: static;
    }

    .portrait {
        transform: none;
        position: static;
    }

    .title {
        white-space: normal;
    } /* mobilon törhet */

    footer {
        position: static;
        margin-top: 2rem;
    }
}

@keyframes nameGlow {
  0% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.25),
      0 0 16px rgba(90, 167, 255, 0.18),
      0 0 20px rgba(165, 107, 255, 0.18);
  }

  50% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.35),
      0 0 24px rgba(90, 167, 255, 0.28),
      0 0 32px rgba(165, 107, 255, 0.28);
  }

  100% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.25),
      0 0 16px rgba(90, 167, 255, 0.18),
      0 0 20px rgba(165, 107, 255, 0.18);
  }
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 1px;

  background: linear-gradient(90deg, var(--blue), var(--pink));

  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.intro {
  margin: 1rem 0 1.4rem;
  max-width: 60ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 20;

  padding: 8px 20px;
  display: flex;
  justify-content: center;

  background: rgba(6, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer p {
  margin: 0;
  white-space: nowrap;
}

.footer a {
  color: #a56bff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.brand {
  display: inline-block; /* EZ FONTOS */
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--muted);

  transition: all 0.25s ease;
}

.brand:hover {
  color: var(--text);

  text-shadow:
    0 0 8px rgba(90, 167, 255, 0.5),
    0 0 14px rgba(165, 107, 255, 0.35);
}

.home-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 520px;
}

.home-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2rem 2.2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.home-card h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.45rem;
  text-align: left;
}

.home-card p {
  margin: 0;
  line-height: 1.8;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tech-list span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.home-card {
    position: relative;
    border-radius: 28px;
    padding: 2rem 2.2rem;
    background:
        linear-gradient(rgba(18, 22, 36, 0.92), rgba(18, 22, 36, 0.92)) padding-box,
        linear-gradient(135deg, #58a6ff, #b65cff, #ff4fd8) border-box;
    border: 2px solid transparent;
    box-shadow:
    0 0 12px rgba(88, 166, 255, 0.28),
    0 0 20px rgba(255, 79, 216, 0.18),
    0 18px 45px rgba(0, 0, 0, 0.28);
}

/* Ezt töröld vagy kommentezd ki, ha bent maradt */
.home-card::before {
    display: none;
}

/* Finom lebegő animáció a kártyákra */
.home-card {
    animation: floatCard 6s ease-in-out infinite;
}

/* A második kártya kissé eltérő ütemben mozogjon */
.home-card:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Hover effekt a kártyákra */
.home-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.home-card:hover {
    transform: translateY(-8px) scale(1.02);
    filter: brightness(1.05);
    box-shadow:
        0 0 25px rgba(88, 166, 255, 0.45),
        0 0 45px rgba(255, 79, 216, 0.35),
        0 25px 55px rgba(0, 0, 0, 0.35);
}

/* A link kör alakú maradjon */
.profile-link {
    display: inline-block;
    border-radius: 50%;
}

/* A meglévő .portrait stílus kiegészítése */
.profile-link .portrait {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
    cursor: pointer;
}

/* Hover effekt */
.profile-link:hover .portrait {
    transform: translateY(-6px) scale(1.03);
    filter: brightness(1.08);
    box-shadow:
        0 0 25px rgba(88, 166, 255, 0.45),
        0 0 45px rgba(255, 79, 216, 0.35);
}