/* ===============================
   NAVBAR BASE
=================================*/

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

/* SCROLL SHRINK – MOBILE */
@media (max-width: 767px) {
  nav {
    height: 50px;
  }

}
/* ===============================
   LOGO
=================================*/

.nav-logo img {
  height: 40px;
  transition: all 0.3s ease;
}

.nav-logo:hover img {
  filter: brightness(1.2);
}

/* ===============================
   DESKTOP LINKS
=================================*/

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  padding: 12px 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Roboto Serif', serif;
  border-radius: 6px;
  overflow: hidden;
}

.nav-link span {
  position: relative;
  z-index: 2;
  color: whitesmoke;
  transition: color 0.4s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: white;
  transition: height 0.4s ease;
  z-index: 1;
}

.nav-link:hover::before {
  height: 100%;
}

.nav-link:hover span {
  color: black;
}

/* ===============================
   HAMBURGER
=================================*/

.hamburger-icon {
  display: none;
  margin-left: auto;
  height: 60px;
  width: 60px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-icon .line {
  position: absolute;
  width: 32px;
  height: 3px;
  background: white;
  transition: all 0.4s ease;
}

.hamburger-icon .line:nth-child(1) {
  transform: translateY(-8px);
}

.hamburger-icon .line:nth-child(2) {
  transform: translateY(0);
}

.hamburger-icon .line:nth-child(3) {
  transform: translateY(8px);
}

.hamburger-icon.active .line:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger-icon.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active .line:nth-child(3) {
  transform: rotate(-45deg);
}

/* ===============================
   MOBILE MENU
=================================*/

.nav-mobile {
  position: fixed;
  inset: 0;
  background: #0F172A;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 999;
}

.nav-mobile.show {
  transform: translateX(0);
  opacity: 1;
}

.nav-mobile ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.nav-mobile li {
  margin: 20px 0;
}

.nav-link-mobile {
  color: white;
  text-decoration: none;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.nav-link-mobile:hover {
  color: #64B5F6;
}

.mobile-btn {
  display: inline-block;
  margin-top: 30px;
}

/* ===============================
   SCROLL SHRINK
=================================*/

nav.scrolled {
  height: 48px;
}

nav.scrolled .nav-logo img {
  height: 28px;
}

nav.scrolled .nav-link span {
  font-size: 14px;
}

/* ===============================
   RESPONSIVE
=================================*/

@media (max-width: 992px) {

  .nav-links {
    display: none;
  }

  .hamburger-icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .nav-container {
    padding: 0 60px;
  }
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

/* =========================
   LANGUAGE DROPDOWN
   ========================= */


.language-dropdown {
  position: absolute;
  right: 20px;
}

/* KADA JE EKRAN MANJI OD 1400px - prelazi na relative */
@media (max-width: 1400px) {
  .language-dropdown {
    position: relative;
    right: auto;
    margin-left: auto;
    flex-shrink: 0;
  }
}

.language-dropdown-mobile {
  position: absolute;
  left: 20px;
  top: -10px;
}

/* Trigger */
.language-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.20);
  color: #2563EB;
  
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  
  transition: all 200ms ease;
  cursor: pointer;
}

.language-trigger:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}

.language-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* =========================
   DESKTOP DROPDOWN
   ========================= */

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  margin-top: 8px;
  
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.20);
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms ease;
  
  z-index: 1000;
}

.language-dropdown:hover .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   MOBILE DROPDOWN (FIX)
   ========================= */

.language-menu-mobile {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  
  margin-top: 8px;
  min-width: 140px;
  
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.20);
  
  transition: all 0.3s ease;
}

.language-dropdown-mobile.open .language-menu-mobile {
  opacity: 1;
  visibility: visible;
  max-height: 300px;
}

/* =========================
   LANGUAGE ITEMS (UNIFIED)
   ========================= */

.lang-item {
  display: block;
  padding: 12px 20px; /* ISTO ZA SVE */
  color: #475569;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 15px; /* ISTO ZA SVE */
  text-decoration: none;
  border-radius: 14px;
  text-align: center;
  transition: all 150ms ease;
}

.lang-item:hover {
  color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
}

.lang-item.active {
  color: #2563EB;
  background: rgba(37, 99, 235, 0.12);
  font-weight: 700;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {

  .language-trigger {
    padding: 8px 16px;
    font-size: 14px;   
  }

  .language-menu {
    min-width: 140px;
    right: 0;
  }

  .language-menu-mobile {
    min-width: 140px;
  }

  .lang-item {
    padding: 12px 20px; 
    font-size: 15px;   
  }
}