html {
  scroll-behavior: smooth;
  scroll-padding-top: 50vh;
}

body {
  margin: 0;
  padding: 0;
  font-family: Quicksand, sans-serif;
  box-sizing: border-box;
   background-color: #e6f8fa;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  background-color: transparent;
  width: 0px;
}

.scroll-offset {
  scroll-margin-top: 200px;
}

* {
  margin: 0;
  padding: 0;
}
.logo {
  height: 70px;
  padding-top: 10px;
  padding-bottom: 5px;
  padding-left: 20px;
  margin-left: 10px;
}

.logo-main {
  height: 50vh;
  margin-top: 5vh;
  animation: pulse 1.5s infinite;
}

.logo1 {
  height: 75px;
}

.topnav {
  overflow: hidden;
  background-color: #7b3ff2;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 5px #16161d;
  z-index: 3;
  position: fixed;
  top: 10px;
  left: 0.5vw;
  width: 99%;
  border-radius: 30px;
}

/* Hide the links inside the navigation menu (except for logo/home) */
/* Animacija za otvaranje/zatvaranje burger menija */
#myLinks {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  overflow: hidden;
  background-color: #16161d;
  transition: max-height 0.4s ease-out;
  gap: 40px;
}

#myLinks.show {
  max-height: 300px; /* prilagodi visinu po potrebi */
  transition: max-height 0.4s ease-in;
  padding-bottom: 10px;
  overflow: scroll;
}

/* Style navigation menu links */
.topnav a {
  color: #7b3ff2;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 20px;
  padding-left: 0px;
  text-decoration: none;
  font-size: 40px;
  display: block;
  color: #ffffff;
}

/* Style the hamburger menu */
.topnav a.icon {
  background: #7b3ff2;
  display: block;
  position: absolute;
  margin-right: 5px;
  margin-top: 10px;
  margin-left: 0px;
  right: 0;
  top: 0;
}

#myLinks a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.2); /* tamnija pozadina */
  padding: 8px 2px;
  margin: 10px;
  border-radius: 10px; /* zaobljene ivice */
  color: white; /* boja teksta */
  text-decoration: none; /* bez podvlačenja */
  transition: background-color 0.3s ease;
  width: 97%;
  font-size: 30px;
}

#myLinks a:hover {
  background-color: rgba(0, 0, 0, 0.4); /* još tamnija kad se pređe mišem */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.top-section {
  height: 100vh;
  background-image: url(media/background1-min.jpg);
  background-size: cover;
  background-position-x: center;
  background-position-y: bottom;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.top-section p {
  color: white;
  font-size: 3rem;
  text-align: center;
  font-weight: 600;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #efb3c7;
}

.contact > ul {
  display: flex;
  position: relative;
  gap: 25px;
}

.contact > ul li {
  position: relative;
  list-style: none;
  width: 60px;
  height: 60px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 60px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.contact > ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: var(--i);
  opacity: 0;
  transition: 0.5s;
}

.contact > ul li::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
  opacity: 0;
}

.contact > ul li:hover {
  width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0);
}

.contact > ul li:hover::before {
  opacity: 1;
}

.contact > ul li:hover::after {
  opacity: 0.5;
}

.contact > ul li i {
  color: #777;
  font-size: 1.75em;
  transition: 0.5s;
  transition-delay: 0.25s;
}

.contact > ul li:hover i {
  transform: scale(0);
  color: #fff;
  transition-delay: 0s;
}

.contact > ul li span {
  position: absolute;
}

.contact > ul li .title {
  color: #fff;
  font-size: 1.1em;
  font-weight: bolder;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
}

.contact > ul li:hover .title {
  transform: scale(1);
  transition-delay: 0.25s;
}

.middle-section {
  height: 90vh;
  background-color: #e6f8fa;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0vh;
  padding-left: 5vh;
  padding-right: 5vh;
  gap: 20px;
  margin-top: 7vh;
}

#nas-pristup {
  background-color: #e6f8fa;
  padding: 60px 0;
  font-family: "Poppins", sans-serif;
  animation: fadeIn 1.2s ease-in-out;
}

#nas-pristup .container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

#nas-pristup h2 {
  color: #009fbf;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

#nas-pristup .intro {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  text-align: left;
}

.approach-item {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s forwards;
}

.approach-item:nth-child(1) {
  animation-delay: 0.2s;
}
.approach-item:nth-child(2) {
  animation-delay: 0.4s;
}
.approach-item:nth-child(3) {
  animation-delay: 0.6s;
}
.approach-item:nth-child(4) {
  animation-delay: 0.8s;
}

.approach-item h3 {
  color: #009fbf;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.approach-item p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

.approach-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Animacije */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.img-grid {
  height: auto;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 60vh;
  padding: 16px;
  gap: 16px;
}
.img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.02), 0px 5px 4px rgba(3, 7, 18, 0.05),
    0px 12px 9px rgba(3, 7, 18, 0.07), 0px 20px 15px rgba(3, 7, 18, 0.1),
    0px 32px 24px rgba(3, 7, 18, 0.12);
}
.img-phone {
  display: none;
  width: 80%;
  height: auto;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.02), 0px 3px 4px rgba(3, 7, 18, 0.03),
    0px 8px 9px rgba(3, 7, 18, 0.05), 0px 13px 15px rgba(3, 7, 18, 0.06),
    0px 21px 24px rgba(3, 7, 18, 0.08);
}
.img-phone > img {
  width: 80%;
  height: 90%;
  object-fit: cover;
  image-resolution: from-image;
}

