*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
    font-family: 'Josefin Sans', sans-serif;
    
}
body{
    min-height: 1600px;
    background: #1f1f1f;
    overflow-x: hidden;
}
section{
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}
section ::before{
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1400px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 80%,  100%);   /*bilo #000*/
    z-index: 100000;
}
section img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
#last{
    z-index: 10;
}
#text{
    position: relative;
    color: white;
    z-index: 2;
    font-size: 8rem;
    text-align: center;
    padding-top: 205px;
    text-transform: uppercase;
    letter-spacing: 12px;
    font-family: 'Caveat Brush', cursive;
}

.ab-text{
    padding: 100px 20%;
}
.heading{
    text-align: center;
}
.heading h2{
    font-size: 40px;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}
.heading p{
    color: white;
    font-size: 15px;
    line-height: 28px;
}
.container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, auto));
    grid-gap: 1.7rem;
    align-items: center;
    margin-top: 5rem;
}
.box{
    height: 340px;
    width: auto;
    border-radius: 10px;
    overflow: hidden;
    background: gray;
    transition: all 0.8s;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.in{
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 22px;
    letter-spacing: 1px;
}
.bottomx{
    text-align: center;
    color: #adb5bd;
    padding-top: 150px;
    font-size: 14px;
    letter-spacing: 1px;
}
.box1{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/04.jpg) center center no-repeat;
    background-size: cover;
}
.box1:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}



.box2{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/02.jpg) center center no-repeat;
    background-size: cover;
}
.box2:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}






.box3{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/03.jpg) center center no-repeat;
    background-size: cover;
}
.box3:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}





.box4{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/01.jpg) center center no-repeat;
    background-size: cover;
}
.box4:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}





.box5{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/02.jpg) center center no-repeat;
    background-size: cover;
}
.box5:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}




.box6{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/03.jpg) center center no-repeat;
    background-size: cover;
}
.box6:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}





.box7{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/01.jpg) center center no-repeat;
    background-size: cover;
}
.box7:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}




.box8{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/04.jpg) center center no-repeat;
    background-size: cover;
}
.box8:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}





.box9{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/02.jpg) center center no-repeat;
    background-size: cover;
}
.box9:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}



.box10{
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 75%, #000 100%), url(img/04.jpg) center center no-repeat;
    background-size: cover;
}
.box10:hover{
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0.6;
}





/*-----------navbar------------*/

