/* --- 1. DESIGN SYSTEM / VARIABLES --- */
:root {
    --color-primary: #00adb5;
    --color-primary-hover: #008a91;
    --color-bg: #ffffff;
    --color-text-main: #000000;
    --color-text-muted: #666666;
    --color-text-description: #333333;
    --color-border: #e0e0e0;
    --color-divider: #e0e0e0;
    --color-frosted-dark: rgba(82, 82, 82, 0.4);
    --shadow-color: rgba(0, 173, 181, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.4);
    --gradient-color-1: #000000;
    --gradient-color-2: #00adb5;
    --gradient-color-3: #008a91;
    --gradient-color-4: #ffffff;

    --font-heading: 'Host Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --size-h1: 4.5rem;
    --size-h2: 1.2rem;
    --size-body: 1.1rem;
    --size-subheading: 1rem;
    --size-paragraph-small: 0.85rem;
    --size-btn: 1rem;

    --weight-light: 300;
    --weight-regular: 400;
    --weight-semibold: 600;
    --weight-bold: 700;

    --gap-main: 30px;
    --gap-small: 15px;
    --gap-rating: 8px;
    --nav-blur: 12px;
    --nav-height: 60px;
    --nav-border: rgba(0, 0, 0, 0.08); 
    --transition: opacity 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;

    /* Opacity layers - white */
    --color-white-05: rgba(255, 255, 255, 0.05);
    --color-white-07: rgba(255, 255, 255, 0.07);
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-40: rgba(255, 255, 255, 0.4);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-90: rgba(255, 255, 255, 0.9);

    /* Opacity layers - black */
    --color-black-03: rgba(0, 0, 0, 0.03);
    --color-black-05: rgba(0, 0, 0, 0.05);
    --color-black-10: rgba(0, 0, 0, 0.1);
    --color-black-20: rgba(0, 0, 0, 0.2);
    --color-black-30: rgba(0, 0, 0, 0.3);
    --color-black-70: rgba(0, 0, 0, 0.7);

    /* Opacity layers - primary */
    --color-primary-10: rgba(0, 173, 181, 0.1);
    --color-primary-05: rgba(0, 173, 181, 0.05);
    --color-primary-20: rgba(0, 173, 181, 0.2);
    --color-primary-30: rgba(0, 173, 181, 0.3);
    --color-primary-40: rgba(0, 173, 181, 0.4);

    /* Semantic extras */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-error: #ff4d4d;
    --color-services-top: rgb(0, 113, 121);
    --color-services-mid: rgb(0, 54, 58);
    --color-services-bottom: rgb(5, 5, 5);
    --color-loader-bg: #008a91;
    --color-card-icon-bg: #f8fefeff;
    --color-btn-secondary-hover: #f9f9f9;
    --color-bar-glow: rgba(150, 255, 255, 0.663);

}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

button, 
input, 
select, 
textarea, 
optgroup {
    font-family: var(--font-body) !important;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

/* --- 2. BASE STYLES --- */
body { 
    margin: 0; 
    padding: 0;
    background: var(--color-bg);
    overflow-x: hidden;
    color: var(--color-text-main);
}

/* --- 3. NAVIGATION --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    min-width: 400px;
    border-radius: 30px;
    border: 1px solid var(--nav-border);
}

.nav-container {
    background: var(--nav-bg);
    border-radius: 30px;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 30px var(--color-black-05);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-description);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-05);
}

.nav-link.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav-logo-link {
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 0 10px 0 5px; /* Távolság a széltől és a linkektől */
    transition: var(--transition);
}

.nav-logo-svg {
    width: 32px;  /* Válaszd ki a neked tetsző méretet (28px-36px között ideális) */
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}


/* --- 4. HERO SECTION LAYOUT --- */
#particle-container-wp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    align-items: center;
    overflow: hidden;
    padding: 0 5%;
}

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-right {
    padding-right: 10vw;
    padding-left: 2vw;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-main);
}

/* --- 5. LEFT SIDE (CANVAS & TITLES) --- */
#canvas-target {
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

#canvas-target canvas {
    display: block;
    touch-action: none;
    filter: drop-shadow(0px 10px 30px var(--shadow-color));
}

.text-wrapper {
    position: absolute; 
    z-index: 10; 
    pointer-events: none; 
    text-align: center; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: var(--gap-small);
}

.text-wrapper h1 {
    color: var(--color-text-main); 
    font-family: var(--font-heading); 
    font-size: var(--size-h1); 
    font-weight: var(--weight-bold); 
    letter-spacing: -0.02em;
    margin: 0; 
    line-height: 0.8;
}

