/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #222;
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  background-color: transparent;
  z-index: 1000;
  transition: background-color 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.scrolled {
  background-color: black;
}

.header-logo {
  width: 80px;
  height: auto;
}

/* Meni i hamburger - sakriveni dok ne skrolaš */
header nav,
#hamburger {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Kad skrola - fade in */
header.scrolled nav,
header.scrolled #hamburger {
  opacity: 1;
}

nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

#hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

#hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active span:nth-child(2) {
  opacity: 0;
}

#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
nav ul li a.active {
  color: #ff6600;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(0px);
  background-color: rgba(0, 0, 0, 0);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: backdrop-filter 0.4s ease, background-color 0.4s ease, opacity 0.4s ease;
}

#overlay.show {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 1;
  pointer-events: all;
}


@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #000;
    width: 220px;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
  }

  nav.show {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  nav ul li {
    text-align: left;
  }

  nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #ff6600; /* ili bilo koja boja koju koristiš */
  }

  #hamburger {
    display: flex;
  }
}


/* Animacija za mobilni meni */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* MAIN */
.kontakt-main {
  padding: 60px 0;
}

.kontakt-main h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kontakt-form label {
  font-weight: bold;
}

.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.kontakt-form button {
  padding: 12px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.kontakt-form button:hover {
  background-color: #333;
}

.kontakt-info {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
}

/* FOOTER */

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    right: 10px;
    top: 60px;
    width: 160px;
    padding: 10px;
    border-radius: 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

footer {
  background-color: #111;
  color: #bbb;
  padding: 40px 20px 20px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info h3 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #eee;
}

.footer-info p {
  margin-bottom: 8px;
  color: #aaa;
}

.footer-social {
  min-width: 160px;
}

.footer-social h4 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #eee;
}

.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

.social-icons li a {
  display: inline-block;
  transition: fill 0.3s ease;
}

.social-icons li a svg {
  fill: #bbb;
  width: 28px;
  height: 28px;
}

.social-icons li a:hover svg {
  fill: #fff;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  color: #666;
  font-size: 13px;
  border-top: 1px solid #222;
  padding-top: 15px;
}

/* Responsivnost footer-a */

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 25px;
  }
}


.uvodni-tekst {
  margin-top: 20px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

.dodatne-info {
  margin-top: 60px;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 12px;
  color: #333;
}

.dodatne-info h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #111;
}

.dodatne-info ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}
 .za-ucitavanje {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.prikazi {
  opacity: 1;
  transform: translateY(0);
}
/* Preloader stilovi */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* crna pozadina */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.5s ease;
}

.loader {
  text-align: center;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  animation: fadeIn 2s ease-in-out;
}

.loader img {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  animation: pulse 3s ease-in-out infinite;
}

.loader-bar {
  width: 120px;        /* širina tanke crte */
  height: 4px;         /* visina tanke crte */
  background-color: #444;  /* tamno siva */
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background-color: #fff; /* bijela boja koja raste */
  transition: width 0.3s ease;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.6;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-out {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  z-index: 10000;
  opacity: 0;
  pointer-events: none; /* sakri dok ne treba */
}

#fab:hover {
  background-color: #555;
}

#fab svg {
  width: 20px;
  height: 20px;
  fill: white;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #fff;
  width: 0%;
  z-index: 10001;
  transition: width 0.2s ease-out;
}
