body {
    font-family: 'Times New Roman', serif; /* Serif font za ceo sajt */
    margin: 0;
    padding: 0;
    color: lightgray;
}

header {
    background: white;
    color: black;
    padding: 1em;
    text-align: left;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid white;
}

header h1 {
    margin: 0;
    padding-left: 1em;
    font-family: Arial, sans-serif; /* Sans-serif font za naslov i navigaciju */
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

nav a {
    color: gray;
    margin: 0 1em;
    text-decoration: none;
    position: relative;
    font-family: Arial, sans-serif; /* Sans-serif font za naslov i navigaciju */
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: lightgray;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

header:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
  text-align: center;
  padding: 5px;

  color: #000;
}

.menu-toggle {
    color: white;
    font-size: 2em;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
}

section {
    padding: 2em;
    padding-top: 8em;
    min-height: calc(100vh - 8em);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home {
    background: transparent;
    overflow: hidden;
    min-height: calc(100vh - 8em);
}

#weddings {
    background: white;
}

#creative {
    background: white;
}

#wedding-film {
    background: white;
}

#testimonials {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

#contact {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#contact-form label {
    margin: 0.5em 0 0.2em;
    color: white;
}

#contact-form input,
#contact-form textarea {
    padding: 0.5em;
    margin-bottom: 1em;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

#contact-form button {
    padding: 0.7em;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #555;
}

/* CSS za raspored elemenata u 3x6 mrežu */
.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
}

.grid-item {
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.grid-item.image {
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 8px;
}

.grid-item.text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: white; /* Čista bela pozadina */
    box-shadow: none; /* Uklanja senku */
}

/* Content Split Styles */
.content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.content .text, .content .images {
    flex: 1;
    padding: 1em;
}

.images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.images img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.images img.vertical {
    grid-row: span 2;
}

.images img:hover {
    transform: scale(1.05);
}

/* Slider Styles */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}

.slider-wrapper div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

/* Lightbox Styles for Videos */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    width: 80%;
    height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.caption {
    margin-top: 10px;
    text-align: center;
    color: #ccc;
    font-size: 1em;
}

/* Lightbox Styles for Images */
#image-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#image-lightbox.show {
    display: flex;
    opacity: 1;
}

#image-lightbox img {
    max-width: 80%;
    max-height: 80%;
}

#image-lightbox .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.back-to-top {
    position: absolute;
    bottom: 50px;
    right: 10px;
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8em;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #555;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        background: white;
        color: lightgray;
    }

    .menu-toggle {
        display: block;
        color: lightgray;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center; /* Promenjeno iz flex-start u center */
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 100%;
        text-align: left;
    }

    nav.open {
        display: flex;
    }

        nav a {
        color: lightgray;
        margin: 0.2em 0;
        padding: 0.8em;
        width: 100%;
        text-align: center; /* Ovaj deo postavlja navigacione linkove po sredini */
    }

    section {
        padding: 1em;
        padding-top: 12em;
        transition: transform 0.3s ease;
        font-size: 0.9em;
    }

    body.menu-open section {
        transform: translateY(250px);
    }

    .content {
        flex-direction: column;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-item.image {
        height: 200px;
    }
}

/* Video Thumbnail Styles */
.video-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.video-thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 150px;
    height: auto;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}
