/* ==========================================================================
   ZÁKLADNÍ PROMĚNNÉ A RESET
   ========================================================================== */
:root { 
    --neon: #00ff99; 
    --dark: #050608; 
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.05);
} 

* { margin: 0; padding: 0; box-sizing: border-box; } 
html { scroll-behavior: smooth; } 

body {  
    background: var(--dark); 
    color: #fff; 
    font-family: 'JetBrains Mono', monospace;  
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
    line-height: 1.6; 
    width: 100%; 
    position: relative;
} 

.no-select { 
    user-select: none; 
    -webkit-user-select: none; 
} 

/* ==========================================================================
   HLAVNÍ LAYOUT (75% STRUKTURA)
   ========================================================================== */
.main-layout-structured { 
    display: flex; 
    width: 100%; 
    max-width: 2560px; 
    margin: 0 auto; 
} 

.side-space { 
    width: 12.5%; 
    flex-shrink: 0; 
} 

.content-core { 
    width: 75%; 
    flex-grow: 1; 
    padding: 60px 20px; 
} 

/* ==========================================================================
   NAVIGACE (MASTER NAV)
   ========================================================================== */
.master-nav { 
    background: rgba(5,6,8,0.95); 
    border-bottom: 2px solid var(--neon); 
    padding: 15px 40px; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(10px); 
} 

.nav-container-ultra { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1800px; 
    margin: 0 auto; 
} 

.logo { 
    font-family: 'Orbitron', sans-serif; 
    font-weight: 900; 
    font-size: 1.8rem; 
    text-decoration: none; 
    color: #fff; 
} 

.neon-fx { 
    color: var(--neon); 
    text-shadow: 0 0 10px var(--neon); 
} 

/* Desktop Menu */
.nav-links-desktop { 
    display: flex; 
    align-items: center; 
} 

.nav-links-desktop a { 
    color: #fff; 
    text-decoration: none; 
    margin-left: 30px; 
    font-weight: bold; 
    font-size: 0.85rem; 
    transition: 0.3s;
} 

.nav-links-desktop a:hover, .nav-links-desktop a.active { 
    color: var(--neon); 
} 

.hytale-neon { 
    border: 1px solid var(--neon); 
    padding: 5px 12px; 
    background: rgba(0, 255, 153, 0.05); 
} 

.nav-right-side {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-clock { 
    font-family: 'Orbitron', monospace; 
    color: var(--neon); 
    font-size: 0.9rem; 
    min-width: 100px; 
    text-align: right; 
}

/* ==========================================================================
   HAMBURGER & MOBILE OVERLAY
   ========================================================================== */
.hamburger { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
    z-index: 1100; 
} 

.hamburger span { 
    width: 30px; 
    height: 3px; 
    background: var(--neon); 
    border-radius: 10px; 
    transition: 0.4s; 
    box-shadow: 0 0 5px var(--neon); 
}

/* Animace Hamburger -> X */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-overlay { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100vh; 
    background: rgba(5, 6, 8, 0.98); 
    backdrop-filter: blur(20px);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    z-index: 1050; 
    transition: 0.6s cubic-bezier(0.77, 0.2, 0.05, 1.0);
} 

.nav-overlay.active { right: 0; } 

.nav-overlay a { 
    font-size: 2.2rem; 
    font-family: 'Orbitron', sans-serif; 
    color: white; 
    text-decoration: none; 
    margin: 15px 0; 
    transition: 0.3s; 
    text-transform: uppercase;
} 

.nav-overlay a:hover { 
    color: var(--neon); 
    transform: scale(1.1); 
} 

.close-hint { 
    margin-top: 40px; 
    color: #444; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-transform: uppercase;
}

/* ==========================================================================
   ANIMACE A EFEKTY
   ========================================================================== */
.scroll-reveal { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); 
} 
.scroll-reveal.active { opacity: 1; transform: translateY(0); } 

