.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(183, 255, 0, 0.16);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: clamp(120px, 14vw, 220px);
    pointer-events: none;
    background: radial-gradient( ellipse at center top, rgba(183, 255, 0, 0.1), rgba(183, 255, 0, 0.028) 34%, transparent 76%), linear-gradient( to bottom, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.18) 48%, transparent 100%);
}

.header-glow {
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(183, 255, 0, 0.9), transparent);
    box-shadow: 0 0 20px rgba(183, 255, 0, 0.45);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(183, 255, 0, 0.2));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    position: relative;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.88rem;
    padding: 31px 22px;
    transition: color var(--transition), background var(--transition), text-shadow var(--transition);
}

.main-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(183, 255, 0, 0.1), rgba(183, 255, 0, 0.02));
    opacity: 0;
    transform: skewX(-12deg);
    transition: opacity var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    box-shadow: 0 0 14px rgba(183, 255, 0, 0.75);
    transition: opacity var(--transition), transform var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--color-primary);
    text-shadow: 0 0 16px rgba(183, 255, 0, 0.42);
}

.main-nav a:hover::before,
.main-nav a.is-active::before {
    opacity: 1;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(183, 255, 0, 0.55);
    background: rgba(183, 255, 0, 0.12);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 0 18px rgba(183, 255, 0, 0.22);
}


/* FIX FŐOLDALI HÁTTÉR */

.home-page {
    background: #020202;
}

.home-page main,
.home-page .site-footer {
    position: relative;
    z-index: 2;
}

.home-fixed-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 36%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.56) 100%), url("../assets/images/backgrounds/main-bg.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}


/* EGYSÉGES, TELJES OLDALAS ÁRNYÉKOLÁS - NINCS SZAKASZOS SÖTÉTÍTÉS */

.home-fixed-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 14%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.24) 84%, rgba(0, 0, 0, 0.68) 100%), radial-gradient( ellipse at center top, rgba(183, 255, 0, 0.04), transparent 40%);
}


/* CSAK ALSÓ LEZÁRÁS / FINOM RAGYOGÁS */

.home-fixed-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(220px, 28vw, 420px);
    background: radial-gradient( ellipse at center bottom, rgba(183, 255, 0, 0.08), rgba(183, 255, 0, 0.022) 34%, transparent 72%), linear-gradient( to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.34) 48%, transparent 100%);
}


/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: transparent;
}

.hero::before,
.hero::after,
.hero-dark-layer,
.hero-green-glow {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(36px, 5vw, 68px);
    align-items: center;
    padding-block: 92px;
}

.hero-left {
    max-width: 670px;
}

.hero-main-logo {
    width: min(100%, 520px);
    height: auto;
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(183, 255, 0, 0.12));
    margin-bottom: 26px;
}

.hero-callout {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: clamp(42px, 8vw, 110px);
    row-gap: 4px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 950;
    letter-spacing: 0.04em;
    font-size: clamp(1.25rem, 2.4vw, 2.05rem);
}

.hero-callout span {
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.92), 0 0 10px rgba(255, 255, 255, 0.08);
}

.hero-callout strong {
    color: var(--color-primary);
    text-shadow: 0 0 14px rgba(183, 255, 0, 0.52), 0 4px 18px rgba(0, 0, 0, 0.9);
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 650px;
    border-top: 1px solid rgba(183, 255, 0, 0.28);
    border-bottom: 1px solid rgba(183, 255, 0, 0.18);
    background: transparent;
    margin-bottom: 30px;
}

.hero-highlight-item {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 10px;
    min-height: 108px;
    padding: 18px 12px 14px;
    text-align: center;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.74rem;
    line-height: 1.25;
}

.hero-highlight-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient( 180deg, transparent, rgba(183, 255, 0, 0.46), transparent);
}

.hero-highlight-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(183, 255, 0, 0.4));
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* KÖSZÖNTŐ BLOKK - NINCS DOBOZ, NINCS PEREM, CSAK ELMOSOTT AURA */

.hero-right {
    position: relative;
    max-width: 680px;
    justify-self: end;
    padding: clamp(18px, 2vw, 26px);
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
}

.hero-right::before {
    content: "";
    position: absolute;
    inset: -26px -28px;
    z-index: -1;
    border-radius: 42px;
    background: radial-gradient( ellipse at center, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0) 82%);
    filter: blur(24px);
    opacity: 0.95;
    pointer-events: none;
}

