/* Osnove stilizacije */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #2d3436;
}

#glavni {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 90%;
  max-width: 900px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  margin-top: 30px;
}

#glavni:hover {
  transform: translateY(-5px);
}

/* Stilizacija linka za portfolio - premještamo ga u header */
body > a {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  text-decoration: none;
  color: #2d3436 !important; /* Override inline style */
  font-size: 1.4rem;
  font-weight: 600;
  padding: 10px 25px;
  background-color: white;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  z-index: 10;
  text-transform: capitalize;
}

body > a:hover {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white !important; /* Override inline style */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2);
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: capitalize;
  background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
}

#linkovi {
  margin-top: 20px;
}

#linkovi ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
}

#linkovi li {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 15px;
  margin-bottom: 0; /* Uklanjamo višak prostora umjesto <br> tagova */
  text-transform: capitalize;
}

#linkovi li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#linkovi a {
  text-decoration: none;
  color: #6c5ce7;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
  padding: 2px 5px;
  border-radius: 4px;
}

#linkovi a:hover {
  background-color: #6c5ce7;
  color: white;
}

/* Uklanjamo sve <br> tagove */
br {
  display: none;
}

/* Animacija pri učitavanju stranice */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeIn 0.8s ease forwards;
}

/* Responzivni dizajn */
@media (max-width: 768px) {
  #glavni {
      padding: 30px;
      width: 95%;
      margin-top: 70px;
  }
  
  h1 {
      font-size: 2.2rem;
  }
  
  #linkovi ul {
      grid-template-columns: 1fr;
  }
  
  body > a {
      font-size: 1.2rem;
      padding: 8px 20px;
  }
}