.xl-text {
  font-size: 75px;
}

.btn-outline-secondary {
  color: var(--bs-secondary);
}

.btn-outline-secondary:hover {
  color: #fff;
}

.img-fluid {
  width: 100%; /* Osigurava da slika zauzima 100% širine roditelja */
  height: auto; /* Zadržava proporcije slike */
  border-radius: 50px; /* Okrugli uglovi za slike */
  object-fit: cover; /* Održava proporcije slike i popunjava prostor */
  display: block; /* Osigurava da je slika blok element */
  margin-left: auto; /* Horizontalno centriranje slike */
  margin-right: auto; /* Horizontalno centriranje slike */
}

.navbar {
  transition: all 0.5s ease-in-out;
}

.navbar-sticky {
  background: #fff;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Header Decorations */
.header .decoration-star {
  top: 80px;
  left: -200px;
  width: 500px;
  opacity: 0.7;
}

.header .decoration-star-2 {
  top: 80px;
  right: -200px;
  width: 500px;
  opacity: 0.7;
}

/* Project Card Styles */
.projects .card {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  height: 100%; /* Kartica zauzima celu visinu roditelja */
  transition: height 0.3s ease-in-out; /* Dodaje animaciju prilikom promene visine */
}

.projects .card img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Slika popunjava dostupni prostor */
  margin-bottom: 10px; /* Razmak ispod slike */
}

.projects .card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1; /* Sadržaj se rasteže kako bi popunio prostor kartice */
}

.projects .card-title,
.projects .card-text {
  margin-bottom: 8px;
  font-size: 14px; /* Prilagođava veličinu teksta */
}

.projects .card a {
  margin-top: auto;
  display: inline-block;
  font-size: 14px;
}

/* Decoration for other sections */
.details .decoration-star {
  left: -200px;
  width: 500px;
}

.details-2 .decoration-star {
  right: -200px;
  width: 500px;
}

.contact .decoration-star {
  left: -300px;
  width: 600px;
}

/* Back to Top Button */
.to-top-btn {
  position: fixed;
  z-index: 20;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  outline: none;
  background-color: #44434a;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.to-top-btn:hover {
  background-color: #1d1d21;
}

.to-top-btn img {
  margin-bottom: 0.25rem;
  width: 18px;
}

/* Visibility class for Back to Top Button */
.show {
  opacity: 1;
}

/* Footer Styles */
.footer {
  text-align: center; /* Centriranje teksta unutar footer-a */
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .row {
  justify-content: center; /* Centriranje kolona unutar reda */
}

.footer h6 {
  margin-bottom: 20px;
}

.footer .mb-4 {
  margin-bottom: 20px;
}

/* Button Styles */
.btn.btn-primary {
  display: block; /* Postavlja dugme kao blok element */
  margin: 20px auto; /* Automatski centriranje dugmeta, sa dodatnim razmakom iznad i ispod */
  padding: 10px 20px; /* Dodavanje paddinga za lepši izgled */
  font-size: 1rem; /* Prilagođavanje veličine teksta u dugmetu */
  text-align: center; /* Osigurava da je tekst u dugmetu centriran */
  max-width: 200px; /* Ograničava širinu dugmeta (opciono, prilagodljivo) */
}

/* Image Container Styles */
.image-container img {
  max-width: 100%;
  height: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .xl-text {
    font-size: 50px;
  }

  .navbar .btn-outline-secondary {
    margin-top: 20px;
  }

  .header {
    margin-top: 0px !important;
    text-align: center;
  }

  .header .decoration-star {
    left: -100px;
    width: 250px;
  }

  .header .decoration-star-2 {
    right: -100px;
    width: 250px;
  }

  .header .image-container {
    margin-top: 30px;
  }

  .services .col-md-4 {
    border-bottom: 1px #ccc solid;
    margin: 10px 0;
  }

  .details-2 {
    margin-top: 20px !important;
  }

  .details-2 .decoration-star {
    top: 300px;
  }
}

@media (max-width: 768px) {
  .projects .card {
    height: auto; /* Omogućava karticama da se prilagode visini sadržaja */
  }

  .projects .card img {
    height: auto; /* Slika se prilagođava visini sadržaja */
  }

  .xl-text {
    font-size: 40px; /* Smanjuje veličinu teksta na manjim ekranima */
  }
}

@media (max-width: 576px) {
  .header .decoration-star,
  .header .decoration-star-2 {
    width: 200px; /* Smanjuje veličinu dekoracije na manjim ekranima */
  }

  .projects .card-body {
    padding: 10px;
  }

  .projects .card-title,
  .projects .card-text {
    font-size: 12px; /* Smanjuje veličinu fonta za bolju čitljivost na manjim ekranima */
  }
}