.hero-right::after {
    display: none;
}

.hero-label {
    text-shadow: 0 0 12px rgba(183, 255, 0, 0.44), 0 4px 14px rgba(0, 0, 0, 0.96);
}

.hero h1 {
    font-size: clamp(2.55rem, 6vw, 5.2rem);
    line-height: 1.02;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.98), 0 0 10px rgba(255, 255, 255, 0.06);
}

.hero p {
    max-width: 650px;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.96), 0 0 8px rgba(0, 0, 0, 0.86);
}


/* SZEKCIÓK - SEMMI KÜLÖN ÁRNYÉK / OVERLAY */

.home-page .home-services-section,
.home-page .contact-section {
    background: transparent !important;
}

.home-page .home-services-section::before,
.home-page .home-services-section::after,
.home-page .contact-section::before,
.home-page .contact-section::after {
    display: none !important;
}


/* ERŐSEBB FINOM ÁTTŰNÉS */

.scroll-reveal,
.fade-up {
    --reveal-opacity: 0;
    --reveal-blur: 22px;
    --reveal-y: 0px;
    --reveal-scale: 0.972;
    opacity: var(--reveal-opacity);
    filter: blur(var(--reveal-blur));
    transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
    will-change: opacity, filter, transform;
}

.scroll-reveal.is-in-view,
.fade-up.is-in-view {
    pointer-events: auto;
}

.scroll-reveal:not(.is-in-view),
.fade-up:not(.is-in-view) {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .fade-up {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}


/* FOOTER */

.site-footer {
    background: linear-gradient( 180deg, rgba(3, 3, 3, 0.42), rgba(3, 3, 3, 0.98));
    border-top: 1px solid rgba(183, 255, 0, 0.16);
    padding-top: 48px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 32px;
}

.footer-logo {
    width: 145px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 14px rgba(183, 255, 0, 0.18));
}

.footer-inner p {
    color: var(--color-muted);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(183, 255, 0, 0.08);
    border: 1px solid rgba(183, 255, 0, 0.24);
    display: grid;
    place-items: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.footer-social a:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-green);
}

.footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(183, 255, 0, 0.14);
    padding: 18px 16px;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.92rem;
}


/* GLOBÁLIS LAPVÁLTÁSI ANIMÁCIÓ */

.page-transition-layer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.94) 44%, rgba(6, 10, 3, 0.98) 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    filter: blur(0);
    transition: opacity 0.42s ease, visibility 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition-layer::before {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    top: 50%;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(183, 255, 0, 0.08), rgba(183, 255, 0, 0.24), rgba(183, 255, 0, 0.08), transparent);
    opacity: 0.65;
    transform: translateY(-50%) scaleX(0.3);
    transform-origin: center;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
}

.page-transition-layer.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-transition-layer.is-visible::before {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
}

body.is-page-leaving main,
body.is-page-leaving .site-footer {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.992);
    transition: opacity 0.34s ease, filter 0.34s ease, transform 0.34s ease;
}

