/* --- Reset i osnovni stilovi --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Open Sans', Arial, sans-serif;
    scroll-behavior: smooth;
    color: #222;
    background: #f4f4f4;
    line-height: 1.5;
    min-height: 100vh;
}

section {
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

/* --- Header i navigacija --- */
.main-header {
    background: #111;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.lang-buttons {
    display: flex;
    gap: 0.5rem;
}

.lang-buttons button {
    background: #e63946;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.lang-buttons button:hover {
    background: #c92c3d;
}

.main-nav {
    display: flex;
    justify-content: center;
    background: #222;
    padding: 1rem 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #e63946;
    outline: none;
}

/* --- Parallax i Hero sekcije --- */
.parallax {
    background-image: url('./galerija/parallax-metal.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    user-select: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.7);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 3rem;
    max-width: 900px;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 0.8rem 1.8rem;
    background: #e63946;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.7);
}

.hero-btn:hover {
    background: #c92c3d;
    transform: scale(1.05);
}

/* --- Opis sekcija --- */
.opis {
    padding: 6rem 1rem;
    color: #f1f1f1;
    text-align: center;
}

.opis .container {
    background-color: rgba(18, 18, 18, 0.75);
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.opis h2 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.opis p {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.opis ul {
    list-style: none;
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    max-width: 400px;
    margin: 0 auto 1.8rem;
    color: #e0e0e0;
}

.opis ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.opis ul li::before {
    content: "•";
    color: #e63946;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
}

.opis .slogan {
    font-family: 'Roboto Mono', monospace;
    font-style: italic;
    font-weight: 700;
    font-size: 1.3rem;
    color: #e63946;
    margin-top: 2rem;
}

/* --- Usluge i Kvaliteta sekcije --- */
.usluge, .kvaliteta {
    background-color: #f9f9f9;
    text-align: center;
    padding: 5rem 1rem;
    background-image: url('./galerija/parallax-metal.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.usluge h2, .kvaliteta h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fffafa;
}

.usluge ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.usluge li {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex: 1 1 250px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.usluge li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.kvaliteta p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color:#fffafa;
}

.opis, .kvaliteta { /* Promijenjen red da obuhvati oba bloka */
    padding: 6rem 1rem;
    color: #f1f1f1;
    text-align: center;
}

.opis .container, .kvaliteta .container {
    background-color: rgba(18, 18, 18, 0.75);
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.opis h2, .kvaliteta h2 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.opis p, .kvaliteta p {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* --- Galerija --- */
.galerija {
    background: #111;
    color: white;
}

.galerija h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.slike {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0 1rem 1rem;
    cursor: grab;
    scroll-behavior: smooth;
}

.slike::-webkit-scrollbar {
    height: 8px;
}

.slike::-webkit-scrollbar-thumb {
    background: #e63946;
    border-radius: 10px;
}

.slike:active {
    cursor: grabbing;
}

.slika {
    scroll-snap-align: center;
    flex: 0 0 300px;
    height: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.slika img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slika:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.9);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 12, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.9);
}

.close-btn, .arrow {
    color: #e63946;
    font-size: 3rem;
    cursor: pointer;
    position: absolute;
    user-select: none;
    background: none;
    border: none;
    transition: color 0.3s;
}

.close-btn {
    top: 20px;
    right: 30px;
    font-size: 4rem;
}

.arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

.close-btn:hover, .arrow:hover {
    color: #c92c3d;
}

/* --- Kontakt forma --- */
.kontakt {
    background: #111;
    color: white;
}

.kontakt h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.kontakt form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt label {
    font-weight: 600;
}

.kontakt input, .kontakt textarea {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #555;
    background: #222;
    color: white;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.kontakt input::placeholder, .kontakt textarea::placeholder {
    color: #aaa;
}

.kontakt input:focus, .kontakt textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 8px #e63946;
}

.kontakt button {
    padding: 0.75rem 1rem;
    background: #e63946;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.7);
}

.kontakt button:hover {
    background-color: #c92c3d;
    transform: translateY(-2px);
}

/* --- Mapa --- */
.mapa {
    background: #f4f4f4;
}

.mapa h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mapa-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.mapa-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.mapa-container {
    flex: 1 1 600px;
    min-width: 300px;
    max-width: 800px;
}

.mapa iframe {
    width: 100%;
    height: 400px;
    border: 2px solid #e63946;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.6);
}

/* --- Footer --- */
footer {
    background: #111;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* --- Responsive dizajn --- */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .lang-buttons {
        margin-top: 1rem;
    }
    .main-nav {
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1rem;
    }
    .opis .container {
        padding: 2rem;
    }
    .mapa-logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .opis .container {
        padding: 1.5rem;
    }
    .opis h2, .usluge h2, .kvaliteta h2, .galerija h2, .kontakt h2, .mapa h2 {
        font-size: 2rem;
    }
    .opis p, .opis ul li, .opis .slogan {
        font-size: 1rem;
    }
    .usluge ul {
        flex-direction: column;
        align-items: center;
    }
    .usluge li {
        width: 100%;
    }
    .slika {
        flex: 0 0 250px;
        height: 160px;
    }
    .mapa-row {
        flex-direction: column;
        gap: 1rem;
    }
    .mapa-logo {
        display: none;
    }
    .lightbox-content {
        flex-direction: column;
    }
    .arrow {
        position: static;
        transform: none;
        margin: 1rem 0;
    }
}