
/* .roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
} */

/* Stil za sajt generalno i tako to */

@font-face {
    font-family: "Roboto";
    src: url(Roboto-Light.ttf) format("truetype");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Roboto, sans-serif;
    overflow-x: hidden;
}

/* Stil za navigaciju */

.navbar {
    background-color: #E6E6E6;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-infobar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3em 2em;
    font-size: 0.9em;
    background-color: #E6E6E6;
    color: #333;
}

.contact-info p {
    margin-right: 1em;
}

.social-links a {
    margin-left: 0.8em;
    text-decoration: none;
    color: #333;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 2em;
    height: 80px;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo a {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.navLinks a {
    position: relative;
    margin-left: 1.5em;
    text-decoration: none;
    font-size: 1.1em;
    padding-bottom: 0.2em;
    color: #333;
}

.navLinks a.hiddenLink {
    display: none;
}

/* STARI CSS */
/* 


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #E6E6E6;
    color: white;
    position: relative;
    height: 80px;
    padding: 0 2em;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo img {
    max-height: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.logo a {
    height: 100%;
    display: flex;
    align-items: center;
}

.navLinks {
    display: flex;
    gap: 1.5em;
}

.navLinks a {
    position: relative;
    color: #483C32;
    text-decoration: none;
    padding-bottom: 4px;
} */

.navLinks a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: #483C32;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}

.navLinks a:hover::after {
    transform: scaleX(1);
}

.navLinks a.activeLink::after {
    transform: scaleX(1);
    transition: none;
}

.hamburger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    color: #483C32;
    cursor: pointer;
}

a {
    color: #483C32;
    text-decoration: none;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
        z-index: 1000;
    }

    .top-infobar {
        display: none;
    }

    .navLinks {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #E6E6E6;
        width: 100%;
        display: none;
        text-align: right;
        padding: 1em;
        z-index: 1001;
    }

    .navLinks a {
        padding: 0.5em 0;
    }

    .navLinks a.hiddenLink {
        display: block;
    }

    .navLinks.show{
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* Stil za slajdove */

.carousel {
    position: relative;
    max-width: 100vw;
    height: 60vh;
    overflow: hidden;

    @media (min-width: 1024px) {
        height: 600px;
        margin: auto;
    }
}


.slides {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel .caption {
    position: absolute;
    top: 50%;
    left: 5%;
    max-width: 40%;
    transform: translateY(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1em;
    border-radius: 6px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.slide.active .caption {
    opacity: 1;
    transform: translate(0, -50%);
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

button.prev { left: 10px; }
button.next { right: 10px; }

/* Stil za lightbox (galerija ili kako god) */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.close-btn {
    top: 1rem;
    right: 1rem;
    position: absolute;
    background: transparent;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

.nav {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 1rem;
}

.prev { left: 1rem; }
.next { right: 1rem; }

/* Stil za usluge */

.services {
    display: flex;
    justify-content: space-around; 
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.service {
    flex: 1 1 30%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 0 20px grey;
    border-radius: 8px;
}

.service-icon {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.75rem;
}

/* Stil za slike */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* gap: 1rem; */
    gap: 2px;
}

.projects {
    margin-top: 20px;
}

.projects header {
    font-size: 2rem;
}

.project {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.zoom-button {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgba(230, 230, 230, 0.5);
    border: none;
    border-radius: 50%;
    width: 3em;
    height: 3em;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 2;
}

.thumbnail:hover .zoom-button {
    opacity: 1;
}

.zoom-button:hover {
    background-color: rgba(230, 230, 230, 0.8);
}

.zoom-button:active {
    background-color: rgb(230, 230, 230);
}

/* Stil za telefon */

.phone .phone-button {
    display: flex;
    position: fixed;
    bottom: 7px;
    right: 1em;
    outline: 0;
    cursor: pointer;
    z-index: 3;
}


.phone .phone-button .phone-icon i {
    position: relative;
    padding: 16px;
    width: 50px;
    height: 50px;
    line-height: 0.8;
    font-size: 19px;
    text-align: center;
    border-radius: 50%;
}

.phone .phone-button .phone-icon i, .phone .phone-button:hover p {
    box-shadow: 0 0px 2px #222;
    text-decoration: none;
}

.phone .phone-button .phone-icon i, .phone .phone-button p {
    color: rgb(230, 230, 230);
    background-color: #404040;
}

.phone .phone-button p {
    padding: 2px 13px 2px 25px;
    margin-top: 7px;
    margin-bottom: 0;
    margin-left: -15px;
    height: 35px;
    line-height: 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
}

.fa {
    font-weight: 900;
    font-family: "Font Awesome Free";
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
}

/* Stil za formu */

.contact-form {
    background-color: rgb(230, 230, 230);
}

.contact-form .form-title {
    text-align: center;
}

.contact-form .form-title>h1 {
    padding-top: 12px;
}

input[type=text], input[type=tel], input[type=email], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

input[type=submit] {
    background-color: #404040;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-buttons {
    text-align: center;
}

#success-message {
    display: none; 
    color:green; 
    margin-top: 1 em;
}

/* Stil za futer */

.footer {
    text-align: center;
    /* font-size: .9em; */
    background-color: #393E40;
    color: white;
    padding-top: 50px;
    padding-bottom: 70px;
}

.footer .contact-footer {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 30px;
    padding-left: 30px;
    position: relative;
}

.footer .contact-footer p {
    line-height: 2;
    margin-bottom: 1.5em;
    font-size: 20px;
}

.footer .contact-footer a {
    line-height: 2;
    margin-bottom: 1.5em;
    color: white !important;
}

.socials-bottom {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    display: flex;
    justify-content: center;
    font-size: 2em;
}

/* Stil za dugme za skrolovanje na vrh */

#top-button {
    position: fixed;
    display: none;
    bottom: 7px;
    left: 7px;
    padding: 5px;
    font-size: 50px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.0);
    color: #4f889e;
    border: none;
    outline: none;
    cursor: pointer;
}