/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #fff;
  background: linear-gradient(-45deg, #2988b0, #084aa6, #010a55, #000b16);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Gradient Animation === */
@keyframes gradient {
  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: 350px;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: 10px;
  animation: fadeIn 0.25s ease;
 
}

@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%;
    flex-direction: column;
    background: rgba(25, 30, 43, 0.843);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 1.5rem 0;
    gap: 1rem;
    min-width: 200px;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    display: none;
  }

  .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 === */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem;
}

main > div {
  max-width: 1100px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 3rem 3rem 4rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
}

main > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.45);
}

/* === TEXT STYLES === */
h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 2rem;
  
 
  letter-spacing: 1px;
}

h4 {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #a5d8ff;
  border-left: 4px solid #70e1f5;
  padding-left: 10px;
}

p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: #e8f1f8;
}

ol, ul {
  margin: 1rem 0 2rem 2rem;
}

li {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #70e1f5;
}

footer h3 {
  font-size: 1.1rem;
  color: #e8f1f8;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

footer ul li {
  margin: 0.3rem 0;
  color: #dce7ef;
  font-size: 0.95rem;
}

footer p {
  font-size: 0.85rem;
  color: #aac7da;
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
  }

  header ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  main > div {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  header img {
    width: 50px;
  }

  #ime {
    font-size: 1.1rem;
  }

  header ul li a {
    font-size: 0.9rem;
  }

  main > div {
    padding: 1.5rem;
    border-radius: 18px;
  }

  h3 {
    font-size: 1.5rem;
  }

  p, li {
    font-size: 0.95rem;
  }

  footer {
    padding: 2rem 1rem;
  }
}
