/* ============================================================
   TxJakob — About-me site
   Dark + neon-gradient · glassmorphism · animated mesh
   No external fonts (GDPR-friendly, self-hosted system stack)
   ============================================================ */

:root {
  --bg:            #05060a;
  --bg-soft:       #0a0b12;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #e9ecf5;
  --text-dim:      #a3a9bd;
  --text-faint:    #6c7285;

  --violet: #7c3aed;
  --cyan:   #06b6d4;
  --pink:   #ec4899;
  --grad:   linear-gradient(120deg, #7c3aed 0%, #06b6d4 50%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,58,237,.18), rgba(6,182,212,.18), rgba(236,72,153,.18));

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --radius:  20px;
  --radius-s: 12px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
::selection { background: rgba(124, 58, 237, .45); color: #fff; }

/* ---------- Animated background ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(124,58,237,.15), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(6,182,212,.12), transparent 55%),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.orb-1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw;  background: radial-gradient(circle, #7c3aed, transparent 70%); animation: drift1 26s var(--ease) infinite alternate; }
.orb-2 { width: 40vw; height: 40vw; right: -6vw; top: 12vh;  background: radial-gradient(circle, #06b6d4, transparent 70%); animation: drift2 32s var(--ease) infinite alternate; }
.orb-3 { width: 38vw; height: 38vw; left: 30vw; bottom: -14vw; background: radial-gradient(circle, #ec4899, transparent 70%); animation: drift3 30s var(--ease) infinite alternate; }

@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, 8vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(8vw, -12vh) scale(1.2); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}
.noise {
  position: absolute; inset: 0; opacity: .04; mix-blend-mode: overlay;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* cursor glow (desktop only) */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: -1;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.10), transparent 65%);
  transform: translate(-50%, -50%); pointer-events: none;
  transition: opacity .4s ease; opacity: 0;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--grad); z-index: 100;
  box-shadow: 0 0 12px rgba(124,58,237,.7);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 5vw, 3rem);
  transition: padding .3s var(--ease), background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: .7rem; padding-bottom: .7rem;
  background: rgba(6, 7, 12, .6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  background-clip: padding-box;
}
.brand-mark.small { width: 30px; height: 30px; font-size: .95rem; }
.brand-name {
  letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-size: .93rem; color: var(--text-dim); position: relative; padding: .2rem 0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--grad); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  padding: .45rem .7rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: border-color .25s ease, background .25s ease;
}
.lang-toggle:hover { border-color: var(--border-strong); }
.lang-opt { transition: color .2s ease; }
.lang-opt.active { color: var(--text); text-shadow: 0 0 14px rgba(6,182,212,.6); }
.lang-sep { color: var(--text-faint); }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 2rem);
}
.section-head {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.8rem;
}
.section-index {
  font-family: var(--font-mono); font-size: .85rem; color: var(--cyan);
  border: 1px solid var(--border); border-radius: 8px; padding: .2rem .5rem;
  background: rgba(6,182,212,.06);
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 7rem clamp(1.2rem, 5vw, 2rem) 3rem; position: relative;
}
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .82rem; color: var(--text-dim);
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 1.6rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22e0a1;
  box-shadow: 0 0 0 0 rgba(34,224,161,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,224,161,.5); }
  70% { box-shadow: 0 0 0 9px rgba(34,224,161,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,224,161,0); }
}
.hero-title { font-size: clamp(3.4rem, 13vw, 8rem); font-weight: 800; letter-spacing: -.04em; }
.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-roles {
  margin-top: 1rem; font-size: clamp(1.15rem, 3.5vw, 1.7rem); font-weight: 600;
  display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap;
  color: var(--text);
}
.role-static { color: var(--text-dim); font-weight: 500; }
.role-rotator {
  position: relative; min-width: 1ch;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role-word { display: inline-block; animation: roleIn .5s var(--ease); }
@keyframes roleIn { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }

.hero-desc {
  margin: 1.6rem auto 0; max-width: 620px; color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: .85rem 1.6rem; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .3s ease, background .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn-primary {
  color: #fff; position: relative;
  background: var(--grad); background-size: 160% auto;
  box-shadow: 0 8px 30px -8px rgba(124,58,237,.6);
}
.btn-primary:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 14px 40px -8px rgba(236,72,153,.55); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(.99); }

.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; letter-spacing: .2em;
}
.mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--border-strong); border-radius: 12px; position: relative;
}
.mouse::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px; background: var(--cyan);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 6px; } 60% { opacity: 0; top: 16px; } 100% { opacity: 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about-text .lead { font-size: 1.25rem; color: var(--text); margin-bottom: 1.1rem; }
.about-text p { color: var(--text-dim); margin-bottom: 1rem; }
.about-stats { list-style: none; display: grid; gap: 1rem; }
.about-stats li {
  padding: 1.4rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(6px);
}
.stat-num {
  display: block; font-size: 2.6rem; font-weight: 800; font-family: var(--font-mono);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-dim); font-size: .9rem; }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  position: relative; overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.16), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.stack-card { padding: 1.6rem; transition: transform .3s var(--ease), border-color .3s ease; }
