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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 144, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(75, 0, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 20, 147, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0d2e 30%, #16213e 70%, #0f0f23 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    animation: mlhovyPohyb 20s ease-in-out infinite;
}

@keyframes mlhovyPohyb {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    25% { filter: hue-rotate(10deg) brightness(1.1); }
    50% { filter: hue-rotate(-5deg) brightness(0.9); }
    75% { filter: hue-rotate(15deg) brightness(1.05); }
}

#pozadiSlova {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.poletujiciSlovo {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    user-select: none;
    animation: poletovani 20s linear infinite;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.3),
        0 0 20px rgba(30, 144, 255, 0.2),
        0 0 30px rgba(220, 20, 60, 0.1);
}

.poletujiciObdelnik {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 60px;
    height: 30px;
    user-select: none;
    animation: poletovani 20s linear infinite;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.4),
        0 0 35px rgba(30, 144, 255, 0.3),
        0 0 50px rgba(220, 20, 60, 0.2),
        0 0 70px rgba(255, 20, 147, 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    z-index: 1;
    transition: z-index 0s;
}

.poletujiciObdelnik.expandujici {
    z-index: 1000 !important;
    animation: none !important;
    transition: all 1s ease-out !important;
    opacity: 1 !important;
}

.poletujiciObdelnik.expandujici.spustit {
    transform: rotate(0deg) !important;
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
}

@keyframes poletovani {
    0% {
        transform: translateX(-100px) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

.hlavniKontejner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.tajuplneSdeleni {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(138, 43, 226, 0.3),
        0 0 80px rgba(30, 144, 255, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.05);
    animation: kartaGlow 3s ease-in-out infinite alternate;
    position: relative;
    transition: all 1s ease-out;
}

.tajuplneSdeleni.fadeOut {
    opacity: 0;
    transform: scale(0.8) translateZ(-100px);
    filter: blur(10px);
}

@keyframes kartaGlow {
    0% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(138, 43, 226, 0.3),
            0 0 80px rgba(30, 144, 255, 0.2),
            inset 0 0 40px rgba(255, 255, 255, 0.05);
    }
    100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 60px rgba(138, 43, 226, 0.5),
            0 0 120px rgba(30, 144, 255, 0.3),
            inset 0 0 60px rgba(255, 255, 255, 0.08);
    }
}

h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(30, 144, 255, 0.3);
    animation: textovyGlow 4s ease-in-out infinite alternate;
}

@keyframes textovyGlow {
    0% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(138, 43, 226, 0.4),
            0 0 60px rgba(30, 144, 255, 0.3);
    }
    100% { 
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(138, 43, 226, 0.6),
            0 0 90px rgba(30, 144, 255, 0.4);
    }
}

p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.vstupniFormular {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

#presnyOdkaz {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 40px rgba(30, 144, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

#presnyOdkaz::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#presnyOdkaz:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(30, 144, 255, 0.3),
        0 0 90px rgba(220, 20, 60, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: vstupniPoleGlow 2s ease-in-out infinite alternate;
}

@keyframes vstupniPoleGlow {
    0% { 
        box-shadow: 
            0 0 30px rgba(138, 43, 226, 0.4),
            0 0 60px rgba(30, 144, 255, 0.3),
            0 0 90px rgba(220, 20, 60, 0.2),
            inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(138, 43, 226, 0.6),
            0 0 80px rgba(30, 144, 255, 0.4),
            0 0 120px rgba(220, 20, 60, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

#potvrdeniTlacitko {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8B2BD6 0%, #4A90E2 50%, #DC143C 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.3),
        0 0 40px rgba(30, 144, 255, 0.2),
        0 0 60px rgba(220, 20, 60, 0.1);
    position: relative;
    overflow: hidden;
}

#potvrdeniTlacitko::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#potvrdeniTlacitko:hover::before {
    left: 100%;
}

#potvrdeniTlacitko:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(30, 144, 255, 0.3),
        0 0 90px rgba(220, 20, 60, 0.2);
    animation: tlacitkoGlow 1.5s ease-in-out infinite alternate;
}

@keyframes tlacitkoGlow {
    0% { 
        box-shadow: 
            0 10px 30px rgba(138, 43, 226, 0.4),
            0 0 60px rgba(30, 144, 255, 0.3),
            0 0 90px rgba(220, 20, 60, 0.2);
    }
    100% { 
        box-shadow: 
            0 15px 40px rgba(138, 43, 226, 0.6),
            0 0 80px rgba(30, 144, 255, 0.4),
            0 0 120px rgba(220, 20, 60, 0.3);
    }
}

#potvrdeniTlacitko:active {
    transform: translateY(0);
}

