/* ===== Base ===== */
:root{
  --accent: #262f41;
  --muted: rgba(255,255,255,0.23);
  --glass: rgba(255,255,255,0.65);
  --max-width: 1200px;
  --gap-screen: 10px;
}

* {box-sizing: border-box}
html,body {height:100%}
body{
  margin:0;
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#222;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ===== Header ===== */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1200;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-radius: 0px;
background: linear-gradient(145deg, #f0f0f0a0, #cacaca86);
box-shadow:  22px 22px 39px #b1b1b18a,
             -22px -22px 39px #ffffffb2;
}

.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-around;
  gap:10px;
  padding:14px 20px;
}

/* Logo */
#logo img{ 
  height:6rem;
  display:block; 
}

/* Desktop nav */
.main-nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.1rem;
}
.lang-btn{
  background:transparent;
  border:none;
  font-weight:700;
  padding:8px 12px;
  cursor:pointer;
  border-radius:8px;
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
.lang-btn:hover, .nav-link:hover { background: rgba(0,0,0,0.04) }

/* Efekat gradijent donje linije na hover za desktop linkove */
@media (min-width: 769px) {
  .nav-link,
  .lang-btn {
    position: relative;
    overflow: hidden;
  }

  .nav-link::after,
  .lang-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px; /* debljina linije */
    background: linear-gradient(80deg, #193864, #911a24);
    transition: width 0.3s ease;
    border-radius: 2px;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  }

  .nav-link:hover::after,
  .lang-btn:hover::after {
    width: 100%;
  }

  /* uklonimo sivo pozadinsko hover ponašanje na desktopu */
  .lang-btn:hover,
  .nav-link:hover {
    background: transparent;
  }
}

.left h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-weight: 700;
}

.left h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32rem; /* dužina linije na desktopu */
  height: 1px;
  background: rgba(144, 144, 144, 0.484);
  border-radius: 2px;
}

/* Hamburger */
.hamburger{
  display:none;
  background:transparent;
  border:0;
  padding:8px;
  cursor:pointer;
}
.hamburger-box{ width:28px; height:18px; display:inline-block; position:relative; }
.hamburger-inner{
  display:block;
  top:50%;
  transform:translateY(-50%);
  position:absolute;
  left:0; right:0;
  height:2px;
  background:var(--accent);
  box-shadow: 0 6px 0 var(--accent), 0 -6px 0 var(--accent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hamburger[aria-expanded="true"] .hamburger-inner{
  transform: rotate(45deg);
  box-shadow:none;
}

/* Mobile menu */
.mobile-menu{
  display:none;
  max-width:var(--max-width);
  margin:0 auto;
  /*padding:8px 20px 20px;*/
  background: linear-gradient(180deg,#dad7d3,#e1e1e1);
  border-bottom:1px solid rgba(0,0,0,0.04);
  text-align:center; /* centriranje teksta */
  transition: background 0.4s ease;
}

/* kada je meni otvoren (dodaj klasu .open iz JS-a) */
.mobile-menu.open {
  background: linear-gradient(90deg, rgba(0,89,255,0.95) 0%, rgba(255,0,68,0.95) 100%);
}

.mobile-menu .mobile-link,
.mobile-menu .mobile-lang {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  
}

/* linija uvek prisutna ispod teksta */
.mobile-menu .mobile-link::after,
.mobile-menu .mobile-lang::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: #7373737c;
  background-color: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(33, 33, 33, 1) 48%, rgba(204, 204, 204, 1) 100%);;
  opacity: 0.5; /* odmah vidljiva */
}

/* Efekat hovera i klika na linkove u mobilnom meniju */
.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-lang:hover,
.mobile-menu .mobile-link:active,
.mobile-menu .mobile-lang:active {
  background: linear-gradient(135deg, #23487581 0%, #ce243562 100%);
  color: white !important;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}



/* ===== Ostalo (hero, sekcije itd.) ===== */
#content1 p{ text-align:justify; }

.section1{
  position:relative;
  height:100vh;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align: justify;
  overflow:hidden;
  padding:0 var(--gap-screen) 10px var(--gap-screen);
  border-radius:10px;
}

#bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1;
  filter:saturate(.95) contrast(.95);
  border-radius:10px;
}

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  width:100%;
  padding:24px;
  color:#111;
  text-shadow:0 6px 20px rgba(0,0,0,0.3);
  top:-170px;
}

