*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
}
*::selection {
  background: #0da841;
  color: white;
}
html,
body {
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}
#container{
  height: auto;
  width: 100%;
  overflow: hidden;
  position:relative; 
  display: block; 
  float: left;
  transition: 1s ease;
  background-color: rgb(41, 54, 65);
}
#header {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 9999;

  /* Start: totalno transparentan */
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;

  transform: translateY(0);
  opacity: 1;
  transition: 
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.3s ease;
}

/* Kad skroluješ – blur + shadow */
#header.with-bg {
  background: rgba(15, 23, 42, 0.55); /* tamna prozirna */
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
}

/* Auto-hide kad ideš dole */
#header.hide {
  transform: translateY(-100%);
}
  #sl-lev{
    height: 100%;
    width: 20%;
    /* background-color: rgb(29, 32, 151); */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }
  #logo{
    width: 200px;
    height: 86px;
  }
  .navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    width: 80%;
    height: 100%;
    /* background-color: blue; */
  }
  .hamburger {
    display: none;
  }
  
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #101010;
  }
  .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
    gap: 26px ;
    /* background-color: red; */
  }
  .nav-itemi {
    display: block;
    width: 105px;
    text-align: center;
    transition-duration: .25s;
  }
  .nav-link{
    position: relative;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    list-style:none;
  }
  .nav-link:hover{
    color: #494d72;
  }
  #prj{
    width: 100%;
    height: 3px;
    top: 42px;
    position: absolute;
    background-color: #ffffff;
    display: flex;
  }
  
  .nav-link::after{
    content: '';
    position: absolute;
    left: 0px;
    bottom: -10px;
    height: 3px;
    width: 0px;
    border-radius: 2px;
    background-color: #ffffff;
    transition: 0.4s ease;
  }
  .nav-link:hover::after{
    width: 100%;
  }
  #jeza{
    width: 120px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;  
    gap: 10px;
  }
  .zas{
    width: 40px;
    height: 40px;
  }
  #jeza .zas{ 
    width: 34px; 
    height: 34px; 
    opacity:.9; 
  }
#jeza .zas:hover{ 
  filter: brightness(.85); 
  cursor: pointer;
}
/*--------------GOTOV HEADER ----------------*/