.text-wrapper h2 {
    color: var(--color-text-main); 
    font-family: var(--font-heading); 
    font-size: var(--size-h2); 
    font-weight: var(--weight-light); 
    margin: 0; 
    opacity: 0.7;
}

/* Social Proof (Rating) */
.header-users {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-rating);
    margin-top: 25px;
    pointer-events: none;
}

.row-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-small);
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.subheading-regular {
    font-family: var(--font-heading);
    font-size: var(--size-subheading);
    color: var(--color-text-main);
    font-weight: var(--weight-bold);
}

.icon-star {
    display: flex;
    align-items: center;
}

.divider {
    width: 1px;
    height: 18px;
    background-color: var(--color-divider);
}

.paragraph-small {
    font-family: var(--font-heading);
    font-size: var(--size-paragraph-small);
    color: var(--color-text-muted);
    font-weight: var(--weight-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- 6. RIGHT SIDE (CONTENT & BUTTONS) --- */
.hero-description {
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: 1.6;
    color: var(--color-text-description);
    font-weight: var(--weight-regular);
    margin: 0;
}

.cta-group {
    display: flex;
    gap: var(--gap-small);
    align-items: center;
}

.btn {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--size-btn);
    padding: 14px 25px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-btn-secondary-hover);
    transform: translateY(-2px);
}

/* --- PROBLEM SECTION --- */
.problem-section {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5%;
}

.section-header {
    max-width: 800px;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary-10);
    color: var(--color-primary);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    display: inline-block; /* Hogy a padding rendesen működjön */
    align-self: flex-start; /* Csak akkora lesz, amekkora a tartalom */
    width: fit-content; /* Biztonsági öv: csak a tartalomhoz igazodik */
}

.badge.white {
    background: var(--color-white-30);
    color: var(--color-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-text-main);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-text-description);
    line-height: 1.6;
    max-width: 600px;
}

/* Grid Elrendezés */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--color-bg);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.problem-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px var(--color-black-05);
}

.card-icon {
    width: 30px;
    height: 30px;
    background: var(--color-card-icon-bg); /* Nagyon halvány türkiz */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.problem-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.info-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 17px;
    height: 17px;
    transition: var(--transition);
}

.info-icon img {
    width: 100%;
    height: 100%;
    display: block;
    transition: var(--transition);
}

#problemcard-1:hover .info-icon,
#problemcard-2:hover .info-icon,
#problemcard-3:hover .info-icon,
#problemcard-4:hover .info-icon  {
    transform: scale(1.2) rotate(5deg);
}

.shader-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    background: var(--color-black);
    display: flex;
    align-items: center;
    padding: 100px 0;
}

#shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7; /* Így az olvasást nem zavarja a túl erős mozgás */
}

.shader-content {
    position: relative;
    z-index: 1;
}

.white-text { color: var(--color-white); }

.white-text.center{
    margin-left: auto !important;
    margin-right: auto !important;
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--color-frosted-dark);
    backdrop-filter: blur(var(--nav-blur)); /* 12px blur */
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border: 1px solid var(--nav-border); /* Ugyanaz a finom keret */
    border-radius: 40px; /* Kicsit karakteresebb, mint a kártyáké */
    padding: 3rem 4rem 2rem 4rem;
    box-shadow: 0 20px 40px var(--color-black-20); /* Kicsit mélyebb árnyék a sötét háttér miatt */
}

.info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-p {
    font-size: 1.2rem;
    color: var(--color-white-90);
    margin: 25px 0;
    line-height: 1.6;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    color: var(--color-white-80);
}

.feature-icon {
    height:20px;
    width: 20px !important;
}

.feature-icon-small { color: var(--color-primary); font-weight: bold; }

.quote-box {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    border-left: 4px solid var(--color-primary);
    padding-left: 30px;
    line-height: 1.3;
}

.quote-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Opcionális: a jobb oldali idézet mögé nem kell külön doboz, 
       mert az egész layout egy közös üveglapon van */
}

/* Kényszerített betűtípus a shader szekcióhoz */
.shader-section p, 
.shader-section span, 
.shader-section strong, 
.shader-section blockquote {
    font-family: var(--font-body) !important;
}

/* A címekre pedig a Host Grotesk-et */
.shader-section .section-title {
    font-family: var(--font-heading) !important;
}

