:root {
  --neon-pink: #F52B9C;
  --vice-purple: #8B4BC5;
  --sunset-blue: #393B91;
  --sunset-orange: #FF704D;
  --miami-gold: #FFB45C;
  --tropical-cyan: #42D6D0;
  --midnight-black: #171426;
  --bg: var(--midnight-black);
  --card: #211d35;
  --text: #f7f3ff;
  --muted: #c1b9d1;
  --blue: var(--sunset-blue);
  --cyan: var(--tropical-cyan);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: clamp(16px, 1.1vw + 12px, 19px)/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: var(--cyan); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 2rem;
  background: transparent;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: var(--scene-opacity, 1);
  transform: scale(var(--scene-scale, 1));
  will-change: transform, opacity;
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,20,38,.04) 18%, rgba(23,20,38,.25) 43%, rgba(23,20,38,.9) 100%),
    linear-gradient(0deg, rgba(23,20,38,.48), transparent 48%);
}
.hero-portrait {
  position: absolute;
  z-index: 1;
  left: clamp(0px, 5vw, 90px);
  bottom: 0;
  width: min(46vw, 700px);
  height: 94%;
  object-fit: contain;
  object-position: center bottom;
  opacity: var(--portrait-opacity, 1);
  transform: translate3d(var(--portrait-shift, 0px), var(--portrait-shift-y, 0px), 0);
  filter:
    drop-shadow(0 0 12px rgba(245,43,156,.55))
    drop-shadow(0 0 32px rgba(139,75,197,.45))
    drop-shadow(0 0 58px rgba(66,214,208,.22));
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(48%, 700px);
  justify-self: end;
  margin-right: clamp(1rem, 5vw, 7rem);
  text-align: left;
  opacity: var(--copy-opacity, 1);
  transform: translateY(var(--copy-shift, 0px));
  will-change: transform, opacity;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 0;
  background: var(--midnight-black);
  pointer-events: none;
}
.hero::before { top: 0; transform-origin: top; }
.hero::after { bottom: 0; transform-origin: bottom; }
body.cinema-enter .hero::before { animation: letterbox-open 1.1s ease-out both; }
body.cinema-enter .hero::after { animation: letterbox-open 1.1s ease-out both; }
@keyframes letterbox-open {
  from { height: 8vh; }
  to { height: 0; }
}
.js .hero-background,
.js .hero-portrait { opacity: 0; }
body.cinema-enter .hero-background {
  animation: cinema-background 1.8s cubic-bezier(.2,.7,.2,1) both;
}
body.cinema-enter .hero-portrait {
  animation: cinema-portrait 1.35s cubic-bezier(.2,.7,.2,1) .45s both;
}
@keyframes cinema-background {
  from { opacity: 0; transform: scale(1.16); }
  to { opacity: var(--scene-opacity, 1); transform: scale(var(--scene-scale, 1)); }
}
@keyframes cinema-portrait {
  from { opacity: 0; transform: translate3d(-9vw, 3vh, 0); }
  to { opacity: var(--portrait-opacity, 1); transform: translate3d(var(--portrait-shift, 0px), var(--portrait-shift-y, 0px), 0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.5rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -1px;
  color: var(--text);
  text-shadow: 0 4px 24px rgba(23,20,38,.65), 0 0 30px rgba(245,43,156,.22);
}
.subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: .5rem 0 2rem;
  background: linear-gradient(90deg, var(--neon-pink), var(--miami-gold), var(--tropical-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 8px rgba(23,20,38,.95)) drop-shadow(0 0 14px rgba(245,43,156,.55));
}
.tw-off { visibility: hidden; }
.hero .btn.await-typing { opacity: 0 !important; pointer-events: none; transition: none !important; }
.hero .btn.btn-pop { animation: btn-pop 1.5s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes btn-pop {
  0%   { opacity: 0; transform: translateY(22px) scale(.92); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--neon-pink), var(--sunset-orange), var(--miami-gold));
  color: var(--midnight-black);
  font: 600 1rem/1.2 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,112,77,.35); }
#demo-btn { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
#demo-btn:hover, #demo-btn:focus-visible {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 18px 40px rgba(255,112,77,.45), 0 0 0 4px rgba(245,43,156,.15);
}
#demo-btn:active { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 20px rgba(255,112,77,.35); }

main { margin: 0; }

