/* A HTML és a BODY is legyen teljes szélességű és magasságú */
html, body {
    background-color: #000;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    overflow-x: hidden;
}

/* MOBIL – marad a színes háttér */
.topbar {
    width: 100%;
    height: 150px;
    background: url("webp/header-bg.webp") center top no-repeat;
    background-size: 100% 100%;
    background-repeat: no-repeat;

    display: flex;
    align-items: center; /* mobilon is középre teszi, de a margin-bottom eltolja */
    justify-content: space-between;

    padding: 0 16px;
    box-sizing: border-box;

    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Logó */
.logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 40px; /* MOBILON KELL */
}

/* Menü gomb */
.menu-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Menü ikon */
.menu-icon {
    height: 22px;
    width: auto;
    display: block;
    margin-bottom: 43px; /* MOBILON KELL */
}

/* PC – sima fekete háttér, nincs kép */
@media (min-width: 900px) {
    .topbar {
        background: #000;
        background-image: none;
        height: 100px;

        /* PC-n valódi középre igazítás */
        align-items: center;
    }

    /* PC-n töröljük a margin-bottom-ot */
    .logo,
    .menu-icon {
        margin-bottom: 0;
    }
}

.hero-mobile {
    width: 100%;
    margin-top: 93px; /* betűrés a header alá */
    position: relative;
    z-index: 1;
}

.hero-mobile-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-pc-img {
    width: 100%;
    height: auto;
    display: none;
}

@media (min-width: 900px) {

    .hero-mobile {
        display: none;
    }

    .hero-pc-img {
        display: block;
    }

    .hero-desktop {
        width: 100%;
        height: auto;
        overflow: hidden;
        margin-top: 100px;
        position: relative;
        z-index: 1;
    }
}

/* MOBIL – marad a cover */
.ai-section {
    width: 100%;
    background: url("webp/hero-ai.webp") center top no-repeat;
    background-size: cover;
    padding: 60px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    margin-top: -120px;
}


.ai-content {
    max-width: 900px;
    margin-top: 50px;
    margin-bottom: 30px;
    margin-left: auto;
    text-align: left;
}

.ai-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 5% 32px 5%;
    color: white;
}

.ai-item p{
    font-size: 19px;
    margin: 5px 0 0 5px;
}

.ai-icon {
    padding: 10px 0 0 0;
    width: 40px;
    height: auto;
}

.ai-logo{
    width: 85%;
    margin: 10px 7.5% 30px 7.5%;
}

.ai-compare {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto;
    position: relative;
}

.compare-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.compare-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    border-radius: 12px;
}

.compare-before {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 1;
}

.compare-after {
    position: absolute;
    inset: 0;
    width: 100%;
    clip-path: inset(0 0 0 50%); /* kezdetben fél kép látszik */
    z-index: 2;
}

/* A húzható slider vonal */
.compare-slider {
    position: absolute;
    left: 50%;
    top: calc(50% - 0); /* 75px / 2 */
    width: 4px;
    height: 275px;
    background: linear-gradient(
        to bottom,
        rgba(50, 74, 178),
        rgba(94, 37, 158),
        rgba(139, 0, 139)
    );
    cursor: ew-resize;
    z-index: 3;
    border-radius: 4px;
}

/* A fogantyú SVG */
.slider-handle {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    pointer-events: none; /* fontos! ne blokkolja a húzást */
}

@media (min-width: 900px) {

    .ai-section {
        background: #000;
        margin-top: 0;
        padding: 80px 0;
    }

    /* Két oszlop: bal szöveg + logó, jobb slider */
    .ai-content {
        max-width: 1300px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center; /* egy magasságban */
    }

    /* Bal oldali oszlop: logó + szövegek */
    .ai-text {
        display: flex;
        flex-direction: column;
        justify-content: center; /* függőlegesen középre */
        gap: 24px;
        padding: 0 0 75px 0;
        margin: 0 0 0 40px;
        height: 350px; /* ugyanannyi, mint a slider */
    }

    /* Logó fent középen */
    .ai-logo {
        width: 400px;
        margin: 0 auto 20px auto;
        display: block;
    }

    /* Szöveges elemek */
    .ai-item {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 0;
    }

    .ai-item p {
        font-size: 20px;
        margin: 0;
    }

    .ai-icon {
        width: 40px;
        height: auto;
    }

    /* Jobb oldali oszlop: slider */
    .ai-compare {
        width: 100%;
        margin: 0;
        padding: 0 40px;
    }

    .compare-container {
        height: 469px; /* ugyanannyi, mint a szöveges blokk */
    }

    /* A húzható slider vonal */
    .compare-slider {
        height: 450px;
    }
}