/* Fontos: a paragraph-oknak adjunk egy alapértelmezett Intert globálisan is */
p {
    font-family: var(--font-body);
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.section-header.center {
    text-align: center;
    margin: 0 auto 80px auto;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* Timeline elrendezés */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 45px; /* Marad a számok alatt */
    top: 0;
    bottom: 0;
    width: 2px;
    
    /* A GRADIENT: fehér -> türkiz -> fehér */
    /* A 'fixed' miatt a zöld rész mindig a képernyő közepén marad görgetéskor */
    background: linear-gradient(
        to bottom,
        var(--color-bg) 0%, 
        var(--color-bg) 35%, 
        var(--color-primary) 50%, 
        var(--color-bg) 65%, 
        var(--color-bg) 100%
    );
    background-attachment: fixed; 
    z-index: 1;
}

/* Opcionális: egy kis ragyogás (glow) a közepére a vonalnak */
.timeline::after {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 6px;
    transform: translateX(-2px); /* Középre igazítja a 2px-es vonalhoz képest */
    background: radial-gradient(
        circle at center,
        var(--color-primary) 0%,
        transparent 70%
    );
    background-size: 100% 200px; /* A fényfolt magassága */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    filter: blur(4px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    z-index: 2;
    align-items: center;
    width:100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 90px;
    height: 90px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: var(--transition);
}


.timeline-content {
    background: var(--color-bg);
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.timeline-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-description);
    line-height: 1.6;
    max-width: 600px;
}

.timeline-item.is-active .timeline-number {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-primary-40);
}

.timeline-item.is-active .timeline-content h3 {
    color: var(--color-primary);
}

.timeline-item.is-active .timeline-content {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px var(--color-black-05);
}

/* Sima átmenet az animációhoz */
.timeline-number, .timeline-content h3 {
    transition: all 0.4s ease;
}

.process-cta {
    text-align: center;
    margin-top: 80px;
}

/* --- SERVICES SECTION --- */
.services-section {
    position: relative;
    padding: 120px 0;
    /* MÉLYÍTETT TÜRKIZ GRADIENS HÁTTÉR */
    background: linear-gradient(
        to bottom,
        var(--color-services-top) 0%,    /* Fent: nagyon mély, sötét türkiz */
        var(--color-services-mid) 40%,  /* Középtájtól: átvált a Shadcn sötét szürkébe/feketébe */
        var(--color-services-bottom) 100%
    );
    min-height: 100vh;
    overflow: hidden;
}

.relative-z { position: relative; z-index: 10; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* --- GRADIENT BARS FIX --- */
.bars-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end; /* Alulról nőnek felfelé */
    justify-content: stretch;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bar {
    flex: 1;
    height: 100%;
    /* Négypontos átmenet: alul sötét, középen világos, a tetején pedig teljesen eltűnik (fade out) */
    background: linear-gradient(
        to top, 
        transparent 0%,           /* Alul teljesen átlátszó/fekete */
        var(--color-primary-40) 40%,    /* Alsó harmadban beúszik a türkiz */
        var(--color-bar-glow) 85%,  /* Felül az izzó él (ez a legvilágosabb pont) */
        transparent 100%          /* A legtetején visszafeketedik (fade out) */
    );
    transform-origin: bottom;
    opacity: 0.7; /* Kicsit emeltem az átlátszóságon, hogy az izzó rész látványosabb legyen */
    will-change: transform;
    animation: pulseBar 3s ease-in-out infinite alternate;
    
    /* Finom ragyogás a világos pont köré */
    filter: drop-shadow(0px -5px 10px var(--color-primary-30));
}

@keyframes pulseBar {
    0% { 
        transform: scaleY(var(--initial-scale)); 
    }
    100% { 
        /* Csak egy kis mozgást adunk neki, ne tűnjön el teljesen */
        transform: scaleY(calc(var(--initial-scale) * 0.85)); 
    }
}

/* Biztosítsuk, hogy a tartalom a bárok felett legyen */
.services-section .container.relative-z {
    position: relative;
    z-index: 10;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white-07);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-10);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    color: white;
}