.chybovaZprava {
    color: #ff6b6b;
    font-size: 1rem;
    text-align: center;
    margin-top: 40px;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    position: relative;
    z-index: 2;
}

.chybovaZprava.skryta {
    opacity: 0;
}

.chybovaZprava.fadeOut {
    opacity: 0;
}

.chybovaZprava .pismenko {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px) translateY(-5px);
}

@keyframes windyAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px) translateY(-5px) rotate(-3deg);
    }
    30% {
        opacity: 0.3;
        transform: translateX(-10px) translateY(-2px) rotate(-1deg);
    }
    60% {
        opacity: 0.7;
        transform: translateX(-3px) translateY(1px) rotate(0.5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

@keyframes windyDisappear {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    30% {
        opacity: 0.7;
        transform: translateX(3px) translateY(-1px) rotate(-0.5deg);
    }
    60% {
        opacity: 0.3;
        transform: translateX(10px) translateY(-2px) rotate(1deg);
    }
    100% {
        opacity: 0;
        transform: translateX(20px) translateY(-5px) rotate(3deg);
    }
}

@keyframes quickFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .tajuplneSdeleni {
        padding: 40px 20px;
        margin: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.paticka {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 1s ease-out;
}

.paticka.fadeOut {
    opacity: 0;
}

.stylizovanaLinka {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(138, 43, 226, 0.3) 20%, 
        rgba(30, 144, 255, 0.5) 50%, 
        rgba(220, 20, 60, 0.3) 80%, 
        transparent 100%);
    box-shadow: 
        0 0 10px rgba(138, 43, 226, 0.3),
        0 0 20px rgba(30, 144, 255, 0.2),
        0 0 30px rgba(220, 20, 60, 0.1);
    animation: linkaGlow 3s ease-in-out infinite alternate;
}

@keyframes linkaGlow {
    0% { 
        box-shadow: 
            0 0 10px rgba(138, 43, 226, 0.3),
            0 0 20px rgba(30, 144, 255, 0.2),
            0 0 30px rgba(220, 20, 60, 0.1);
        opacity: 0.7;
    }
    100% { 
        box-shadow: 
            0 0 15px rgba(138, 43, 226, 0.5),
            0 0 30px rgba(30, 144, 255, 0.3),
            0 0 45px rgba(220, 20, 60, 0.2);
        opacity: 1;
    }
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    animation: copyrightGlow 4s ease-in-out infinite alternate;
}

@keyframes copyrightGlow {
    0% { 
        color: rgba(255, 255, 255, 0.4);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    100% { 
        color: rgba(255, 255, 255, 0.6);
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(138, 43, 226, 0.1);
    }
}

.linkedinOdkaz {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: inline-block;
    margin-left: 8px;
    vertical-align: baseline;
    animation: linkedinGlow 5s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.linkedinOdkaz svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.05));
    vertical-align: text-bottom;
}

.linkedinOdkaz:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.linkedinOdkaz:hover svg {
    filter: 
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 20px rgba(30, 144, 255, 0.2));
}

@keyframes linkedinGlow {
    0% { 
        color: rgba(255, 255, 255, 0.3);
    }
    100% { 
        color: rgba(255, 255, 255, 0.5);
    }
}