/* === OSNOVNI STILOVI === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa; /* Svetlo siva pozadina */
    color: #343a40; /* Tamno siva za tekst */
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #0d47a1; /* Tamnija plava za naslove */
}

a {
    color: #1e88e5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1e88e5; /* Svetlija plava za podvlačenje */
    display: inline-block;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.section-title i {
    margin-right: 10px;
}

/* === HEADER I NAVIGACIJA === */
header {
    background: #1e88e5; /* Grčko plava */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #fff;
}
header h1 { color: #fff; margin: 0; }
header p { margin: 5px 0 0; font-style: italic;}

nav {
    background: #fff;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav a {
    color: #1e88e5;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover { color: #0d47a1; text-decoration: none; }

/* === HERO SEKCIJA === */
#hero {
    height: 70vh;
    /* Glavna pozadinska slika se sada postavlja inline u HTML-u */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}
#hero::after { /* Zatamnjenje pozadine radi čitljivosti teksta */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content { z-index: 1; }
.hero-content h2 { font-size: 3.5em; color: #fff; text-shadow: 2px 2px 4px #000; }
.hero-content p { font-size: 1.2em; text-shadow: 1px 1px 2px #000; }

.cta-button {
    display: inline-block;
    background: #1e88e5;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.2em;
    border: 2px solid #fff;
    transition: background-color 0.3s, transform 0.3s;
}
.cta-button:hover { background: #0d47a1; transform: scale(1.05); text-decoration: none;}

/* === SEKCIJE === */
section { padding: 60px 0; }

/* === MENI KARTICE === */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.menu-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.menu-card img { width: 100%; height: 220px; object-fit: cover; }
.menu-card h3 { margin-top: 15px; }
.menu-card p { padding: 0 15px; font-size: 0.9em; flex-grow: 1; }
.menu-card .price {
    display: block;
    font-weight: bold;
    font-size: 1.4em;
    color: #1e88e5;
    padding: 15px;
    margin-top: auto;
}

/* === GALERIJA (SA NOVIM HOVER EFEKTOM) === */
.gallery-subtitle {
    text-align: center;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden; /* Ovo je ključno da slika ne bi "curila" van okvira */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease-in-out; /* Malo smo usporili tranziciju da bude lepša */
}
.gallery-item:hover img {
    transform: scale(1.5); /* <-- EVO JE PROMENA: zumiranje na 150% */
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 90, 156, 0.8);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    font-size: 0.9em;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}


/* === O NAMA === */
.about-us {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 60px;
    border-radius: 10px;
}
.about-text, .about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 10px; }

/* === KONTAKT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.contact-info ul { list-style-type: none; padding: 0; }
.contact-info p, .contact-info li { font-size: 1.1em; margin-bottom: 10px; }
.contact-map iframe { border-radius: 10px; }

/* === FOOTER === */
footer {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsivni dizajn za mobilne uređaje */
@media(max-width: 768px) {
    .container { width: 95%; padding: 0 10px; }
    .about-us, .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .section-title { font-size: 2em; }
    .hero-content h2 { font-size: 2.5em; }
    .menu-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .gallery-item img { height: 120px; }
}