.service-card:hover {
    background: var(--color-white-10);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.service-card.full-width {
    grid-column: 1 / -1; /* Teljes szélesség */
    display: flex;
    align-items: center;
    gap: 30px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
}

.service-card p {
    color: var(--color-white-60);
    line-height: 1.6;
}

/* --- MOTION EFFECTS --- */

/* Az alaposztály, amit minden animálandó elemre ráteszünk */
.reveal {
    opacity: 0;
    transition: all 8s cubic-bezier(0.17, 0.55, 0.55, 1);
    will-change: transform, opacity;
}

/* Felfelé csúszva érkezik (Alapértelmezett) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px); /* Ez teszi lejjebb az elemet */
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Balról úszik be */

/* Jobbról úszik be */

/* Amikor a JavaScript aktiválja (láthatóvá válik) */
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sorozatos elemeknél (pl. kártyák) késleltetés, hogy egymás után jöjjenek be */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- PRELOADER STÍLUS --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-loader-bg); /* Vagy var(--color-bg) ha fehéret akarsz */
    z-index: 9999; /* Minden felett */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Amikor betöltött, ezt az osztályt adjuk hozzá JS-ből */
#loader-wrapper.loaded {
    transform: translateY(-100%); /* Felfelé kirántjuk a függönyt */
}

.loader-content {
    text-align: center;
    color: var(--color-white);
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.loader-bar-container {
    width: 100%;
    height: 2px;
    background: var(--color-white-10);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--color-white);
    animation: loadingProgress 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(-10px); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Opcionális: amíg tölt, ne lehessen görgetni az oldalt */
body.loading {
    overflow: hidden;
}

/* --- HERO SPECIFIKUS REVEAL --- */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    /* Fontos: itt adjuk meg az átmenetet */
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Amikor a függöny felmegy, ez az osztály aktiválja őket */
.hero-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* A korábbi delay osztályaidat itt is tudod használni */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- NAVBAR REVEAL JAVÍTÁS --- */
.nav-reveal {
    opacity: 0;
    /* Megtartjuk a -50%-ot a vízszintes középre igazításhoz! */
    transform: translateX(-50%) translateY(-100px);
    
    /* 1.2 másodperces, lágy beúszás */
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Ez segít megőrizni a tejüveg hatást rétegzésnél */
    will-change: transform, opacity;
    backface-visibility: hidden;

    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
}

/* Amikor a függöny felmegy, ez az osztály aktiválja */
.nav-reveal.visible {
    opacity: 1;
    /* Itt is kell a -50%, a translateY pedig 0-ra vált */
    transform: translateX(-50%) translateY(0);
}

/* --- QUALIFICATION SECTION --- */
.qualification-section {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.qualification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.qual-card {
    padding: 50px;
    border-radius: 32px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

/* Pozitív kártya (Türkiz) */
.qual-card.positive {
    background-color: var(--color-primary);
    border-color: var(--color-primary-20);
}

.qual-card.positive h3 {
    color: var(--color-bg);
}

.qual-card.positive p {
    color: var(--color-bg);
}

/* Negatív kártya (Fehér) */
.qual-card.negative {
    background-color: var(--color-bg);
}

.qual-card.negative h3 {
    color: var(--color-text-main);
}

.qual-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Listák stílusa */
.qual-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.qual-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.qual-list p {
    font-size: 1.1rem;
    color: var(--color-text-description);
    line-height: 1.4;
}

/* Ikonok színei */
.icon-check {
    color: var(--color-bg);
    font-weight: 900;
    font-size: 1.2rem;
    align-self:center;
}

.icon-cross {
    color: var(--color-error); /* Pirosas az X-nek */
    font-weight: 900;
    font-size: 1.2rem;
    align-self:center;
}

/* Kártya hover effekt */
.qual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--color-black-03);
}

.list-item {
    display:flex;
    flex-direction: row;
    align-items: center;
}

.icon-svg {
    width: 22px; /* Kicsit nagyobbra vettem, hogy jól mutasson a körös ikon */
    height: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}

.icon-cross {
    color: var(--color-primary);
}

/* Hover effekt az ikonnak (opcionális, de jól néz ki) */
.qual-card:hover .icon-svg {
    transform: scale(1.1) rotate(5deg);
}

#iridescence-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#iridescence-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.shader-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Megemeltem, hogy a form kényelmesen elférjen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 0px;
}

#iridescence-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 10;
    width: 80%;
    max-width: 1200px;
}

/* Ez a "Frosted Glass" lényege */
.glass-card {
    background: var(--color-white-20); /* Áttetsző fehér */
    backdrop-filter: blur(50px); /* Elmosás */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-white-30); /* Finom él */
    border-radius: 32px;
    padding: 30px 40px 60px 40px;
    box-shadow: 0 25px 50px -12px var(--color-black-10);
    text-align: center;
}

.step-progress {
    width: 100%;
    height: 6px;
    background: var(--color-white-10);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-bg);
    transition: width 0.4s ease;
}

/* Opció kártyák dizájnja */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-label {
    font-family: var(--font-body);
}

