@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
}

body{
  overflow-x: hidden;
}
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
  border-bottom: 1px solid white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 99;
    font-family: "Montserrat";
    font-weight: 300;
    font-style: normal;
    backdrop-filter: blur(10px);
  }

  nav .navbar{
    height: 100%;
    max-width: 1250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    /* background: red; */
    padding: 0 50px;
  }
  .navbar .logo a{
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }
  nav .navbar .nav-links{
    line-height: 70px;
    height: 100%;
  }
  nav .navbar .links{
    display: flex;
  }
  nav .navbar .links li{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 3vh 14px;
  } 
  nav .navbar .links li a{
    height: 100%;
    text-decoration: none;
    white-space: nowrap;
    color: #c74b4d;
    font-size: 19px;
    font-weight: 500;
  }
  .links li:hover .htmlcss-arrow,
  .links li:hover .js-arrow{
    transform: rotate(180deg);
    }
  
  nav .navbar .links li .arrow{
    /* background: red; */
    height: 100%;
    width: 22px;
    line-height: 70px;
    text-align: center;
    display: inline-block;
    color: #c74b4d;
    transition: all 0.3s ease;
  }
  nav .navbar .links li .sub-menu{
    position: absolute;
    top: 70px;
    left: 0;
    line-height: 40px;
    background: #791d2c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 2;
  }
  nav .navbar .links li:hover .htmlCss-sub-menu,
  nav .navbar .links li:hover .js-sub-menu{
    display: block;
  }
  .navbar .links li .sub-menu li{
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .navbar .links li .sub-menu a{
    color: #fff;
    font-size: 15px;
    font-weight: 500;
  }
  .navbar .links li .sub-menu .more-arrow{
    line-height: 40px;
  }
  .navbar .links li .sub-menu .more-sub-menu{
    position: absolute;
    top: 0;
    left: 100%;
    border-radius: 0 4px 4px 4px;
    z-index: 1;
    display: none;
  }
  .links li .sub-menu .more:hover .more-sub-menu{
    display: block;
  }
  .navbar .search-box{
    position: relative;
     height: 40px;
    width: 40px;
  }
  .navbar .search-box i{
    position: absolute;
    height: 100%;
    width: 100%;
    line-height: 40px;
    text-align: center;
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .navbar .search-box .input-box{
    position: absolute;
    right: calc(100% - 40px);
    top: 80px;
    height: 60px;
    width: 300px;
    background: #3E8DA8;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }
  .navbar.showInput .search-box .input-box{
    top: 65px;
    opacity: 1;
    pointer-events: auto;
    background: #3E8DA8;
  }
  .search-box .input-box::before{
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    background: #3E8DA8;
    right: 10px;
    top: -6px;
    transform: rotate(45deg);
  }
  .search-box .input-box input{
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    height: 35px;
    width: 280px;
    outline: none;
    padding: 0 15px;
    font-size: 16px;
    border: none;
  }
  .navbar .nav-links .sidebar-logo{
    display: none;
  }
  .navbar .bx-menu{
    display: none;
  }

.tag-container {
  position: absolute;
  top: 100%; /* ispod navigacije */
  right: 20px; /* poravnano desno s margina */
  animation: swing 6s infinite ease-in-out;
  transform-origin: top center;
  z-index: 10;
}

/* Konopac */
.rope {
  width: 3px;
  height: 60px;
  background: #c9b8ae;
  margin: 0 auto;
}

/* Sam tag */
.tag {
  width: 220px;
  height: 40vh;
  background: #292929;
  color: #791d2c;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  border-radius: 6px;
}

/* Logo unutar taga */
.logo {
  display: block;
  margin-top: 15px;
  font-size: 22px;
  font-weight: bold;
}

/* Animacija ljuljanja */
@keyframes swing {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(2deg); }
  40%  { transform: rotate(-2deg); }
  60%  { transform: rotate(1.5deg); }
  80%  { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}


/*POČETNA*/
.pocetna{
  width: 100vw;
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-direction: column;
background-image: url(images/pexels-karolina-grabowska-4938515.jpg);
background-repeat: no-repeat;
background-size: cover;
overflow-x: hidden;
}

h1{
  font-size: 65pt;
  color: white;
  font-family: "Lora", serif;
  font-weight: 400;
  font-style: normal;
}

h2{
  font-size: 25pt;
  color: white;
  font-family: "Montserrat";
    font-weight: 400;
    font-style: normal;
}
.o_meni{
   width: 100vw;
   min-width: 600px;
  height: 100vh;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 5vw;
}

.kutija{
  height: auto;
  padding-left: 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}
h3{ 
   font-size: 25pt;
  color: black;
   font-family: "Lora", serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  align-items: flex-start;
  padding-bottom: 5vh;
}

p{
  font-size: 15pt; 
  width: 50vw;
   font-family: "Montserrat";
    font-weight: 400;
    font-style: normal;
}

img{
width: 70%;
height: auto;
} 

.radovi_img{
  width: 30%;
height: auto;
}

.radovi{
  width: 100vw;
  min-width: 600px;
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.web_stranice{
   width: 100vw;
  height: auto; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5vh;
  background-color: #262825;
  color: white; 
  padding-top: 20vh;
}

.web_stranice h3{
  color: white;
}

.graficki_dizajn h3{
  color: white;
}

.programiranje h3{
  color: white;
}
button{
  width: 8vw;
  height: 5vh;
  border-radius: 25px;
  background-color: #791d2c;
  border: 2px solid #791d2c;
  color: white;
  font-family: "Montserrat";
  font-size: 13pt;
}

.programiranje{
   width: 100vw;
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5vh;
  background-color: #262825;
  color: white; 
  padding-top: 3vh;
}

.graficki_dizajn{
   width: 100vw;
  height: auto; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5vh;
    background-color: #262825;
  color: white; 
  padding-bottom: 10vh;
    padding-top: 3vh;
}

footer{
  width: 100vw;
  height: 30vh;
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer a{
  color: #791d2c;
  text-decoration: none;
}

footer a:hover{
text-decoration: underline;
}

/* radovi */
.popis_radova{
  min-width:  50vw;
  width: 50vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2vw;
  margin-top: 5vh;

}

.rad_div h3{
  color: white;
}
.rad_a {
    text-decoration: none;
    overflow: hidden;
    transition: color 0.5s, background-color 0.5s, transform 0.5s;
    color: #fff;
    background-color: var(--crvena);

}

.rad_a:hover {
    backdrop-filter: blur(20px) brightness(150%);
    color: var(--crvena);
    background-color: transparent;
    transform: scale(1.05);
    z-index: 1;
}

.rad_div {
    overflow: hidden;
    width: 270px;
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #791d2c;
}

.naziv_rada {
    font-weight: 400;
    text-align: center;
    font-size: 23pt;
    margin-top: 25px;
    margin-bottom: 25px;
    font-family: 'Lora', serif;
    width: 80%;
}

.opis_rada {
    font-size: 13pt;
    margin-bottom: 10px;
    width: 80%;
}

.opis_rada span {
    font-weight: 600;
}

.razred {
    text-align: left;
    width: 80%;
    font-size: 11pt;
    margin-bottom: 25px;
}

.razred b {
    margin-right: 5px;
}

.tehnologije {
    margin-bottom: 10px;
}

  @media (max-width:920px) {
    nav .navbar{
      max-width: 100%;
      padding: 0 25px;
    }
  
    nav .navbar .logo a{
      font-size: 27px;
    }
    nav .navbar .links li{
      padding: 0 10px;
      white-space: nowrap;
    }
    nav .navbar .links li a{
      font-size: 15px;
    }
  }



  @media (max-width:800px){
    .navbar .bx-menu{
      display: block;
  
    }
    nav .navbar .nav-links{
      position: fixed;
      top: 0;
      left: -100%;
      display: block;
      max-width: 270px;
      width: 100%;
      line-height: 40px;
      padding: 20px;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
      transition: all 0.5s ease;
      z-index: 1000;
      height: 100vh;
    }

    .nav-links{
      background-color: #791d2c;
      color: white;
    }

    nav .navbar{
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }
    .nav-links li a{
      color: white;
    }
    
    .navbar .nav-links .sidebar-logo{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sidebar-logo .logo-name{
      font-size: 25px;
      color: #fff;
    }
      .sidebar-logo  i,
      .navbar .bx-menu{
        font-size: 25px;
        color: #fff;
      }
    nav .navbar .links{
      display: block;
      margin-top: 20px;
    }
    nav .navbar .links li .arrow{
      line-height: 40px;
    }
  nav .navbar .links li{
      display: block;
    }
  nav .navbar .links li .sub-menu{
    position: relative;
    top: 0;
    box-shadow: none;
    display: none;
  }
  nav .navbar .links li .sub-menu li{
    border-bottom: none;
  
  }
  .navbar .links li .sub-menu .more-sub-menu{
    display: none;
    position: relative;
    left: 0;
  }
  .navbar .links li .sub-menu .more-sub-menu li{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .links li:hover .htmlcss-arrow,
  .links li:hover .js-arrow{
    transform: rotate(0deg);
    }
    .navbar .links li .sub-menu .more-sub-menu{
      display: none;
    }
    .navbar .links li .sub-menu .more span{
      /* background: red; */
      display: flex;
      align-items: center;
      /* justify-content: space-between; */
    }
  
    .links li .sub-menu .more:hover .more-sub-menu{
      display: none;
    }
    nav .navbar .links li:hover .htmlCss-sub-menu,
    nav .navbar .links li:hover .js-sub-menu{
      display: none;
    }
  .navbar .nav-links.show1 .links .htmlCss-sub-menu,
    .navbar .nav-links.show3 .links .js-sub-menu,
    .navbar .nav-links.show2 .links .more .more-sub-menu{
        display: block;
      }
      .navbar .nav-links.show1 .links .htmlcss-arrow,
      .navbar .nav-links.show3 .links .js-arrow{
          transform: rotate(180deg);
  }
      .navbar .nav-links.show2 .links .more-arrow{
        transform: rotate(90deg);
      }

  
  }
  @media (max-width:370px){
    nav .navbar .nav-links{
    max-width: 100%;
  } 
  }


  @media only screen and (max-width: 800px){
    nav{
      height: 10vh;
    }

    .pocetna{
      width: 100%;
    }
   
    h1{
      font-family: 20pt;
      text-align: center;
    }

    h2{
      font-size: 15pt;
    }
  
    p{
      font-size: 13pt;
      width: 80vw;
    }

    .o_meni{
      width:100%;
      min-width: 100%;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      padding: 0;
      margin: 0;
      gap: 5vh; 
      padding-top: 15px;
    }

    img{
      width: 90%;
      height: auto;
      padding-right: 5vw;
    }
    
    .slika-omeni{
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .radovi{
      width: 90%;
      min-width:  90%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column-reverse;
      padding: 0;
      margin: 0;
      height: auto;
    }

    .radovi_img{
      width: 100%;
      padding-right: 8vw;
    }

    .kutija {
      width: 90%;
      height: auto;
      padding-left: 0;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      flex-direction: column;
      margin-block-start: 0;
      margin-block-end: 0;
    }

    #web_stranice{
      width: 90%;
      min-width: 90%;
      height: auto;
      padding: 0;
      padding-bottom: 10vh;
    }

    #web_stranice > p {
      width: 85%;
      padding-right: 6vw;
    }

    .popis_radova{
      min-width: 90%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      gap: 5vh;
      padding-right: 7vw;
    }

    .programiranje{
      height: auto;
      display: flex;
      align-items: center;
      justify-items: center;
      flex-direction: column;
      padding-top: 25vh;
      padding-bottom: 10vh;
    }

    footer {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

    #kontakt-p{
      font-size: 12pt;
      width: 70%;
      margin-block-start: 0;
      margin-block-end: 0;
      padding-right: 5vw;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

  }