/* =========================================================
   Mr.roblox — Stílus
   Dark, sleek, meme-menő. ✌️
   ========================================================= */

:root {
  /* Színek */
  --bg:        #0a0a0b;
  --bg-2:      #101013;
  --surface:   #16161b;
  --surface-2: #1d1d24;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #f4f4f6;
  --text-dim:  #a1a1aa;
  --text-mut:  #6b6b76;

  --accent:    #ff3b3b;   /* Roblox red vibe */
  --accent-2:  #ff7a45;
  --cyan:      #35d0ff;

  /* Rács / felezők */
  --container: 1160px;
  --radius:    18px;
  --radius-sm: 12px;

  --shadow:    0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section { padding-block: clamp(72px, 12vw, 140px); }

/* ---------- Háttér effektek ---------- */
.bg-grid, .bg-glow, .bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  background:
    radial-gradient(60% 50% at 75% 8%, rgba(255, 59, 59, 0.20), transparent 60%),
    radial-gradient(50% 40% at 15% 25%, rgba(53, 208, 255, 0.12), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(255, 122, 69, 0.10), transparent 60%);
}
.bg-noise {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Közös elemek ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.25rem; }

.section__head { max-width: 620px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__sub { color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Gombok ---------- */
.btn {
  --pad-y: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 59, 59, 0.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(255, 59, 59, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--text-mut); background: rgba(255, 255, 255, 0.06); }

/* ---------- Navigáció ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; }
.brand__img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.brand__name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__wave { display: inline-block; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__cta {
  color: #fff !important;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px -10px rgba(255, 59, 59, 0.7);
}
.nav__cta:hover { filter: brightness(1.08); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 150px; padding-bottom: 90px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6.5vw, 5rem); margin-bottom: 22px; }
.hero__lead { color: var(--text-dim); font-size: 1.12rem; max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__meta { display: flex; align-items: center; gap: 22px; }
.hero__meta div:not(.hero__meta-sep) { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.hero__meta span { color: var(--text-mut); font-size: 0.82rem; margin-top: 4px; }
.hero__meta-sep { width: 1px; height: 34px; background: var(--line-2); }

.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
}

/* Portré */
.hero__visual { display: flex; justify-content: center; }
.portrait { position: relative; width: min(420px, 100%); aspect-ratio: 543 / 578; }
.portrait__frame {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ring {
  position: absolute;
  inset: -14px;
  border-radius: 32px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--cyan), var(--accent));
  filter: blur(22px);
  opacity: 0.45;
  animation: spin 12s linear infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.badge--live { top: 18px; left: -18px; color: #6effa1; animation-delay: -1.5s; }
.badge--live::first-letter { color: #22c55e; }
.badge--tag { bottom: 22px; right: -14px; color: var(--cyan); animation-delay: -3s; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line-2);
  border-radius: 14px;
  display: none;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) { .scroll-hint { display: block; } }

/* ---------- STATOK ---------- */
.stats { padding-block: clamp(48px, 7vw, 80px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 32px 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.stat:hover { transform: translateY(-6px); border-color: var(--line-2); }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { color: var(--text-dim); margin-top: 10px; font-size: 0.95rem; }

/* ---------- RÓLAM ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.about__card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.about__card img { width: 100%; aspect-ratio: 543 / 578; object-fit: cover; }
.about__card-glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(255, 59, 59, 0.18)); pointer-events: none; }
.about__text p { color: var(--text-dim); margin-top: 16px; font-size: 1.06rem; }
.about__text em { color: var(--text); font-style: normal; background: linear-gradient(transparent 70%, rgba(255,59,59,0.35) 0); padding: 0 2px; }
.about__list { margin-top: 26px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.tick {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  background: rgba(255, 59, 59, 0.14);
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------- KÉPESSÉGEK ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  padding: 30px 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 59, 59, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-8px); border-color: var(--line-2); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- IDÉZET ---------- */
.quote blockquote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.quote cite { display: block; margin-top: 22px; color: var(--accent); font-style: normal; font-weight: 500; }

/* ---------- GALÉRIA ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery__item--wide { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 20px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* ---------- CSATLAKOZÁS ---------- */
.join__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 28px;
  overflow: hidden;
}
.join__glow {
  position: absolute; inset: -40% -20% auto;
  height: 60%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 59, 59, 0.25), transparent 70%);
  pointer-events: none;
}
.join__inner p { color: var(--text-dim); margin: 16px auto 30px; max-width: 48ch; }
.join__form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.join__form input {
  flex: 1 1 220px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.join__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.15); }
.join__form input::placeholder { color: var(--text-mut); }
.join__note { min-height: 1.4em; margin-top: 18px; font-weight: 600; color: #6effa1; }

/* ---------- LÁBLÉC ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--sm .brand__img { width: 30px; height: 30px; }
.brand--sm .brand__name { font-size: 0.95rem; }
.footer__copy { color: var(--text-mut); font-size: 0.9rem; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }

/* ---------- Reveal animációk ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reszponzív ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__visual { order: 1; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; margin: 0 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 14px 16px; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-row: auto; }
  .hero__meta { gap: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ---------- Mozgás csökkentése ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
