/* Základní reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a; /* Temné pozadí */
    color: #ffffff;
    line-height: 1.6;
}

/* Kontejner pro centrování obsahu */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 150px; /* Nastav si podle reálné velikosti loga */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00d2ff; /* Neonově modrá/kyanová barva */
}

/* Hero Sekce (Video na pozadí) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Ztmavení videa pro čitelnost textu */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-content h1 span {
    color: #00d2ff;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #ccc;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #00d2ff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Sekce O nás a Služby */
section {
    padding: 100px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline (Náš příběh) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid #333;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}

.timeline-item.highlight::before {
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
}

.timeline-item h3 {
    color: #00d2ff;
    margin-bottom: 10px;
}

.timeline-item p {
    color: #aaa;
}

/* Grid služeb */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #111;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #aaa;
}


footer {
    background: #050505;
    padding: 60px 0 30px 0;
    border-top: 1px solid #1a1a1a;
}

footer h2 {
    margin-bottom: 20px;
}

.email {
    font-size: 1.5rem;
    color: #00d2ff;
    font-weight: 700;
    margin-bottom: 40px;
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Jednoduché skrytí na mobilu, dalo by se rozšířit na hamburger menu */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
}

/* Sekce Reference */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center; /* Vycentruje kartu, pokud je zatím jen jedna */
}

.reference-card {
    background: linear-gradient(145deg, #111111, #0a0a0a);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reference-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.1);
}

.ref-year {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.reference-card h3 {
    position: relative;
    z-index: 1;
    color: #00d2ff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ref-role {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.ref-desc {
    position: relative;
    z-index: 1;
    color: #aaa;
}

.ref-desc strong {
    color: #fff;
}

/* Sekce Galerie */
.gallery-grid {
    display: grid;
    /* Automaticky vyskládá sloupce o minimální šířce 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3; /* Zaručí, že všechny fotky budou mít stejný formát (obdélník) */
    background: #111; /* Zástupná barva, než se fotka načte */
    border: 1px solid #222;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ořízne fotku tak, aby dokonale vyplnila rámeček bez deformace */
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.7) grayscale(20%); /* V základu jsou fotky lehce ztmavené, aby nerušily temný design */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Lehký zoom při najetí myší */
    filter: brightness(1) grayscale(0%); /* Rozsvícení do plných barev */
}

/* Zajištění, že fotky i videa vyplní celou kartu */
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.8) grayscale(20%); /* Ztmaveno v klidovém stavu */
}

/* Hover efekt s přiblížením POUZE pro fotky (aby se nerozhodil ovládací panel videa) */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Rozzáření (odstranění ztmavení) po najetí myší pro fotky I videa */
.gallery-item:hover img,
.gallery-item:hover video {
    filter: brightness(1) grayscale(0%);
}

/* Volitelné: Úprava barvy nativního ovládacího panelu videa, 
   aby nebyl tak rušivý, dokud na něj uživatel nenajede */
.gallery-item video::-webkit-media-controls {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-item:hover video::-webkit-media-controls {
    opacity: 1;
}

/* =========================
   404 ERROR STRÁNKA
   ========================= */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    background-image: radial-gradient(circle at center, #151515 0%, #050505 100%);
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    color: #00d2ff;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.4); /* Neonový odlesk */
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: 5px;
}

.error-page h2 {
    font-size: 2.5rem;
    margin-top: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.error-page p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
}

/* Responsivita 404 stránky pro mobily */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    .error-page h2 {
        font-size: 1.8rem;
    }
    .error-page p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

html {
    scroll-behavior: smooth;
}