/* ========= GLOBAL ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
  background: linear-gradient(-45deg, #2a005f, #29007a, #0088ff, #0f004b);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

a {
  text-decoration: none;
  color: inherit;
}

/* animacija pozadine */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
}

.logo span {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.navbar {
  position: relative;
  
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.dropbtn {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dropbtn:hover {
  color: #b6c9ff;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  min-width: 250px;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: 10px;
  animation: fadeIn 0.25s ease;
  margin-left: -150px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content.show {
  display: flex;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    
    
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    min-width: 200px;
    flex-direction: column;
    background: rgba(25, 30, 43, 0.843);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 1.5rem 0;
    gap: 1rem;
    
    
    }

  .nav-links.active {
    display: flex;

  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    display: none;
    
    background-color: #b6c9ff;
  }

  .dropdown-content.show {
    display: flex;
    
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
} 

/* ========= MAIN SECTION ========= */
.om {
  width: 90%;
  max-width: 1100px;
  margin: 3rem auto;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.om h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: white;
}

.om p, .om ul {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #eaeaea;
}

.om ul {
  padding-left: 1.2rem;
}

.om ul li {
  margin-bottom: 0.5rem;
}

/* ========= PROGRAMI ========= */
.programi {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem auto;
  width: 90%;
  max-width: 1100px;
}

.programi div {
  flex: 1 1 300px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  font-size: 1.3rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap; /* sprečava lomljenje teksta */
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.programi div:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(0, 255, 213, 0.18);
  border-color: rgba(0,255,213,0.5);
  box-shadow: 0 0 30px rgba(0,255,213,0.35);
}

/* ========= SECTIONS (istorija, ruski, srb) ========= */
.istorija, .ruski, .srb {
  margin-top: 3rem;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}

.istorija h2, .ruski h2, .srb h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.istorija h3, .ruski h3, .srb h3 {
  margin: 1.5rem 0 0.8rem;
  color: #0b0085af;
  font-size: 1.2rem;
  text-shadow: 0 0 6px rgba(0,255,213,0.4);
}

/* ========= FOOTER ========= */
footer {
  margin-top: 5rem;
  padding: 2rem 5%;
  text-align: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255,255,255,0.15);
}

footer h2 {
  font-size: 1.5rem;
  color: #0b0085af;
}

footer h3 {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #fff;
}

footer ul {
  list-style: none;
  margin-top: 1rem;
  color: #e0e0e0;
}

footer li {
  margin: 0.3rem 0;
}

footer p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 950px) {
  header ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .om {
    padding: 2rem;
  }

  .programi {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .programi div {
    width: 80%;
    white-space: normal;
    font-size: 1.1rem;
    padding: 1.2rem;
  }

  .istorija, .ruski, .srb {
    padding: 1.5rem;
  }
}

@media (max-width: 500px) {
  header img {
    height: 40px;
  }

  #ime {
    font-size: 1rem;
  }

  .programi div {
    width: 90%;
    font-size: 1rem;
  }
}
#k{
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

#k:hover {
  background: rgba(0, 255, 213, 0.15);
  box-shadow: 0 0 25px rgba(0, 255, 213, 0.4);
  transform: translateY(-3px);
}

#k:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.3);
}