/* A sötét alapon lassan mozgó színfények tartják olvashatóan a tartalmat. */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  background: linear-gradient(
    125deg,
    rgba(57,59,145,.4),
    rgba(139,75,197,.32),
    rgba(245,43,156,.2),
    rgba(255,112,77,.2),
    rgba(255,180,92,.16),
    rgba(66,214,208,.22),
    rgba(23,20,38,.48),
    rgba(57,59,145,.4)
  );
  background-size: 400% 400%;
  animation: bg-tint 48s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bg-tint {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
h2 { font-size: clamp(1.8rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 0 0 1.2rem; letter-spacing: -.5px; }
h2::after {
  content: "";
  display: block;
  width: 60px; height: 3px; margin-top: .6rem;
  background: linear-gradient(90deg, var(--neon-pink), var(--tropical-cyan));
}
.project h3 { margin: 0; }
.demo { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.shots figure { margin: 0; }
.featured { margin: 0; }
.featured img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid rgba(139,75,197,.45);
  box-shadow: 0 12px 40px rgba(57,59,145,.35);
}
.shots img, .ph {
  width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 8px; border: 1px solid rgba(139,75,197,.45);
}
.ph { display: grid; place-items: center; background: #211d35; color: var(--muted); }

form { display: grid; gap: 1rem; max-width: 520px; width: 100%; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; }
.mail-link {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  transition: color .2s, transform .15s;
}
.mail-ico {
  width: 30px; height: 30px; padding: 5px; flex: none;
  color: var(--cyan);
  border: 1px solid rgba(66,214,208,.45); border-radius: 8px;
  background: rgba(66,214,208,.08);
  transition: background .2s, box-shadow .2s;
}
.mail-link:hover { color: var(--cyan); transform: translateY(-2px); }
.mail-link:hover .mail-ico { background: rgba(66,214,208,.18); box-shadow: 0 0 16px rgba(66,214,208,.35); }
.li-link { display: inline-flex; transition: transform .15s, opacity .15s; }
.li-link img { height: 32px; width: auto; display: block; }
.li-link:hover { transform: translateY(-2px); opacity: .85; }
label { display: grid; gap: .3rem; color: var(--muted); font-size: .9rem; }
input, textarea {
  background: var(--card); color: var(--text);
  border: 1px solid rgba(139,75,197,.45); border-radius: 8px;
  padding: .7rem; font: inherit; font-size: max(16px, 1rem); width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--cyan); }
form .btn { justify-self: start; }
.mail-btn { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.mail-btn .mail-ico { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: inherit; }

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--midnight-black);
  transition: opacity .8s ease, visibility .8s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js #preloader { display: none; }
.loader { display: grid; justify-items: center; gap: 1.5rem; }
.loader-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(66,214,208,.2);
  border-top-color: var(--neon-pink);
  animation: spin 1s linear infinite, pulse 1.6s ease-in-out infinite;
}
.loader-text {
  color: var(--tropical-cyan);
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: .85rem;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* Animációk */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.in { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
.shots img { cursor: zoom-in; transition: transform .3s, box-shadow .3s; }
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center; padding: 2rem;
  background: rgba(5, 9, 15, .75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: min(1200px, 100%); max-height: 90vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.94); transition: transform .3s ease;
}
.lightbox.open img { transform: none; }
.lb-close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lb-close:hover { background: var(--cyan); color: var(--midnight-black); }
@media (hover: hover) {
  .shots img:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(66,214,208,.25); }
}

/* Tablet */
/* Telefon */
@media (max-width: 560px) {
  .hero { padding: 1.5rem 1rem; }
  .hero-background { object-fit: cover; object-position: 60% 30%; width: 135%; max-width: none; margin-left: -12%; }
  .hero-scene::after {
    background:
      linear-gradient(0deg, rgba(23,20,38,.78), rgba(23,20,38,.12) 48%, rgba(23,20,38,.72)),
      linear-gradient(90deg, rgba(23,20,38,.24), rgba(23,20,38,.08) 50%, rgba(23,20,38,.24));
  }
  .hero-portrait { left: -7vw; width: min(77vw, 390px); height: 56%; }
  .hero-inner {
    align-self: start;
    justify-self: center;
    width: 100%;
    margin: 7vh 0 0;
    text-align: center;
    text-shadow: 0 2px 18px rgba(23,20,38,.8);
  }
  .hero .btn { width: 100%; max-width: 280px; }
  .shots {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 1.5rem -.25rem 0; padding: 0 .25rem .75rem; -webkit-overflow-scrolling: touch;
  }
  .shots figure { flex: 0 0 88%; scroll-snap-align: center; }
  .demo { flex-direction: column; align-items: stretch; text-align: center; }
  .demo .btn { width: 100%; box-sizing: border-box; text-align: center; }
  .links .mail-btn { box-sizing: border-box; }
  .links { flex-direction: column; justify-content: center; }
  .links .mail-btn { width: 100%; justify-content: center; }
  .hero .btn { text-align: center; }
  .project ul { padding-left: 1rem; }
  form .btn { justify-self: stretch; width: 100%; }
  .lightbox { padding: 3.5rem .75rem 1rem; }
  .lb-close { top: .6rem; right: .6rem; }
}

/* Nagy kijelzők */
@media (min-width: 1600px) {
  .wrap { max-width: 1320px; }
}

/* Alacsony fekvő kijelző (pl. telefon fektetve) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 4rem 1rem; }
}

/* Átmenet a demóra: kör tágul a gombtól */
.demo-transition {
  position: fixed; inset: 0; z-index: 8000;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--vice-purple), var(--midnight-black) 70%);
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  transition: clip-path .9s cubic-bezier(.65,0,.35,1);
}
.demo-transition[hidden] { display: none; }
.demo-transition.go { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); }
.dt-text {
  color: #fff; font-size: clamp(1.4rem, 5vw, 2.4rem); font-weight: 600; letter-spacing: .05em;
  opacity: 0; transform: translateY(20px) scale(.95);
  transition: opacity .5s ease .5s, transform .5s ease .5s;
}
.demo-transition.go .dt-text { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-background,
  .js .hero-portrait { opacity: 1; }
  .hero-background,
  .hero-portrait,
  .hero-inner { will-change: auto; }
  body.cinema-enter .hero::before,
  body.cinema-enter .hero::after,
  body.cinema-enter .hero-background,
  body.cinema-enter .hero-portrait { animation: none; }
}