.team-section {
    width: 100%;
    margin-top: -71px;
}

.team-wrapper {
    position: relative; /* fontos! */
    width: 100%;
}

.team-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* A gomb */
.team-button {
    position: absolute;
    bottom: 200px; /* a kép aljától számítva */
    left: 50%;
    transform: translateX(-50%);
    background: #BA0053;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* PC – másik kép + másik gombpozíció */
@media (min-width: 900px) {

    .team-section {
        margin-top: 0;
    }

    .team-img {
        content: url("webp/hero-team-pc.webp");
    }

    .team-button {
        left: 87%;
    }
}

.events-section {
    width: 100%;
    margin-top: -63px;
    position: relative;
    z-index: 10;
}

.events-wrapper {
    position: relative;
    width: 100%;
}

.events-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Szöveg ráhelyezése a képre */
.events-content {
    position: absolute;
    top: 50%;              /* függőleges pozíció */
    left: 50%;             /* vízszintes pozíció */
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

.events-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.events-content p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

/* PC – háttér eltüntetése */
@media (min-width: 900px) {
    .events-bg {
        display: none;
    }

    .events-section {
        background: #000; /* ha kell sima fekete háttér */
        margin-top: 0;
        padding: 80px 0;
    }

    .events-content {
        position: static; /* már nem kell absolute */
        transform: none;
        margin: 0 auto;
        text-align: center;
        color: white;
    }
}

.archive-section {
    width: 100%;
    margin-top: -63px;
    position: relative;
    z-index: 9;
}

.archive-wrapper {
    position: relative;
    width: 100%;
}

.archive-img {
    width: 100%;
    height: auto;
    display: block;
}

/* A gomb */
.archive-button {
    position: absolute;
    bottom: 200px; /* a képen belüli pozíció */
    left: 50%;
    transform: translateX(-50%);
    background: #D2B48C;
    color: #000;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* PC – másik kép + másik gombpozíció */
@media (min-width: 900px) {

    .archive-section {
        margin-top: 0;
    }

    .archive-img {
        content: url("webp/hero-archive-pc.webp");
    }

    .archive-button {
        left: 80%;
    }
}

.footer-section {
    width: 100%;
    margin-top: -65px;
    position: relative;
    z-index: 10;
    margin-bottom: 140px;
}

.footer-wrapper {
    position: relative;
    width: 100%;
}

.footer-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Tartalom ráhelyezése */
.footer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 90%;
    max-width: 900px;
}

.footer-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
    padding: 200px 0 0 0;
}

.footer-logo {
    width: 40%;
    margin: 0 0 0 20px;
    display: block;
}

.footer-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-links {
    display: block;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: white;
    display: block;
    font-size: 16px;
    text-decoration: underline;
    font-weight: 0;
    margin: 5px 0 0 20px;
}

.footer-meta p {
    font-size: 16px;
    margin: 4px 0 0 0;
}

@media (min-width: 900px) {

    /* Háttér eltüntetése */
    .footer-bg {
        display: none;
    }

    .footer-logo {
        width: 20%;
        margin: 0 0 0 20px;
        display: block;
    }

    .footer-content h2 {
        padding: 0 0 0 0;
    }

    /* Sima háttér (opcionális) */
    .footer-section {
        background: #000;
        margin: 20px 0 20px 20px;
        padding: 0 0 0 0;
    }

    /* Tartalom visszaállítása normál pozícióba */
    .footer-content {
        position: static;
        transform: none;
        color: white;
    }
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 900;
}

.menu-overlay.open {
    display: block;
}

.menu-sidebar {
    position: fixed;
    top: 0;
    right: -240px;
    width: 240px;
    max-width: 80%;
    height: 100vh;
    background: #000;
    padding: 28px 22px;
    box-sizing: border-box;
    transition: right 0.25s ease;
    z-index: 1000;

    display: flex;
    flex-direction: column;
}

.menu-sidebar.open {
    right: 0;
}

.menu-header {
    margin-bottom: 32px;
    text-align: center;
}

.menu-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

/* A lista most már scrollozható, ha kell */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 26px;

    flex-grow: 1;
    overflow-y: auto; /* <<< EZ oldja meg a kilógást */
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

.menu-icon-svg {
    width: 30px;
    height: auto;
}

.back-icon {
    width: 20px;
    height: auto;
}