.option-label input:checked + .option-box{
    font-family: var(--font-body);
}

.option-card input {
    display: none; /* Elrejtjük a natív gombot */
    font-family: var(--font-body);
}

.option-box {
    background-color: var(--color-white-40);
    border: 1px solid var(--color-white-10);
    font-family: var(--font-body);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
}

.option-card input:checked + .option-box {
    background: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    color: var(--color-text-main);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-question{
    color: var(--color-bg);
    font-size: var(--size-h2);
}

#nextBtn{
    margin-left: auto;
}

.no-border {
    border: none !important;
    outline: none !important; /* Gyakran az outline-t is érdemes levenni */
    box-shadow: none !important; /* Néha a shadow néz ki bordernek */
}

/* Globális fehér placeholder minden böngészőhöz */
::placeholder {
    color: var(--color-white-80) !important;
    opacity: 1; /* Firefox miatt szükséges */
}

:-ms-input-placeholder {
    color: var(--color-white-80) !important;
}

::-ms-input-placeholder {
    color: var(--color-white-80) !important;
}

/* Extra: amikor rákattintasz az inputra, maradjon világos */

/* Progress Bar konténer - a szürke sín */

/* A tényleges töltőcsík - a türkiz rész */

/* Opcionális: egy kis pulzáló animáció, amíg tölt */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Checkbox konténer */
.privacy-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

/* Maga a jelölőnégyzet */
.privacy-container input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    background: var(--color-white-05);
    border: 1px solid var(--color-white-10);
    padding: 15px;
    border-radius: 10px;
}

/* A szöveg és a link */
.privacy-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
    cursor: pointer;
    color: var(--color-bg);
}

.privacy-label a {
    color: var(--color-bg); /* A te színváltozód */
    text-decoration: underline;
    font-weight: 600;
}

.privacy-label a:hover {
    opacity: 0.8;
}

.custom-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    background: var(--color-white-05);
    border: 1px solid var(--color-white-10);
    border-radius: 10px;
}

/* Ha hibát akarsz jelezni (pl. elfelejtette kipipálni) */
.custom-checkbox.error {
    outline: 2px solid var(--color-error);
    border-radius: 4px;
}

.max-width{
    max-width: 600px;
    justify-self: center;
    margin-bottom: 30px;
}

.carousel-wrapper {
    position: relative;
    width: 80%;
    max-width: 1200px;
    height:300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px; /* Ettől lesz 3D hatása */
    margin-left: auto;
    margin-right: auto;
}

.testimonial-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonials-section {
    padding: 120px;
    display:none;
}

.testimonial-card {
    position: absolute;
    width: 300px;
    padding: 30px;
    background: var(--color-white-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-primary); /* A kért állandó keret */
    border-radius: 20px;
    color: var(--color-text-main);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

/* Állapotok kezelése */

/* Középső (Aktív) kártya */
.testimonial-card.active {
    opacity: 1;
    z-index: 10;
    transform: translateX(0) scale(1.1);
    filter: blur(0px);
    pointer-events: auto;
    background: var(--color-bg);
}

/* Szélső kártyák (1. szintű overlap) */
.testimonial-card.prev {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(-150px) scale(0.9);
    filter: blur(4px);
}

.testimonial-card.next {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(150px) scale(0.9);
    filter: blur(4px);
}

/* Hátsó kártyák (2. szintű overlap) */
.testimonial-card.prev2 {
    opacity: 0.2;
    z-index: 2;
    transform: translateX(-280px) scale(0.7);
    filter: blur(8px);
}

.testimonial-card.next2 {
    opacity: 0.2;
    z-index: 2;
    transform: translateX(280px) scale(0.7);
    filter: blur(8px);
}

.testimonial-author {
    font-family: var(--font-body);
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px; /* Távolság a kártyáktól */
}

.nav-btn-bottom {
    color: var(--color-text-main);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn-bottom:active {
    transform: scale(0.95);
}


.faq-section {
    padding-top: 80px;
    padding-bottom: 120px;
}


.faq-container {
    max-width: 600px;
    margin: 0px auto;
}


.faq-item {
    border-bottom: 1px solid var(--color-white-10); /* Finom elválasztó vonal */
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

/* A kis lefelé mutató nyíl (chevron) */
.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-main);
    transition: background-color 0.3s ease;
}

/* Modern V alakú nyíl */
.faq-icon::before {
    width: 10px; height: 2px;
    top: 9px; left: 2px;
    transform: rotate(45deg);
}
.faq-icon::after {
    width: 10px; height: 2px;
    top: 9px; right: 2px;
    transform: rotate(-45deg);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-icon::before, 
.faq-item.active .faq-icon::after {
    background-color: var(--color-primary);
}

/* Válasz rész elrejtése alapból */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--color-black-70);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Megfelelő magasság a szövegnek */
}

