/* Základní nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #E0E0E0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #1e1e1e;
    border-top: 5px solid #4d9fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader.fade-out {
    opacity: 0;
}

/* Cookie lišta */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#acceptCookies {
    background: #4d9fff;
    color: white;
}

#rejectCookies {
    background: transparent;
    border: 1px solid #4d9fff;
    color: #4d9fff;
}

.cookie-buttons a {
    color: #4d9fff;
    text-decoration: none;
    padding: 8px 20px;
}

/* Tlačítko pro návrat nahoru */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4d9fff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    background: #3a7acc;
    transform: translateY(-3px);
}

#back-to-top.show {
    display: flex;
}

/* Hlavička */
header {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.header-container {
    padding: 20px 40px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #E0E0E0;
    font-size: 2em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #4d9fff;
}

/* Rozbalovací menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: rgba(30, 30, 30, 0.95);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: visibility 0s linear 0.2s, opacity 0.2s linear;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown-content a {
    color: #E0E0E0;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    background: transparent;
}

.dropdown-content a:hover {
    background-color: transparent;
    color: #4d9fff;
}

/* Hero sekce */
.hero {
    height: 60vh;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('elektro_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
    filter: brightness(0.7) saturate(1.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #4d9fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.6em;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
/* Služby */
.services {
    padding: 100px 20px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
}

.services h2 {
    text-align: center;
    color: #4d9fff;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.95), rgba(40, 40, 40, 0.95));
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3em;
    color: #4d9fff;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #4d9fff;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.service-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '•';
    color: #4d9fff;
    position: absolute;
    left: 0;
}

/* Proces */
.process {
    padding: 100px 20px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(40, 40, 40, 0.95));
}

.process h2 {
    text-align: center;
    color: #4d9fff;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #4d9fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: #4d9fff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Benefity */
.benefits {
    padding: 100px 20px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
}

.benefits h2 {
    text-align: center;
    color: #4d9fff;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.95), rgba(40, 40, 40, 0.95));
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5em;
    color: #4d9fff;
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: #4d9fff;
    margin-bottom: 15px;
}

/* CTA sekce */
.cta {
    padding: 100px 20px;
    background: linear-gradient(145deg, rgba(77, 159, 255, 0.1), rgba(58, 122, 204, 0.1));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #4d9fff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(145deg, #4d9fff, #3a7acc);
    color: #E0E0E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(77, 159, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 159, 255, 0.4);
}

/* Patička */
footer {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    margin-bottom: 10px;
}

.social-links a {
    font-size: 24px;
    color: #E0E0E0;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4d9fff;
}

/* Responzivní design */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .dropdown-content {
        position: static;
        background: none;
        box-shadow: none;
        display: none;
        min-width: 100%;
        margin-top: 0;
        visibility: visible;
        opacity: 1;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px;
        text-align: center;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .services-grid,
    .process-timeline,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .cookie-buttons button,
    .cookie-buttons a {
        width: 100%;
    }

    #back-to-top {
        bottom: 80px;
    }
}

/* Animace pro AOS */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Optimalizace pro tisk */
@media print {
    .preloader,
    .cookie-banner,
    #back-to-top {
        display: none !important;
    }
}
