/* =========================================
   1. ZÁKLADNÍ PROMĚNNÉ A RESET
========================================= */
:root {
    --bg-dark: #0B0D17;
    --bg-card: #1A1D2A;
    --tech-blue: #0057FF;
    --tech-blue-glow: rgba(0, 87, 255, 0.6);
    --tech-blue-hover: #0046CC;
    --text-light: #F8F9FA;
    --text-muted: #A0AABF;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    line-height: 1.6; 
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body::before { content: ''; position: fixed; top: -20%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0, 87, 255, 0.04) 0%, transparent 70%); border-radius: 50%; z-index: -3; pointer-events: none; }
body::after { content: ''; position: fixed; bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(64, 0, 255, 0.02) 0%, transparent 70%); border-radius: 50%; z-index: -3; pointer-events: none; }

/* =========================================
   2. HLAVIČKA A NAVIGACE
========================================= */
header { position: fixed; top: 0; width: 100%; padding: 12px 10%; display: flex; justify-content: space-between; align-items: center; background: rgba(11, 13, 23, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.logo-link { text-decoration: none; display: flex; align-items: center; height: 55px; }
.logo-img { transform: scale(1.5); transform-origin: left center; max-height: 100px; width: auto; transition: all 0.3s ease; filter: brightness(0) invert(1); }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: white; }
.logo-text span { color: var(--tech-blue); }

.main-nav { display: flex; align-items: center; gap: 15px; }

.magnetic-link { position: relative; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 8px 16px; transition: color 0.3s ease; z-index: 1; }
.magnetic-link::before { 
    content: ''; position: absolute; left: var(--x, 50%); top: var(--y, 50%); 
    transform: translate(-50%, -50%); 
    width: 140px; height: 80px; 
    background: radial-gradient(ellipse, rgba(0, 87, 255, 0.12) 0%, transparent 60%); 
    border-radius: 50%; 
    filter: blur(18px); 
    opacity: 0; transition: opacity 0.4s ease; 
    z-index: -1; pointer-events: none; 
}

.magnetic-link:hover { color: white; }
.magnetic-link:hover::before { opacity: 1; }

.btn-login { border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 20px; padding: 6px 20px; color: white; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; margin-left: 10px; }
.btn-login:hover { background: white; color: var(--bg-dark); border-color: white; box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }

/* =========================================
   3. HERO SEKCE
========================================= */
#hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
#particles-js, #particles-contact { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#particles-js { transition: filter 0.8s ease; }
.stars-boost { filter: brightness(2.5) drop-shadow(0 0 8px rgba(0, 87, 255, 0.8)); }

.hero-content { position: relative; z-index: 2; max-width: 800px; pointer-events: auto; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
.cta-group { display: flex; gap: 20px; justify-content: center; }

.btn { padding: 15px 30px; border-radius: 4px; font-weight: 600; text-decoration: none; transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; cursor: pointer; display: inline-block; font-family: inherit; font-size: 1rem; }
.btn-primary { background-color: var(--tech-blue); color: white; border: 2px solid var(--tech-blue); }
.btn-primary:hover { background-color: var(--tech-blue-hover); box-shadow: 0 0 25px var(--tech-blue-glow); }
.btn-outline { background-color: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background-color: white; color: var(--bg-dark); border-color: white; }

/* =========================================
   4. ROZLOŽENÍ
========================================= */
section { padding: 100px 10%; position: relative; z-index: 2; }
.content-wrapper, .content-side { position: relative; z-index: 3; }

.tech-bg { position: relative; background-color: transparent; }
.tech-bg::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, var(--bg-dark) 0%, #0d101b 15%, #0d101b 85%, var(--bg-dark) 100%); z-index: -2; pointer-events: none; }
.tech-bg::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 40px 40px; background-position: center center; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%); }

