/* -- PRELOADER (Úvodná čierna obrazovka) -- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
.preloader-logo { width: 250px; height: auto; filter: invert(1); animation: preloaderPulse 1.5s infinite alternate ease-in-out; }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderPulse { 0% { transform: scale(0.95); opacity: 0.7; } 100% { transform: scale(1.05); opacity: 1; } }

/* -- HLAVNÝ ŠTÝL -- */
:root {
    --bg: #09090b; --surface: #18181b; --surface-hover: #27272a;
--primary: #FF4500; 
    --primary-hover: #D63A00;
    --text-main: #fafafa; --text-muted: #a1a1aa; --border: #3f3f46;
    --radius: 16px; --container: 1300px;
}

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

body {
    background-color: var(--bg); color: var(--text-main); font-family: 'Inter', sans-serif;
    min-height: 100vh; display: flex; flex-direction: column; 
    overflow-y: scroll; /* TOTO OPRAVÍ SKÁKANIE: Vynúti scrollbar natrvalo */
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* -- Navigácia -- */
nav { 
    height: 100px; /* Zväčšené z 90px na 100px kvôli väčšiemu logu */
    display: flex; align-items: center; border-bottom: 1px solid var(--border); flex-shrink: 0; 
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); }
.logo img { 
    height: 60px; /* Tu musí byť 60px */
    filter: invert(1); transition: transform 0.3s ease; 
}
.logo:hover img { transform: scale(1.05); }
.nav-links { display: flex; gap: 3rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.3s; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

main { flex: 1; position: relative; display: flex; padding: 2rem 0; }

/* -- LAYOUT 1: DOMOV -- */
.home-layout { align-items: center; justify-content: center; flex-direction: column; width: 100%; }
.hero-bg-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90vw; max-width: 1000px; opacity: 0.02; filter: invert(1); pointer-events: none; z-index: 0; }
.home-title { text-align: center; position: relative; z-index: 2; margin-bottom: 3rem; }
.home-title h1 { font-size: clamp(2.5rem, 4vw, 4.5rem); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 0.5rem; }
.home-title span { color: var(--primary); }
.split-cards { display: flex; gap: 2rem; width: 100%; max-width: 1000px; position: relative; z-index: 2; align-items: stretch; }
.system-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4rem 3rem; text-align: center; text-decoration: none; color: var(--text-main); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.5rem; }
.system-card:hover { border-color: var(--primary); background: var(--surface-hover); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(251, 146, 60, 0.15); }
.system-card i { color: var(--primary); }
.system-card h2 { font-size: 2.2rem; margin-bottom: -0.5rem; }
.system-card p { color: var(--text-muted); font-size: 1.05rem; }