.anim-pulse { animation: pulseNeon 2s infinite; } 
@keyframes pulseNeon { 
    0% { box-shadow: 0 0 5px var(--neon); } 
    50% { box-shadow: 0 0 25px var(--neon); } 
    100% { box-shadow: 0 0 5px var(--neon); } 
} 
.anim-glow:hover { box-shadow: 0 0 20px #fff; transform: scale(1.05); } 

/* ==========================================================================
   HERO SEKCE
   ========================================================================== */
.ultra-hero { 
    height: 100vh; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding-top: 60px;
} 

.glitch-title { 
    font-family: 'Orbitron', sans-serif; 
    font-size: clamp(3.5rem, 12vw, 9rem); 
    margin-bottom: 20px; 
} 

.hero-desc { 
    max-width: 850px; 
    font-size: 1.25rem; 
    color: #ccc; 
    margin: 0 auto; 
} 

.sector-tag { 
    color: var(--neon); 
    font-size: 0.85rem; 
    letter-spacing: 5px; 
    margin-bottom: 10px; 
} 

/* ==========================================================================
   TLAČÍTKA
   ========================================================================== */
.btns { display: flex; gap: 20px; justify-content: center; margin-top: 50px; } 

.btn-primary { 
    background: var(--neon); 
    color: #050608 !important; 
    padding: 20px 45px; 
    text-decoration: none !important; 
    font-weight: 900; 
    transition: 0.3s; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    min-width: 200px; 
    border: none;
} 

.btn-outline { 
    border: 2px solid #fff; 
    color: #fff !important; 
    padding: 18px 45px; 
    text-decoration: none !important; 
    font-weight: 900; 
    transition: 0.3s; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    min-width: 200px;
} 

.btn-primary:hover { background: #fff; color: #000 !important; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   PANELY A OBSAH
   ========================================================================== */
.cyber-panel { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    padding: 60px; 
    margin-bottom: 60px; 
} 

.grid-flex { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
    flex-wrap: nowrap; 
} 

.grid-flex.reverse { flex-direction: row-reverse; } 
.text-block { flex: 1.2; } 
.visual-block { flex: 0.8; } 

.sub-label {
    color: var(--neon);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.image-frame { 
    border: 1px solid var(--neon); 
    position: relative; 
    overflow: hidden; 
} 

.image-frame img { 
    width: 100%; 
    display: block; 
    filter: brightness(0.8); 
} 

.scan-bar { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: var(--neon); 
    box-shadow: 0 0 10px var(--neon); 
    animation: scan 4s infinite linear; 
} 
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } } 

.stats-row { display: flex; gap: 30px; margin-top: 30px; } 
.stat-item { 
    background: rgba(255,255,255,0.03); 
    padding: 15px; 
    border: 1px solid rgba(255,255,255,0.1); 
    flex: 1; 
    text-align: center; 
} 
.stat-val { 
    display: block; 
    font-size: 2rem; 
    color: var(--neon); 
    font-family: 'Orbitron'; 
    font-weight: 900; 
} 
.stat-label { 
    font-size: 0.6rem; 
    color: #777; 
    letter-spacing: 1px; 
} 

/* ==========================================================================
   TERMINÁL
   ========================================================================== */
.terminal-window { 
    background: #0a0c10; 
    border: 1px solid var(--neon); 
    font-family: 'JetBrains Mono'; 
    border-radius: 4px; 
    overflow: hidden; 
}

.terminal-header { 
    background: #1a1c22; 
    padding: 10px; 
    display: flex; 
    align-items: center; 
    border-bottom: 1px solid #222; 
}

.t-dot { 
    height: 10px; 
    width: 10px; 
    border-radius: 50%; 
    margin-right: 8px; 
}
.red { background: #ff5f56; } 
.yellow { background: #ffbd2e; } 
.green { background: #27c93f; }

.terminal-body { 
    padding: 20px; 
    font-size: 0.9rem; 
    line-height: 1.2; 
}

.t-neon { color: var(--neon); font-weight: bold; }
.t-cursor { 
    width: 8px; 
    height: 15px; 
    background: var(--neon); 
    display: inline-block; 
    animation: blink 1s infinite; 
    vertical-align: middle; 
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   SLUŽBY (SERVICES GRID)
   ========================================================================== */
.h2-center {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Orbitron';
    letter-spacing: 4px;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 50px; 
}

.s-card { 
    background: var(--card-bg); 
    padding: 40px 30px; 
    border: 1px solid var(--border-color); 
    transition: 0.4s; 
}

.s-card:hover { 
    border-color: var(--neon); 
    transform: translateY(-5px); 
    background: rgba(0, 255, 153, 0.02);
}

.s-card i { 
    font-size: 2.5rem; 
    color: var(--neon); 
    margin-bottom: 20px; 
}

.s-card-desc p { 
    font-size: 0.85rem; 
    margin-bottom: 12px; 
    border-left: 2px solid rgba(0, 255, 153, 0.2); 
    padding-left: 10px; 
    color: #ccc; 
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cyber-footer { 
    background: #000; 
    padding: 80px 40px; 
    border-top: 2px solid var(--neon); 
} 

.footer-ultra-wide { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1800px; 
    margin: 0 auto; 
} 

.cyber-footer a, 
.cyber-footer a:visited, 
.cyber-footer a:hover, 
.cyber-footer a:active,
.ref-item-cz,
.ref-item-cz i {
    color: #00ff99 !important;
    text-decoration: none !important;
}

.btn-footer { 
    padding: 10px 20px; 
    border: 1px solid var(--neon); 
    color: var(--neon) !important; 
    text-decoration: none; 
    font-weight: bold; 
    background: rgba(0,255,153,0.05); 
    transition: 0.3s; 
    margin-left: 10px; 
} 

.btn-footer:hover { 
    background: var(--neon); 
    color: #000 !important; 
} 

.badge-v { 
    border: 1px solid var(--neon); 
    padding: 5px 10px; 
    color: var(--neon); 
    font-size: 0.7rem; 
    margin-top: 15px;
    display: inline-block;
}

.label {
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ==========================================================================
   MOBILNÍ FIXY (RESPONZIVITA)
   ========================================================================== */

/* Google AdSense slot */
.ads-mobile-slot {
    display: block;
    width: 90%;
    height: 100px; 
    margin: 20px auto; 
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 255, 153, 0.3);
    text-align: center;
    line-height: 100px;
    font-size: 0.6rem;
    color: #444;
    contain: strict;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html, body { 
        overflow-x: hidden !important; 
        width: 100vw; 
        position: relative; 
        touch-action: pan-y; 
        -webkit-overflow-scrolling: touch;
    }

    /* Optimalizace výkonu pro mobilní animace */
    .scroll-reveal, .glitch-title, .anim-glow, .master-nav, .image-frame img {
        transform: translateZ(0);
        will-change: transform, opacity;
    }

    .master-nav { 
        padding: 10px 5%; 
        backdrop-filter: blur(5px); 
    }

    .nav-links-desktop, .nav-clock { display: none; }
    .hamburger { display: flex; }

    .side-space { display: none; }
    
    .content-core { 
        width: 100% !important; 
        padding: 40px 5% !important; 
    }

    .ultra-hero { padding: 0 5%; }
    .glitch-title { font-size: clamp(2.2rem, 10vw, 4rem); }
    .hero-desc { font-size: 1rem; }

    .cyber-panel { padding: 30px 5% !important; }
    
    .grid-flex, .grid-flex.reverse { 
        flex-direction: column !important; 
        gap: 40px; 
    }
    
    .text-block, .visual-block { width: 100%; flex: none; }

    .btns { 
        flex-direction: column; 
        align-items: center; 
        gap: 15px; 
    }
    
    .btn-primary, .btn-outline { 
        width: 100%; 
        max-width: 350px; 
        margin: 0; 
    }

    .services-grid { grid-template-columns: 1fr; }
    
    .footer-ultra-wide { 
        flex-direction: column; 
        gap: 40px; 
        text-align: center; 
    }
    
    .ref-container-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* TOTÁLNÍ ZÁKAZ TISKU */
@media print {
    body * { display: none !important; }
    body::before {
        content: "BEZPEČNOSTNÍ_VAROVÁNÍ: TISK_ZAMÍTNUT // SEKTOR_V_AKTIVNÍ";
        display: block !important; 
        position: fixed; 
        top: 50%; left: 50%; 
        transform: translate(-50%, -50%); 
        font-family: 'JetBrains Mono';
        font-size: 18pt; 
        text-align: center; 
        color: #000;
    }
}