/* ==========================================================================
   1. GLOBÁLIS ALAPOK ÉS SZÍNVÁLTOZÓK
   ========================================================================== */
:root {
    --bg-dark: #0a0b1e;        
    --bg-card: #131535;        
    --accent-blue: #2563eb;    
    --text-main: #ffffff;      
    --text-muted: #b4b6cd;     
    --font-hero: 'Titillium Web', sans-serif;
    --font-services: 'Space Grotesk', sans-serif;
    --font-main: system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
}

/* ==========================================================================
   2. FIX FEJLÉC (HEADER) ÉS LOGÓ
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 11, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

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

.nav-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    margin-left: 25px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-blue);
}

.btn-contact-nav {
    background-color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 6px;
}

.btn-contact-nav:hover {
    background-color: #1d4ed8 !important;
    color: #fff !important;
}

/* ==========================================================================
   3. HERO SZEKCIÓ (Balra zárt, szürkébb, visszafogott háttér, Titillium)
   ========================================================================== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 100px 8%;
    
    /* Világosabb overlay (0.4 és 0.5), középre zárt képfájl */
    background: linear-gradient(rgba(10, 11, 30, 0.4), rgba(10, 11, 30, 0.5)), 
                url('../images/hero-bg_3.png');
    
    background-size: cover;
    background-position: center center; /* FIX: Eltünteti a jobb oldali fekete sávot */
    background-repeat: no-repeat;
    /*background-attachment: fixed;*/
	background-attachment: scroll; /* FIX: Megszünteti a renderelési sávot a jobb oldalon */
}

.hero-left-wrapper {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
/* ==========================================================================
   HERO LOGÓ ANIMÁCIÓ - VÉGTELENÍTETT, DINAMIKUS CIKLUS
   ========================================================================== */
.logo-anim-container {
    position: relative;
    width: 320px;         
    height: 160px;        
    max-width: 100%;      
    margin-bottom: 20px;  
    border-radius: 8px;   
    overflow: hidden;     
}

.logo-anim-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: left center; 
}

/* 1. KÉP: A hegycsúcs (Fixen alul marad háttérként) */
.anim-everest {
    z-index: 1;           
    object-fit: cover;    
    opacity: 0.95;         
}
/* 2. KÉP: A logó - EMELT ERŐSSÉGŰ (SPECIFIKUS) SZELEKTORRAL */
.logo-anim-container .anim-logo {
    position: absolute;
    top: -9px;            /* FÜGGŐLEGES FINOMHANGOLÁS (pl. -3px feljebb, 3px lejjebb) */
    left:13px;            /* VÍZSZINTES FINOMHANGOLÁS (pl. -5px balra, 5px jobbra) */
    width: 100%;
    height: 100%;
    z-index: 2;           
    opacity: 0;
    object-fit: contain; 
    mix-blend-mode: multiply; 
    
    animation: infiniteDynamicLogo 8s ease-in-out infinite;
}

/* IDŐZÍTÉSI MÁTRIX A 8 MÁSODPERCES CIKLUSHOZ */
@keyframes infiniteDynamicLogo {
    0% { 
        opacity: 0; 
        transform: scale(0.96); 
    }
    10% { 
        opacity: 1; 
        transform: scale(1);    /* 1 másodperc alatt finoman beúszik */
    }
    80% { 
        opacity: 1; 
        transform: scale(1);    /* 7 másodpercig mozdulatlanul, tisztán olvasható */
    }
    90% { 
        opacity: 0; 
        transform: scale(0.96); /* 1 másodperc alatt lassan elhalványul */
    }
    100% { 
        opacity: 0;             /* 1 másodpercig csak a tiszta hegy látszik, majd restart */
    }
}

