html {
    scroll-behavior: smooth;
}

body {
    background-color: #5f1629;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 0px;
    margin: 0px;
}


/* NAVIGACIJA */
.navigacija {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: #5f1629;
}

.booknownavigacija {
    background-color: #FF6B6B;
    font-weight: bold;
}

.navigacijalinkovi {
    display: flex;
}

.navigacijalinkovi a {
    text-decoration: none;
    padding: 10px;
    margin: 5px;
    font-weight: bold;
    color: white;
    border-radius: 10px;
    transition: all 0.2s ease-out;
}

.navigacijalinkovi a:hover {
    background-color: #FF6B6B;
    color: white;
}

.navigacijalinkovi a.booknownavigacija:hover {
    background-color: white;
    color: #5f1629;
}

.logo img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
}

.navigacija .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/*heropicture*/

.heropicture {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.heropicture img {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.heropicture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    display: flex; /* Enable flex container */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.scroll-icon{
    width: 100px; /* Adjust icon size */
    height: 100px;
    filter: invert(100%);
    animation: bounce 2s infinite;
    z-index: 10;
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Gallery grid styles */
.gallery {
    padding-top: 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px; 
    grid-gap: 10px;
    padding: 10px;
    grid-auto-flow: dense; 
    margin-bottom: 70px;
}


.gallery img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.03);
}

.img-wrap {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.img-wrap:hover .gallery-img {
    transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;  
    max-height: 80vh; 
    object-fit: contain; 
}

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/*footer*/

.footer-separator {
    border: none;
    height: 1px;
    background-color: #fff;
    margin-left: 10%;
    width: 80%;
}

.site-footer {
    background-color: #5f1629;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-info a{
    text-decoration: underline;
    color: white;
}

.footer-info h4 {
    margin-bottom: 10px;
}

.footer-bottom a{
    color: white;
    text-decoration: underline;
}

.footer-bottom a:hover{
    color: #777777;
}


/* Media query for mobile screens */
@media (max-width: 768px) {
    .navigacija .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding-left: 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 10px;
        top: 15px;
        z-index: 1001;
    }

    .navigacijalinkovi {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #5f1629;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .navigacijalinkovi.active {
        display: flex;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .footer-info,
    .footer-bottom {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-info p,
    .footer-bottom p {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .footer-separator {
        margin-left: 5%;
        width: 90%;
    }
    .gallery {
        display: block;
        padding-top: 0; 
        margin-bottom: 0; 
    }

    .img-wrap {
        width: 100%; 
        margin-bottom: 10px; 
    }

    .gallery-img {
        height: auto; 
    }

    .lightbox {
        display: flex; 
        align-items: center; 
        justify-content: center; 
        padding-top: 0; 
        display: none;
    }

    .lightbox-content {
        width: 90%; 
        max-height: 90vh;
        margin: auto; 
        position: relative; 
        top: 50%;
        transform: translateY(-50%); 
        object-fit: contain; 
    }

    .close {
        position: fixed; 
        top: 20px; 
        right: 20px; 
    }

    .prev, .next {
        position: fixed;
        top: 50%; 
        transform: translateY(-50%); 
    }

    .prev {
        left: 10px; 
    }

    .next {
        right: 10px; 
    }


    .heropicture img {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .heropicture::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        color: #fff;
        text-align: center;
        width: 90%;
        max-width: 600px;
        padding-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }
    .scroll-icon {
        width: 80px; /* Smaller icon for mobile */
        height: 80px;
    }

}