.s-page-1{ 
  width: 100%; 
  height: 100vh; 
  display: flex; 
  justify-content: center; 
  align-items:center ; 
  flex-direction: row; 
  position: relative; 
  background-color: rgb(0, 0, 0); 
  z-index: 100; 
} 
  .s-section-1{ 
    width: 100%; 
    height: 100%; 
  } 
  .s-section{ 
    width: 100%; 
    height: 100%; 
    position: relative;
  }
  #gor{
    width: 100%;
    max-width: 1120px;               
    margin: 0 auto;                   
    padding: clamp(24px, 6vh, 64px) clamp(16px, 4vw, 40px);
    min-height: calc(100vh);
    padding-left: var(--hero-left-desktop); 
  
    display: flex;
    flex-direction: column;
    justify-content: center;          
    align-items: flex-start;        
    gap: clamp(14px, 2.8vh, 28px);  
    text-align: left;
  }
  
  #gor::before{ 
    content: none !important; 
    display: none !important; 
  }
  
  #nas-glav{
    margin: 0 !important;
    font-size: clamp(64px, 10vw, 140px); 
    line-height: 1.04;
    letter-spacing: -0.6px;
  
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #ffffff);
    background-size: 200% 200%;
    animation: gradient-move 5s ease infinite;
  
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  
    text-shadow: 0 8px 22px rgba(66,153,255,.22);
  }
  
  #nas-prv, #nas-prv1{
    margin: 0 !important;
    max-width: 62ch;
    font-size: clamp(16px, 1.8vw, 20px);  
    line-height: 1.5;
    color: #eaf2ff;
    text-shadow: 0 0 8px rgba(59,130,246,0.22);
  }
  
  .cursor{ 
    animation: blink 1s step-end infinite; 
  }
  
  .buttons{
    display:flex; 
    flex-wrap:wrap; 
    justify-content:flex-start;
    gap: 16px 16px; 
    padding:0 !important; 
    margin: 10px 0 0 !important;
  }
  .cv-button{
    display:inline-flex; 
    align-items:center; 
    justify-content:center;
    font-size: 16px;                   
    min-height: 46px; 
    padding: 14px 20px;
    border-radius: 12px; 
    font-weight: 700; 
    line-height:1;
    text-decoration:none;
    transition: transform .18s ease, box-shadow .18s ease, background .28s ease, border-color .28s ease, color .28s ease;
    box-shadow: none;               
  }
  
  .cv-button--primary{
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color:#fff;
  }
  .cv-button--primary:hover{ 
    transform: translateY(-2px); 
  }
  .cv-button--secondary{
    background: rgba(12,22,36,.60);
    border:1px solid rgba(255,255,255,.15);
    color:#e6f0ff;
  }
  .cv-button--secondary:hover{ 
    border-color:#9dc7ff; 
    transform: translateY(-2px); 
  }
  .cv-button--ghost{                
    background: transparent;
    border:1px solid rgba(255,255,255,.22);
    color:#dce9ff;
  }
  .cv-button--ghost:hover{ 
    border-color:#a9ceff; 
    transform: translateY(-2px); 
  }

  #desc{
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #05245a, #111e35);

  flex-direction: row;
  position: relative;
  z-index: 1000;
}
#ob-desc1{
  width: 25%;
  height: 100%;
  background-color: #172331;
  display: flex;
  justify-content: center;
  align-items: center;
}
#sl-ob{
  object-fit: cover;
  width: 100%;
  height: 100%;
}
#ob-desc2{
  width: 25%;
  height: 100%;
  background: linear-gradient(to left, #155c96, #4b75bd);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;

}
#nas-ob2-1{
  color: white;
  font-size: 32px;
  padding: 0px 50px;
}
#nas-ob2-2{
  color: white;
  font-size: 18px;
  padding: 0px 40px;
  font-weight: 400;
}

#ob-desc3{
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: rgb(12, 68, 131);
  flex-direction: column;
  gap: 20px;
}
#ob-desc3:hover #sl-a {
  opacity: 50%;
  transition: 0.4s ease-in-out;
}
#ik-ob{
  width: 150px;
  height: 150px;
  z-index: 100;
}
#nas-ob3-1{
  color: #ffffff;
  font-size: 47px;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px rgb(0, 0, 0);
  z-index: 100;
}
#nas-ob3-2{
  color: #ffffff;
  font-size: 17px;
  padding: 0px 50px;
  text-align: center;
  z-index: 100;
  font-weight: 400;
  text-shadow: 1px 1px 1px rgb(0, 0, 0);
}
#sl-a{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 80%;
  position: absolute;
  z-index: 1;
}
#ob-desc4{
  width: 25%;
  height: 100%;
  background: linear-gradient(94deg,rgba(91, 217, 245, 1) 0%, rgba(0, 123, 255, 1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}
#nas-ob4-1{
  color: white;
  font-size: 32px;
  text-transform: uppercase;
}
#nas-ob4-2{
  color: white;
  font-size: 25px;
  font-weight: 500;
}
#dgm-ob{
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 50px;
  color: white;
  background-color: #00102c;
  border: 0px;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.1);
}
#dgm-ob:hover{
  background-color: rgb(36, 126, 167);
  cursor: pointer;
}
/*--------------Srednji----------------*/