.glow-accent { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 87, 255, 0.1) 0%, rgba(11, 13, 23, 0) 70%); border-radius: 50%; z-index: -1; pointer-events: none; }
.glow-accent.left { top: 10%; left: -150px; }
.glow-accent.right { bottom: 10%; right: -150px; }

.section-title { font-size: 2.5rem; margin-bottom: 20px; color: white; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--tech-blue); margin-top: 10px; }

/* Odstranění modré odrážky pouze u vycentrovaných kontaktů */
#contact .section-title::after { display: none; }

#about p { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; }

.section-with-3d { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.section-with-3d.reverse-layout { flex-direction: row-reverse; }
.content-side { flex: 1; min-width: 0; z-index: 5; }
.model-container { width: 450px; height: 450px; min-height: 450px; z-index: 4; cursor: grab; }
.model-container:active { cursor: grabbing; }

/* =========================================
   5. KARTY SLUŽEB (Apple Liquid Glass)
========================================= */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; position: relative; z-index: 5; }
.spotlight-card { position: relative; border-radius: 14px; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.spotlight-card:hover { transform: translateY(-8px); }

.card-inner { position: relative; z-index: 1; background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px; padding: 40px 30px; height: 100%; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); }
.card-inner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle 300px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.07), transparent); opacity: 0; transition: opacity 0.3s ease; z-index: -1; pointer-events: none; }

/* Decentní indikátor klikatelnosti u karet Služeb (Ultra jemný Apple-like) */
#services-grid .spotlight-card .card-inner::after {
    content: '•••';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 0.95rem; /* Zmenšeno pro minimalističtější vzhled */
    color: rgba(255, 255, 255, 0.5); 
    opacity: 0.3; 
    letter-spacing: 1px; /* Výchozí menší mezera */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center right;
}

#services-grid .spotlight-card:hover .card-inner::after {
    opacity: 0.7; 
    color: rgba(255, 255, 255, 0.9); 
    letter-spacing: 3px; /* Zvětšeno jen velmi jemně, žádný obrovský rozestup */
    transform: scale(1.02); /* Téměř neznatelný zoom */
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4); 
}

.spotlight-card { 
    position: relative; 
    border-radius: 14px; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    cursor: pointer; /* Zaručí zobrazení ruky s ukazováčkem */
}

.card-inner h3 { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: white; 
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); 
    position: relative; 
    z-index: 2; 
}
.spotlight-card:hover .card-inner h3 { 
    color: white; /* Zabraňuje přebarvení do modra */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); 
    transform: translateY(-2px); 
}
.card-inner p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 2; }

.detail-split { display: flex; gap: 50px; align-items: center; }
.detail-text-area { flex: 1; }
.detail-3d-area { flex: 1; }
.detail-text-area h3 { font-size: 2rem; color: white; margin-bottom: 15px; }
.tech-bullets { list-style: none; padding: 0; margin-top: 20px; }
.tech-bullets li { position: relative; padding-left: 30px; margin-bottom: 15px; font-size: 1.05rem; color: var(--text-light); font-weight: 600; }
.tech-bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--tech-blue); border-radius: 50%; box-shadow: 0 0 10px var(--tech-blue-glow); }

/* =========================================
   6. TECHNOLOGIE A KONTAKT
========================================= */
.marquee-wrapper { width: 100%; display: flex; overflow: hidden; user-select: none; gap: 65px; mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); margin-top: 40px; padding: 20px 0; }
.marquee-content { flex-shrink: 0; display: flex; align-items: center; justify-content: space-around; min-width: 100%; gap: 65px; animation: scroll-x 25s linear infinite; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 65px)); } }
.tech-logo { height: 45px; width: auto; padding: 10px; box-sizing: content-box; filter: grayscale(100%) opacity(0.3) brightness(0.8); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer; }
.tech-logo:hover { filter: grayscale(0%) opacity(1) brightness(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)); transform: scale(1.1); }