h1#title{
  font-size:clamp(2rem, 6vw, 3.6rem);
  letter-spacing:2px;
  margin:0 0 8px;
}
.subtext{
  font-size:clamp(1.2rem, 2.2vw, 1.6rem);
  margin:0;
  font-family:"Montserrat", sans-serif;
  font-size:2.2rem;
  font-weight:700;
  color:rgb(66,66,66);
  font-style: italic;
  text-shadow: 2px 1px 2px rgb(205, 205, 205);
}

/* Diagonal container */
.diagonal-container{
  display:flex;
  gap:10px;
  width:100%;
  max-width:calc(var(--max-width) - 2*var(--gap-screen));
  margin:10px auto 10px auto;
  height:500px;
  overflow:hidden;
  border-radius:10px;
  text-align:justify;
}
.diagonal-container .left, .diagonal-container .right{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  color:#fff;
  transform:translateX(0);
  transition:transform 1s cubic-bezier(.2,.9,.3,1);
  text-align:justify;
}
.diagonal-container .left{
  color:#111;
  background:transparent;
  transform:translateX(-150%);
  clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.diagonal-container .right{
  background:url("text2.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:translateX(150%);
  clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.diagonal-container.active .left{ transform:translateX(0) }
.diagonal-container.active .right{ transform:translateX(0) }

.diagonal-container .inner { max-width:520px; text-align:left; }
.diagonal-container h2 { margin:0 0 8px; font-size:1.6rem; }
.diagonal-container p { margin:0; line-height:1.5; }

/* Section 3 */
.section3{
  padding:0;
  width:calc(100% - 20px);
  margin:10px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  background-image:url("text3Img.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:500px;
  /*border-radius:10px;*/
}
.text3{
  width:30%;
  padding:20px;
  margin:15px;
  margin-right:120px;
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(2px);
  border-radius:7px;
 /* box-shadow:8px 8px 28px rgba(0, 0, 0, 0.344);*/
  line-height:1.6;
 text-align: justify;
  border-radius: 0px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.text3 .item{ 
  display:block; 
  font-weight:700; 
  margin-top:10px;
  text-align: left;
}



/* Footer */
footer{
  background:#5d0f0f00;
  padding:24px 20px;
  border-top:1px solid rgba(0,0,0,0.04);
  color:#111;
background: #e0e0e0;
border-radius: 0px;
background: linear-gradient(145deg, #f0f0f0, #cacaca);
border-radius: 0px;
background: linear-gradient(145deg, #cacaca, #f0f0f0);
border-radius: 0px;
background: linear-gradient(145deg, #cacaca, #f0f0f0);
box-shadow:  24px 24px 34px #5e5e5e,
             -24px -24px 34px #ffffff;

}
.footer-content{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.footer-logo img{ height:110px; width:15rem; }
.footer-text{
  color:#000;
  line-height:1.6;
  text-align:justify;
}

/* Animations */
.text-focus-in { animation:text-focus-in 1s cubic-bezier(.55,.085,.68,.53) both; }
@keyframes text-focus-in {
  0% { filter:blur(12px); opacity:0 }
  100% { filter:blur(0); opacity:1 }
}

/* ===== Responsive ===== */
@media (max-width:1024px){
  .diagonal-container{ height:360px }
  .text3{ width:44% }
}

@media (max-width:768px){
  .header-inner{ padding:12px 16px }
  .main-nav{ display:none }
  .hamburger{ display:block }
  .mobile-menu{ display:block; }

  .subtext{ font-size:1.5rem;
  font-style: italic;}

  .diagonal-container{
    flex-direction:column;
    height:auto;
    padding:var(--gap-screen);
    margin:0 auto 10px auto;
    border-radius:10px;
  }
  .diagonal-container .left, .diagonal-container .right{
    transform:translateX(0);
    clip-path:none;
    padding:20px;
    border-radius:12px;
  }
  .diagonal-container .right{
    background:url("text2.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    min-height:300px;
  }

  .section3{
    padding:20px;
    width:100%;
    max-width:none;
    margin:0 auto 10px auto;
  }

  .item{text-align: left;}
  .text3{ width:100%; margin-right:10px; text-align: left; }
  .footer-content{ flex-direction:column; text-align:center }
  .footer-text{ text-align:center }

.left h3::after {
    width: 23rem;
    height: 1px;
  }


}

@media (max-width:420px){
  h1#title{ font-size:2rem }
  .subtext{ font-size:1.3rem }
  .hero-content{ padding:16px;}
  .left h3::after {
    width: 200px;
    height: 1px;
  }
}