/* MIVEL A HEGY MARAD, CSAK A LOGÓNAK KELL EGY EGYSZERŰ BEÚSZÁS */
@keyframes fadeInLogoOnMountain {
    0% { 
        opacity: 0; 
        transform: scale(0.95); /* Kicsit kisebbről indítjuk a térhatás kedvéért */
    }
    30% { 
        opacity: 0; 
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}
/* Az animációk időzítése változatlan marad */
@keyframes fadeOutEverest {
    0% { opacity: 1; }
    30% { opacity: 1; }   
    85% { opacity: 0; }   
    100% { opacity: 0; }  
}

@keyframes fadeInLogo {
    0% { opacity: 0; }
    30% { opacity: 0; }   
    85% { opacity: 1; }   
    100% { opacity: 1; }  
}

.hero-content h1 {
    font-family: 'Titillium Web', sans-serif !important; /* FIX: Közvetlen név + kényszerítés */
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: 'Titillium Web', sans-serif !important; /* FIX: Közvetlen név + kényszerítés */
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ==========================================================================
   4. CÉGPROFIL (Szürke zóna eltávolítása a kép mellől)
   ========================================================================== */
.profile-section {
    padding: 80px 0;
}

.split-container {
    display: flex;
    align-items: stretch; /* Biztosítja, hogy a két oldal egyforma magas legyen */
    gap: 50px;
}

.split-left, .split-right {
    flex: 1;
}

.profile-img, .contact-img {
    width: 100%;
    height: 100%; /* Kitölti a teljes magasságot */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: transparent; /* MEGSZÜNTETI a szürke/sötét üres zónát */
    object-fit: cover;  /* Torzítás nélkül vágja a képet a tér kitöltéséhez */
    display: block; /* FIX: Megszünteti a kép alatti fekete csíkot */
}
.split-right h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.split-right p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.highlight-slogan {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin: 15px 0;
    letter-spacing: 1px;
}

/* Idézet kártya */
.quote-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    margin: 60px auto 0 auto;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--accent-blue);
}

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

.ceo-img {
    width: 200px;  /* Megnövelt méret a szöveg magasságához igazítva */
    height: 200px; /* Arányos magasság */
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

/*.quote-text-block text-align: left; -> /* HIBA: nincsenek kapcsos zárójelek */

/* JAVÍTÁS: */
.quote-text-block {
    text-align: left;
}

.quote-text-block blockquote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 10px;
}

.quote-text-block cite {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ceo-card-details {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.ceo-name {
    font-weight: 700;
    color: var(--text-main);
}
.ceo-role {
    color: var(--text-muted);
    margin-bottom: 5px;
}
.ceo-card-details a {
    color: var(--accent-blue);
    text-decoration: none;
}
.ceo-card-details a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. SZOLGÁLTATÁSOK (Kétoldalas, alternáló elrendezés + Space Grotesk)
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.services-section h2, 
.services-section h3, 
.service-num {
    font-family: var(--font-services); /* HK Grotesk alternatíva */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: left;
}

.services-row {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
    align-items: center; /* Függőlegesen középre igazítja a képet és listát */
}

/* Megfordítja a sorrendet a második blokknál (Kép jobb oldalra kerül) */
.services-row.reverse-row {
    flex-direction: row-reverse;
}

.services-col-img {
    flex: 1;
}

.services-col-text {
    flex: 1.3;
}

.services-main-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    object-fit: cover;
}

.service-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 25px;
}

.service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.service-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.service-text h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.service-text p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ==========================================================================
   6. ÜGYFELEK ÉS KAPCSOLAT SZEKCIÓK
   ========================================================================== */
.clients-section {
    padding: 80px 0;
    background-color: var(--bg-card);
}
.section-subtitle {
    color: var(--text-muted);
    margin: -40px 0 40px 0;
    font-size: 1.1rem;
}
.clients-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.client-sector-card {
    background-color: var(--bg-dark);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}
.client-sector-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}
.client-sector-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 8px;
}
.client-sector-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   7. FIXÁLT, ÚJRASTRUKTURÁLT MODAL POPUP CSS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    max-width: 850px;
    width: 92%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    
    /* FIX: Háromosztatú flex szerkezet magassági korláttal */
    max-height: 85vh; 
    display: flex;
    flex-direction: column; 
}