body.is-page-entering main,
body.is-page-entering .site-footer {
    animation: pageContentEnter 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageContentEnter {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.992);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition-layer,
    .page-transition-layer::before,
    body.is-page-leaving main,
    body.is-page-leaving .site-footer,
    body.is-page-entering main,
    body.is-page-entering .site-footer {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}


/* -------------------------------------------------------------------------- */


/* FINOMHANGOLT BELSŐ LAPVÁLTÁS */


/* -------------------------------------------------------------------------- */

.page-transition-layer {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 900;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.page-transition-layer::before,
.page-transition-layer::after {
    display: none !important;
}

.page-transition-layer.is-visible {
    opacity: 1;
    visibility: visible;
}


/* A régi body class alapú váltás kikapcsolása, hogy ne ugorjon hirtelen */

body.is-page-leaving main,
body.is-page-leaving .site-footer,
body.is-page-entering main,
body.is-page-entering .site-footer {
    animation: none !important;
    transition: none !important;
}


/* -------------------------------------------------------------------------- */


/* HEADER: NE TÖLTŐDJÖN, NE VIBRÁLJON, CSAK A KIJELÖLÉS CSÚSSZON */


/* -------------------------------------------------------------------------- */

.site-header,
.site-logo,
.main-nav,
.main-nav a,
.nav-active-indicator {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.main-nav {
    position: relative;
}

.main-nav a::before,
.main-nav a::after {
    display: none !important;
}

.main-nav a {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: none;
    transition: color 0.28s ease, text-shadow 0.28s ease;
}

.main-nav a:hover:not(.is-active):not(.is-pending-active) {
    color: #ffffff !important;
    text-shadow: none !important;
}

.main-nav a.is-active,
.main-nav a.is-pending-active {
    color: var(--color-primary) !important;
    text-shadow: 0 0 12px rgba(183, 255, 0, 0.5), 0 0 22px rgba(183, 255, 0, 0.22) !important;
}

.main-nav.is-nav-transitioning a:not(.is-active):not(.is-pending-active),
.main-nav.is-nav-transitioning a:hover:not(.is-active):not(.is-pending-active) {
    color: #ffffff !important;
    text-shadow: none !important;
}

.nav-active-indicator {
    --indicator-left: 0px;
    --indicator-width: 0px;
    position: absolute;
    left: 0;
    bottom: 18px;
    z-index: 1;
    width: var(--indicator-width);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient( 90deg, transparent, var(--color-primary), var(--color-primary-2), transparent);
    box-shadow: 0 0 12px rgba(183, 255, 0, 0.72), 0 0 24px rgba(183, 255, 0, 0.32);
    transform: translateX(var(--indicator-left));
    opacity: 1;
    pointer-events: none;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), width 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.nav-active-indicator.is-instant {
    transition: none !important;
}


/* Header lapváltás alatt is maradjon stabil */

body .site-header {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}


/* Képek villanásának csökkentése */

img {
    backface-visibility: hidden;
}

main,
.site-footer,
.home-fixed-bg,
.services-bg-layer {
    backface-visibility: hidden;
}


/* -------------------------------------------------------------------------- */


/* MOZGÁSCSÖKKENTÉS */


/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .page-transition-layer,
    .nav-active-indicator {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}


/* -------------------------------------------------------------------------- */


/* HEADER AKTÍV MENÜ JAVÍTÁS - EGY AKTÍV GOMB + PONTOSAN CSÚSZÓ FÉNYCSÍK */


/* -------------------------------------------------------------------------- */

.site-header .main-nav {
    position: relative;
}


/* Minden régi menüpont alatti saját csík kikapcsolása */

.site-header .main-nav a::before,
.site-header .main-nav a::after {
    display: none !important;
    opacity: 0 !important;
}


/* Alap menüpont */

.site-header .main-nav a {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: none !important;
    transition: color 0.28s ease, text-shadow 0.28s ease;
}


/* Csak az egyetlen aktív menüpont világít */

.site-header .main-nav a.is-active,
.site-header .main-nav a.nav-current,
.site-header .main-nav a[data-nav-active="true"] {
    color: var(--color-primary) !important;
    text-shadow: 0 0 10px rgba(183, 255, 0, 0.62), 0 0 22px rgba(183, 255, 0, 0.26) !important;
}


/* Hover ne ragadjon be másik gombon */

.site-header .main-nav a:hover:not(.is-active):not(.nav-current) {
    color: #ffffff !important;
    text-shadow: none !important;
}


/* A régi pending állapot ne világítson külön */

.site-header .main-nav a.is-pending-active:not(.is-active):not(.nav-current) {
    color: #ffffff !important;
    text-shadow: none !important;
}


/* Új csúszó csík: left + width alapján mozog, nem transformmal */

.site-header .nav-active-indicator {
    --nav-indicator-left: 0px;
    --nav-indicator-width: 0px;
    position: absolute;
    left: var(--nav-indicator-left) !important;
    bottom: 18px;
    z-index: 1;
    width: var(--nav-indicator-width) !important;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: none !important;
    background: linear-gradient( 90deg, transparent, var(--color-primary), var(--color-primary-2), transparent);
    box-shadow: 0 0 12px rgba(183, 255, 0, 0.76), 0 0 26px rgba(183, 255, 0, 0.34);
    transition: left 0.62s cubic-bezier(0.22, 1, 0.36, 1), width 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.site-header .nav-active-indicator.is-ready {
    opacity: 1;
}

.site-header .nav-active-indicator.is-instant {
    transition: none !important;
}


/* Header ne kapjon lapváltási halványítást */

body .site-header,
body.is-page-leaving .site-header,
body.is-page-entering .site-header {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}