.contact-wrapper { display: flex; gap: 40px; max-width: 1000px; margin: 0 auto; text-align: left; }
.contact-info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-info-box a { color: var(--tech-blue); text-decoration: none; }
.contact-info-box p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 15px; }
.tech-form { flex: 1.5; display: flex; flex-direction: column; gap: 20px; }
.spotlight-wrapper { position: relative; background: rgba(255,255,255,0.05); border-radius: 6px; padding: 2px; overflow: hidden; }
.spotlight-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle 80px at var(--x, 50%) var(--y, 50%), var(--tech-blue), transparent); opacity: 0; transition: opacity 0.3s; z-index: 0; }
.spotlight-wrapper:hover::before { opacity: 1; }
.spotlight-wrapper input, .spotlight-wrapper textarea { width: 100%; position: relative; z-index: 1; background: var(--bg-card); color: white; border: none; border-radius: 4px; padding: 15px; font-family: inherit; font-size: 1rem; outline: none; }
.spotlight-wrapper textarea { resize: vertical; }
.spotlight-wrapper input::placeholder, .spotlight-wrapper textarea::placeholder { color: #5A6580; }
.btn-wrapper { background: transparent; padding: 0; }
.btn-wrapper::before { display: none; }

footer { text-align: center; padding: 20px; background: #000; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid #222; }

/* =========================================
   8. PRÉMIOVÉ 2D SVG ANIMACE
========================================= */
.tech-svg-anim { width: 100%; max-width: 500px; height: auto; overflow: visible; }

/* PCB Animace */
.pcb-tracks path { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 2; stroke-linejoin: miter; stroke-linecap: square; }
.pcb-chip-body { fill: var(--bg-card); stroke: var(--tech-blue); stroke-width: 3; transition: all 0.3s; }
.pcb-chip-inner { fill: none; stroke: var(--tech-blue); stroke-width: 1; opacity: 0.5; }
.pcb-pins { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; }

@keyframes pcbPulseChargeShoot { 0% { stroke-dashoffset: 600; opacity: 0; } 5% { opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pcbChipElegantGlow { 0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 87, 255, 0.3)); stroke: var(--tech-blue); } 50% { filter: drop-shadow(0 0 20px rgba(0, 87, 255, 0.9)); stroke: #fff; } }

.pcb-chip-group { animation: pcbChipElegantGlow 4s ease-in-out infinite; }
.pcb-pulses path { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: miter; stroke-linecap: round; stroke-dasharray: 40 600; stroke-dashoffset: 600; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 12px var(--tech-blue)); }

.p-1 { animation: pcbPulseChargeShoot 3.2s cubic-bezier(0.6, 0, 0.1, 1) infinite -3.5s; }
.p-2 { animation: pcbPulseChargeShoot 4.5s cubic-bezier(0.3, 0, 0.2, 1) infinite -2.3s; }
.p-3 { animation: pcbPulseChargeShoot 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite -1.1s; }
.p-4 { animation: pcbPulseChargeShoot 3.9s cubic-bezier(0.7, 0, 0.1, 1) infinite -3.4s; }
.p-5 { animation: pcbPulseChargeShoot 3.1s cubic-bezier(0.6, 0, 0.2, 1) infinite -0.8s; }
.p-6 { animation: pcbPulseChargeShoot 4.2s cubic-bezier(0.6, 0, 0.2, 1) infinite -2.7s; }
.p-7 { animation: pcbPulseChargeShoot 2.9s cubic-bezier(0.5, 0, 0.1, 1) infinite -3.9s; }
.p-8 { animation: pcbPulseChargeShoot 3.5s cubic-bezier(0.3, 0, 0.2, 1) infinite -0.2s; }
.p-9 { animation: pcbPulseChargeShoot 4.1s cubic-bezier(0.8, 0, 0.2, 1) infinite -3.8s; }
.p-10 { animation: pcbPulseChargeShoot 3.3s cubic-bezier(0.3, 0, 0.1, 1) infinite -1.5s; }
.p-11 { animation: pcbPulseChargeShoot 4.7s cubic-bezier(0.6, 0, 0.2, 1) infinite -4.1s; }
.p-12 { animation: pcbPulseChargeShoot 3.0s cubic-bezier(0.8, 0, 0.2, 1) infinite -2.2s; }
.p-13 { animation: pcbPulseChargeShoot 3.8s cubic-bezier(0.7, 0, 0.1, 1) infinite -0.9s; }
.p-14 { animation: pcbPulseChargeShoot 2.6s cubic-bezier(0.6, 0, 0.2, 1) infinite -2.7s; }
.p-15 { animation: pcbPulseChargeShoot 4.3s cubic-bezier(0.6, 0, 0.2, 1) infinite -3.1s; }
.p-16 { animation: pcbPulseChargeShoot 3.4s cubic-bezier(0.3, 0, 0.1, 1) infinite -0.4s; }
.p-17 { animation: pcbPulseChargeShoot 4.0s cubic-bezier(0.8, 0, 0.2, 1) infinite -2.8s; }
.p-18 { animation: pcbPulseChargeShoot 2.7s cubic-bezier(0.6, 0, 0.2, 1) infinite -1.4s; }
.p-19 { animation: pcbPulseChargeShoot 4.6s cubic-bezier(0.5, 0, 0.1, 1) infinite -3.9s; }
.p-20 { animation: pcbPulseChargeShoot 3.6s cubic-bezier(0.3, 0, 0.2, 1) infinite -2.5s; }

/* PID Animace */
.pid-line { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; stroke-linejoin: round; }
.pid-text { fill: #fff; font-size: 14px; font-weight: 800; font-family: var(--font-main); text-anchor: middle; }
.pid-text-small { fill: var(--text-muted); font-size: 11px; font-family: var(--font-main); }
.pid-text-sp { fill: var(--tech-blue); font-size: 12px; font-weight: 800; font-family: var(--font-main); }
.pid-block { fill: var(--bg-card); stroke: var(--tech-blue); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(0,87,255,0.2)); }
.pid-comparator { fill: var(--bg-card); stroke: var(--tech-blue); stroke-width: 2; transition: all 0.3s; }
.pid-comp-cross { fill: none; stroke: var(--tech-blue); stroke-width: 2; }
.pid-node { fill: var(--tech-blue); }

@keyframes pidPulseTravel { 0% { stroke-dashoffset: 400; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pid-pulse { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20 400; stroke-dashoffset: 400; animation: pidPulseTravel 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px var(--tech-blue)); }
.pp-sp { animation-delay: 0s; } .pp-err { animation-delay: 0.5s; } .pp-cv { animation-delay: 1.2s; } .pp-out { animation-delay: 2.0s; } .pp-fb { animation-delay: 2.5s; }

@keyframes pidCompError { 0%, 5% { stroke: var(--tech-blue); filter: drop-shadow(0 0 0px var(--tech-blue)); } 15%, 25% { stroke: #FF0055; filter: drop-shadow(0 0 15px #FF0055); } 40%, 100% { stroke: var(--tech-blue); filter: drop-shadow(0 0 0px var(--tech-blue)); } }
.pid-comparator { animation: pidCompError 4s infinite; }
.pid-axis { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; stroke-linecap: round; }
.pid-grid { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.pid-sp-line { fill: none; stroke: var(--tech-blue); stroke-width: 2; stroke-dasharray: 6 6; }

@keyframes pidDrawCurve { 0%, 10% { stroke-dashoffset: 600; opacity: 0; } 15% { opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 95% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 600; opacity: 0; } }
.pid-pv-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: pidDrawCurve 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); }

@keyframes pidScanLineMove { 0%, 10% { transform: translateX(0px); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateX(430px); opacity: 1; } 95% { transform: translateX(430px); opacity: 0; } 100% { transform: translateX(0px); opacity: 0; } }
.pid-scan-line { stroke: rgba(0, 87, 255, 0.8); stroke-width: 1; animation: pidScanLineMove 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }

/* IoT Animace */
.iot-tracks path { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 2; }
.iot-node { fill: var(--bg-card); stroke: var(--tech-blue); stroke-width: 2; }
.iot-server-bg { fill: rgba(0, 87, 255, 0.05); stroke: var(--tech-blue); stroke-width: 2; }
.iot-server-rack { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
/* =========================================
   16. IoT MRAK (Nový tvar a styl)
========================================= */

/* Animace jemného vznášení */
@keyframes floatCloud {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); } /* Decentní pohyb o 5px nahoru */
}

/* Styl mraku - návrat k původnímu "vibe" + animace */
.iot-cloud {
    /* Tmavý poloprůhledný vnitřek */
    fill: rgba(11, 13, 23, 0.8); 
    /* Bílá/světlá linka */
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 2;
    /* Modrá tech-záře */
    filter: drop-shadow(0 0 8px var(--tech-blue));
    
    /* Aplikace animace vznášení */
    animation: floatCloud 4s ease-in-out infinite;
    transform-origin: center; /* Důležité pro správný střed pohybu */
}

@keyframes iotPacketMove { 0% { stroke-dashoffset: 400; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes iotServerPulse { 0%, 75%, 100% { fill: rgba(0, 87, 255, 0.05); filter: drop-shadow(0 0 0px var(--tech-blue)); } 85% { fill: rgba(0, 87, 255, 0.3); filter: drop-shadow(0 0 20px var(--tech-blue)); } }
@keyframes iotLedBlink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; filter: drop-shadow(0 0 5px #fff); } }

.iot-server-group { animation: iotServerPulse 3s infinite; }
.iot-led { fill: #fff; opacity: 0.2; }
.led-sync { animation: iotLedBlink 1s infinite alternate; }

.pkt { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 15 400; stroke-dashoffset: 400; animation: iotPacketMove 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 12px var(--tech-blue)); }
.pkt-1 { animation-delay: 0s; } .pkt-2 { animation-delay: 0.6s; } .pkt-3 { animation-delay: 1.5s; } .pkt-4 { animation-delay: 0.9s; } .pkt-5 { animation-delay: 2.1s; }

/* Zabezpečení Animace */
@keyframes shieldLevitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.sec-shield-group { animation: shieldLevitate 5s ease-in-out infinite; }
.sec-shield-base { fill: var(--bg-card); stroke: var(--tech-blue); stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6)); }
.sec-shield-inner { fill: rgba(0, 87, 255, 0.05); stroke: rgba(255, 255, 255, 0.15); stroke-width: 2; stroke-linejoin: round; }
.sec-check { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px var(--tech-blue)); }

@keyframes radarWaveExpand { 0% { transform: scale(0.6); opacity: 0.8; stroke-width: 4; } 100% { transform: scale(2.5); opacity: 0; stroke-width: 1; } }
.sec-waves { transform-origin: 250px 250px; }
.sec-wave { fill: none; stroke: var(--tech-blue); transform-origin: 250px 250px; animation: radarWaveExpand 4s cubic-bezier(0.1, 0.5, 0.3, 1) infinite; }
.w-1 { animation-delay: 0s; } .w-2 { animation-delay: 1.3s; } .w-3 { animation-delay: 2.6s; }

/* =========================================
   9. COOKIE LIŠTA A GDPR STRÁNKA
========================================= */
.cookie-banner {
    position: fixed; bottom: 30px; right: 30px; max-width: 450px;
    background: linear-gradient(135deg, rgba(26, 29, 42, 0.95) 0%, rgba(11, 13, 23, 0.95) 100%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 87, 255, 0.1);
    z-index: 9999; display: flex; flex-direction: column; gap: 20px;
}

.cookie-content h4 { color: white; margin-bottom: 10px; font-size: 1.1rem; }
.cookie-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { flex: 1; }

@media (max-width: 600px) {
    .cookie-banner { bottom: 0; right: 0; left: 0; max-width: 100%; border-radius: 20px 20px 0 0; padding: 20px; }
    .cookie-actions { flex-direction: column; }
}

.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--tech-blue); text-decoration: underline; }
@media (max-width: 768px) {
    footer { flex-direction: column; gap: 15px; text-align: center; padding: 20px !important; }
}

.gdpr-content h3 { color: var(--tech-blue); margin-top: 35px; margin-bottom: 15px; font-size: 1.4rem; }
.gdpr-content p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 15px; line-height: 1.7; }
.gdpr-content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.gdpr-content ul li { position: relative; padding-left: 25px; margin-bottom: 10px; color: var(--text-light); line-height: 1.6; }
.gdpr-content ul li::before { content: '▹'; position: absolute; left: 0; color: var(--tech-blue); font-weight: bold; }

