* { box-sizing: border-box;}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', Arial, sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  scroll-behavior: smooth; /* Omogućuje mekano (nježno) skrolanje */
  line-height: 1.5em;
}
.spacer {
height: 50px;
display: block;
}
.hero-image {
  width: /*100vw;*/100%;
  height: 870px; /* ili visina po potrebi, npr. 700px */
  object-fit: cover;
  object-position: center;
  max-width: 100%;
  display: block;
}
.hero-image img {
  width:100%;
}
.hero-bg {
  background-image: url('Poweznica_Hero_1920x600px.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  width: /*100vw;*/100%;
  height: 800px; /* prilagoditi visinu */
}
#avatar-container {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
}
#avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transition: left 0.7s linear, top 0.7s linear;
  position: absolute;
  left: 0;
  top: 0;
}
h2 {
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: -15px;
}
.about {
  padding-bottom: 80px;
}
.layout {
  display: flex;
  /*height: 100vh;*/
}

.sidebar {
  background: #fff;
  width: /*15vw;*/15%;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8px;
  box-sizing: border-box;
  margin-top: 35px;
}
.sidebar.left img {
  width: 100%;
}

.sidebar.left nav,
.sidebar.right nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar.left nav a,
.sidebar.right nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  /*border-radius: 16px;*/
  font-weight: 500;
  transition: background 0.2s;
}
.bubble-link {
  position: relative;
}

.bubble-speech {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  min-width: 120px;
  transition: opacity 0.3s;
}

.bubble-speech::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.bubble-link:hover .bubble-speech {
  visibility: visible;
  opacity: 1;
}


/*.sidebar.left nav a.active {
  background: #eee;
}*/

.sidebar.left {
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar.right {
  align-items: flex-end;
  justify-content: space-between;
}

#clock {
}

footer {
  position: fixed;
  bottom: 7px;
/*background-color: #fff;*/
display: none;  
font-size: 0.9rem;
  margin-top: auto;
  color: #888;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
}
footer div {
  padding: 10px 20px;
  background-color: white;
}
footer a {
  color: #888;
  margin-right: 15px;
}
main {
  flex: 1;
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

header {
  margin-bottom: 20px;
}
.top {
  /*padding-left: 15vw;*/
  padding: 7px 0 0 7px;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5em;
}
h1 {
  font-weight: 300;
}
h1#usluge {
    scroll-margin-top: 40px;
}
h1#main-title, h1#usluge {
  font-size: 4.1rem;
  /*margin-bottom: 1.15em;*/
  Height: 150px;
  width: 150px;
  margin-top: 0.6em;
}
#main-title {
  display: none;
}

#tagline {
  font-size: 1.05rem;
  color: #888;
}

.gallery {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  /*flex-direction: column;*/
  flex-direction: row;/*za vertikalne pravokutnike*/
  align-items: center;
  /*padding-top: 200px;*/
}
.desc {
  display: none;
  scroll-margin-top: 450px; /* Dodaj offset od 200px */
}
.desc:target {
  display: block;
}
.desc a {
  color: #000;
}
.project {
  flex: 1;
  /*min-height: 100px;*/
  min-height: 400px; /*za vertikalne pravokutnike*/
  background: #f3f3f3;
  /*border-radius: 20px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 10px rgba(108,108,108,0.07);
  /*width: 500px; - za horizontalne pravokutnike*/
      width: 50px; /*za vertikalne pravokutnike*/
    overflow: hidden;
}

.project.active, .project:focus, .project:hover {
  transform: scale(1.07);
  background: #fff;
  box-shadow: 0 8px 32px rgba(80,80,80,0.10);
  z-index: 2;
}

.img-placeholder {
  font-size: 1.1rem;
  color: #666;
    filter: grayscale(100%);
  transition: filter 0.5s;
}
.img-placeholder:hover, .img-placeholder:active {
filter:grayscale(0%);
}
#project-info {
  min-height: 80px;
  transition: opacity 0.3s;
  opacity: 1;
}

#project-title { margin-top: 50px; }
#project-desc { color: #000; margin-top: 14px; line-height: 1.5em; /*text-align: center;*/ padding-bottom: 50px;}
#omeni { color: #000; margin: 14px 3% 0 3%; line-height: 1.5em; /*text-align: center;*/ padding-bottom: 30px;}
.container {
    display: inline-block;
    margin: 20px;
    text-align: center;
  }
.margin-left {
  margin-left: 3%;
}
  .container img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .container img:hover {
    transform: scale(1.05);
  }

  .tekst {
    display: none;
    margin-top: 10px;
    color: #333;
    scroll-margin-top: 300px; /* Dodaj offset od 200px */
    text-align: left;
  }
  .about p {
    text-align: left;
  }
  /* Kad je ciljani <div> targetiran (klikom na link), prikazuje se */
  .tekst:target {
    display: block;
  }
  .tekst a {
        color: black;
    /*text-transform: uppercase;
     text-decoration-line: blink; */
  }

  /* Stil za link koji zatvara sekciju */
  .close {
    display: /*inline-block;*/none;
    margin-top: 8px;
    color: #0077cc;
    text-decoration: none;
  }

.mobile {display: none;}
.copyright {
      /* clear: both; */
    /*  position: absolute;*/
    text-align: center;
    display: block;
    width: 100%;
    color: #888;
    padding-bottom: 25px;
}
/* Responsive za mobilno */
@media (max-width: 900px) {
  .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }
  h1#usluge {
    scroll-margin-top: 300px;
    font-size: 2em;
    margin-left: 3%;
  }
  .layout { flex-direction: column; }
  .sidebar { width: auto; min-width: unset; flex-direction: row; height: auto; margin-top:0px;}
  .sidebar.left {
    position: sticky;
    background-color: white;
    top: 0;
    z-index: 100;
    align-items: space-between;}
  .sidebar.left img {
  width: 150px;
}
  main { padding: 32px 12px; }
  .gallery { flex-direction: column; gap: 14px;}
  .sidebar.left nav {flex-direction: row; justify-content: space-between;width: 100%;
}
h1#main-title {
    font-size: 4.1rem;
    /* margin-bottom: 1.15em; */
    height:auto;
    width: 100%;
    text-align: center;
}
.sidebar.right {
  display: none;
}
.project {
  min-height: 100px;
  width: 90%;
  max-height: 150px;
}
.project img {
  height: 150px;
}
.about {
  margin: 0 3%;
}
.copyright {
      /* clear: both; */
    /*  position: absolute;*/
    text-align: center;
    margin: 0 auto;
    width: 50%;
    padding-bottom: 55px;
}
}