footer { text-align: center; color: var(--muted); padding: 4rem 1rem calc(2rem + env(safe-area-inset-bottom)); }

.project-title{display:flex;align-items:center;gap:.8rem}
.project-logo{width:48px;height:48px;border-radius:12px;object-fit:contain;flex:none}

/* ===== Jelenetek (teljes oldalas szekciók) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene {
  --par: 0px;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.2rem, 5vw, 4rem);
  background: transparent;
  overflow-x: clip;
  overflow-y: visible;
}
.scene-bg {
  --fade: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.04) 11%, rgba(0,0,0,.15) 22%, rgba(0,0,0,.4) 33%, rgba(0,0,0,.75) 44%, #000 50%, rgba(0,0,0,.75) 56%, rgba(0,0,0,.4) 67%, rgba(0,0,0,.15) 78%, rgba(0,0,0,.04) 89%, transparent 100%);
  position: absolute; inset: -20% 0; z-index: -1;
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
  transform: translate3d(0, var(--par), 0);
  will-change: transform;
}
.wrap {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--tropical-cyan);
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.75; color: #e8e1f5; }
mark {
  color: var(--text); background: none;
  background-image: linear-gradient(100deg, rgba(245,43,156,.55), rgba(255,112,77,.5));
  background-size: 100% .42em; background-position: 0 92%; background-repeat: no-repeat;
  padding: 0 .12em; font-weight: 600;
}

/* Rólam: a hero világa, elmosva, sötét fátyollal – a szöveg bal oldalon kiemeléssel */
.scene-about .scene-bg {
  background:
    radial-gradient(ellipse 60% 45% at 18% 35%, rgba(139,75,197,.38), transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 75%, rgba(245,43,156,.2), transparent 70%),
    radial-gradient(ellipse 50% 30% at 70% 15%, rgba(255,140,66,.1), transparent 70%),
    linear-gradient(180deg, #1e1830 0%, #241b3c 50%, #1a1530 100%);
}
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-body .lead {
  margin: 0;
  padding: 1.6rem 0 1.6rem clamp(1.2rem, 2.5vw, 2rem);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--neon-pink), var(--tropical-cyan)) 1;
  background: linear-gradient(90deg, rgba(23,20,38,.72), rgba(23,20,38,0));
}
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.facts li { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); color: var(--text); font-weight: 600; line-height: 1.4; }
.facts span { display: block; margin-bottom: .3rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--miami-gold); font-weight: 700; }

