* {
    box-sizing: border-box;
}

body, html {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
    scroll-behavior: smooth;
}

/* Navigácia */
.nav-container {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
    gap: 30px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.logo-text {
    position: absolute;
    left: 40px;
    color: #a1a1a1;
    font-weight: normal;
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    padding-left: 20px;
}

/* Hero */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.logo-placeholder {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fafafa;
}

h1 {
    font-size: 42px;
    letter-spacing: 12px;
    margin-top: 20px;
    font-weight: normal;
}

/* Intro & Slideshow */
.content-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.text-block {
    flex: 1.5;
}

.text-block h2 {
    color: #5bc0de;
    font-size: 24px;
    margin-bottom: 30px;
}

.text-block p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.slideshow-container { 
    flex: 1; 
    position: relative; 
    height: 350px; 
}

.slides-window {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Skryje obrázky mimo viditeľnú oblasť */
    position: relative;
}

.slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1); /* Plynulý pohyb */
}

.slide {
    min-width: 100%; /* Každý slajd zaberie celú šírku okna */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box { 
    width: 95%; 
    height: 100%; 
    background: #f4f4f4; 
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 -20px;
    color: #000;
    font-weight: bold;
    font-size: 25px;
    border: none;
    background: transparent;
    z-index: 10;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Čierna sekcia */
.black-section {
    background: #000;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.icon-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.black-text-content {
    max-width: 850px;
    margin: 0 auto;
}

.black-text-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Základné nastavenie sekcie */
.portfolio-section {
    padding: 60px 0;
    text-align: center;
}

.project-group {
    margin-bottom: 100px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 50px;
    border-bottom: 1px solid black;
}

.project-group h3 {
    font-size: 30px;
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* FLEXBOX LAYOUT */
.image-container {
    display: flex;
    flex-wrap: wrap; /* Zalamovanie do nových riadkov */
    justify-content: center;
    gap: 20px; /* Medzery medzi obrázkami */
}

.img-placeholder {
    /* Na desktope: 3 obrázky v riadku (100% / 3 mínus gap) */
    flex: 0 1 calc(33.333% - 14px); 
    aspect-ratio: 1/1; /* Štvorcový formát */
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Obrázok vyplní celý štvorec */
}

/* --- MOBILNÁ VERZIA (pod sebou) --- */
@media (max-width: 768px) {
    .image-container {
        flex-direction: column; /* Zmena na stĺpec */
        align-items: center;
        gap: 15px;
    }

    .img-placeholder {
        /* Obrázok na celú šírku (mínus padding) */
        flex: 0 1 auto;
        width: 100%;
        max-width: 450px; /* Rozumná max šírka na mobile */
    }

    .project-group h3 {
        font-size: 20px;
    }
    .content-wrapper {
        flex-direction: column;
    }
}

.web-link {
    text-decoration: none;
    font-size: 20px;
    padding: 10px 20px;
    color: white;
    background-color: gray;
    transition: 0.3s;
    display: block;
    width: 200px;
    margin: 20px auto 0;
}


.web-link:hover {
    background-color: black;
}

/* Kontakt */
.contact-section {
    background: #000;
    color: #fff;
    padding: 80px 20px;
}

.contact-flex {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
}

.contact-details {
    flex: 1;
    font-size: 18px;
}

.contact-form-wrapper {
    flex: 1.5;
}

.small-text {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 20px;
}

form input,
form textarea {
    width: 100%;
    background: #000;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px;
    margin-bottom: 12px;
}

form textarea {
    height: 120px;
}

form button {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
}

footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #eee;
}

.bosch-logo {
    color: #e00000;
    font-weight: bold;
    font-size: 28px;
    margin-top: 10px;
}