/* ✅ Resetiranje osnovnih stilova */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  padding-top: 70px; /* Prilagođava prostor ispod fiksnog headera */
}

/* ✅ HEADER - sada je cijele širine i plave boje */
header {
    width: 100%;
    background-color: #3670b0; /* ✅ Plava boja kao logo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ✅ Centriranje logotipa u headeru */
.logo img {
    max-height: 50px;
}

/* ✅ Glavni navigacijski meni */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

/* ✅ Stilizacija linkova u meniju */
nav ul li a {
    color: #ffffff; /* ✅ Bijela boja teksta */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* ✅ Hover efekt na linkove */
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* ✅ Blago isticanje */
    border-radius: 5px;
    text-decoration: none;
    color: #ffcc00; /* ✅ Zlatna boja na hover */
}

/* ✅ Mobilni meni - hamburger ikona */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 4px;
}


/* ✅ Prilagodba za male ekrane */
@media (max-width: 768px) {
    header {
        height: 70px; /* ✅ Smanjena visina headera na manjim ekranima */
        padding: 10px 15px;
    }

    .product-image {
        margin-top: 0px!important;
    }
     .product-table  {
        width: 100%; 
    }

}




/* ✅ Mobilni meni - dropdown */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
    }

    #navMenu {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #3670b0;
        padding: 15px;
        display: none;
        z-index: 9999;
        width: auto;
        border-radius: 5px;
    }

    #navMenu.show {
        display: block;
        animation: fadeDown 0.3s ease;
    }

    #navMenu ul {
        display: flex;
        flex-direction: column;
    }

    #navMenu ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    #navMenu ul li a {
        color: #ffffff;
        font-weight: bold;
        text-decoration: none;
    }

    #navMenu ul li a:hover {
        color: #ffcc00;
    }
}

/* ✅ Animacija za mobilni meni */
@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Glavni sadržaj */
main {
    max-width: 1200px;
    margin: 20px auto 20px auto; /* Header je sticky, pa povećavamo gornji margin */
    padding: 20px;
    text-align: center;
}

/* ✅ Kategorije */
.categories {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 40px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 250px;
    text-align: center;
}

/* ✅ Stilizacija krugova */
.circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    margin-bottom: 15px;
    
    /* ✅ Manja sjena za moderniji izgled */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Hover efekat */
.circle:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
/* =============================== */
/* ✅ KRUGOVI KATEGORIJA NA NASLOVNOJ */
/* =============================== */

.categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 40px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 250px;
    text-align: center;
}

/* ✅ Dodajemo istu visinu za sve tekstove kako bi poravnanje bilo jednako */
.category p {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Stilizacija krugova */
.circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Hover efekt za krugove */
.circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ✅ Stilizacija slika unutar krugova */
.circle img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Hover efekt */
.circle img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ✅ Definicija slika za svaku kategoriju */
.proizvodi {
    background-image: url('images/proizvodi.png');
}

.usluge {
    background-image: url('images/usluge.png');
}

.ostalo {
    background-image: url('images/katalog.png');
}

/* ✅ Stilizacija naslova i teksta ispod krugova */
.category h2 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #000;
}

.category p {
    margin-top: 10px;
    color: #555;
}

/* ✅ Responsivni dizajn za krugove na manjim ekranima */
@media (max-width: 768px) {
    .categories {
        flex-direction: column;
        align-items: center;
    }
    .category {
        margin-bottom: 30px;
    }
}

/* =============================== */
/* ✅ STILIZACIJA STRANICE `USLUGE.PHP` */
/* =============================== */

.service-categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.service-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    text-align: center;
}

/* ✅ Stilizacija krugova za usluge */
.service-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Različite boje iz iste palete */
.service-prototip {
    background-color: #ff6b6b; /* Crvena */
}

.service-serija {
    background-color: #ffb14e; /* Narančasta */
}

.service-custom {
    background-color: #6a89cc; /* Plava */
}

/* ✅ Hover efekt za usluge */
.service-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ✅ Stilizacija paragrafa */
.service-category p {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    max-width: 90%;
}


/* =============================== */
/* ✅ FOOTER - PODNOŽJE STRANICE */
/* =============================== */

footer {
    background-color: #3670b0; /* Plava boja iz logotipa */
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: normal;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* ✅ Stil za unutarnji sadržaj footera */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* ✅ Stilizacija teksta u footeru */
.footer-container p {
    margin: 0;
}

/* ✅ Linkovi u footeru */
.footer-container a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: #ffd700; /* Žuta boja kao hover efekt */
}

/* ✅ Social media ikone */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ✅ Ikone unutar footera */
.footer-social img {
    width: 20px;
    height: 20px;
}

/* ✅ Responsivnost footera */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-social {
        justify-content: center;
    }
}





/* Banner */
/* ✅ Glavni banner kontejner */
.banner {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #ddd; /* ✅ Tanak okvir oko bannera */
}

/* ✅ Stil za pojedinačne slideove */
.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

/* ✅ Stil slike */
.slide img {
    width: 100%;
    height: auto;
}

/* ✅ Veći tekst bannera u desnoj trećini, crne boje, bez pozadine */
.banner-text {
    position: absolute;
    display:none;
    top: 15%;
    right: 5%;
    font-size: 40px;
    font-weight: bold;
    color: black;
    text-align: right;
    max-width: 30%;
}

/* ✅ Točkice za navigaciju */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

/* ✅ Stilizirane točkice */
.dot {
    height: 18px;
    width: 18px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 2px solid #fff; /* ✅ Tanak okvir oko točkice */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* ✅ Blaga sjena za bolju vidljivost */
}

/* ✅ Aktivna točkica */
.dot.active {
    background-color: #ffd700;
    transform: scale(1.5);
    border-color: #ffd700;
}

/* ✅ Hover efekt */
.dot:hover {
    background-color: #ffd700;
    border-color: #ffd700;
    transform: scale(1.3);
}

/* ✅ Prilagodba teksta za mobilne uređaje */
@media (max-width: 768px) {
    .banner-text {
        font-size: 24px;
        right: 3%;
        top: 10%;
        max-width: 40%;
    }
}

/* USLUGE START  */
/* ✅ Stilizacija sekcije s naslovom i uvodnim tekstom */
.intro-section {
    max-width: 800px; /* ✅ Prati širinu bannera */
    margin: 0 auto 30px auto;
    text-align: center;
}

.intro-section h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.intro-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* ✅ Stilizacija promo bannera */
.promo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px; /* ✅ Ista širina kao uvodni tekst */
    margin: 0 auto 40px auto;
}

.promo-banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ✅ Responsive dizajn za mobilne uređaje */
@media (max-width: 768px) {
    .intro-section {
        max-width: 90%;
    }

    .intro-section h1 {
        font-size: 26px;
    }

    .intro-section p {
        font-size: 16px;
    }

    .promo-banner {
        max-width: 90%;
    }
}
/* END USLUGE*/

/* START ONAMA */
/* ✅ Stilizacija uvodne sekcije */
.intro-section {
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.intro-section h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.intro-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* ✅ Stilizacija promo bannera */
.promo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.promo-banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ✅ Sekcija s ključnim informacijama */
.about-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
}

.about-item {
    flex: 1;
    min-width: 250px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-item h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.about-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* ✅ Responsive dizajn */
@media (max-width: 768px) {
    .intro-section {
        max-width: 90%;
    }

    .intro-section h1 {
        font-size: 26px;
    }

    .intro-section p {
        font-size: 16px;
    }

    .promo-banner {
        max-width: 90%;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
    }
}

