:root{
    --bg:#0b1120;
    --text:#f8fafc;
    --blue:#3b82f6;
    --nav-h: 70px;
}

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

body{
    min-height:100vh;
    background:#0b1120;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    color: var(--text);
}

/* FELSŐ MENÜ (Fixen fent) */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(11, 17, 32, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.topbar__inner {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}
.brand span { color: var(--blue); }

.nav {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav a:hover, .nav a.active {
    color: white;
}

/* HAMBURGER GOMB */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 30px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s ease;
}

@media(max-width: 850px) {
    .burger { display: flex; }
    .nav {
        position: fixed;
        top: var(--nav-h);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        background: rgba(11, 17, 32, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav.open { left: 0; }
    .nav a { font-size: 1.4rem; }
    .burger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

/* SPA SZEKCIÓK KEZELÉSE */
.page-section {
    display: none;
    padding-top: var(--nav-h);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-section.active {
    display: block;
}

body::before{
    content:"";
    position:fixed;
    pointer-events:none;
    width:900px;
    height:900px;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    background: radial-gradient(circle, rgba(59,130,246,.16), transparent 45%);
    animation:drift 18s infinite alternate;
    z-index: 0;
}

body::after{
    content:"";
    position:fixed;
    pointer-events:none;
    inset:0;
    background: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size:64px 64px;
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
    mask-image: radial-gradient(circle, black 30%, transparent 85%);
    z-index: 0;
}

main {
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

/* FŐOLDAL HERO */
.hero{
    height: calc(100vh - var(--nav-h));
    display:flex;
    justify-content:center;
    align-items:center;
}

.logo{
    display:flex;
    align-items:center;
    font-size: clamp(4rem,10vw,7rem);
    font-weight:800;
    letter-spacing:-.045em;
    color:white;
    animation:appear 1.5s ease;
}

.logo-dot{
    width:.16em;
    height:.16em;
    margin-left:.20em;
    margin-right:.32em;
    border-radius:50%;
    background:var(--blue);
    box-shadow: 0 0 15px rgba(59,130,246,.9), 0 0 50px rgba(59,130,246,.5);
    animation:pulse 3s infinite;
}

.hu{
    color:#334155;
    animation:huPulse 3s infinite;
}

.section-box{
    position:relative;
    width:min(850px,90%);
    margin:40px auto 100px;
    padding:45px;
    background: rgba(15,23,42,.75);
    border: 1px solid rgba(148,163,184,.15);
    border-radius:25px;
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.section-box h2{ color:white; font-size:36px; margin-bottom:25px; }
.section-box p{ color:#94a3b8; line-height:1.7; font-size:18px; margin-bottom:15px; }

/* PROJEKTEK Kártya */
.project-card{
    margin-top:30px;
    padding:25px;
    border-radius:22px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(148,163,184,.12);
}

.project-preview{
    width:100%;
    min-height:320px;
    border-radius:18px;
    overflow:hidden;
    margin-bottom:25px;
    background:#020617;
    display:flex;
    justify-content:center;
    align-items:center;
}

.project-preview img{ width:100%; height:100%; object-fit:contain; background:#020617; transition:.5s; }
.project-preview:hover img{ transform:scale(1.03); }

.project-header{ display:flex; align-items:center; gap:18px; margin-bottom:20px; }
.project-logo{ width:75px; height:75px; object-fit:contain; padding:8px; border-radius:18px; background: rgba(255,255,255,.05); box-shadow: 0 0 25px rgba(59,130,246,.25); }
.project-header h3{ color:white; font-size:28px; }
.project-tags{ display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.project-tags span{ padding:7px 14px; border-radius:20px; background: rgba(59,130,246,.2); color:#93c5fd; font-size: 13px; }
.project-button{ display:inline-block; padding:13px 24px; border-radius:12px; background:#3b82f6; color:white; text-decoration:none; transition:.3s; }
.project-button:hover{ transform:translateY(-3px); box-shadow: 0 10px 30px rgba(59,130,246,.4); }

@keyframes drift{ from{ transform:translate(-100px,-50px); } to{ transform:translate(100px,70px); } }
@keyframes pulse{ 50%{ transform:scale(1.15); } }
@keyframes huPulse{ 50%{ color:#94a3b8; } }
@keyframes appear{ from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:translateY(0); } }

@media(max-width:700px){
.section-box{ padding:30px; }
.project-header{ align-items:flex-start; }
.project-preview{ min-height:220px; }
}