:root {
    --bg: #000000;
    --white: #ffffff;
    --grey-text: #666666;
    --grey-dim: #222222;
    --font-h: 'Syne', sans-serif;
    --font-b: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--white); font-family: var(--font-b); line-height: 1.6; overflow-x: hidden; }
.caps { text-transform: uppercase; letter-spacing: 3px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; z-index: 1000;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(15px);
}
.logo img { height: 42px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 0.75rem; font-weight: 600; }

/* HERO (PARALLAX) */
.hero {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 35%;
    background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 1;
}
.parallax-layer {
    position: absolute; left: 0; width: 100%; height: 130%;
    background-size: cover; background-position: center; will-change: transform;
}
.sky { background-image: url('obloha.png'); top: -15%; z-index: -2; }
.buildings { background-image: url('domy.png'); top: 0; z-index: -1; }
.logo-big { font-family: var(--font-h); font-size: clamp(4rem, 18vw, 12rem); line-height: 0.9; z-index: 2; position: relative; }

/* PROJEKTY HLAVNÍ STRANA */
.content-section { padding: 100px 0; }
.content-section .container { display: flex; align-items: center; gap: 80px; }
.reverse .container { flex-direction: row-reverse; }

.aspect-16-9 { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.aspect-16-9 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease, filter 0.4s ease; }
.image-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s opacity; color: #fff; font-size: 0.75rem; font-weight: 800;
}
.project-link:hover .image-overlay { opacity: 1; }
.project-link:hover img { transform: scale(1.03); filter: blur(4px); }

/* ČÍSLA PROJEKTŮ */
.section-text { position: relative; }
.number { 
    font-family: var(--font-h); font-size: 5.5rem; font-weight: 800;
    color: rgba(255,255,255,0.04); position: absolute; 
    top: 10px; left: -15px; z-index: -1; line-height: 0.8;
}
h2 { font-family: var(--font-h); font-size: 2.2rem; margin-bottom: 10px; position: relative; }
p { color: var(--grey-text); max-width: 450px; font-size: 0.95rem; position: relative; }

/* KONTAKTNÍ FORMULÁŘ */
.contact-section { padding: 150px 0 100px; text-align: center; border-top: 1px solid var(--grey-dim); }
.form-title { font-size: 2rem; margin-bottom: 60px; letter-spacing: 5px; }
.contact-form { max-width: 900px; margin: 0 auto; text-align: left; }
.form-row { display: flex; gap: 60px; margin-bottom: 50px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { font-size: 0.65rem; color: var(--grey-text); margin-bottom: 20px; font-weight: 600; }
.form-group input, .form-group textarea { 
    background: transparent !important; border: none; border-bottom: 1px solid #333; 
    padding: 10px 0; color: var(--white); outline: none; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { border-bottom: 1px solid #ffffff; }
.btn-submit { background: #ffffff; color: #000000; border: none; padding: 18px 45px; font-weight: 800; cursor: pointer; transition: 0.3s; margin-top: 20px;}

/* SPODNÍ ÚDAJE + ODKAZY */
.contact-info-footer { display: flex; justify-content: center; gap: 120px; margin-top: 100px; }
.info-item { text-align: center; }
.info-item .label { font-size: 0.7rem; color: var(--grey-text); display: block; margin-bottom: 15px; }
.info-item p { font-size: 1.2rem; font-weight: 700; }
.info-item p a { color: var(--white); text-decoration: none; transition: opacity 0.3s; }
.info-item p a:hover { opacity: 0.6; }

/* DETAIL & GALLERY */
.detail-content-wrapper { padding-top: 140px; }
.project-title { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 40px; border-bottom: 1px solid var(--grey-dim); padding-bottom: 20px; }
.project-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 80px; }
.meta-item { margin-bottom: 25px; }
.meta-item span { color: var(--grey-text); font-size: 0.7rem; display: block; margin-bottom: 5px; }
.meta-item strong { font-size: 1.1rem; }
.main-frame-flexible { width: 100%; height: 75vh; display: flex; justify-content: center; background: #000; overflow: hidden; }
.main-frame-flexible img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: opacity 0.4s, filter 0.4s; }
.main-frame-flexible img.switching { opacity: 0; filter: blur(15px); }
.thumb-nat { height: 100px; width: auto; cursor: pointer; opacity: 0.3; transition: 0.3s; border: 1px solid transparent; }
.thumb-nat.active { opacity: 1; border-color: var(--white); }

@media (max-width: 900px) {
    .container, .reverse .container, .form-row, .contact-info-footer { flex-direction: column !important; align-items: center; }
    .contact-info-footer { gap: 50px; }
    .main-frame-flexible { height: 50vh; }
}