*{
  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;
  background-color: #0E1D33;
  width: 100%;
  overflow: hidden;
  position:relative; 
  display: block; 
  float: left;
  transition: 1s ease;
}
#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: 20px ;
    /* 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;
  }
  .zas:hover{
    filter: brightness(0.5);
    cursor: pointer;
  }
/*--------------GOTOV HEADER ----------------*/

#glavni{
  width: 100%;
  height: 930px;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
#nas-glavni{
  font-size: 120px;
  z-index: 1000;
  position: absolute;
  color: white;
}
#vid{
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 60%;
  object-fit: cover;
}

/*--------------Projekti----------------*/

.filter-buttons {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  background: #3c7bbf;
}

.filter-btn {
  background: linear-gradient(135deg, #0f4979, #305699);
  color: #fff;
  border: none;
  padding: 10px 18px;
  margin: 0 6px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
}
.filtered-out {
  display: none !important;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: linear-gradient(
    to bottom,
    #3c7bbf 0%,   /* gornja */
    #164a80 50%,  /* srednja */
    #0b2a4a 100%  /* donja */
  );  
  display: flex;
  justify-content:  center ;
  align-items: center;
  overflow: visible;
}
.prelaz{
  width: 100%;
  height: 100%;
  opacity: 100%;
  background-color: #265072;
  position: absolute;
}
.projects {
  display: flex;
  flex-wrap: nowrap;
  gap: 50px;
  padding: 0 50px; /* padding za centriranje prve i poslednje kartice */
  align-items: flex-start;
  overflow-x: hidden; 
}

.project-card {
  flex: 0 0 auto;
  width: 500px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  position: relative;
  cursor: pointer;
}
.projects::-webkit-scrollbar {
  display: none; /* sakrivamo skrolbar */
}
.projects .project-card:first-child {
  margin-left: 0; /* nema pomaka prve kartice */
}
.project-card.show {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}
.projects > a.filtered-out {
   display: none; 
}
.project-card .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.project-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
} 
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  opacity: 70%;
}
/* Strelice */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: white;
  font-size: 60px;
  padding: 5px 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  border: none;
  background-color: transparent;
}
.slider-btn:hover {
  filter: contrast(0);
}

.left-btn {
  left: 10px;
}

.right-btn {
  right: 10px;
}

/*--------------Promo----------------*/


#promo{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  height: 500px;
  z-index: 1000;
  position: relative;
}
#promo-lv{
  width: 25%;
  height: 100%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgb(0, 0, 0);
  position: relative;
}
#nas-lv{
  color: white;
  font-size: 40px;
  line-height: 65px;
  text-align: center;
  z-index: 100;
  text-shadow: 2px 2px 2px black;
  padding:0px 40px;
}
#sl-lv{
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 60%;
  z-index: 1;
}
#sl-lv:hover{
opacity: 100%;
transition: 0.3s ease-in-out;
}
#nas-lv:hover ~ #sl-lv{
opacity: 100%;
transition: 0.3s ease-in-out;
cursor: pointer;
}
#sr{
  width: 50%;
  height: 100%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(to left, #0a416e, #0a295e); 
  gap: 0px;
  position: relative;
}
#sl-sr{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 70%;
}
#sl-sr:hover{
opacity: 100%;
transition: 0.3s ease-in-out;
}

#nas-sr{
  color: white;
  font-size: 60px;
  text-align: left;
  align-self: flex-start;
  margin-left: 50px;
  font-weight: 650;
  z-index: 100;
  margin-bottom: -10px;
  text-shadow: 2px 2px 2px black;
}
#nas-sr:hover ~ #sl-sr{
opacity: 100%;
transition: 0.3s ease-in-out;
cursor: pointer;
}
#tek-sr{
  color: white;
  font-size: 21px;
  text-align: left;
  padding: 50px;
  line-height: 40px;
  font-weight: 550;
  z-index: 100;
  text-shadow: 2px 2px 2px black;
}
#tek-sr:hover ~ #sl-sr{
opacity: 100%;
transition: 0.3s ease-in-out;
cursor: pointer;
}
#promo-ds{
  width: 25%;
  height: 100%;
  float: right;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to left, #4b75bd, #155c96);
  position: relative;
}
#sl-ds{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 80%;
  filter: brightness(0.5);
}
#sl-ds:hover{
opacity: 100%;
filter: brightness(1);
transition: 0.3s ease-in-out;
}
#dgm-ds:hover ~ #sl-ds{
opacity: 100%;
filter: brightness(1);
transition: 0.3s ease-in-out;
}
#dgm-ds{
display: inline-block;
padding: 20px 60px;
background: linear-gradient(135deg, #0c3f69, #244c91);
color: #fff;
font-size: 15px;
font-weight: 600;
text-decoration: none;
border: none;
border-radius: 0.5em;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
z-index: 100;
position: relative;
}
#dgm-ds:hover{
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
#dgm-ds:active{
transform: translateY(0);
box-shadow: 0 3px 7px rgba(0,0,0,0.2);
}