nav{
  background: #333;
  display: flex;
  justify-content:space-around;
  align-items: center;
  color: #fff;
  overflow-x: hidden;
  height: 40px;
}
.nav-links {
    display: flex;
    justify-content:space-around;
    width: 50%;
    /*text-transform: uppercase;*/
}
.nav-links a{
  display: block;
   text-transform: unset;
   text-decoration: none;
   color: #fff;
  border-bottom:2px solid transparent;
  transition:0.5s ease;
  transform: translateX(0%);
}
.nav-links a:hover{
  color:#38b8ff;
  letter-spacing: 5px;
}
.burger{
  display: none;
}
.logo h4{
  font-size: 17px;
}
.logo a{
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
.burger div{
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px;
  transition:all 0.5s ease;
}
@media only screen and (max-width: 1024px){
   
#text{
    top: 350px;
    position: relative;
    color: white;
    z-index: 2;
    font-size: 3rem;
    text-align: center;
    padding-top: 205px;
    text-transform: uppercase;
    letter-spacing: 12px;
    font-family: 'Caveat Brush', cursive;
}

nav{
    justify-content: space-between;
    padding: 0 5vw;
  }

  .nav-links{
    position: absolute;
    right: 0;
    top: 3vh;
    min-height: 92vh;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    margin: 0;
    padding: 0;
    height: 100vh;
    transform: translateX(100%);
    transition: All 0.5s ease-in;
  }
  .nav-links a{
    opacity: 0;
    font-size: 25px;
 
  }
  .burger{
    display: block;
  }
 
}
@media only screen and (max-width: 640px){
  nav{
    justify-content: space-between;
    padding: 0 5vw;
  }
}
.nav-active{
  transform: translateX(0);
  z-index: 1000;
}
@media only screen and (max-width: 460px){
  .nav-links{
    width: 100%;
    transition:All 0.5s ease;
  }
}
.nav-active{
  transform: translateX(0);
}
@keyframes navLinkFade{
  from{
    opacity: 0;
    transform: translateX(50px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}
.toggle .line1{
   transform: rotate(-45deg) translate(-5px,6px );
}
.toggle .line2{
   opacity: 0;
}
.toggle .line3{
   transform: rotate(45deg) translate(-5px,-6px );
}
.fixedin{
    overflow-x: hidden;
}
p{
    font-size: 13px;
}





/*-------------scroll down arrow--------------*/
.arrows {
  width: 60px;
  height: 75px;
  position: absolute;
  left: 50%;
  margin-left: -30px;
  bottom: 200px;
  z-index: 1000000;
}

.arrows path {
  stroke: #ffffff;
  fill: transparent;
  stroke-width: 3px;  
  animation: arrow 2s infinite;
  -webkit-animation: arrow 2s infinite; 
  
}

@keyframes arrow
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

@-webkit-keyframes arrow /*Safari and Chrome*/
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

.arrows path.a1 {
  animation-delay:-1s;
  -webkit-animation-delay:-1s; /* Safari 和 Chrome */
}

.arrows path.a2 {
  animation-delay:-0.5s;
  -webkit-animation-delay:-0.5s; /* Safari 和 Chrome */
}

.arrows path.a3 { 
  animation-delay:0s;
  -webkit-animation-delay:0s; /* Safari 和 Chrome */
}









/*----------------timeline--------------------*/
.new_poz{
  background: #2e364a;
}
.timeline{
  position: relative;
  max-width: 1200px;
  margin: 100px auto;
}
.timeline_container{
  padding: 10px 50px;
  position: relative;
  width: 50%;
  animation: movedown 1s linear forwards;
  opacity: 0;
}
@keyframes movedown{
  0%{
    opacity: 1;
    transform: translateY(-30px);
  }
  100%{
    opacity: 1;
    transform: translateY(0px);
  }
}
.timeline_container:nth-child(1){
  animation-delay: 0s;
}
.timeline_container:nth-child(2){
  animation-delay: 1s;
}
.timeline_container:nth-child(3){
  animation-delay: 2s;
}
.timeline_container:nth-child(4){
  animation-delay: 3s;
}
.timeline_container:nth-child(5){
  animation-delay: 4s;
}
.timeline_container:nth-child(6){
  animation-delay: 5s;
}
.timeline_container:nth-child(7){
  animation-delay: 6s;
}
.timeline_container:nth-child(8){
  animation-delay: 7s;
}

.timeline_text-box{
  padding: 20px 30px;
  background: #fff;
  position: relative;
  border-radius: 6px;
  font-size: 15px;
}
.timeline_text-box p{
  font-size: 17px;
}
.rr{
  padding-bottom: 6px;
}
.ap{
  padding-top: 6px;
}
.left-container{
  left: 0;
}
.right-container{
  left: 50%;

}.timeline_container img{
  position: absolute;
  width: 40px;
  border-radius: 50%;
  right: -20px;
  top: 32px;
  z-index: 10;
}
.right-container img{
  left: -20px;
}
.timeline::after{
  content: '';
  position: absolute;
  width: 6px;
  height: 100%;
  background: #fff;
  top: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 1;
  animation: moveline 6s linear forwards;
}
@keyframes moveline{
  0%{
    height: 0;
  }
  100%{
    height: 100%;
  }
}

.left-container-arrow{
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid #fff;
  right: -15px;
}
.right-container-arrow{
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid #fff;
  left: -15px;
}

@media screen and (max-width:600px){
  .timeline{
    margin: 50px auto;
  }
  .timeline::after{
    left: 31px;
  }
  .timeline_container{
    width: 500px;
    padding-left: 80px;
    padding-right: 25px;
  }
  .timeline_text-box{
    font-size: 13px;
  }
  .timeline_text-box small{
    margin-bottom: 10px;
  }
  .right-container{
    left: 0;
  }
  .left-container img, .right-container img{
    left: 10px;
  }
  .right-container-arrow, .left-container-arrow{
    border-right: 15px solid #fff;
    border-left: 0;
    left: -15px;
  }
}


@media screen and (max-width:500px){
 
  .timeline_container{
    width: 400px;
    padding-left: 80px;
    padding-right: 25px;
  }
 
}
@media screen and (max-width:400px){
 
  .timeline_container{
    width: 300px;
    padding-left: 80px;
    padding-right: 25px;
  }
 
}

.new_poz2{
  background: #8fcc8f;
}
.new_poz3{
  background: #38b8ff;
}
.ab-text{
  padding-top: 100px;
}





/*-----------------------------------------*/

.drugi_deo{
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  
}
.drugi_deo > div{
  min-height: 30em;
  overflow: hidden;
  position: relative;
  text-align: center;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  padding: 2em;
  padding-bottom: 15vh;
  transition: 0.3s ease-in-out;
}
.drugi_deo video{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  z-index: -1;
}
.drugi_deo > div::before{
  content: '';
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.8),
    rgba(0,0,0,0)
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.drugi_deo .drugi_deo_title{
  position: relative;
}
.drugi_deo_sub-heading b{
  color: #fff;
  margin-right: 0.5em;
}
.drugi_deo_title{
  margin: 0.2em 0 0.7em 0;

}
.drugi_deo_sub-heading{
  position: relative;
}
.drugi_deo_sub-heading::before{
  content: '';
  background: #ffba52;
  position: absolute;
  top: -2em;
  left: 50%;
  transform: translateX(-50%);
  width: 3em;
  height: 4px;
}
.article-link{
  text-decoration: none;
  color: #fff;
  display: inline-block;
  margin: 5em 0 1em 0;
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
}
.article-link::before{
  content: '';
  background: #fff;
  position: absolute;
  width: 1px;
  height: 3em;
  top: -4em;
  left: 50%;
  transform: translateX(-50%);
}
.article-link:hover{
  color: #ccc;
}
.drugi_deo > div:hover{
  padding-bottom: 10em;
}
.drugi_deo >div:hover .article-link{
  opacity: 1;
}
.drugi_deo >div:nth-child(1):hover::before{
  background: linear-gradient(
    0deg,
    rgba(20,99,142,0.8),
    rgba(255,187,42,0)
  );
}
.drugi_deo >div:nth-child(2):hover::before{
  background: linear-gradient(
    0deg,
    rgba(30,133,18,0.8),
    rgba(255,187,42,0)
  );
}
.drugi_deo >div:nth-child(3):hover::before{
  background: linear-gradient(
    0deg,
    rgba(194,137,21,0.8),
    rgba(255,187,42,0)
  );
}
.drugi_deo > div:hover p{
  color: #fff;
}

@media screen and (max-width:900px){
  html{
    font-size: 14px;
  }
}
  
@media screen and (max-width: 750px){
  .drugi_deo{
    grid-template-columns: 1fr;
  }
}
  
.topp{
  padding-top: 150px;
}