* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: "Book Antiqua", Palatino, serif;
  line-height: 1.5;
  color: black;
}

/* NAVIGATION */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d0d6d6;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  margin-right: 8px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 70px;
}

.nav-link {
  text-decoration: none;
  color: black;
  font-size: 1rem;
}

.nav-link:hover {
  color: rgba(242, 242, 233, 0.995);
}

/* HERO */
.hero {
  height: 100vh;
  background-color: grey;
}

.hero-background {
  height: 100%;
  background-image: url("slikaprvastrana.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-content {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: black;
  background: none;
  padding: 0;
  border-radius: 0;
  margin-top: 160px;
}

/* ABOUT */
#about {
  background: linear-gradient(to top left, rgb(42, 57, 73) 50%, #d0d6d6 50%);
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.about-title {
  font-size: 3rem;
  color: rgb(42, 57, 73);
}

.about-text {
  margin: 20px auto;
  max-width: 800px;
  background-color: #f9f9f4;
  border-radius: 15px;
  padding: 40px;
  font-size: 1.8rem;
  box-shadow: -8px 8px 15px rgba(0,0,0,0.35);
}

.about-link {
  margin-top: 20px;
}

.about-link a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(230, 230, 60, 0.995);
}

.about-link a:hover {
  color: white;
}

/* SERVICES */
#services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  background-color: rgb(42, 57, 73);
  height: 100vh;
  padding: 80px 20px;
}

.service-card {
  border: 2px solid rgba(230, 230, 60, 0.995);
  border-radius: 15px;
  padding: 20px;
  color: wheat;
  text-align: center;
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
  margin-bottom: 10px;
  color: rgba(230, 230, 60, 0.995); /* žuta brending boja */
}

.service-card p {
  flex-grow: 1;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.services-link {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.services-link a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(230, 230, 60, 0.995);
}

.services-link a:hover {
  color: white;
}

/* SLOGAN */
.slogan {
  background-color: rgb(42, 57, 73);
  text-align: center;
  padding: 40px 20px;
}

.slogan h5 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 10px;
}

.slogan h6 {
  font-size: 4rem;
  color: rgba(230, 230, 60, 0.995);
  font-weight: bold;
  text-align: center;
}

/* PARTNERS */
#partners {
  background: #eee;
  overflow: hidden;
  padding: 10px;
}

.partners-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollLoop 30s linear infinite;
}

.partners-track img {
  width: 140px;
  height: auto;
  border-radius: 6px;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(42, 57, 73);
  color: whitesmoke;
  height: 30vh;
  padding: 20px;
  flex-wrap: wrap;
}

.footer-col {
  margin: 20px;
  flex: 1 1 200px;
}

.footer h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer p {
  font-size: 1.2rem;
}

.footer-logo {
  width: 100px;
  height: auto;
}

.copyright {
  text-align: center;
  background-color: rgb(42, 57, 73);
  color: whitesmoke;
  padding: 10px;
}

/* ---------------- MEDIA QUERIES ---------------- */

/* TABLET */
@media (max-width: 992px) {
  .nav-links {
    flex-wrap: wrap;
  }
  .about-text {
    font-size: 1.4rem;
    padding: 20px;
  }
  .service-card {
    flex: 1 1 45%;
    height: 300px;
  }
  .footer {
    justify-content: center;
  }
  .footer-col {
    flex: 1 1 45%;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .about-text {
    font-size: 1.2rem;
    padding: 15px;
  }
  #services {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
  }
  .service-card {
    flex: 1 1 90%;
    height: auto;
  }
  .slogan h5, .slogan h6 {
    font-size: 3rem;
  }
  #partners .partners-track img {
    width: 100px;
  }
  .footer {
    flex-direction: column;
    height: auto;
    text-align: center;
  }
  .footer-col {
    flex: 1 1 90%;
  }
}