.stack-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stack-icon { font-size: 1.7rem; margin-bottom: .7rem; filter: drop-shadow(0 4px 12px rgba(124,58,237,.4)); }
.stack-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.stack-card p { color: var(--text-dim); font-size: .92rem; margin-bottom: 1rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim);
  padding: .3rem .6rem; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.chips.small li { font-size: .7rem; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.project { padding: 1.7rem 1.7rem 1.9rem; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .4s ease; }
.project.wide { grid-column: 1 / -1; }
.project:hover { border-color: var(--border-strong); box-shadow: 0 20px 50px -20px rgba(124,58,237,.4); }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.project-tag {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--cyan);
  padding: .25rem .6rem; border-radius: 7px; background: rgba(6,182,212,.08); border: 1px solid rgba(6,182,212,.18);
}
.project-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(236,72,153,.7); }
.project h3 { font-size: 1.5rem; margin-bottom: .15rem; }
.project-sub { color: var(--text-faint); font-family: var(--font-mono); font-size: .82rem; margin-bottom: .9rem; }
.project p { color: var(--text-dim); font-size: .95rem; margin-bottom: 1.2rem; flex: 1; }
.project code { font-family: var(--font-mono); font-size: .85em; padding: .05em .35em; border-radius: 5px; background: rgba(255,255,255,.07); color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.contact-intro .lead { font-size: 1.3rem; color: var(--text); margin-bottom: 1rem; }
.contact-intro p { color: var(--text-dim); margin-bottom: 1.6rem; }
.contact-meta { list-style: none; display: grid; gap: .8rem; }
.contact-meta li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
.cm-key { color: var(--text-faint); font-family: var(--font-mono); font-size: .8rem; }
.contact-meta .ok { color: #22e0a1; }

.contact-form { padding: 1.8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: .45rem; font-weight: 500; }
.field label .opt { color: var(--text-faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--text);
  background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: .8rem .9rem; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(6,182,212,.6);
  box-shadow: 0 0 0 3px rgba(6,182,212,.14); background: rgba(0,0,0,.35);
}
.field input.invalid, .field textarea.invalid { border-color: rgba(236,72,153,.7); box-shadow: 0 0 0 3px rgba(236,72,153,.14); }
.form-status { margin-top: 1rem; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: #22e0a1; }
.form-status.err { color: #ff6b8a; }
.btn.loading { opacity: .7; pointer-events: none; }

/* ---------- Consent + link buttons ---------- */
.consent {
  display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
  font-size: .82rem; color: var(--text-dim); line-height: 1.5;
}
.consent input[type="checkbox"] {
  flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--violet); cursor: pointer;
}
.consent-hint { margin: .6rem 0 1.2rem; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--cyan); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.link-btn:hover { color: var(--pink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1.2rem, 5vw, 2rem);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
  color: var(--text-faint); font-size: .88rem;
}
.footer-inner p { flex: 1; min-width: 200px; }
.footer-links { display: flex; align-items: center; gap: 1.4rem; }
.to-top { color: var(--text-dim); font-family: var(--font-mono); font-size: .82rem; transition: color .2s ease; }
.to-top:hover { color: var(--cyan); }

/* ---------- Privacy modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(3, 4, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(760px, 100%); max-height: 88vh; border-radius: var(--radius);
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.modal-scroll { max-height: 88vh; overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.6rem); }
.legal h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .3rem; }
.legal-meta { color: var(--text-faint); font-size: .85rem; margin-bottom: 1.6rem; }
.legal h3 { font-size: 1.02rem; margin: 1.5rem 0 .4rem; color: var(--text); }
.legal p { color: var(--text-dim); font-size: .92rem; margin-bottom: .5rem; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--pink); }
.legal strong { color: var(--text); font-weight: 600; }
/* language-gated legal text */
.legal-en { display: none; }
body[data-lang="en"] .legal-de { display: none; }
body[data-lang="en"] .legal-en { display: block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   WOW / FX layer — particles, scramble, spotlight, magnetic,
   confetti, party mode, orchestrated hero entrance
   ============================================================ */

/* particle canvas sits in the hero, above the ambient orbs */
#fx-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.scroll-hint { z-index: 2; }

/* orchestrated hero entrance */
.hero-inner > * { animation: heroIn .85s var(--ease) backwards; }
.hero-inner .eyebrow  { animation-delay: .05s; }
.hero-inner .hero-title { animation: heroTitleIn 1.05s var(--ease) backwards; animation-delay: .15s; }
.hero-inner .hero-roles { animation-delay: .38s; }
.hero-inner .hero-desc  { animation-delay: .52s; }
.hero-inner .hero-cta   { animation-delay: .66s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(26px); letter-spacing: .3em; filter: blur(12px); }
  to   { opacity: 1; transform: none; letter-spacing: -.04em; filter: blur(0); }
}

/* scramble/decode characters in the role rotator */
.role-rotator .scr { color: #22d3ee; -webkit-text-fill-color: #22d3ee; opacity: .85; }

/* pointer-tracked spotlight glare on tilt cards */
.project.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s ease; z-index: 1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 45%);
}
.project.tilt:hover::after { opacity: 1; }

/* confetti + toast */
.fx-confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.fx-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 22px); z-index: 320;
  background: rgba(10, 11, 18, .92); border: 1px solid var(--border-strong); color: var(--text);
  padding: .7rem 1.15rem; border-radius: 999px; font-size: .9rem; pointer-events: none;
  backdrop-filter: blur(12px); opacity: 0;
  transition: opacity .35s ease, transform .35s var(--ease);
  box-shadow: 0 14px 44px -12px rgba(124, 58, 237, .6);
}
.fx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* party mode (konami) */
@keyframes partyHue { to { filter: hue-rotate(360deg); } }
body.party .bg-mesh { animation: partyHue 6s linear infinite; }
body.party .orb { filter: blur(72px) saturate(1.5); }
body.party .gradient-text { animation: shine 3s linear infinite, partyHue 4s linear infinite; }
body.party .brand-name,
body.party .stat-num,
body.party .role-rotator { animation: partyHue 4s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .hero-inner .hero-title { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-top: 6rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}