.bottom-section {
  height: 90vh;
  border-top: 4px solid #7b3ff2;
  background-color: #e6f8fa;
  background-image: url(media/background2-min.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #7b3ff2;
  font-size: large;
}

.bottom-section h1 {
  animation: tilt 1.5s infinite ease-in-out;
  display: inline-block;
  font-size: 5vh;
}

@keyframes tilt {
  0% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}

.additional {
  margin: 10px;
  height: 100vh;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s forwards;
}

.additional > .overlay {
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.additional > .overlay > .section {
  border-radius: 20px;
  padding: 10px;
  margin: 20px;
  margin-top: 0;
  width: 50vw;
}

.additional > h2,
.additional > .overlay > .section > h2 {
  color: #009fbf;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.additional > .section > h1 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.additional > .section > p {
  margin-bottom: 60px;
  padding: 10px;
  text-align: left;
}

.additional > .map {
  width: 70%;
  height: 50vh;
  border-radius: 13px;
  background: linear-gradient(145deg, #cacaca, #f0f0f0);
  box-shadow: 24px 24px 100px #5a5a5a, -24px -24px 100px #ffffff;
  margin-top: 50px;
  border: 2px solid #7b3ff2;
}

.menu-click {
  background-color: rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px;
  padding: 10px;

  box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.02), 0px 3px 4px rgba(3, 7, 18, 0.03),
    0px 8px 9px rgba(3, 7, 18, 0.05), 0px 13px 15px rgba(3, 7, 18, 0.06),
    0px 21px 24px rgba(3, 7, 18, 0.08);
}
.menu-click:hover {
  background-image: linear-gradient(45deg, #1688bb, #71d976);
  cursor: pointer;
  margin: 20px;
  padding: 10px;
  color: white;
  animation: fadein 0.5s;
}

@keyframes fadein {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

.footer {
  background-color: #16161d;
  color: whitesmoke;
  padding: 5vh 0 10vh 0;
  text-align: center;
  box-shadow: 0 0 10px 5px #16161d;
}
.footer-about {
  font-size: 18px;
  color: gainsboro;
}
.links-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: crimson;
  font-style: none;
}
.footer-content {
  list-style-type: none;
  display: flex;
  justify-content: center;
  justify-content: space-evenly;
}
.footer-links {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #aba6a6;
}

@media screen and (max-width: 768px) {
  .logo-main {
    height: clamp(15vw, calc(20vh + 2vw), 40vw);
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-links {
    display: none;
  }
  .img-grid {
    display: none;
  }
  .img-phone {
    display: flex;
  }
  .additional > .map {
    width: 90%;
    height: 30vh;
  }
  .middle-section {
    margin-top: 5vh;
    padding-left: 2vh;
    padding-right: 2vh;
    height: fit-content;
  }
  .additional {
    height: auto;
    padding-bottom: 40px;
    padding-top: 40px;
  }
  .additional > * {
    margin-bottom: 2vh;
  }
  .show > .footer {
    overflow: scroll;
  }
  .contact > ul li,
  .contact > ul li:hover,
  .contact > ul li:active,
  .contact > ul li:focus {
    width: 60px !important;
    height: 60px !important;
    background: white !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-radius: 60px !important;
    transition: none !important;
    color: #777 !important;
  }
  .contact > ul li i,
  .contact > ul li:hover i,
  .contact > ul li:active i,
  .contact > ul li:focus i {
    color: #777 !important;
    transform: none !important;
    transition: none !important;
  }
  .contact > ul li .title,
  .contact > ul li:hover .title,
  .contact > ul li:active .title,
  .contact > ul li:focus .title {
    display: none !important;
    transform: none !important;
    transition: none !important;
  }
  .contact > ul li::before,
  .contact > ul li:hover::before,
  .contact > ul li:active::before,
  .contact > ul li:focus::before,
  .contact > ul li::after,
  .contact > ul li:hover::after,
  .contact > ul li:active::after,
  .contact > ul li:focus::after {
    display: none !important;
    opacity: 0 !important;
    transition: none !important;
    content: none !important;
  }
}

/* Center only the "O Nama" heading and its paragraph */
.section > h2#onama,
.section > h2#onama + p,
.section > h2#onama ~ p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Slight visual tweaks without changing content */
.section > h2#onama {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.section > h2#onama ~ p {
  max-width: 900px;
  line-height: 1.7;
  font-size: 1.05rem;
  padding: 0 12px;
  box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section > h2#onama {
    font-size: 1.6rem;
  }
  .section > h2#onama ~ p {
    font-size: 1rem;
    padding: 0 10px;
    max-width: 100%;
  }
}
