/* Základní proměnné (Design Tokeny) */
:root {
    --bg-color: #050914;      /* Hluboká prémiová černomodrá */
    --bg-darker: #02040a;     /* Ještě tmavší pro kontrast sekcí */
    --primary-color: #00E5FF; /* Zářivá azurová / elektrická modrá inspirace Jablotron/SvetEnergie */
    --primary-hover: #00b3cc;
    --text-main: #f0f4f8;     /* Zářivě bílá / šedá pro čitelnost */
    --text-muted: #9ba4b5;
    --card-bg: rgba(20, 26, 43, 0.6); /* Glass effect podklad */
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset a základní chování */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Aby navigace nepřekryla obsah po kliku */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.text-accent {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* Tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.w-100 {
    width: 100%;
}

/* Navigace */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 9, 20, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 9, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px; /* Zvětšeno pro lepší čitelnost nahraného loga */
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Sekce */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Sníženo, aby vyniklo animované pozadí */
    animation: zoomAmbient 20s infinite alternate linear;
}

@keyframes zoomAmbient {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,9,20,0.7) 0%, rgba(5,9,20,1) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Služby Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 229, 255, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Smart Home Highlight */
.smart-home-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.smh-image {
    position: relative;
    min-height: 350px;
}

.smh-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.smh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, var(--bg-color) 100%);
}

.smh-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.smh-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.smh-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.glass {
    background: rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.glass:hover {
    background: var(--primary-color);
    color: #000;
}

/* Přednosti / Proč my */
.features-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05); /* Transparentní duch */
    line-height: 0.8;
}

.feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-text p {
    color: var(--text-muted);
}

/* Tým */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    width: 300px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #131b2f, #1b2643);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-placeholder {
    font-size: 3rem;
    color: var(--primary-color);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    margin-bottom: 5px;
}

.role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-contact {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

.team-contact i {
    margin-right: 5px;
}

.reference-banner {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.02));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px dashed rgba(0, 229, 255, 0.3);
}

.reference-banner strong {
    color: var(--primary-color);
}

/* Partneři (Marquee animace) */
.partners {
    padding: 60px 0;
    width: 100%;
}

.partners .section-title {
    margin-bottom: 50px;
    font-size: 1.8rem;
}

.partners-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Vytažení na 100vw přesně jako reference */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 120px;
    padding-right: 120px; /* Zajišťuje plynulý přechod do další skupiny - sjednoceno s gap */
    min-width: 100%;
    animation: marquee-scroll 45s linear infinite;
    flex-shrink: 0; /* Ensures group doesn't shrink and cause overlapping */
}

.partners-marquee:hover .marquee-group {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    gap: 15px;
    white-space: nowrap; /* Zabraňuje zalomení textu např. u TP-Link */
    opacity: 0.8;
    transition: var(--transition);
    filter: brightness(0) invert(0.6);
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    filter: brightness(1) invert(0) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* Zachování originální barvy pro HTML Tuya po najetí */
.custom-tuya-logo:hover > div {
    filter: none !important;
}

.partner-logo img, .partner-logo svg {
    height: 100%;
    max-height: 55px; /* Větší výchozí výška log pro lepší čitelnost */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.partner-logo .partner-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    height: auto;
    max-height: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
/* Kontakt Form a Info */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(0, 229, 255, 0.03);
    border-right: 1px solid var(--card-border);
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-list strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.contact-list a {
    color: var(--text-muted);
}
.contact-list a:hover {
    color: var(--primary-color);
}

.contact-form {
    padding: 50px;
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Footer */
footer {
    background: #02040a;
    border-top: 1px solid var(--card-border);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animace a Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- ANIMOVANÉ POZADÍ (Blobs) --- */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Úplně vespod, pod veškerým obsahem */
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4; /* Jemný nádech, aby nerušily text */
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 60vw;
    height: 60vh;
    background: var(--primary-color);
    top: -10%;
    left: -10vw;
    animation-duration: 28s;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    background: #007BFF;
    bottom: -20%;
    right: -10%;
    animation-duration: 35s;
    animation-delay: -5s;
}

.blob-3 {
    width: 40vw;
    height: 40vw;
    background: rgba(0, 229, 255, 0.4);
    top: 40%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5vw, 10vh) scale(1.1); }
    66% { transform: translate(-10vw, 5vh) scale(0.9); }
    100% { transform: translate(2vw, -15vh) scale(1); }
}

/* Klienti / Reference List */
.clients-list {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
}

.clients-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.clients-items {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.clients-items li {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: var(--transition);
}

.clients-items li:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.15);
}

.clients-items i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Cookie Oznámení */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 400px;
    background: rgba(5, 9, 20, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .smart-home-highlight {
        grid-template-columns: 1fr;
    }
    .smh-overlay {
        background: linear-gradient(0deg, var(--card-bg) 0%, transparent 100%);
    }
    .contact-card {
        grid-template-columns: 1fr;
    }
    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Přidáme zobrazení v JS pro mobile, teď provizorně schováme */
    }
    .hamburger {
        display: block;
    }
    .hero-buttons {
        flex-direction: column;
    }
}
