/* BODY */
body {
  background-image: url("ozadje.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* TOP BAR */
.nadglava {
  display: flex;
  height: 40px;
  background-color: black;
}

.mail {
  height: 25px;
  margin-left: 10%;
  margin-top: 5px;
}

.mailtxt {
  padding-left: 10px;
  margin-top: 9px;
  font-family: sans-serif;
  color: white;
}

/* HEADER */
.glava {
  height: 70px;
  display: flex;
  align-items: center;
  background-color: rgba(181, 181, 186, 0.6);
}

.logo {
  height: 70px;
  margin-left: 6%;
}

/* LINKS */
a {
  padding-right: 50px;
  color: black;
  font-size: 20px;
  text-decoration: none;
}

.blend {
  padding-left: 0;
}

.ozadje {
  width: 100%;
}

/* BOX SECTION */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 120px;
  flex-wrap: wrap;
}

.box {
  width: 280px;
  height: 320px;
  background: rgba(80, 80, 80, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.box:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.box h2 {
  color: white;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

/* BUTTONS */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  background-color: black;
  color: white;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: #333;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.4); /* dark background behind popup */
}

/* POPUP BOX */
.popup-box h2 {
  color: black;
  font-size: 16px;      /* smaller so it fits */
  text-align: center;
  line-height: 1.5;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.4);

  /* animation */
  animation: fadeIn 0.3s ease-out;
}

/* POPUP BOX (slight zoom + fade) */
.popup-box {
  width: 400px;
  height: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: "Segoe UI", Arial, sans-serif;

  /* animation */
  animation: popIn 0.3s ease-out;
}

/* FADE BACKGROUND */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* POP / SCALE EFFECT */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.services-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
  gap: 40px;
}

/* SLIDER BOX */
.slider {
  width: 700px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* IMAGES */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* ACTIVE IMAGE */
.slide.active {
  opacity: 1;
}

/* INFO BOX */
.info-box {
  width: 700px;
  background: rgba(120, 120, 120, 0.85);
  border-radius: 20px;
  padding: 30px;
  color: white;
  font-family: "Segoe UI", Arial, sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(5px);
}

/* TITLE */
.info-box h2 {
  margin: 0 0 15px 0;
  font-size: 26px;
  letter-spacing: 2px;
}

/* TEXT */
.info-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #eaeaea;
}