* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: center;
    padding: 20px 40px;
    gap: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: bold;
}

.naslov {
    display: grid;
    place-items: center;
}

.naslov a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.podnaslov{
    text-align: center;
    color: white;

}

.navigation ul {
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navigation ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navigation ul li a:hover,
.navigation ul li a.active {
    background-color: #f39c12;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    padding: 60px 40px;
}

main h1 {
    display: grid;
    place-items: center;
    color: white;
    font-size: 42px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 40px auto;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-left, .info-right {
    display: grid;
    grid-auto-rows: auto;
    gap: 15px;
}

.info-left h3, .info-right h3 {
    color: #2c3e50;
    margin: 0;
}

.info-left p, .info-right p {
    text-align: justify;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.content h2 {
    color: white;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 20px auto 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slider-slide {
    display: none;
    width: 100%;
    height: 400px;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade {
    animation: fade 1s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 12px 16px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    display: grid;
    place-items: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-grid;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-container h3 {
    color: #2c3e50;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 10px;
    margin: 0 0 15px 0;
}

.menu-container ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-auto-rows: auto;
    gap: 8px;
    margin: 0;
}

.menu-container li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #555;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-container img:hover {
    transform: scale(1.05);
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    display: grid;
    place-items: center;
    padding: 30px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }

    .navigation ul {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .content {
        padding: 20px;
    }

    .content h2 {
        font-size: 24px;
    }

    .slider-container {
        margin: 20px 20px 30px 20px;
    }

    .slider-slide {
        height: 250px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .menu-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }

    .logo {
        font-size: 20px;
    }

    .naslov a {
        font-size: 18px;
    }

    .navigation ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    main {
        padding: 20px;
    }

    main h1 {
        font-size: 28px;
    }

    .content h2 {
        font-size: 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .slider-slide {
        height: 200px;
    }

    .menu-container {
        grid-template-columns: 1fr;
    }

    .product-container {
        grid-template-columns: 1fr;
    }
}