/* Projektek */
.scene-samplera .scene-bg {
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(255,112,77,.28), transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(245,43,156,.22), transparent 65%),
    linear-gradient(160deg, #1b1630, #171426 60%, #221430);
}
.scene-velora .scene-bg {
  background:
    radial-gradient(ellipse 60% 55% at 20% 30%, rgba(66,214,208,.22), transparent 65%),
    radial-gradient(ellipse 55% 55% at 90% 85%, rgba(139,75,197,.35), transparent 65%),
    linear-gradient(200deg, #14203a, #171426 55%, #1d1838);
}
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.proj-grid.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.proj-grid.flip .proj-copy { order: 2; }
.project-title { font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.15; margin-bottom: 1.1rem; letter-spacing: -.3px; }
.proj-desc { margin: 0 0 1.2rem; color: #e3dcf0; }
.proj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; color: var(--muted); font-size: .95em; line-height: 1.55; }
.proj-list li { position: relative; padding-left: 1.4rem; }
.proj-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--miami-gold));
}
.proj-list strong { color: var(--text); }
.featured img { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(139,75,197,.25); cursor: zoom-in; }
.scene-velora .featured img { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(66,214,208,.2); }

/* Készségek */
.scene-skills .scene-bg {
  background:
    radial-gradient(circle at 50% 0%, rgba(57,59,145,.65), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(66,214,208,.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(245,43,156,.16), transparent 70%),
    #15132a;
}
.scene-skills .lead { max-width: 46rem; margin: 0 0 clamp(2rem, 5vh, 3.5rem); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.skills li { padding-top: 1.2rem; border-top: 2px solid; border-image: linear-gradient(90deg, var(--neon-pink), var(--tropical-cyan)) 1; color: var(--muted); line-height: 1.65; }
.skills strong { display: block; margin-bottom: .6rem; color: var(--text); font-size: 1.25rem; line-height: 1.25; }
.skills .num {
  display: block; margin-bottom: .8rem; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, var(--neon-pink), var(--miami-gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}

/* Kapcsolat: mély éjkék, a gombból kifelé táguló "jel"-gyűrűk, az oldal vége lábléccel */
.scene-contact { text-align: center; }
.scene-contact .scene-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(139,75,197,.35), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(66,214,208,.18), transparent 70%),
    linear-gradient(180deg, #171426 0%, #1b1634 55%, #120f20 100%);
}
.signal {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 40%);
  mask-image: linear-gradient(180deg, transparent 5%, #000 40%);
}
.signal i {
  position: absolute; left: 50%; top: 52%; width: min(90vw, 900px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(66,214,208,.35);
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
  animation: signal 9s cubic-bezier(.2,.6,.3,1) infinite;
}
.signal i:nth-child(2) { animation-delay: 3s; }
.signal i:nth-child(3) { animation-delay: 6s; }
@keyframes signal {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  15% { opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}
.contact-wrap h2::after { margin-left: auto; margin-right: auto; }
.contact-wrap .lead { margin: 0 0 2rem; }
.contact-wrap .links { justify-content: center; }
.discord-chip {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1.1rem .55rem .6rem;
  border: 1px solid rgba(139,148,255,.45); border-radius: 999px;
  background: rgba(88,101,242,.14); color: var(--text);
  font: 600 .95rem/1.2 system-ui, sans-serif; cursor: pointer;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), background .3s, border-color .3s, box-shadow .3s;
}
.discord-chip svg { width: 32px; height: 32px; padding: 6px; flex: none; border-radius: 50%; background: #5865f2; color: #fff; }
.dc-hint { padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.2); color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; min-width: 7.5em; text-align: left; }
.discord-chip:hover, .discord-chip:focus-visible { transform: translateY(-2px); background: rgba(88,101,242,.26); border-color: rgba(139,148,255,.8); box-shadow: 0 10px 26px rgba(88,101,242,.3); }
.discord-chip.done .dc-hint { color: var(--tropical-cyan); }
@media (max-width: 560px) { .discord-chip { width: 100%; justify-content: center; } }
.end-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: center;
  padding: 0 1rem calc(2rem + env(safe-area-inset-bottom));
}
.to-top {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .55rem 1.3rem .55rem .55rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .35s, background .35s, transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}
.to-top svg {
  width: 36px; height: 36px; padding: 9px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--sunset-orange));
  color: var(--midnight-black);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.to-top:hover, .to-top:focus-visible {
  border-color: rgba(66,214,208,.6); background: rgba(66,214,208,.08);
  transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 24px rgba(66,214,208,.18);
}
.to-top:hover svg, .to-top:focus-visible svg { transform: translateY(-2px); }
.scene-contact .scene-bg {
  inset: -20% 0 0 0; transform: none;
  --fade: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.04) 11%, rgba(0,0,0,.15) 22%, rgba(0,0,0,.4) 33%, rgba(0,0,0,.75) 44%, #000 55%);
}
.scene-contact::after { content: none; }

