/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background-color: #000000;
    color: #fff;
    padding: 1em 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.hero {
    background: url('logo3.jpg') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 185px 20px;
}

.hero h2 {
    font-size: 2.5em;
    margin: 0 0 20px;
}

.hero p {
    font-size: 1.2em;
    margin: 0;
}

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

section {
    padding: 60px 0;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

#services .container {
    display: flex;
    justify-content: space-between; /* Raspoređuje elemente ravnomjerno s prostorom između njih */
}

.service {
    flex: 1; /* Omogućuje da se svi .service elementi prilagode širini kontejnera */
    margin: 20px; /* Prostor između elemenata */
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: calc(50% - 40px); /* Maksimalna širina svakog elementa, minus margine */
}

.service-logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

.service-text {
    flex: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    padding-bottom: 4%;
    
}
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    width: 50%;
}

.contact-map {
    width: 45%;
}

#contact-form {
    padding: 40px 0;
    background: #f9f9f9;
}

#contact-form h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

#contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

#contact-form button {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#contact-form button:hover {
    background: #555;
}

footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

footer p {
    margin: 0;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
}

@media (max-width: 768px) {
    #services .container {
        flex-direction: column; /* Prikazuje .service elemente jedan ispod drugog */
        align-items: center; /* Poravnava elemente u središte */
    }

    .service {
        max-width: 100%; /* Omogućuje da svaki .service element zauzme punu širinu kontejnera */
        margin: 10px 0; /* Manji razmak između elemenata */
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    #nav-toggle {
        display: block;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info, .contact-map {
        width: 100%;
    }

    .contact-map iframe {
        width: 100%;
        height: 300px;
    }
    
    img {
        width: 90%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 50px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Social Media Section */
#social-media {
    text-align: center;
    padding: 40px 0;
    background: #f9f9f9;
}

#social-media h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-button {
    display: inline-block;
    font-size: 2em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-button:hover {
    color: #007BFF; /* Promijenite boju prema potrebi */
}
