/* Stilovi za navigaciju i osnovni sadržaj */
* { 
    font-family: 'Nunito Sans', sans-serif;

}


html {
    scroll-behavior: smooth;
}

body {
    background-color: #dfdfdf;
    margin: 0;
    padding: 0;
    font-family: 'Nunito Sans', sans-serif;
    height: auto;
}
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}



main {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
}

#background-image {
    width: 100%;
    height: 80vh;
    object-fit: cover;

    filter: brightness(30%);
}

.content {
    padding: 100px 20px;
    text-align: center;
    color: white;
    z-index: 1;
    /* Postavlja sadržaj iznad videa */
}

section {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: white;
    font-size: 18px;
    line-height: 1.6;
}











/* Transparentni navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
   height: 71px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out, padding 0.3s, transform 0.5s ease-in-out;
    font-weight: 400;
    z-index: 1000;
}

header.transparent {
    background-color: rgba(255, 255, 255, 0);
    color: white;
}

header.solid {
    background-color: #dfdfdf;
    color: black;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header.hidden {
    transform: translateY(-100%);
}



/* Boja logotipa u transparentnom headeru (početno stanje) */
header.transparent .logo img {
    filter: brightness(0) invert(1);
    /* Belo logo */
}

/* Boja logotipa u solidnom headeru (posle skrolovanja) */
header.solid .logo img {
    filter: brightness(0) invert(0);
    /* Crno logo */
}

/* Boja burger ikone u transparentnom headeru (početno stanje) */
header.transparent .burger-menu i {
    color: white;
    /* Bela ikonica */
}

/* Boja burger ikone u solidnom headeru (posle skrolovanja) */
header.solid .burger-menu i {
    color: black;
    /* Crna ikonica */
}




*, *::after, *::before {
  margin: 0;
  padding: 0;
    box-sizing: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  html {
    box-sizing: border-box;
    font-size: 62.5%;
    overflow-y: scroll;
  }
  .kontakt{
    background-color: #303030;
    height: 100vh;
  }
 
  .material-icons {
    font-size: 18px;
    margin-left: 4px;
  }
  .center {
    
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    margin: auto;
  }
  .container {
    
    display: grid;
    grid-template-columns: repeat(2, minmax(min-content, 35rem));
    grid-template-rows: repeat(5, min-content);
    justify-items: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.25);
  }
  @media only screen and (max-width: 790px) {
    .container {
      grid-template-columns: 50rem;
      grid-column-rows: repeat(6, min-content);
    }
  }
  @media only screen and (max-width: 540px) {
    .container {
      
      grid-template-columns: minmax(30rem, 40rem);
    }
  }
  /*  TITLE  */
  .title {
    grid-row: 1 / 2;
    grid-column: 1 / 4;
    padding: 2.8rem 4rem;
    margin-bottom: 1.4rem;
    font-size: 3.2rem;
    color: #373737;
    border-radius: 0.4rem 0.4rem 0 0;
    background: #f2f2f2;
    font-weight: 700;
  }
  /*  FORM  */
  .form {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    margin: 2rem 0 0.8rem 4rem;
    position: relative;
  }
  @media only screen and (max-width: 790px) {
    .form {
      margin: 2rem 4rem 0.8rem 4rem;
    }
  }
  .form__1 {
    grid-row: 2 / 3;
  }
  .form__2 {
    grid-row: 3 / 4;
  }
  .form__3 {
    grid-row: 4 / 5;
  }
  .form.active label {
    transform: translateY(-2.2rem);
    visibility: visible;
    font-size: 1.3rem;
    color: #7581FF;
  }
  .form__input {
    font-size: 1.6rem;
    padding: 1rem 0;
    border: none;
    background: transparent;
    border-bottom: 2px solid #c1c1c1;
  }
  .form__input:focus {
    outline: none;
    border-bottom: 2px solid #c1c1c1;
  }
  .form__input:focus:invalid {
    border-bottom: 2px solid #7581FF;
  }
  .form__label {
    font-size: 1.6rem;
    color: #c1c1c1;
    position: absolute;
    top: 1rem;
    pointer-events: none;
    transition: all 0.3s;
  }
  .form__btn {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
    background: #7581FF;
    color: #fff;
    border: none;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1.1rem 0;
    margin: 2.8rem 0 4rem 4rem;
    cursor: pointer;
    border-radius: 0.4rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
  }
  @media only screen and (max-width: 790px) {
    .form__btn {
      margin: 2.8rem 4rem 4rem 4rem;
    }
  }
  .form__btn:focus {
    outline: 0;
  }
  .form__btn:hover {
    background-color: #5162fe;
  }
  .form__btn > * {
    transition: all 0.4s;
    transition-delay: 1s;
    display: inline-block;
  }
  .form__btn--invisible {
    position: absolute;
    width: 100%;
    left: 0;
    top: -100%;
  }
  .form__btn--invisible.visible {
    top: 11px;
  }
  .form__btn--visible {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .form__btn--visible.invisible {
    transform: translateY(200%);
  }
  /*  MAIL ICON  */
  .container-mail {
    grid-column: 2 / 3;
    grid-row: 2 / 6;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 31rem;
    height: 28rem;
    margin-bottom: 4rem;
  }
  @media only screen and (max-width: 790px) {
    .container-mail {
      grid-column: 1 / 2;
      grid-row: 6 / 7;
      height: 12rem;
      margin-top: 4rem;
      justify-self: center;
    }
  }
  .mail {
    position: relative;
    top: -4rem;
    left: -6rem;
  }
  @media only screen and (max-width: 790px) {
    .mail {
      left: -27%;
      top: -5rem;
    }
  }
  .mail__top {
    position: absolute;
    top: -5.7rem;
    width: 0;
    height: 0;
    border-right: 8rem solid transparent;
    border-left: 8rem solid transparent;
    border-bottom: 5.8rem solid #ffab17;
    z-index: 0;
  }
  .mail__top.closed {
    transition: transform 0.6s 0.8s, z-index 0.2s 0.4s;
    z-index: 2;
    transition-delay: 0.5s;
    transform-origin: bottom left;
    transform: rotate3d(1, 0, 0, 180deg);
  }
  .mail__back {
    position: absolute;
    background: #ffab17;
    width: 16rem;
    height: 10rem;
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.3);
  }
  .mail__left {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8rem solid #ffc867;
    border-top: 5rem solid transparent;
    border-bottom: 5rem solid transparent;
  }
  .mail__right {
    position: absolute;
    left: 8rem;
    width: 0;
    height: 0;
    border-right: 8rem solid #ffc867;
    border-top: 5rem solid transparent;
    border-bottom: 5rem solid transparent;
  }
  .mail__bottom {
    position: absolute;
    top: 4.92rem;
    width: 0;
    height: 0;
    border-right: 8rem solid transparent;
    border-left: 8rem solid transparent;
    border-bottom: 5.08rem solid #ffbb43;
  }
  .mail__letter {
    position: absolute;
    top: -4rem;
    left: 2rem;
    width: 12rem;
    height: 9rem;
    background: #fff;
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.8s ease;
  }
  .mail__letter.move {
    transform: translateY(45px);
  }
  .mail__letter * {
    background: #e0e0e0;
  }
  .mail__letter-square {
    position: absolute;
    top: 3rem;
    left: 1rem;
    width: 3.8rem;
    height: 4rem;
  }
  .mail__letter-square::before {
    content: "";
    position: absolute;
    top: -2rem;
    width: 10rem;
    height: 1.5rem;
    background: inherit;
  }
  .mail__letter-lines {
    top: 4.9rem;
    left: 5.8rem;
  }
  .mail__letter-lines, .mail__letter-lines::before, .mail__letter-lines::after {
    content: "";
    position: absolute;
    width: 5rem;
    height: 0.3rem;
    background: #e0e0e0;
  }
  .mail__letter-lines::before {
    top: -1rem;
  }
  .mail__letter-lines::after {
    top: 1rem;
  }
  