/* Hero → Rólam: a hero alja fokozatosan a közös sötét alapba olvad */
.hero {
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.scene-bg { pointer-events: none; }
.scene-about { z-index: 5; }
.scene-samplera { z-index: 4; }
.scene-velora { z-index: 3; }
.scene-skills { z-index: 2; }
.scene-contact { z-index: 1; }
/* Témához illő háttérrétegek: mind lágyan, maszkkal fakul, így nincs éles szél */
.scene-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.scene-about .scene-bg::before {
  background: url("img/herobg.png") 85% 75% / 150% auto no-repeat;
  filter: blur(16px) saturate(1.15); opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 55% 50%, #000 15%, transparent 72%);
}
.scene-samplera .scene-bg::before {
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 72% 38%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 65% 55% at 72% 38%, #000 0%, transparent 70%);
}
.scene-velora .scene-bg::before {
  background:
    radial-gradient(circle at 12% 28%, rgba(66,214,208,.32) 0 5px, transparent 28px),
    radial-gradient(circle at 34% 72%, rgba(139,75,197,.4) 0 7px, transparent 40px),
    radial-gradient(circle at 58% 22%, rgba(66,214,208,.26) 0 4px, transparent 24px),
    radial-gradient(circle at 78% 62%, rgba(245,43,156,.26) 0 6px, transparent 34px),
    radial-gradient(circle at 90% 20%, rgba(66,214,208,.3) 0 5px, transparent 30px),
    radial-gradient(circle at 46% 48%, rgba(139,75,197,.28) 0 4px, transparent 26px);
  animation: bokeh 24s ease-in-out infinite alternate;
}
@keyframes bokeh { from { transform: translate3d(-1.5%, 1.5%, 0); } to { transform: translate3d(1.5%, -1.5%, 0); } }
.scene-skills .scene-bg::before {
  background: linear-gradient(115deg, transparent 22%, rgba(66,214,208,.09) 34%, transparent 46%, rgba(245,43,156,.08) 62%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, #000 20%, transparent 80%);
}
@media (prefers-reduced-motion: reduce) { .scene-velora .scene-bg::before { animation: none; } }
@media (max-width: 560px) { .scene-about .scene-bg::before { background-size: 260% auto; } }

.scene-about::after { content: none; }
@media (prefers-reduced-motion: reduce) { .signal i { animation: none; opacity: .25; transform: translate(-50%, -50%) scale(.8); } }

/* Oldalsó pontnavigáció */
.dotnav {
  position: fixed; right: clamp(.8rem, 2vw, 1.6rem); top: 50%; z-index: 3500;
  display: grid; gap: 1rem; transform: translateY(-50%);
  opacity: 0; pointer-events: none; transition: opacity .5s;
}
.dotnav.show { opacity: 1; pointer-events: auto; }
.dotnav a { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); transition: background .3s, transform .3s, border-color .3s; }
.dotnav a::before {
  content: attr(data-label); position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: #fff;
  opacity: 0; transition: opacity .25s; text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.dotnav a:hover::before, .dotnav a:focus-visible::before { opacity: 1; }
.dotnav a.active { background: var(--neon-pink); border-color: var(--neon-pink); transform: scale(1.3); box-shadow: 0 0 12px var(--neon-pink); }

@media (max-width: 900px) {
  .about-grid, .proj-grid, .proj-grid.flip { grid-template-columns: 1fr; }
  .proj-grid.flip .proj-copy { order: 0; }
  .featured { order: -1; }
  .proj-grid.flip .featured { order: -1; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .dotnav { display: none; }
  .scene { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-bg { transform: none; will-change: auto; }
}

