/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* IT News Ticker Styles */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 120, 212, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ticker-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.ticker-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-scroll {
    height: 100%;
    display: flex;
    align-items: center;
    animation: tickerMove 45s linear infinite;
    white-space: nowrap;
}

@keyframes tickerMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-scroll.paused {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.ticker-item .severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
    letter-spacing: 0.3px;
}

.ticker-item .severity.vysoká {
    background: #dc3545;
    color: white;
}

.ticker-item .severity.střední {
    background: #ffc107;
    color: #1a1a1a;
}

.ticker-item .severity.nízká {
    background: #28a745;
    color: white;
}

.ticker-item .category {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 10px;
    text-transform: uppercase;
}

.ticker-item .title {
    font-weight: 500;
}

.ticker-item .link-icon {
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ticker-item:hover .link-icon {
    opacity: 1;
}

.ticker-controls {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.ticker-controls button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ticker-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.ticker-update {
    font-size: 0.75rem;
    opacity: 0.8;
    font-style: italic;
}

.loading-ticker {
    padding: 0 20px;
    font-style: italic;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .news-ticker {
        height: 50px;
        font-size: 0.85rem;
    }
    
    .ticker-header {
        padding: 0 15px;
    }
    
    .ticker-label {
        font-size: 0.8rem;
    }
    
    .ticker-item {
        margin-right: 30px;
        font-size: 0.8rem;
    }
    
    .ticker-controls {
        padding: 0 15px;
        gap: 10px;
    }
    
    .ticker-controls button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .ticker-update {
        display: none;
    }
}

/* Adjust footer to account for ticker */
footer {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    footer {
        margin-bottom: 50px;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background: transparent;
    min-height: 100vh;
}

/* Moderní barevné pozadí */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

/* Plovoucí barevné částice */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatParticle 8s ease-in-out infinite;
    backdrop-filter: blur(1px);
    opacity: 0.8;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Barevné vlny */
.color-wave {
    position: absolute;
    border-radius: 50%;
    animation: waveFlow 12s ease-in-out infinite;
    filter: blur(2px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Pulzní vlna při kliku */
.pulse-wave {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseExpand 2s ease-out;
    pointer-events: none;
    filter: blur(1px);
}

/* Animace pro částice */
@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.1); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg) scale(0.9); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg) scale(1.05); 
        opacity: 0.7;
    }
}

/* Animace pro vlny */
@keyframes waveFlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: scale(1.1) rotate(90deg); 
        opacity: 0.5;
    }
    50% { 
        transform: scale(0.9) rotate(180deg); 
        opacity: 0.4;
    }
    75% { 
        transform: scale(1.05) rotate(270deg); 
        opacity: 0.6;
    }
}

/* Animace pro pulzní vlnu */
@keyframes pulseExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0); 
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.6;
    }
    100% { 
        transform: translate(-50%, -50%) scale(2.5); 
        opacity: 0;
    }
}

/* Duha gradient pozadí */
@keyframes rainbowBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* IT Kurzory */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="4" y="8" width="24" height="16" rx="2" fill="%232563eb" stroke="%23ffffff" stroke-width="2"/><rect x="6" y="10" width="20" height="12" fill="%23333"/><rect x="8" y="12" width="4" height="2" fill="%2310b981"/><rect x="13" y="12" width="4" height="2" fill="%2310b981"/><rect x="18" y="12" width="4" height="2" fill="%2310b981"/><rect x="8" y="15" width="6" height="2" fill="%23f59e0b"/><rect x="16" y="15" width="6" height="2" fill="%23f59e0b"/><rect x="8" y="18" width="8" height="2" fill="%23ef4444"/><rect x="18" y="18" width="4" height="2" fill="%23ef4444"/></svg>') 16 16, auto;
}