.faq-block{
  padding: clamp(56px,8vw,96px) clamp(16px,5vw,48px);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color:#fff;
}
.faq-wrap{
  max-width: 1100px;
  margin: 0 auto;                 
  display: flex;
  flex-direction: column;
  align-items: flex-start;        
  gap: 36px;                      
}
.faq-title{
  margin: 0;
  text-align: left;               
  font-weight: 800;
  font-size: clamp(26px,3.6vw,40px);
}

.faq-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;                      
  grid-template-columns: 1fr 1fr; 
  width: 100%;                    
}
@media (max-width: 900px){
  .faq-list{ 
    grid-template-columns: 1fr; 
  } 
}

.faq-list li{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.faq-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,.45);
  border-color: rgba(59,130,246,.45); /* plavkasta ivica */
}

/* spotlight sloj */
.faq-list li::after {
  content:"";
  position:absolute; inset:-20%;
  background: radial-gradient(220px 160px at var(--mx,50%) var(--my,50%),
              rgba(59,130,246,.15), transparent 60%);
  pointer-events:none;
  opacity:0; transition:opacity .25s ease;
}
.faq-list li:hover::after { 
  opacity:1; 
}

.faq-list h3{
  margin:0 0 6px 0; 
  font-size: clamp(16px,1.4vw,18px); 
  font-weight:700;
}
.faq-list p{
  opacity:.95; 
  line-height:1.6; 
  font-size: clamp(14px,1.2vw,16px);
}
.faq-cta{
  margin-top: 8px; 
  align-self:flex-start; 
  text-decoration:none; 
  color:#cfe9ff; 
  font-weight:700;
  padding:10px 18px; 
  border-radius:999px;
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(6,182,212,.35));
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.faq-cta:hover{ 
  transform: translateY(-1px); 
  box-shadow:0 10px 22px rgba(0,0,0,.35); 
}
@media (max-width: 900px){
  .faq-list{ 
    grid-template-columns: 1fr; 
  }
  .faq-wrap{ 
    align-items:center; 
    text-align:center; 
  }
  .faq-cta{ 
    align-self:center; 
  }
}



.cta-block{
  padding: clamp(56px,8vw,96px) clamp(16px,5vw,48px);
  background: linear-gradient(
    to bottom,
    #0b2a4a 0%,   /* gornja */
    #164a80 50%,  /* srednja */
    #3c7bbf 100%  /* donja */
  );  
  color:#fff;
  width: 100%;
}

/* Blok je centriran u odnosu na stranicu, ali SVE unutra je levo poravnano */
.cta-wrap{
  max-width: 1100px;
  margin: 0 auto;           /* drži blok u “containeru” */
  display:flex;
  flex-direction:column;
  gap: 14px;
  align-items: flex-start;   /* LEVO poravnanje elemenata */
  text-align: left;          /* LEVO poravnanje teksta */
}

.wrp{
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;  /* bilo je center */
  gap: 10px;
}

#cta-pic{
  width: 50px;
  height: 50px;
}

.cta-badge{
  display:inline-block;  
  border-radius:999px;
  padding: 6px 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  font-size: 14px; 
  letter-spacing:.3px;
}

.cta-title{
  margin:0; 
  font-weight:800; 
  line-height:1.1;
  font-size: clamp(28px,4vw,44px);
  text-shadow: 0 0 14px rgba(0,0,0,.25);
}

.cta-sub{
  margin:0; 
  opacity:.95;
  max-width: 56ch;
  font-size: clamp(16px,1.3vw,18px); 
  line-height:1.6;
}

.cta-actions{ 
  display:flex; 
  gap:16px; 
  margin-top: 8px; 
  flex-wrap: wrap; 
}

.cta-btn{
  display:inline-block; 
  padding:12px 28px; 
  border-radius:999px;
  text-decoration:none; 
  color:#fff; 
  font-weight:800;
  background: linear-gradient(135deg,#3b82f6,#06b6d4);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 -6px 14px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta-btn:hover{ 
  transform: translateY(-2px) scale(1.03); 
  box-shadow:0 14px 28px rgba(0,0,0,.45); 
  filter:saturate(1.1);
}

.cta-link{
  text-decoration:none; 
  font-weight:700; 
  color:#e3f2ff;
  opacity:.9; 
  transition: opacity .2s;
  align-self: center;   /* bilo je center */
}
.cta-link:hover{ opacity:1; }

/* NEMA više centriranja na mobilu – ostaje levo */
@media (max-width: 780px){
  .cta-wrap{ 
    align-items: flex-start;
    text-align: left;
  }
}

/* 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;
}
#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;
  }


#s{
  margin-left: 500px;
  width: 850px;
  height: 900px;
}
  /* Za sve: inicijalno nevidljivi */
  .animate-on-scroll {
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    transform: none;
    position: relative;
    height: auto;
  }
  
  /* Kada su vidljivi */
  .animate-on-scroll.visible {
    opacity: 1;
  transform: translateY(0);
  }
  
  /* Za fade in bez pomeranja (desc) */
  .fade-only {
    transform: none;
    transition: 0.8s ease-in-out;
  }
  
  /* Za ulazak sa leve strane */
  .fade-left {
    transform: translateX(-50px);
  }
  
  /* Za ulazak sa desne strane */
  .fade-right {
    transform: translateX(50px);
  }
  
/* 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;
}