#srednji{
  width: 100%;
  height: 930px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  z-index: 1;
}
#sl-srednji{
  width: 100%;
  height: 930px;
  object-fit: cover;
  position: fixed;
  top: 0;

}
#sreo{
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  justify-content:center ;
  align-items: center;
  flex-direction: row;
}
#le-sreo{
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#de-sreo{
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.sl-sr{
  width: 80px;
  height: 80px;
}
.sr-d{
  width: 100%;
  height: 33.33%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
.sr-d:hover{
  text-shadow: 1px 1px 1px black;
  background-color: #0c1320;
  transition: 0.8s ease-in-out;
}
.lev-sr{
  width: 30%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.des-sr{
  width: 70%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.gl-nas-sr{
  color: white;
  font-size: 35px;
  align-self: flex-start;
}
.tek-sr{
  color: white;
  font-size: 15px;
  width: 80%;
  align-self: flex-start;
}

/*--------------Projekti----------------*/


#portfolio{
  width: 100%;
  height: 800px;
  display: flex;
  align-items: center;
  flex-direction: row;
  z-index: 1000;
  background-color: black;
  position: relative;
}
#lev-pro{
  width: 40%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 50px;
  position: relative;
  z-index: 1000;
}
#prt{
  width: 50%;
  margin-left: 0px;
  height: 100px;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 1;
}
#sl-lev-prt{
  width: 100px ;
  height: 100px;
  margin-left: 60px;
}
#tk-prt{
  font-size: 30px;
  color: white;
  margin-right: 80px;

}
#sl-lev-pro{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
  opacity: 70%;
}
#nas-por{
  font-size: 80px;
  color: white;
  margin: 0px;
  padding: 0px 65px;
  z-index: 1;
}
#tek-por{
  font-size: 23px;
  padding: 0px 70px;
  color: white;
  z-index: 1;
  margin-bottom: 150px;
}
#dgm-vise{
  padding: 15px 40px;
  background-color: #1d50a8;
  font-size: 16px;
  color: white;
  text-transform: uppercase;
  border-radius: 20px;
  border: 0px;
  cursor: pointer;
  z-index: 100;
  position: absolute;
  font-weight: 600;
  letter-spacing:0.5px;
  bottom: 15%;
  right: 15%;
}
#dgm-vise:hover{
  background-color: #133063;
  transition: 0.2s;
}

#des-pro{
  width: 60%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}
.kart{
  width: 33.33%;
  height: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.kart:hover{
  cursor: pointer;
}
.sl-port{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nas-sl-port{
  z-index: 1;
  color: white;
  font-size: 33px;
  text-align: center;
}
.kart:hover > .sl-port{
  visibility: visible;
  transition: 0.4s ease-in-out;

}
.kart:hover > .sl-pro{
  opacity: 40%;
  transition: 0.5s ease-in-out;
}
.sl-pro{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}



/* ---------------ISKUSTVO----------------- */


#experience{
  width: 100%;
  height: 200px;
  gap: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(
    to bottom,
    #295686 0%,   /* gornja */
    #164a80 50%,  /* srednja */
    #0b2a4a 100%  /* donja */
  );   z-index: 100;
  position: relative;
  float: left;

}
.am{
  object-fit:contain;
  width: 200px;
  height: 90px;
  font-size: 50px;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

@keyframes scroll {
  0% { transform: translateX(0); }
  50% { transform: translateX(-1000px); }
}

.loop--slider {
  height: 200px;
  position: relative;
  width: 1903px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loop--slider::before, .loop--slider::after {

  content: "";
  height: 200px;
  position: absolute;
  width: 200px;
  z-index: 2;
}
.loop--slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.loop--slider::before {
  left: 0;
  top: 0;
}
.loop--slider .loop--slide--track {
  display: flex;
  width: 4000px; /* 16 logoa × 250px */
  animation: scroll 10s linear infinite;
}
.loop--slider .loop--slide {
  width: 250px;
  height: 100px;
  flex-shrink: 0;
}
.loop--slide--track {
  display: flex;
  width: 4000px; /* 16 logoa × 250px */
  animation: scroll 20s linear infinite;
}

.loop--slide {
  width: 250px;
  flex-shrink: 0;
}

/* FOOTER */

#footer{
  height: 250px;
  width: 100%;
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  /* background: linear-gradient(to left, #1C2023, #111c4d); */
  background-color: #0A192F ;
  z-index: 100;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-in-out;
  float: left;
}
#footer.in-view {
opacity: 1;
transform: translateY(0);
}
#lev{
  width: 25%;
  height: 100%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
}
#lg-donji{
  width: 150px;
  height: 150px;
}
#sred{
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.sred-nas{
  color: white;
  text-align: left;
  line-height: 10px;
  font-weight: 600;
  gap: 10px;
  display: flex;
  align-items: center;
}
.sred-nas2{
  color: white;
  text-align: left;
  line-height: 10px;
  font-weight: 600;
}
.fa-envelope{
  color: white;
}
#a{
  text-decoration: none;
  list-style: none;
  color: rgb(36, 164, 214);
}
#a:hover{
  color: rgb(29, 135, 177);
  transition: 0.2s;
}
#izmedju{
  width: 30%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: .25s;
  text-decoration: none;
  gap: 30px;
}
.nav-izlistani{
  position: relative;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  list-style:none;
  text-align: left;
}
.nav-izlistani:hover{
  color: #494d72;
}
li{
  list-style: none;
}
#desn{
  width: 20%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 30px;
}
.sl-desn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  margin: 0 8px;
}
.sl-desn:hover{
  background-color: #00E0FF;
  transform: scale(1.1);
  cursor: pointer;
  }




  .animate-on-scroll {
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
  }

  .animate-on-scroll.visible {
    opacity: 1;
    transform: none;
  }

  .fade-only {
    transform: none;
  }

  .fade-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
  }

  .fade-left.visible {
    transform: translateX(0);
    opacity: 1;
  }

  .fade-right {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease; 
  }

  .fade-right.visible {
    transform: translateX(0);
    opacity: 1;
  }

  