.animated-grid-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-black);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    z-index: 1;
    gap: 0;
    /* Ez biztosítja, hogy a rács középen maradjon, ha az 1/1 arány miatt maradna üres hely */
    justify-content: center;
    align-content: center;
}

@keyframes gridAnimation {
    0% {
        border-radius: 50%;
        background-color: var(--anim-color);
        /* 0.5-ről indul, így biztosan nem érnek össze */
        transform: scale(0.5); 
    }
    100% {
        border-radius: 20%; /* Vagy 0%, ha teljes négyzetet akarsz */
        background-color: transparent;
        /* Maximum 1.0, hogy pontosan kitöltse a cellát, de ne lógjon ki belőle */
        transform: scale(1.0); 
    }
}

/* Form belső elrendezés finomítása */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-body);
}

.section-label {
    color: var(--color-white-60);
    font-size: 0.8rem;
    text-align: left;
    margin: 5px 0 10px 5px;
}

/* A 6-os rács */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Mobil: 2 oszlop */
    gap: 8px;
    margin-bottom: 10px;
}

/* Kijelölt állapot (Checked) */

/* Hover */

/* Üveghatású kártya */
.glass-overlay {
    position: relative;
    z-index: 10;
    padding: 20px;
    margin: 120px 0;
}

.title { color: var(--color-white); margin-top: 20px; font-size: 2rem; }
.description { color: var(--color-white-60); margin-bottom: 25px; }

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--color-white-10);
    border: 1px solid var(--color-white-10);
    border-radius: 8px;
    color: var(--color-white);
}

button {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* A konkrét Glass kártya */

.popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.popup-text {
    color: var(--color-white);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hidden { display: none !important; }

.popup-mini {
    position: fixed; /* Fixed, hogy a JS-szel bárhová tehessük */
    z-index: 2000;
    width: 200px; /* Kompaktabb méret */
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    pointer-events: none; /* Ne zavarja a kattintást, ha véletlen rálógna valamire */
    transition: opacity 0.2s ease;
    box-shadow: 0 8px 32px var(--color-black-30);
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
    visibility: visible;
}

.popup-mini.hidden {
    display: block !important; /* Ne vegyük ki a DOM-ból rögtön */
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px); /* Egy picit "leesik" eltűnéskor */
    pointer-events: none;
}

.popup-icon-small { font-size: 24px; margin-bottom: 5px; text-align: center; }
.popup-text-small { color: var(--color-text-main); font-size: 0.85rem; text-align: center; margin: 0; }

/* Kis nyíl a popup alján */
.popup-arrow {
    position: absolute;
    bottom: -10px !important;
    left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 10px;
    background: var(--color-frosted-dark);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.main-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding-top: 80px;
    margin-top: 60px;
    display:block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Márka rész */
.footer-logo {
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-bio {
    color: var(--color-text-muted);
    font-size: var(--size-paragraph-small);
    line-height: 1.6;
    max-width: 300px;
}

/* Footer-grid konténer – 4 oszlop (brand + nav + contact + info) */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Összes footer h4 cím stílusa */
.footer-grid > div > h4 {
    font-size: 1rem;
    font-weight: var(--weight-bold);
    margin-bottom: 25px;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer listák stílusa */
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-grid li {
    margin-bottom: 12px;
}

/* Footer linkek */
.footer-grid a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition), padding-left 0.3s ease;
}
.footer-grid a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Footer-info (Információk) linkjeinek saját osztálya */
.footer-info-links {
    /* list style already above */
    margin-top: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition), padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;

}

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Alsó sáv */
.footer-bottom {
    border-top: 1px solid var(--color-divider);
    padding: 30px 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding-left:5%;
    padding-right:5%;
}

.legal-links {
    display: flex;
    gap: 20px;
    font: var(--font-body);
}

.legal-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--color-text-main);
}

.law {
    font-family: var(--font-body);
}


