* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* NAVBAR */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}
.navbar.scrolled {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 80px; transition: 0.3s; }
.navbar.scrolled .logo img { height: 72px; }

nav ul { display: flex; gap: 30px; list-style: none; }
nav a { text-decoration: none; font-weight: 600; color: black; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { width: 26px; height: 3px; background: white; }
.navbar.scrolled .hamburger span { background: black; }

/* HERO */
.hero {
    height: 100vh;
    background: url("images/hero.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.hero-content {
    position: relative;
    max-width: 520px;
    color: white;
}
.hero h1 { font-size: 52px; }
.hero h2 { margin: 12px 0; }
.hero p { margin: 20px 0; line-height: 1.6; padding: 30px 0px; }

/* BUTTON */
.btn-red {
    background: red;
    color: white;
    padding: 15px 34px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* SERVICES */
.services {
    padding: 90px 20px;
    text-align: center;
}
.service-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
}
.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px 0px;
}
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card h3 { margin: 20px 0 10px; }
.service-card p { padding: 0 20px 20px; }

/* WORKS */
.works { padding: 90px 20px; text-align: center; }
.gallery {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
}
.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}
.gallery img:hover { transform: scale(1.05); }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
.close { top: 20px; right: 30px; }
.prev { left: 30px; }
.next { right: 30px; }

/* CONTACT */
.contact {
    background: #e6f3ff;
    padding: 90px 20px;
}
.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.map img { width: 100%; height: 300px; object-fit: cover; }
.contact-info h2 { font-size: 36px; margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; font-size: 18px; }

/* FOOTER */
.footer {
    background: black;
    color: white;
    text-align: center;
    padding: 40px 20px;
}
.privacy {
    background: #111;
    color: white;
    text-align: center;
    padding: 10px;
}

/* MOBILE */
@media (max-width:768px) {
    nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
    }
    nav ul { flex-direction: column; gap: 20px; padding: 20px 0 20px 10px; }
    nav.active { display: flex; }
    .hamburger { display: flex; }
    .gallery { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
}

/* ================= O NAMA ================= */
.about {
    padding: 100px 20px;
    background: #f7f7f7;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* LIJEVO SLIKA */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* DESNO SADRŽAJ */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* CARD */
.about-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.main-card h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.about-card p {
    line-height: 1.7;
    color: #333;
}

/* DONJI RED CARDOVA */
.about-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* MOBILNI PRIKAZ */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-cards-row {
        grid-template-columns: 1fr;
    }

    .main-card h2 {
        font-size: 34px;
    }
}

/* ============== PARTNERI ============== */
.partners {
    margin-top: 80px;
    padding: 40px 0;
}

.partners-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
}

/* TEKST */
.partners-text h3 {
    font-size: 28px;
    line-height: 1.4;
}

/* SLIDER */
.partners-slider {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: scroll 25s linear infinite;
}

.partners-track img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: 0.3s;
}

.partners-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ANIMACIJA */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* MOBILNI PRIKAZ */
@media (max-width: 900px) {
    .partners-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partners-text {
        order: -1;
    }

    .partners-track {
        gap: 20px;
    }

    .partners-track img {
        width: 120px;
    }
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-info i {
    color: #000;
    font-size: 18px;
}

.contact-info a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 1️⃣ GLOBALNO BLOKIRAJ HORIZONTALNI SCROLL */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 2️⃣ HERO PADDING NA MOBITELU */
@media (max-width:768px) {
    .hero {
        padding: 40px 20px;
    }
}

/* 3️⃣ SIGURAN SLIDER */
.partners {
    overflow-x: hidden;
}

/* Spriječi WhatsApp / WebView dark mode */
@media (prefers-color-scheme: dark) {
    html, body {
        background: white !important;
        color: black !important;
    }
}

/* ===== MAPA ===== */
.map iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
}


