/* =========================================================================
   KREATÍV SZOLGÁLTATÁSOK — TELJESEN ÖNÁLLÓ STÍLUSLAP (MINDEN ASZTALI JAVÍTÁSSAL)
   ========================================================================= */

/* GLOBÁLIS BIZTONSÁGI ALAPOK */
html, body {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: clip !important;
    margin: 0;
    padding: 0;
    background-color: #000000;
}

p, .editorial-desc, .deck-text p, .subtitle {
    text-align: justify !important;
    text-justify: inter-word !important; /* Kizárólag a szavak közötti térközt növeli */
    
    /* TELJESEN LEKAPCSOLJUK A SZÓELVÁLASZTÁST */
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
    
    /* MEGTILTJUK A SZAVAK KETTÉVÁGÁSÁT */
    word-break: keep-all !important;
    overflow-wrap: break-word !important; /* Ha egy szó extrém hosszú lenne, csak akkor töri meg, hogy ne lógjon ki a képernyőről */
    
    /* Az utolsó sor természetes, balra zárt lezárása */
    text-align-last: left !important; 
}

/* ASZTALI INTRO REZSIM */
.video-intro-container {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 99999 !important;
    background-color: #000000 !important;
}

#intro-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* SAFARI-BIZTOS ÁTUGRÁS GOMB ASZTALRA */
.skip-btn {
    position: absolute !important;
    bottom: 30px !important; 
    right: 40px !important;
    color: rgba(255,255,255,0.9) !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important; 
    text-transform: uppercase !important; 
    letter-spacing: 2px !important;
    cursor: pointer !important; 
    z-index: 2147483647 !important;
    -webkit-transform: translateZ(100px) !important;
    transform: translateZ(100px) !important;
}

#main-header {
    z-index: 100000 !important;
}

/* =========================================================================
   1. VASZSIGORÚ ASZTALI FEJLÉC FIXÁLÁS (1024px felett minden monitorra)
   Ez garantálja, hogy a Navigáció SOSE legyen kuka!
   ========================================================================= */
@media (min-width: 1024px) {
    header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 40px !important;
        width: 100% !important;
        background: transparent !important;
    }
    
    nav {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 10px 30px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important; /* TILOS összenyomni a menüt! */
    }
    
    nav a {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .logo { flex-shrink: 0 !important; }
    .btn-dark { flex-shrink: 0 !important; white-space: nowrap !important; }
}

/* =========================================================================
   2. LAPTOP ARÁNYOSÍTÁS (1024px - 1440px között) — CSAK A TARTALOMRA
   ========================================================================= */
@media (min-width: 1024px) and (max-width: 1440px) {
    .services-section {
        padding: 0 5% 80px 5% !important;
        padding-top: 70px !important; 
    }

    .section-header {
        margin-top: 0 !important;
        margin-bottom: 3vw !important; /* Kicsit közelebb hozzuk a rácshoz is */
    }

    .section-header h2 {
        font-size: 3.2vw !important;
        line-height: 1.1 !important;
    }

    /* Bento Grid arányosítása laptop szélességhez */
    .bento-grid {
        grid-auto-rows: 24vw !important;
        gap: 1.5vw !important;
        max-width: 90vw !important;
    }

    .bento-item {
        padding: 2.5vw !important;
        border-radius: 22px !important;
    }

    .bento-content h3 {
        font-size: 1.8vw !important;
        margin-bottom: 0.8vw !important;
    }

    .bento-content p {
        font-size: 0.95vw !important;
        line-height: 1.4 !important;
        max-width: 28vw !important;
    }

    .bento-full .bento-content p {
        max-width: 45vw !important;
    }
    
    #main-header {
        margin-bottom: 0 !important; /* Biztosítjuk, hogy a fejléc se toljon semmit lefelé */
    }
    
    
    
}

/* =========================================================================
   3. MOBIL OPTIMALIZÁLÁS (768px alatt)
   ========================================================================= */
@media (max-width: 768px) {
    *, *::before, *::after { box-sizing: border-box !important; }
    h1, h2, h3, h4, h5, p, span { word-wrap: break-word !important; overflow-wrap: break-word !important; max-width: 100% !important; }

    .skip-btn {
        bottom: calc(30px + env(safe-area-inset-bottom)) !important;
        right: 25px !important;
        font-size: 0.75rem !important;
        padding: 12px 20px !important;
        -webkit-transform: translateZ(200px) !important;
        transform: translateZ(200px) !important;
    }

    header, header.scrolled { 
        display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important;
        align-items: center !important; padding: 15px 20px !important; background: transparent !important; box-shadow: none !important; width: 100% !important;
    }
    
    .logo { font-size: 1.1rem !important; margin: 0 !important; color: #ffffff !important; }
    .logo img { height: 45px !important; margin-right: 10px !important; }
    .btn-dark { width: auto !important; padding: 10px 15px !important; font-size: 0.8rem !important; margin: 0 !important; background-color: #ffffff !important; color: #000000 !important; }
    
    nav { 
        order: 3 !important; width: 100% !important; position: static !important; transform: none !important;
        overflow-x: auto !important; white-space: nowrap !important; justify-content: flex-start !important; 
        padding: 12px 15px !important; margin-top: 10px !important; border-radius: 25px !important; 
        border: 1px solid rgba(255, 255, 255, 0.1) !important; background-color: rgba(20, 20, 20, 0.85) !important; box-shadow: none !important;
    }
    nav::-webkit-scrollbar { display: none !important; }
    nav a { color: #ffffff !important; opacity: 0.8 !important; text-decoration: none; }
    nav a.active-link { color: var(--text-emerald) !important; opacity: 1 !important; }

    .services-section { padding-left: 25px !important; padding-right: 25px !important; padding-top: 40px !important; width: 100% !important; overflow: hidden !important; }
    .section-title { font-size: 2.2rem !important; line-height: 1.1 !important; }

    .bento-grid { display: block !important; width: 100% !important; }
    .bento-item { 
        display: flex !important; flex-direction: column !important; justify-content: flex-end !important;
        width: 100% !important; height: 320px !important; margin-bottom: 20px !important;
        grid-column: unset !important; grid-row: unset !important; padding: 25px !important;
    }
    .bento-bg { opacity: 0.5 !important; filter: grayscale(0%) !important; transform: none !important; }
    .bento-content h3 { font-size: 1.6rem !important; }
    .bento-content p { font-size: 0.95rem !important; max-width: 100% !important; }

    footer { flex-direction: column !important; text-align: center !important; gap: 15px !important; padding: 30px 20px !important; background-color: #050505 !important; }
    .footer-links { margin-top: 10px !important; }
    .footer-links a { margin: 0 10px !important; color: #ffffff !important; }
}