/* --- 7. TABLET STYLES (Max-width: 991px) --- */
@media (max-width: 991px) {
    :root {
        --size-h1: 8vw;
        --size-h2: 2rem;
        --size-h3: 1.4rem;
        --size-body: 1rem;
    }

    /* Minden címsor és bekezdés közös beállítása */
    h1, h2, h3, h4 {
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    p {
        font-size: var(--size-body);
        line-height: 1.6;
    }

    #particle-container-wp {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 60px 0 60px; /* Oldalsó padding levéve, hogy a canvas kifuthasson */
        justify-content: flex-start;
    }

    .hero-left {
        width: 100%;
        margin-top: 50px;
    }

    #canvas-target {
        width: 100%;
        max-width: 100vw;
    }

    #canvas-target canvas {
        width: 100% !important; /* Kitölti a szélességet */
        height: auto !important;
        max-width: 600px !important; /* Tableten ne legyen kezelhetetlenül óriási */
        max-height: 600px !important;
        margin: 0 auto;
    }

    /* Szövegek a canvas felett */
    .text-wrapper {
        width: 100%;
        padding: 0 5%;
    }

    .text-wrapper h1 {
        font-size: 3.8rem;
        line-height: 0.9;
        margin-bottom: 15px;
    }

    .text-wrapper h2 {
        font-size: 1.2rem;
        opacity: 0.8;
    }

    /* Tartalom és Gombok */
    .hero-right {
        padding: 0 10%;
        max-width: 800px;
        text-align: center;
        align-items: center;
        z-index: 11;
    }

    .hero-description {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .cta-group {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .btn {
        min-width: 200px;
        padding: 16px 28px;
    }

    .problem-section {
        padding: 90px 0;
    }

    .problem-grid {
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        gap: 30px;
    }

    .info-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        background: var(--color-frosted-dark);
        backdrop-filter: blur(var(--nav-blur)); /* 12px blur */
        -webkit-backdrop-filter: blur(var(--nav-blur));
        border: 1px solid var(--nav-border); /* Ugyanaz a finom keret */
        border-radius: 40px; /* Kicsit karakteresebb, mint a kártyáké */
        padding: 2rem 2rem 2rem 2rem;
        box-shadow: 0 20px 40px var(--color-black-20); /* Kicsit mélyebb árnyék a sötét háttér miatt */
    }

    .section-title {
        font-family: var(--font-heading);
        font-size: var(--size-h2);
        line-height: 1;
        margin-bottom: 25px;
    }

    .highlight-p {
        font-size: var(--size-body);
        color: var(--color-white-90);
        line-height: 1.6;
    }

    .feature-item {
        margin-bottom: 10px;
    }

    .quote-box {
        font-size: 1.2rem;
        font-family: var(--font-heading);
        color: var(--color-white);
        border-left: 4px solid var(--color-primary);
        padding-left: 30px;
        line-height: 1.3;
    }
    
    .quote-container {
        display: flex;
        align-items: flex-start;
        justify-content: left;
        height: 100%;
        /* Opcionális: a jobb oldali idézet mögé nem kell külön doboz, 
           mert az egész layout egy közös üveglapon van */
    }

    .badge {
        margin-bottom: 10px; 
    }

    .shader-section {
        padding: 50px 0;
    }

    .process-section {
        padding: 90px 0;
    }

    .timeline {
        position: relative;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        left: 30px; /* Marad a számok alatt */
        top: 0;
        bottom: 0;
        width: 2px;
        
        /* A GRADIENT: fehér -> türkiz -> fehér */
        /* A 'fixed' miatt a zöld rész mindig a képernyő közepén marad görgetéskor */
        background: linear-gradient(
            to bottom,
            var(--color-bg) 0%, 
            var(--color-bg) 35%, 
            var(--color-primary) 50%, 
            var(--color-bg) 65%, 
            var(--color-bg) 100%
        );
        background-attachment: fixed; 
        z-index: 1;
    }
    
    /* Opcionális: egy kis ragyogás (glow) a közepére a vonalnak */
    .timeline::after {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        bottom: 0;
        width: 6px;
        transform: translateX(-2px); /* Középre igazítja a 2px-es vonalhoz képest */
        background: radial-gradient(
            circle at center,
            var(--color-primary) 0%,
            transparent 70%
        );
        background-size: 100% 200px; /* A fényfolt magassága */
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
        filter: blur(4px);
        opacity: 0.5;
        z-index: 0;
        pointer-events: none;
    }
    
    .timeline-item {
        position: relative;
        display: flex;
        gap: 50px;
        margin-bottom: 60px;
        z-index: 2;
        align-items: center;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .services-section {
        padding: 90px 0;
        height:auto;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(1, 3fr);
        gap: 20px;
        margin-top: 0px;
    }

    .section-header {
        max-width: 800px;
        margin-bottom: 60px;
    }

    .section-header.center {
        margin: 0 auto 60px auto;
    }

    .service-card.full-width {
        flex-direction: column;
        align-items: left;
        justify-content: flex-start;
        gap: 10px;
    }

    .card-icon {
        align-self: flex-start;
    }

    .qualification-section {
        padding: 90px 0;
    }

    .qual-card {
        padding: 30px 30px;
    }

    .form-question{
        color: var(--color-bg);
        font-size: var(--size-h3);
    }

    .testimonials-section {
        padding: 90px 0;
    }

    .carousel-wrapper {
        width: 95%;
        max-width: 1200px;
        height:300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        perspective: 1000px; /* Ettől lesz 3D hatása */
        margin-left: auto;
        margin-right: auto;
    }

    .container.full-width {
        width: 100%;
        padding:0;
    }

    .testimonial-card.prev {
        opacity: 0.6;
        z-index: 5;
        transform: translateX(-90px) scale(0.6);
        filter: blur(4px);
    }
    
    .testimonial-card.next {
        opacity: 0.6;
        z-index: 5;
        transform: translateX(90px) scale(0.6);
        filter: blur(4px);
    }
    
    /* Hátsó kártyák (2. szintű overlap) */
    .testimonial-card.prev2 {
        opacity: 0.2;
        z-index: 2;
        transform: translateX(-180px) scale(0.4);
        filter: blur(8px);
    }
    
    .testimonial-card.next2 {
        opacity: 0.2;
        z-index: 2;
        transform: translateX(180px) scale(0.4);
        filter: blur(8px);
    }

    .faq-section {
        padding-top: 40px;
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: 70px;
    }

    .glass-overlay {
        margin: 90px 0;
    }


}
/* --- 8. MOBILE STYLES (Max-width: 768px) --- */
@media (max-width: 768px) {
    :root {
        --size-h1: 7vw;
        --size-h2: 2rem;
        --size-h3: 1.4rem;
        --size-body: 1rem;
    }

    /* Minden címsor és bekezdés közös beállítása */
    h1, h2, h3, h4 {
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    p {
        font-size: var(--size-body);
        line-height: 1.6;
    }

    .navbar {
        display: block !important;
        width: 90%;
        max-height: 60px; /* Alapállapot */
        overflow: hidden !important;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease !important;
        border-radius: 30px;
        border: 1px solid var(--nav-border);
    }

    .navbar.mobile-open {
        max-height: 600px; /* Megnyitott állapot */
        z-index: 1001;
    }

    .nav-container {
        position: relative;
        display: grid !important;
        /* Itt a trükk: a második sor (a linkek) alapból 0fr */
        grid-template-columns: 1fr auto;
        grid-template-rows: 40px 0fr; 
        padding: 10px 10px;
        transition: grid-template-rows 0.5s ease;
    }

    .navbar.mobile-open .nav-container {
        grid-template-rows: 40px 1fr; /* Kinyitjuk a rácsot a tartalomnak */
    }

    /* A linkeket egy belső wrapperbe tesszük, vagy közvetlenül animáljuk */
    .nav-link {
        grid-column: 1 / span 2;
        overflow: hidden; /* Fontos a becsúszáshoz */
        opacity: 0;
        visibility: hidden;
        text-align: center;
        padding: 0; /* Alapból nincs padding */
        border-top: 1px solid transparent;
        transition: opacity 0.3s ease, padding 0.3s ease, visibility 0.3s ease;
    }

    .navbar.mobile-open .nav-link {
        opacity: 1;
        visibility: visible;
        padding: 15px 0;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .menu-toggle {
        position: absolute;
        top: 25px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 10;
    }

    .menu-toggle span {
        width: 35px;
        height: 2px;
        background: var(--color-primary);
        transition: transform 0.3s ease;
    }

    .navbar.mobile-open .menu-toggle span:nth-child(1) {
        transform: translateY(4px) rotate(45deg) !important;
    }

    .navbar.mobile-open .menu-toggle span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg) !important;
    }

    .cta-group {
        flex-direction: column;
    }

    .problem-grid {
        display: grid;
        grid-template-columns: repeat(1, 4fr);
        gap: 30px;
    }

    .qualification-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 60px;
    }

    .content {
        width: 90%;
    }

    .options-grid {
        display: grid;  
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .submit-hidden {
        padding-left: 30px;
        padding-right: 30px;
    }

    .glass-card {
        padding: 30px 15px 8px 15px;
    }
    
}