/* Új fix fejléc blokk */
.modal-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
}

.modal-header-block h2 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Nincs többé absolute pozíció -> Nem lóg rá a görgetősávra! */
.modal-close {
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-divider {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
    /*margin: 15px 0; javítva 07.18*/
	margin: 15px 0 20px 0;
}

/* Kizárólag a törzs görgethető */
.modal-body {
    flex: 1; 
    overflow-y: auto;
    padding-right: 15px;
}

.modal-body h3 {
    margin: 25px 0 10px 0;
    color: var(--text-main);
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: justify;
}

.modal-list {
    margin: 15px 0 20px 25px;
    color: var(--text-muted);
}

.modal-list li {
    margin-bottom: 8px;
}

/* Új fix lábléc blokk az alsó gombnak */
.modal-footer-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    overflow-y: auto; /* Csak a belső tartalom görgethető */
    padding-right: 15px;
}

.modal-body h2 {
    margin-bottom: 15px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.modal-body h3 {
    margin: 25px 0 10px 0;
    color: var(--text-main);
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: justify;
}

.modal-list {
    margin: 15px 0 20px 25px;
    color: var(--text-muted);
}
.modal-list li {
    margin-bottom: 8px;
}

/* Alsó lezáró gomb szekciója */
.modal-bottom-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (Mobilos nézetek)
   ========================================================================== */
@media (max-width: 992px) {
    .split-container, .services-row, .services-row.reverse-row {
        flex-direction: column !important;
        text-align: center;
    }
    .services-col-text {
        text-align: left;
    }
    .main-header {
        position: absolute;
    }
    .hero-section {
        padding: 120px 5%;
        justify-content: center;
        text-align: center;
    }
    .hero-left-wrapper {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .quote-flex {
        flex-direction: column;
        text-align: center;
    }
    .quote-text-block {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .modal-box {
        padding: 25px 15px;
        max-height: 92vh;
    }
}
/* Kapcsolat szekció belső elemeinek térköz-szabályozása */
.contact-details h3 {
    margin-top: 20px;     /* Mérsékelt távolság a felette lévő blokktól */
    margin-bottom: 5px;   /* Minimális rés a saját szövege előtt */
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 10px;  /* Nem engedjük elszökni a bekezdéseket */
    color: var(--text-muted);
}
/* Térkép gomb finomhangolása */
.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    transition: all 0.3s ease;
}
/* ==========================================================================
   KAPCSOLATI LINKEK (TELEFON, EMAIL) OLVASHATÓSÁGA
   ========================================================================== */
.contact-details a {
    color: #ffffff !important;   /* Tiszta, kontrasztos fehér szín */
    text-decoration: none;       /* Csúnya aláhúzás eltüntetése alapból */
    font-weight: 600;            /* Kicsit határozottabb, vastagabb betűk */
    transition: color 0.3s ease; /* Sima színátmenet egérráhúzáskor */
}

.contact-details a:hover {
    color: #60a5fa !important;   /* Egérráhúzáskor világos, elegáns kék kiemelés */
    text-decoration: underline;  /* Jelzi az interaktivitást */
}
.btn-map:hover {
    background-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
/* ==========================================================================
   LÁBLÉC ÉS JOGI LINK STÍLUS
   ========================================================================== */
.main-footer {
    background-color: rgba(10, 11, 30, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
}

.btn-legal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/* Impresszum sorok kompakt elrendezése (sorközök csökkentése) ide raktam a saját reklámot*/
.impresszum-details p {
    margin-bottom: 4px !important;
}
.credit-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.credit-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}
/* Modal ablakon belüli linkek (pl. DotRoll link) olvashatósága */
.modal-body a {
    color: #60a5fa !important;  /* Jól látható világoskék */
    text-decoration: underline;
}

.modal-body a:hover {
    color: #ffffff !important;  /* Egérráhúzásra fehérre vált */
}