/* Design tokenek - világos mód (alapértelmezett) */
:root {
    color-scheme: light;

    --bg: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: #fafafa;
    --bg-muted: #f5f5f5;
    --surface-rgb: 255, 255, 255;

    --text: #000000;
    --text-secondary: #333333;
    --text-muted: #5c5c5c;
    --text-faint: #888888;

    --border: #eeeeee;
    --border-strong: #dddddd;

    --dot-color: #e5e5e5;
    --dot-spotlight-color: #767676;

    --invert-bg: #000000;
    --invert-text: #ffffff;
    --logo-invert: 0;
    --logo-invert-alt: 1;

    --stripe-a: #f7f7f7;
    --stripe-b: #eeeeee;

    --selection-bg: #94efff;
    --selection-text: #000000;

    --success: #1f8a4c;
    --error: #d64545;

    --theme-transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, fill 0.35s ease, box-shadow 0.35s ease;
}

/* Design tokenek - sötét mód */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0c0c0d;
    --bg-elevated: #19191b;
    --bg-subtle: #151516;
    --bg-muted: #202022;
    --surface-rgb: 20, 20, 22;

    --text: #f2f2f0;
    --text-secondary: #c9c9c7;
    --text-muted: #9c9c9a;
    --text-faint: #838381;

    --border: #2b2b2d;
    --border-strong: #3d3d40;

    --dot-color: #1e1e20;
    --dot-spotlight-color: #48484c;

    --invert-bg: #f2f2f0;
    --invert-text: #0c0c0d;
    --logo-invert: 1;
    --logo-invert-alt: 0;

    --stripe-a: #161617;
    --stripe-b: #202022;

    --selection-bg: #0f5b66;
    --selection-text: #f2f2f0;

    --success: #4ade80;
    --error: #f87171;
}

/* Globális beállítások */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 100;
    transition: var(--theme-transition);
}

p {
    font-weight: 400;
}

body {
    background-color: var(--bg);
    /* Pöttyös rács effektus a minta alapján - fixen a viewporthoz, hogy illeszkedjen a kurzor-spotlighthoz */
    background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    background-attachment: fixed;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Kijelölés színe */
::selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
}

::-moz-selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
}

/* Betöltő képernyő */
body.is-loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    transition: opacity 0.6s ease, visibility 0.6s ease, background-color 0.35s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.page-loader-text {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -1px;
    animation: loader-pulse 1.1s ease-in-out infinite;
}

.page-loader-bar {
    width: 120px;
    height: 2px;
    background-color: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.page-loader-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background-color: var(--text);
    animation: loader-bar-slide 1.1s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.25; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes loader-bar-slide {
    0% { transform: translateX(-120%); }
    50% { transform: translateX(60%); }
    100% { transform: translateX(220%); }
}

/* Navigáció */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: none;
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    padding: 20px 40px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.lang-option {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.lang-option:hover {
    opacity: 0.8;
}

.lang-option.is-active {
    opacity: 1;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lang-divider {
    opacity: 0.3;
    font-size: 12px;
}

/* Sötét mód kapcsoló */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background-color: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--text);
    transform: scale(1.08);
}

.theme-toggle:active {
    transform: scale(0.9);
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}

:root[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.4);
}

:root[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    text-transform: lowercase;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Hamburger menü gomb - csak mobilon */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.35s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-backdrop {
        display: block;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background-color: var(--bg-elevated);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.35s ease, background-color 0.35s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .nav-right.is-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 22px;
    }

    .nav-links a {
        font-size: 22px;
    }
}

/* Get in touch - képernyő aljához rögzített link */
.get-in-touch {
    position: fixed;
    right: 40px;
    bottom: 30px;
    z-index: 1001;
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 4px 6px;
}

.get-in-touch .action-icon {
    font-size: 30px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.get-in-touch:hover .action-icon {
    transform: translateX(4px);
}

/* Vissza a tetejére - képernyő aljához rögzített gomb */
.scroll-top-btn {
    position: fixed;
    left: 40px;
    bottom: 30px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background-color: rgba(var(--surface-rgb), 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, border-color 0.35s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background-color: var(--invert-bg);
}

.scroll-top-btn img {
    width: 16px;
    transform: rotate(-90deg);
    transition: filter 0.2s ease;
    filter: invert(var(--logo-invert));
}

.scroll-top-btn:hover img {
    filter: invert(var(--logo-invert-alt));
}

@media (max-width: 640px) {
    .scroll-top-btn {
        left: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .get-in-touch {
        right: 16px;
        bottom: 16px;
        font-size: 18px;
        padding: 3px 5px;
    }

    .get-in-touch .action-icon {
        font-size: 16px;
    }
}

/* Lábléc */
.footer {
    background-color: var(--bg);
    padding: 80px 40px 40px 40px;
    border-top: 1px solid var(--border);
    margin-top: 300px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo h2 {
    font-size: 150px;
    font-weight: 400;
    margin-bottom: 50px;
}

.footer-columns {
    display: flex;
    justify-content: center;
    gap: 90px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 200px;
}

.footer-columns .col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-columns h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-columns a {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 300;
}

.footer-columns a:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 24px 40px;
    }

    .footer-logo h2 {
        font-size: 70px;
        margin-bottom: 30px;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-logo h2 {
        font-size: 48px;
    }
}

/* Segédosztályok */
.mt-4 { margin-top: 1rem; }
