/* 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;
}

/* 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: calc(100vh - 100px);
    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_index.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;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Tlačítka */
.cta-button {
    padding: 18px 45px;
    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);
}

.secondary-button {
    padding: 18px 45px;
    background: transparent;
    color: #E0E0E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hexagonální grid */
.features {
    padding: 100px 20px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
}

.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hexagon {
    position: relative;
    width: 100%;
    padding-bottom: 115%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.95), rgba(40, 40, 40, 0.95));
    transition: transform 0.3s ease;
}

.hexagon:hover {
    transform: translateY(-10px);
}

.hexagon-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.hexagon-content i {
    font-size: 2.5em;
    color: #4d9fff;
    margin-bottom: 15px;
}

.hexagon-content h3 {
    color: #4d9fff;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Benefity */
.benefits {
    padding: 100px 20px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(40, 40, 40, 0.95));
}

.benefit-content {
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-content h2 {
    text-align: center;
    color: #4d9fff;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.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;
}

/* 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-color: #4d9fff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: #3a7acc;
    transform: translateY(-2px);
}

/* 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;
    }
    
    .hero h2 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hexagon-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