/* scroll */

/* samo za WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;  /* tamna pozadina */
}
::-webkit-scrollbar-thumb {
  background: #2563eb;  /* plavi slider */
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}
@media (min-width: 1025px){
  .s-section{
    position: relative;
  }
  .s-section::after{
    content:"";
    position:absolute; inset:0 0 0 55%;
    background: linear-gradient(90deg, rgba(8,24,42,0) 0%, rgba(8,24,42,.35) 45%, rgba(8,24,42,.85) 100%);
    pointer-events:none;
  }
}
@media (max-width: 1280px){
  #gor{ max-width: 1000px; }
}
@media (max-width: 1024px){
  #gor{ max-width: 820px; padding: clamp(20px, 7vh, 48px) clamp(16px, 6vw, 32px); }
}
@media (max-width: 640px){
  #nas-glav{ font-size: clamp(42px, 12vw, 64px); }
  #nas-prv, #nas-prv1{ font-size: 16px; }
}

@media only screen and (max-width: 1050px) {
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 0;
      flex-direction: column;
      background-color: #232931;
      width: 100%;
      text-align: center;
      transition: 0.3s;
      height:100%;
      box-shadow:
          0 10px 27px rgba(0, 0, 0, 0.05);
  }
  .nav-menu.active {
    left: 0;
}
  .nav-link{
    font-size: 31px;
  }
  .nav-itemi {
    display: block;
    width: 250px;
    transition-duration: .25s;
    flex-direction: row;
  }
  .nav-itemi-en{
    display: block;
    width: 250px;
    transition-duration: .25s;
    flex-direction: row;
    margin-top: 50px;
  }
  .sl-nav{
    width: 200px;
  }
  .iko-nav{
    align-self: flex-end;
    margin-bottom: 2.5px;
  } 
  .hamburger {
      display: block;
      cursor: pointer;
      left: 100%;
      margin-right:50px;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
#pri{
  top: 50px;
}
.navbar{
  width: 10%;
  margin-right:0px;
}
#sl-lev{
  margin-left:0px;
}
.nav-itemi{
  margin-top: 50px;
}
#ik-jez{
  margin-top: 5px;
}
#sl-mea{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 230px;
  height: 150px;
  gap: 20px;
  margin-top: 0px;
}
.sla{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nas-op{
  font-size: 50px;
} 
#tek-op{
  font-size: 22px;
}
#inf{
  height: 1000px;
}
#gle{
  width: 600px;
  flex-direction: column;
}
}
