/* Custom Styles pro DigitalAgent */

body {
    background-color: #020617;
    color: #f1f5f9;
}

/* Tech Card Style */
.tech-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 184, 166, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .tech-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .tech-card:hover {
        border-color: rgba(20, 184, 166, 0.3);
        transform: translateY(-5px);
        background: rgba(15, 23, 42, 0.8);
    }

        .tech-card:hover::before {
            opacity: 1;
        }

/* Navigace */
.glass-nav {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Fix */
.mobile-menu-container {
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
}

/* Úprava paddingu pro mobilní menu */
.pb-32 {
    padding-bottom: 40rem !important;
}

/* Dropdown Menu Style */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nav Link Hover Effect */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: #14b8a6;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #020617;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #334155;
    }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.text-glow {
    text-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
}

.gradient-text-primary {
    background: linear-gradient(to right, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-mesh {
    background-color: transparent;
    background-image: radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
}

/* Floating CTA Styles */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    z-index: 999;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
    width: max-content;
    max-width: 90%;
    transition: bottom 0.1s ease-out;
}

    /* Třída pro absolutní pozicování, kterou přidá JS u patičky */
    .floating-cta.stopped {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
        opacity: 1;
    }

@keyframes slideUpFade {
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.floating-cta__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

    .floating-cta__inner:hover {
        background: rgba(15, 23, 42, 1);
        border-color: rgba(20, 184, 166, 0.3);
        transform: translateY(-2px);
    }

.floating-cta__img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .floating-cta__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.floating-cta__txt {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .floating-cta__txt p:first-child {
        font-size: 0.875rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
    }

    .floating-cta__txt p:last-child {
        font-size: 0.75rem;
        color: #94a3b8;
        white-space: nowrap;
    }

/* Mobile visibility adjustment for Floating CTA */
@media (max-width: 640px) {
    .floating-cta {
        width: 90%;
        bottom: 1.5rem;
    }

    .floating-cta__inner {
        justify-content: space-between;
        width: 100%;
    }

    .floating-cta__txt p:first-child,
    .floating-cta__txt p:last-child {
        white-space: normal;
    }
}

/* Skrytí CTA při otevřeném menu */
body:has(#mobile-menu:not(.hidden)) .floating-cta,
body[style*="overflow: hidden"] .floating-cta {
    display: none !important;
}

/* Úprava tlačítek v CTA Kontakt sekci na mobilu - pod sebe */
@media (max-width: 640px) {
    /* Cílíme na sekci s konkrétním pozadím */
    section.bg-brand-900\/10 .flex.justify-center.gap-4 {
        flex-direction: column;
        width: 100%;
    }

        /* Roztáhneme tlačítka na celou šířku */
        section.bg-brand-900\/10 .flex.justify-center.gap-4 a {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
}
