/* --- ZÁKLADNÍ NASTAVENÍ --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Fialový gradient + Fixed pozadí */
    background: radial-gradient(circle at center, #2e1a36 0%, #050505 70%);
    background-attachment: fixed;
    background-size: cover;
    color: #888;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* --- FIX PRO KOTVY --- */
section, header, footer, div[id] {
    /* Změněno na 50px dle požadavku */
    scroll-margin-top: 50px; 
}

/* --- HORNÍ NAVIGACE --- */
.top-nav-container {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    z-index: 9999;
    pointer-events: none;
    flex-wrap: nowrap;
}

.nav-glass-pill {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.main-menu {
    padding: 6px 6px 6px 25px;
    gap: 25px;
    flex-shrink: 0;
}

.nav-link {
    text-decoration: none;
    color: #bbb;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover { color: #fff; }

.nav-separator {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.2);
}

.lang-switch-inline {
    position: relative;
    display: flex;
    width: 86px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    padding: 3px;
    flex-shrink: 0;
}

.lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1;
}

.lang-btn {
    flex: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mini-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-btn.active .mini-flag {
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slide-right {
    transform: translateX(100%);
}

.contact-card {
    padding: 5px 6px 5px 6px;
    padding-left: 6px;
    gap: 12px;
    flex-shrink: 0;
}

.nav-profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.nav-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0px;
    padding-right: 5px;
    white-space: nowrap;
}

.nav-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.1;
}

.nav-role {
    color: #888;
    font-size: 0.7rem;
    font-weight: 400;
}

.nav-cta-btn {
    text-decoration: none;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}


/* --- HERO SEKCE --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 15vh; 
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-container { margin-bottom: 35px; }

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #aaa;
    width: 100%;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance; 
}

h1 .highlight {
    color: #fff;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.sub-title {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.separator { margin: 0 15px; color: #444; }

/* --- LOGO SLIDER --- */
.logo-slider {
    background: transparent;
    padding: 30px 0;
    overflow: hidden;
    position: absolute;
    bottom: 40px;
    width: 100%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-slide-track {
    display: flex;
    width: calc(200px * 15);
    animation: scroll 30s linear infinite;
}

.slide {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7; /* Lehce zvednuto, aby byla loga vidět i bez hoveru */
}

.slide img {
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
}

/* ODSTRANĚN HOVER EFEKT (CURSOR: POINTER) */

/* --- SERVICES & GENERAL --- */
.services-section, 
.slider-section,
.pricing-section,
.contact-section {
    background: transparent;
    color: #fff;
    padding-top: 100px; 
    padding-bottom: 160px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 100px; 
    max-width: 850px;
    color: #eee;
}

.light-text { color: #666; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 50px 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(138, 43, 226, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.card h3 { font-size: 1.6rem; margin-bottom: 20px; font-weight: 400; color: #fff; }
.card p { font-size: 1.05rem; color: #aaa; line-height: 1.7; }

/* --- WORK SLIDER (FIXED & CORRECTED) --- */
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    /* Pevná minimální výška celého slideru */
    min-height: 600px; 
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    
    /* FIX: Absolutní pozice šipek */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

.nav-btn:hover { background: #fff; color: #000; border-color: #fff; }

.slider-content {
    display: grid;
    grid-template-columns: 2fr 3fr; 
    gap: 80px;
    width: 100%;
    padding: 0 80px; /* Aby se obsah nedotýkal šipek */
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
}

.slider-content.fade-out { opacity: 0; transform: translateX(-10px); }

.text-col { 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; /* Zarovnání odshora */
    /* Pevná výška textového bloku */
    min-height: 500px; 
    padding-top: 40px;
}

.slide-headline { 
    font-size: 2.2rem; 
    font-weight: 300; 
    line-height: 1.3; 
    margin-bottom: 40px; 
    color: #999;
    /* OPRAVA: Odstraněno flex, přidána výška pro dlouhé texty */
    min-height: 6.5em; 
    display: block;
    word-break: break-word;
}
.slide-headline .white { color: #fff; font-weight: 400; text-shadow: 0 0 15px rgba(255,255,255,0.2); }

.company-info h3 { font-size: 2.5rem; color: #fff; margin-bottom: 5px; }
.role-label { display: block; font-size: 1.2rem; color: #ccc; margin-bottom: 25px; font-weight: 500; }

.slide-desc { 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 35px; 
    max-width: 95%; 
    color: #bbb;
    /* Pevná výška pro popis */
    min-height: 6.8em; 
}

.tags-container { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { font-size: 0.8rem; text-transform: uppercase; padding: 10px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; color: #ccc; letter-spacing: 0.5px; }

.image-col { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    height: 100%; 
}

.device-frame {
    width: 100%;
    max-width: 100%; 
    aspect-ratio: 4 / 3;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* --- STAT CARDS --- */
.visual-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.15), transparent 70%);
}

.stat-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    animation: fadeInCard 0.5s ease-out;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.stat-big-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-big-number {
    font-size: 3.5rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-trend {
    font-size: 1rem;
    color: #4ade80; 
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 500;
    -webkit-text-fill-color: #4ade80;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.stat-item-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-item-value {
    font-size: 1.4rem;
    font-weight: 500;
    color: #eee;
}

.stat-graph-line {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.stat-graph-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #fff);
    width: 0%;
    animation: fillBar 1s ease-out forwards;
}

@keyframes fillBar { to { width: 70%; } }

.stat-date-label {
    font-size: 0.65rem;
    color: #666;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-card.popular {
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding-top: 60px;
    transform: scale(1.05);
    z-index: 3;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #8a2be2;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-header h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.price .currency {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.price-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: #4ade80;
    font-size: 1.1rem;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.pricing-btn:hover {
    background: #fff;
    color: #000;
}

.btn-glow {
    background: #8a2be2;
    border: none;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.btn-glow:hover {
    background: #9d4edd;
    color: #fff;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.exchange-note {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 30px;
    font-style: italic;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

/* --- CONTACT SECTION --- */
.contact-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.contact-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-glass-card h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 500px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.email-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.email-btn .icon { font-size: 1.4rem; }

.social-links { display: flex; gap: 15px; }

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

.social-btn.instagram:hover { color: #E1306C; }
.social-btn.linkedin:hover { color: #0077b5; }

/* --- ANIMACE --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 5)); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FADE EFEKT --- */
.fade-out-text {
    opacity: 0 !important;
    transform: translateY(10px);
}
#hero-title, #hero-subtitle, #services-title, .card h3, .card p {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIBILITA --- */
@media (max-width: 1200px) {
    .top-nav-container {
        transform: scale(0.9);
        transform-origin: top center;
    }
}

@media (max-width: 992px) {
    .contact-card { padding: 5px; }
    .nav-profile-img, .nav-profile-info { display: none; }
    .nav-cta-btn { padding: 8px 16px; font-size: 0.8rem; }

    h1 { font-size: 2.5rem; min-height: auto; }

    /* Work Slider na tabletu */
    .slider-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
        padding: 0; 
    }
    
    .nav-btn { width: 45px; height: 45px; }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
    
    .text-col { min-height: auto; padding-top: 0; }
    .slide-headline { min-height: auto; margin-bottom: 30px;}
    .slide-desc { min-height: auto; }
    
    .company-info { margin-top: 20px; }
    .image-col { order: -1; margin-bottom: 20px; }
    
    .hero { padding-top: 25vh; }
    
    .stat-big-number { font-size: 2.8rem; }
    .stat-item-value { font-size: 1.2rem; }

    /* Responsivita pro pricing */
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .top-nav-container { top: 15px; padding: 0 5px; gap: 5px; }
    .nav-glass-pill { transform: scale(0.85); }
    
    .hero { padding-bottom: 120px; }
    .services-section, .slider-section, .pricing-section, .contact-section { padding-top: 80px; padding-bottom: 100px; }
    .section-title { font-size: 2rem; margin-bottom: 60px; }
    
    h1 { font-size: 2rem; }
    .sub-title { font-size: 0.9rem; }
    .separator { display: none; }
    
    .logo-slider { bottom: 20px; }
    .card { padding: 30px; }

    /* Responsivita kontaktu */
    .contact-glass-card { padding: 40px 20px; }
    .contact-glass-card h2 { font-size: 2.2rem; }
    .email-btn { font-size: 1rem; padding: 12px 30px; }
}

/* --- FOOTER --- */
.footer-section {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}