/* Postavljanje stila za pozadinu */
#background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Pozadinska slika ispod sadržaja */
}

/* Stil za tekst */
.content {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 48px;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 3px;
}

#welcome-text {
    font-size: 48px;
    font-family: 'Nunito Sans', sans-serif;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;

    width: 0;
    padding-right: 10px;
    animation: typing 3s steps(30) 1s forwards, blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCaret {
    50% {
        border-color: transparent;
        /* Sakriva kursor */
    }
}


.form__btn {
  position: relative;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
    /* Fiksirajte širinu dugmeta */
  
  height: 50px;
  text-align: center;
  transition: all 0.3s ease;
}

.form__btn--invisible {
  display: none;
}

.form__btn--visible {
  display: inline-block;
}

/* Efekat na dugme kada je aktivirano */
.form__btn:active {
  transform: scale(0.98);
}




.logo-div {
    height: 71px;
    width: 73px;
}

.logo img {
    
    margin-top: 7px;
    height: 60px;  /* Fiksna visina */
    width: auto;   /* Širina se automatski prilagođava */


}

nav {
    display: flex;
    justify-content: space-between;
    width: 60%;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 15px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li {
    font-size: 18px;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: gray;
}
.swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* To position the overlay */
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black overlay */
    z-index: 1;
  }

  .swiper {
    margin-left: auto;
    margin-right: auto;
  }

  /* Add the fixed div with red text */
  .fixed-text {
    position: absolute; /* Ograničeno unutar main sekcije */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: red;
    z-index: 10;
    text-align: center;
    width: 100%;
}

/* Stilizacija naslova unutar fiksiranog teksta */
.fixed-text h3,
.fixed-text h4 {
    margin: 10px 0;
}

/* Dugme za kontakt */
.contact-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: darkred;
}

/* Swiper sekcija */
.swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Stilizacija pojedinačnih slajdova */
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Omogućava overlay */
}