/* Procesor kurzor pro služby */
.services {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="6" y="6" width="20" height="20" fill="%23374151" stroke="%232563eb" stroke-width="2" rx="2"/><rect x="8" y="8" width="16" height="16" fill="%232563eb"/><rect x="10" y="10" width="12" height="12" fill="%23333"/><rect x="12" y="12" width="8" height="8" fill="%2310b981"/><rect x="2" y="10" width="4" height="2" fill="%23d1d5db"/><rect x="2" y="14" width="4" height="2" fill="%23d1d5db"/><rect x="2" y="18" width="4" height="2" fill="%23d1d5db"/><rect x="26" y="10" width="4" height="2" fill="%23d1d5db"/><rect x="26" y="14" width="4" height="2" fill="%23d1d5db"/><rect x="26" y="18" width="4" height="2" fill="%23d1d5db"/></svg>') 16 16, auto;
}

/* RAM kurzor pro karty */
.service-card {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="2" y="12" width="28" height="8" fill="%23374151" stroke="%232563eb" stroke-width="2" rx="1"/><rect x="4" y="14" width="4" height="4" fill="%2310b981"/><rect x="10" y="14" width="4" height="4" fill="%2310b981"/><rect x="16" y="14" width="4" height="4" fill="%2310b981"/><rect x="22" y="14" width="4" height="4" fill="%2310b981"/><rect x="6" y="8" width="2" height="4" fill="%23d1d5db"/><rect x="14" y="8" width="2" height="4" fill="%23d1d5db"/><rect x="22" y="8" width="2" height="4" fill="%23d1d5db"/></svg>') 16 16, auto;
}

/* Network kurzor pro navigaci */
nav a {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="8" cy="8" r="3" fill="%232563eb"/><circle cx="24" cy="8" r="3" fill="%232563eb"/><circle cx="8" cy="24" r="3" fill="%232563eb"/><circle cx="24" cy="24" r="3" fill="%232563eb"/><circle cx="16" cy="16" r="4" fill="%2310b981"/><line x1="8" y1="8" x2="16" y2="16" stroke="%23d1d5db" stroke-width="2"/><line x1="24" y1="8" x2="16" y2="16" stroke="%23d1d5db" stroke-width="2"/><line x1="8" y1="24" x2="16" y2="16" stroke="%23d1d5db" stroke-width="2"/><line x1="24" y1="24" x2="16" y2="16" stroke="%23d1d5db" stroke-width="2"/></svg>') 16 16, auto;
}

/* Server kurzor pro contact */
.contact {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="6" y="8" width="20" height="16" fill="%23f3f4f6" stroke="%232563eb" stroke-width="2" rx="2"/><rect x="8" y="11" width="16" height="2" fill="%239ca3af"/><rect x="8" y="14" width="16" height="2" fill="%239ca3af"/><rect x="8" y="17" width="16" height="2" fill="%239ca3af"/><circle cx="22" cy="10" r="2" fill="%2310b981"/></svg>') 16 16, auto;
}

@keyframes float {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(-5deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h2 {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: #2563eb;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero sekce */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Sekce služeb */
.services {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px) saturate(180%);
}

.services h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(24px);
    position: relative;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About sekce */
.about {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.about-text ul {
    list-style: none;
}

.about-text ul li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 2rem;
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Contact sekce */
.contact {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.contact-item.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item.clickable:hover::before {
    left: 100%;
}

.contact-item.clickable:hover {
    border-color: #2563eb;
    transform: translateY(-6px) scale(1.02);
}

.contact-item.clickable:active {
    transform: translateY(-2px) scale(0.98);
}

.contact-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #667eea;
    font-weight: 600;
    margin: 0;
}

/* Footer */
footer {
    background: rgba(51, 51, 51, 0.95);
    color: white;
    text-align: center;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

/* Responzivní design */
@media (max-width: 768px) {
    /* Mobilní optimalizace pozadí */
    .floating-particle {
        animation-duration: 12s;
        filter: none;
        backdrop-filter: none;
    }
    
    .color-wave {
        animation-duration: 16s;
        filter: blur(1px);
    }
    
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Optimalizace pro touch zařízení */
    .service-card:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}