/* -- LAYOUT 2: O NÁS -- */
.about-layout { align-items: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; width: 100%; align-items: center; }
.about-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature-box { background: var(--surface); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: border-color 0.3s; }
.feature-box:hover { border-color: var(--primary); }
.feature-box.large { grid-column: span 2; background: linear-gradient(145deg, var(--surface), #1a1510); border-color: rgba(251, 146, 60, 0.3); }
.feature-box i { color: var(--primary); margin-bottom: 1rem; display: block; }
.feature-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-box p { color: var(--text-muted); font-size: 0.9rem; }

/* -- LAYOUT 3: KONTAKT -- */
.contact-layout { align-items: center; }
.contact-wrapper { display: flex; width: 100%; min-height: 75vh; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.contact-info-panel { flex: 1; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.contact-info-panel h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--primary); }
.contact-info-panel > p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }
.info-items { display: flex; flex-direction: column; gap: 2rem; }
.info-row { display: flex; align-items: center; gap: 1.5rem; }
.info-row i { color: #000; background: var(--primary); padding: 14px; border-radius: 12px; }
.info-row div span { display: block; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.info-row div strong { font-size: 1.2rem; font-weight: 500; }
.contact-form-panel { flex: 1; background: #111113; padding: 4rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--border); }
.form-group { margin-bottom: 1.5rem; }

/* VYLEPŠENIE 4: UX formulára - pridanie štýlu pre Label */
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }
.form-control { width: 100%; padding: 1rem 1.2rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { border-color: var(--primary); outline: none; }
.btn-primary { background-color: var(--primary); color: #000; padding: 1.2rem; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; width: 100%; transition: all 0.3s; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 1rem; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

/* Mobilný fallback */
@media (max-width: 1024px) {
    .split-cards, .about-grid, .contact-wrapper { flex-direction: column; grid-template-columns: 1fr; height: auto; }
    .feature-box.large { grid-column: span 1; }
    .contact-info-panel, .contact-form-panel { padding: 2rem; }
    .nav-links { display: none; }
}
/* ==========================================================================
   AWWWARDS STYLE: AKTUALIZOVANÉ GLOBÁLNE ANIMÁCIE V STYLE.CSS
   ========================================================================== */

/* Zabezpečíme, aby bolo logo v navigácii VŽDY biele, bez ohľadu na farbu PNG */
.logo img {
    display: block;
    /* Vynúti bielu farbu: najprv čierna (brightness 0), potom invertovaná na bielu */
    filter: brightness(0) invert(1); 
    transition: filter 0.3s ease;
}

/* ==========================================================================
   AWWWARDS STYLE: GLOBÁLNE ANIMÁCIE V STYLE.CSS (EXTRÉMNE SVIETENIE)
   ========================================================================== */

/* Zabezpečíme, aby bolo logo v navigácii VŽDY biele */
.logo img {
    display: block;
    /* Vynúti bielu farbu: najprv čierna (brightness 0), potom invertovaná na bielu */
    filter: brightness(0) invert(1); 
    transition: filter 0.3s ease;
}

/* 1. ANIMÁCIA: EXTRÉMNE "RÁDIOAKTÍVNE" SVIETENIE OKOLO LOGA (10x viac) */
@keyframes intenseLogoGlow {
    0% {
        transform: scale(1);
        /* V základnom stave svieti len jemne */
        filter: brightness(0) invert(1) 
                drop-shadow(0 0 10px rgba(255, 69, 0, 0.6))
                drop-shadow(0 0 20px rgba(255, 69, 0, 0.3));
    }
    50% {
        transform: scale(1.03); /* Ešte o kúsok väčší nádych (pulz) */
        /* EXTRÉMNE SVIETENIE: 5 tieňov naskladaných na seba! */
        filter: brightness(0) invert(1) 
                drop-shadow(0 0 15px rgba(255, 69, 0, 1)) 
                drop-shadow(0 0 30px rgba(255, 69, 0, 1)) 
                drop-shadow(0 0 60px rgba(255, 69, 0, 0.9))
                drop-shadow(0 0 90px rgba(255, 69, 0, 0.7))
                drop-shadow(0 0 130px rgba(255, 69, 0, 0.5));
    }
    100% {
        transform: scale(1);
        filter: brightness(0) invert(1) 
                drop-shadow(0 0 10px rgba(255, 69, 0, 0.6))
                drop-shadow(0 0 20px rgba(255, 69, 0, 0.3));
    }
}

/* Aplikácia novej extrémne intenzívnej animácie pre logo s triedou .logo-pulse */
.logo-pulse img {
    animation: intenseLogoGlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 2. ANIMÁCIA: Decentná fade-up animácia pri načítaní celej stránky */
@keyframes fadeUpCustom {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-up {
    opacity: 0;
    animation: fadeUpCustom 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Postupné oneskorenie (stagger efekt) pre animate-up */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* 3. ANIMÁCIA: Elegantné pulzovanie SO SVIETENÍM pre nadpisy (napr. Nezáväzná cenová ponuka) */
@keyframes elegantGlowPulse {
    0% { transform: scale(1); text-shadow: 0 0 10px rgba(255, 69, 0, 0.2), 0 0 20px rgba(255, 69, 0, 0.1); }
    50% { transform: scale(1.02); text-shadow: 0 0 20px rgba(255, 69, 0, 0.8), 0 0 40px rgba(255, 69, 0, 0.5), 0 0 60px rgba(255, 69, 0, 0.3); }
    100% { transform: scale(1); text-shadow: 0 0 10px rgba(255, 69, 0, 0.2), 0 0 20px rgba(255, 69, 0, 0.1); }
}
.elegant-glow-title {
    animation: elegantGlowPulse 3.5s ease-in-out infinite;
    display: inline-block;
}

/* 4. ANIMÁCIA: Jemnejšie pulzovanie a svietenie pre CTA tlačidlá (napr. Odoslať požiadavku) */
@keyframes subtleGlowPulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 69, 0, 0.1); }
    50% { transform: scale(1.015); box-shadow: 0 0 15px rgba(255, 69, 0, 0.6), 0 0 30px rgba(255, 69, 0, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 69, 0, 0.1); }
}
.cta-pulse {
    animation: subtleGlowPulse 3.5s ease-in-out infinite;
}

/* ==========================================================================
   VYPNUTIE ANIMÁCIÍ NA MOBILOCH
   ========================================================================== */
@media (max-width: 900px) {
    /* Vypnutie všetkých kľúčových CSS animácií */
    .animate-up,
    .logo-pulse img,
    .elegant-glow-title,
    .cta-pulse,
    .preloader-logo {
        animation: none !important;
    }

    /* Aby prvky, ktoré pôvodne čakali na "fade-up", nezostali neviditeľné */
    .animate-up {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Preloader by mohol zablokovať obrazovku, ak neprebehne jeho animácia */
    #preloader {
        display: none !important;
    }
}
/* ============================================================
   LIGHTBOX — global image zoom
   ============================================================ */
.lightbox-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: 9999;
    align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.lightbox-close {
    position: fixed; top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 10000;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.profile-img-container { cursor: zoom-in; }