/* =========================================
   10. PAGE TRANSITION
========================================= */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark); z-index: 99999;
    pointer-events: none; opacity: 1;
}

/* =========================================
   11. JAZYKOVÝ PŘEPÍNAČ
========================================= */
.lang-switch { display: flex; align-items: center; gap: 10px; margin: 0 10px; font-size: 0.9rem; font-weight: 600; }
.lang-switch a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.lang-switch a:hover { color: white; }
.lang-switch .active { color: var(--tech-blue); pointer-events: none; }
.lang-switch .separator { color: rgba(255, 255, 255, 0.15); font-weight: 300; }

/* =========================================
   12. 404 ERROR PAGE
========================================= */
.error-page-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 20px 80px 20px; position: relative; box-sizing: border-box;
}

.error-content { text-align: center; z-index: 2; max-width: 500px; width: 100%; }
.sonar-classic { width: 100%; max-width: 350px; height: auto; margin-bottom: 40px; display: block; margin-left: auto; margin-right: auto; }
.grid-circle { fill: none; stroke: var(--tech-blue); stroke-width: 1; opacity: 0.3; }
.grid-circle.outer { stroke-width: 2; opacity: 0.5; }
.grid-circle.inner { opacity: 0.7; fill: rgba(0, 87, 255, 0.1); }
.grid-line { stroke: var(--tech-blue); stroke-width: 1; opacity: 0.2; }