/* Stilizacija slika unutar slajdera */
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay efekat preko slika */
.swiper-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Poluprovidna crna boja */
    z-index: 1;
}

/* Sakrivanje Swiper navigacije i paginacije */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    display: none;
}
/* Flex container za galeriju slika */
.flex-container {
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 960px;
    margin: 50px auto;
}

.flex-item {
    background-color: #92929200;
    width: 300px;
    height: 300px;
    padding: 30px;
    border-radius: 15px;
    box-sizing: border-box;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(73, 73, 73, 0.329);
}

/* Galerija slika */
.gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gallery .gallery-titl {
    width: 30%;
}

.gallery .gallery-titl h3 {
    font-size: 3em;
    font-weight: bolder;
    border-bottom: 3px solid #222;
}

.gallery .gallery-titl h3 span {
    font-weight: 100;
}

.pictures {
    width: 960px;
}

.gallery .pictures {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.gallery .pictures .box {
    display: flex;
    flex-direction: column;
    width: 32.5%;
}

.gallery .pictures .box img {
    width: 100%;
    padding-bottom: 15px;
    border-radius: 5px;
}

.social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.social-media h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    text-decoration: none;
    color: #333;
    font-size: 55px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover efekti */
.social-icons a:hover {
    color: #e4405f;
    /* Instagram roze */
    transform: scale(1.1);
}

.social-icons a:nth-child(2):hover {
    color: #1877f2;
    /* Facebook plava */
}





footer {

    background-color: #303030;
    color: #fff;
    padding: 40px 20px;
    font-size: 16px;
    box-shadow: 0px -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
    flex-wrap: nowrap;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.map {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    color: #f8f9fa;
    margin-bottom: 15px;
}

.contact-info p {
    color: #ced4da;
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-info p strong {
    color: #fff;
}


.map {
    margin-top: 20px;
    text-align: center;
}

.map iframe {
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 400px;
}


.footer-bottom {

    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #495057;
    padding-top: 35px;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 18px;
}



.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
}

@media (max-width: 1280px){
    nav{
        width: 70%;
    }
}

@media (max-width: 960px) {
    nav {
        width: 80%;
    }



    .flex-container {
        justify-content: center;
    }


    .pictures {
        width: 620px;
    }

    .pictures {
        width: 95%;
        margin: auto;
    }

    .gallery .gallery-titl {
        width: 400px;
    }
}




@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        width: 100%;
        margin-bottom: 20px;
    }

    .map iframe {
        height: 250px;
    }

    .pictures {
        width: 95%;
        margin: auto;
    }

}

@media (max-width: 738px) {
    .gallery .gallery-titl {
        width: 70%;
        font-size: 16px;
    }

    .gallery .gallery-titl h3 {
        font-size: 8vw;

    }

    /* Stil za navbar kad je zatvoren */
    /* Opšti stil za navbar kada je zatvoren */
    #navbar-links {
        position: fixed;
        top: -310px;
        left: 0;
        width: 100%;

        background: rgba(113, 113, 113, 0.219);
        background: linear-gradient(180deg, rgba(113, 113, 113, 0.932) 0%, rgba(71, 71, 71, 0.938) 39%, rgba(0, 0, 0, 0.938) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        /* Razmak od vrha ekrana */
        padding-bottom: 0px;
        transition: top 0.5s ease-in-out;
        /* Glatka animacija za otvaranje */
        z-index: 9999;
    }

    /* Kada je meni otvoren */
    #navbar-links.open {
        top: 0;
        transition: top 0.5s ease-in-out;
        /* Glatka animacija za zatvaranje */
    }

    /* Stilizovanje liste sa stavkama menija */
    #navbar-links ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        /* Proširen razmak između stavki */
        margin: 0;
        padding: 0;
        animation: slideDown 0.6s ease-out;
        /* Efekat klizanja */
    }

    #navbar-links ul li {
        width: 100%;
        font-size: 18px;
        font-family: 'Roboto', sans-serif;
        text-align: center;
        border-bottom: 0.3px solid rgba(255, 255, 255, 0.274);
    }


    #navbar-links ul li a {

        color: #fff;
        text-decoration: none;
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    /* Hover efekat na linkovima */
    #navbar-links ul li a:hover {

        color: #7e7e7e;
    }

    /* Efekat klizanja stavki menija */
    @keyframes slideDown {
        0% {
            transform: translateY(-30px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }


    .burger-menu {
        display: block;
        cursor: pointer;

        z-index: 10000;
    }

    .burger-menu i {
        font-size: 2rem;
        color: #fff;
        transition: all 0.3s ease;
    }


    #burger-menu.open i {
        color: #f0a500;
    }

    header {
        padding-top: 0;
        padding-bottom: 0;
    }

    #welcome-text {
        font-size: 8vw;
    }

}
@media (max-width: 541px){
  .title{
    font-size: 22px;
  }
}

@media (max-height: 850px){
  .container{
    margin-top: 120px;
  }
}