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

  :root {
    --bg: #080b0f;
    --bg2: #0e1318;
    --card: #111720;
    --border: #1e2a38;
    --accent: #00e5ff;
    --accent2: #7c3aed;
    --text: #e8edf3;
    --muted: #5a7080;
    --mono: 'Space Mono', monospace;
    --sans: 'Syne', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    cursor: none;
  }

/* NOISE OVERLAY */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .4;
  }












  /* CURSOR */
  #cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s, background .2s;
    mix-blend-mode: difference;
  }
  #cursor.big {
    width: 40px; height: 40px;
    background: rgba(0,229,255,0.3);
    border: 1px solid var(--accent);
  }










  

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 4rem;
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s, backdrop-filter .3s;
  }
  nav.scrolled {
    border-color: var(--border);
    background: rgba(8,11,15,.85);
    backdrop-filter: blur(16px);
  }
  .nav-logo { display: flex; align-items: center; gap: .5rem; }
  .nav-logo img {
    width: 5rem;
    border-radius: 50%;
  }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--accent); }













  /* HERO */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    gap: 4rem;
  }

  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 70% 50%, rgba(124,58,237,.12) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 30% 80%, rgba(0,229,255,.07) 0%, transparent 60%);
    pointer-events: none;
  }

  .hero-grid-lines {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  .hero-left { position: relative; z-index: 1; }

  .hero-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(0,229,255,.3);
    padding: .35rem .8rem;
    border-radius: 2px;
    margin-bottom: 2rem;
    animation: fadeUp .6s ease both;
  }

  .hero-name {
    font-family: var(--sans);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.02em;
    animation: fadeUp .6s .1s ease both;
  }
  .hero-name .line2 {
    display: block;
    -webkit-text-stroke: 1px rgba(0,229,255,.5);
    color: transparent;
  }

  .hero-sub {
    font-family: var(--mono);
    font-size: .9rem;
    color: var(--muted);
    margin-top: 1.5rem;
    line-height: 1.8;
    max-width: 400px;
    animation: fadeUp .6s .2s ease both;
  }
  .hero-sub span { color: var(--accent); }

  .hero-cta {
    display: flex; gap: 1rem; margin-top: 2.5rem;
    animation: fadeUp .6s .3s ease both;
  }
  .btn {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .85rem 2rem;
    border-radius: 2px;
    transition: all .2s;
    cursor: none;
  }
  .btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 700;
  }
  .btn-primary:hover { background: #fff; transform: translateY(-2px); }
  .btn-ghost {
    border: 1px solid var(--border);
    color: var(--muted);
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

  .hero-right {
    position: relative; z-index: 1;
    display: flex; justify-content: center; align-items: center;
  }

  .hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    animation: fadeUp .6s .2s ease both;
  }
  .hero-card-header {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot.r { background: #ff5f57; }
  .dot.y { background: #febc2e; }
  .dot.g { background: #28c840; }
  .hero-card-title {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
    margin-left: auto;
  }

  .code-line {
    font-family: var(--mono);
    font-size: .8rem;
    line-height: 1.9;
    color: var(--muted);
  }
  .code-line .kw { color: #7c3aed; }
  .code-line .str { color: var(--accent); }
  .code-line .fn { color: #f59e0b; }
  .code-line .cm { color: #2e4050; }

  .stats-row {
    display: grid; grid-template-columns: repeat(2fr);
    gap: 1px;
    background: var(--border);
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .stat {
    background: var(--bg2);
    padding: 1rem;
    text-align: center;
  }
  .stat-num {
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
  }
  .stat-label {
    font-family: var(--mono);
    font-size: .62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .2rem;
  }






















  /* SECTION COMMON */
  section { position: relative; z-index: 1; }

  .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
  }

  .section-label {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--accent);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .75rem;
  }

  .section-title {
    font-family: var(--sans);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
  }



















  /* WORKS */
  #munkak { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  .works-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }

  .works-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

  .work-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
  }
  .work-card:hover { border-color: var(--accent); transform: translateY(-4px); }

  .work-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .work-thumb-bg {
    position: absolute; inset: 0;
    transition: transform .4s;
  }
  .work-card:hover .work-thumb-bg { transform: scale(1.05); }

  .work-num {
    position: absolute; top: 1rem; left: 1rem;
    font-family: var(--mono);
    font-size: .65rem;
    color: rgba(255,255,255,.3);
    letter-spacing: .1em;
  }

  .work-preview {
    position: relative; z-index: 1;
    font-family: var(--mono);
    font-size: .7rem;
    color: rgba(255,255,255,.6);
    background: rgba(0,0,0,.4);
    padding: .4rem .8rem;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,.1);
  }

  .work-body { padding: 1.5rem; }
  .work-title {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
  }
  .work-desc {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  .work-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
  .tag {
    font-family: var(--mono);
    font-size: .62rem;
    color: var(--accent);
    border: 1px solid rgba(0,229,255,.25);
    padding: .2rem .6rem;
    border-radius: 2px;
    letter-spacing: .05em;
  }



























  /* ABOUT */
  #rolam { background: var(--bg); }

  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

  .about-left {}

  .about-text {
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 2rem;
  }
  .about-text strong { color: var(--text); }

  .skills-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 2rem;
  }
  .skill-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: .75rem 1rem;
    display: flex; align-items: center; gap: .6rem;
  }
  .skill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  .skill-name {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--text);
  }

  .about-right {}

  .timeline { position: relative; padding-left: 1.5rem; }
  .timeline::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
  }
  .tl-item { margin-bottom: 2rem; position: relative; }
  .tl-dot {
    position: absolute; left: -1.88rem; top: .3rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  .tl-year {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--accent);
    letter-spacing: .1em;
    margin-bottom: .3rem;
  }
  .tl-title {
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .3rem;
  }
  .tl-desc {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.7;
  }


























  /* CONTACT */
  #kapcsolat { background: var(--bg2); border-top: 1px solid var(--border); }

  .contact-wrap {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .contact-wrap .section-title { margin-top: .75rem; }

  .contact-sub {
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.8;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
  }

  .contact-form {
    display: flex; flex-direction: column; gap: 1rem;
    text-align: left;
  }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

  .form-group { display: flex; flex-direction: column; gap: .4rem; }
  .form-label {
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .form-input, .form-textarea {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: .82rem;
    padding: .85rem 1rem;
    border-radius: 2px;
    outline: none;
    transition: border-color .2s;
  }
  .form-input:focus, .form-textarea:focus { border-color: var(--accent); }
  .form-textarea { resize: vertical; min-height: 130px; }
  .form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }

  .form-submit {
    display: flex; justify-content: center; margin-top: .5rem;
  }

  .contact-links {
    display: flex; justify-content: center; gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  .contact-link {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .08em;
    transition: color .2s;
    display: flex; align-items: center; gap: .4rem;
  }
  .contact-link:hover { color: var(--accent); }






















  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 4rem;
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-text {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
  }
  .footer-text span { color: var(--accent); }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }





























  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; flex-direction: row; justify-content: center; gap: 2rem; }
    .nav-logo { img { width: 3rem;  border-radius: 15%;} }
    .nav-links { gap: 1.5rem; }
    #hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; }
    .hero-right { display: none; }
    .works-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    .contact-link { font-size: .65rem; }
    #cursor.big { display: none; }
    #cursor.small { display: none; }
    #cursor { display: none; }
  }