.sonar-sweep-group { transform-origin: 150px 150px; animation: sonarSweepAnim 4s linear infinite; }
.sweep-line { stroke: var(--tech-blue); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--tech-blue)); }

@keyframes sonarSweepAnim { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.blip-circle { fill: #ff3333; opacity: 0; }
.blip-ring { fill: none; stroke: #ff3333; stroke-width: 1; opacity: 0; }
.blip-text { fill: #ff3333; font-family: 'Inter', monospace; font-size: 12px; font-weight: 600; opacity: 0; }

.target-404 .blip-circle, .target-404 .blip-text { animation: blipFade 4s linear infinite; animation-delay: 0.5s; }
.target-404 .blip-ring { animation: blipExpand 4s linear infinite; animation-delay: 0.5s; }

.n1 { animation: blipFadeNoise 4s linear infinite 2.8s; } 
.n2 { animation: blipFadeNoise 4s linear infinite 3.5s; } 
.n3 { animation: blipFadeNoise 4s linear infinite 1.2s; } 

@keyframes blipFade { 0%, 10% { opacity: 0; } 12% { opacity: 1; filter: drop-shadow(0 0 8px #ff3333); } 25% { opacity: 0.8; } 100% { opacity: 0; } }
@keyframes blipExpand { 0%, 10% { opacity: 0; r: 12; } 12% { opacity: 0.6; } 40% { opacity: 0; r: 25; } }
@keyframes blipFadeNoise { 0%, 10% { opacity: 0; } 12% { opacity: 0.6; } 40% { opacity: 0; } }

.error-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; color: white; }
.error-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }

/* =========================================
   13. LOGIN OVERLAY (Dark Elegant Glass)
========================================= */
.login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: radial-gradient(circle at center, rgba(11, 13, 23, 0.55) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
}

.login-modal {
    position: relative; width: 100%; max-width: 420px;
    background: linear-gradient(135deg, rgba(35, 40, 55, 0.35) 0%, rgba(11, 13, 23, 0.95) 35%);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px; padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.spotlight-wrapper input:focus { outline: none !important; box-shadow: none !important; }

.btn-close-login { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: var(--text-muted); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color 0.3s ease; }
.btn-close-login:hover { color: white; }
.login-header h3 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; line-height: 1.5; }
.forgot-link { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; transition: color 0.3s ease; }
.forgot-link:hover { color: var(--tech-blue); }

/* =========================================
   14. HLAVNÍ MOBILNÍ OPTIMALIZACE A RESPONZIVITA
========================================= */
.hamburger { display: none; cursor: pointer; padding: 10px; flex-direction: column; gap: 6px; }
.hamburger .bar { width: 30px; height: 3px; background-color: white; border-radius: 3px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

@media (max-width: 1100px) {
    .section-with-3d, .section-with-3d.reverse-layout { flex-direction: column; }
    .model-container { width: 100%; height: 300px; min-height: 300px; margin-top: 40px; }
    .contact-wrapper { flex-direction: column; width: 100%; }
    .tech-form { width: 100%; }
}

@media (max-width: 900px) {
    
/* Úprava hlavičky a loga pro mobily */
     header { flex-direction: row !important; justify-content: space-between !important; padding: 12px 5% !important; }
    .logo-img { transform: scale(1.0) !important; }
    
    /* Absolutní ukotvení hamburger menu */
    #hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1002 !important;
        position: absolute !important;
        right: 5% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* Celoobrazovkové menu */
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(11, 13, 23, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column !important; justify-content: center !important; align-items: center; gap: 35px !important;
        transition: right 0.5s cubic-bezier(0.8, 0, 0.2, 1);
        z-index: 1000;
    }
    .main-nav.nav-open { right: 0; }
    .main-nav .magnetic-link { font-size: 1.5rem; }
    .main-nav .btn-login { margin-top: 20px; font-size: 1.2rem; padding: 10px 40px; }
    .lang-switch { font-size: 1.2rem; margin-top: 10px; }

    /* Animace křížku */
    #hamburger.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #hamburger.is-active .bar:nth-child(2) { opacity: 0; }
    #hamburger.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .detail-split { flex-direction: column; }
    .detail-3d-area { width: 100%; height: 350px; padding: 0; }
    .tech-svg-anim { max-width: 100%; height: 100%; }
}

@media (max-width: 768px) {
    .cta-group { flex-direction: column; }
    h1 { font-size: 2.2rem; }
    section { padding: 60px 5%; }
    .error-page-container { padding: 100px 20px 60px 20px; }
    .error-title { font-size: 2.5rem; }
    .sonar-classic { max-width: 280px; }
    
    /* Failsafe pro GSAP na velmi pomalých mobilech */
    .contact-info-box.gsap-card, .tech-form.gsap-card { opacity: 1 !important; transform: none !important; }
}

@media (hover: none) {
    .magnetic-link::before { display: none !important; }
    .spotlight-card:hover { transform: none !important; }
    .card-inner::before { display: none !important; }
    .spotlight-wrapper::before { display: none !important; }
    .tech-logo { filter: grayscale(0%) opacity(1) brightness(1) !important; }
}

/* =========================================
   15. SOCIÁLNÍ IKONY (Kontakt)
========================================= */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 20px; height: 20px;
    stroke-width: 1.5;
}

/* Hover efekt - rozsvícení a lehké povyskočení */
.social-icon:hover {
    background: rgba(0, 87, 255, 0.15);
    color: var(--tech-blue);
    border-color: var(--tech-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.2);
}