/* Global Reset a základní nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /* Celkové pozadí – lehký gradient od světlejšího šedého po tmavší */
    background: linear-gradient(180deg, #2d2d2d, #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;
}

/* Hlavička a Navigace */
header {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.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('pozadi_onas.png');
    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);
}

/* Sekce s obsahem (zarámované bloky) */
.section-box {
    margin: 80px auto;
    max-width: 1000px;
    /* Zesvětlený gradient pozadí v zarámovaných blocích */
    background: linear-gradient(145deg, rgba(80, 80, 80, 0.95), rgba(60, 60, 60, 0.95));
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.section-content h3 {
    font-size: 2em;
    color: #4d9fff;
    margin-bottom: 20px;
}

.section-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* Úprava pro odrážky: šipka je přímo před textem */
.section-content ul li {
    font-size: 1.1em;
    margin: 10px 0;
}

.section-content ul li::before {
    content: '→ ';
    color: #4d9fff;
}

/* CTA Sekce – odstraněný rámeček a zúžená výška */
.cta {
    padding: 60px 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;
    padding: 40px;
}

.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;
}

/* 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;
}

/* 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;
}

/* AOS Animace */
[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;
    }
}

/* Responzivní design */
@media screen and (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .section-box {
        padding: 30px;
        margin: 60px auto;
    }
}

@media screen and (max-width: 768px) {
    .hero h2 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .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;
    }
}
