:root {
    --bg: #0b0c0e;
    --accent: #0062ff;
    --text: #ffffff;
    --card: #16181b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
}

/* HLAVNÍ KONTEJNER S PADDINGEM OD STĚN */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Toto drží obsah od krajů prohlížeče */
}

/* NAVIGACE */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(11, 12, 14, 0.98);
    padding: 15px 0;
    z-index: 2000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo { font-family: 'Syncopate', sans-serif; font-size: 1.4rem; letter-spacing: 2px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-links a { color: white; text-decoration: none; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.nav-email { color: var(--accent) !important; border: 1px solid var(--accent); padding: 5px 10px; border-radius: 4px; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 50px 0;
}

.hero-content h1 { font-family: 'Syncopate', sans-serif; font-size: clamp(1.8rem, 7vw, 4rem); margin-bottom: 25px; }

/* SLUŽBY */
.services { padding: 80px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}
.service-card { background: var(--card); padding: 35px; border-radius: 10px; text-align: center; }

/* PROJEKTY - TO CHYTRÉ SKLÁDÁNÍ */
.projects { padding: 80px 0; }
.project-entry { margin-bottom: 80px; text-align: center; }
.project-entry h3 { font-family: 'Syncopate', sans-serif; font-size: 1rem; margin-bottom: 30px; }

.image-grid {
    display: grid;
    /* Flexibilní grid: zkusí narvat 3, když není místo tak 2, když ani to ne tak 1 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    justify-content: center; /* Centruje ty, co zbudou v posledním řádku */
}

.image-grid img {
    width: 100%;
    max-width: 450px; /* Aby nebyly moc obří na mobilu */
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto; /* Centrování obrázku v buňce */
}

/* KONTAKT */
.contact { padding: 80px 0; text-align: center; }
.contact-box { max-width: 550px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background: #16181b; border: 1px solid #333; color: white; border-radius: 5px; }

.main-btn { padding: 16px 35px; background: var(--accent); color: white; text-decoration: none; font-weight: bold; border: none; cursor: pointer; display: inline-block; margin-top: 10px; }
.line { width: 50px; height: 4px; background: var(--accent); margin: 20px auto 40px auto; }

/* REVEAL ANIMACE */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { justify-content: center; }
    .logo { width: 100%; text-align: center; }
    .hero { padding-top: 120px; }
}