html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Sansation", sans-serif;
  box-sizing: border-box;
  background-color: #f4f4f4;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif;
  margin-bottom: 20px;
}

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

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

* {
  margin: 0;
  padding: 0;
}
.logo {
  height: 60px;
  margin-left: 10px;
}

.logo1 {
  height: 75px;
}

.topnav {
  overflow: hidden;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 5px #16161d;
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* 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: space-evenly;
  max-height: 0;
  overflow: hidden;
  background-color: whitesmoke;
  transition: max-height 0.4s ease-out;
}

#myLinks.show {
  max-height: 350px; /* prilagodi visinu po potrebi */
  transition: max-height 0.4s ease-in;
}

.topnav a {
  color: whitesmoke;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 14px;
  padding-left: 0px;
  text-decoration: none;
  font-size: clamp(1.2rem, calc(0.5rem + 1vw), 1.4rem);
  display: block;
  color: #16161d;
}

.topnav a.icon {
  background: white;
  display: block;
  position: absolute;
  font-size: 30px;
  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);
  padding: 8px 2vw;
  margin: 10px;
  border-radius: 10px;
  color: whitesmoke;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 97%;
}

#myLinks a:hover {
  background-color: rgba(0, 0, 0, 0.4);
  color: crimson;
  transition: 0.3s ease;
}

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

.top-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.top-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.top-section p {
  color: white;
  text-shadow: #16161d 2px 2px 4px, #16161d 4px 4px 8px;
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
}

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

.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: linear-gradient(45deg, var(--i), var(--j));
  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;
  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: #f4f4f4;
  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: 15vh;
}
.middle-section > p {
  font-size: 1.5rem;
}

.photo {
  transition: 0.3s;
}

.photo:hover {
  transform: scale(1.05);
  overflow: hidden;
  box-shadow: 0px 10px 5px rgba(0, 0, 0, 0.658);
  transition: 1s;
}

.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 {
  position: relative;
  height: 90vh;
  background-color: #e0e0e0;
  background-image: url(media/background2.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: white;
  text-shadow: #16161d 2px 2px 4px, #16161d 4px 4px 8px;
  box-shadow: 0 0 10px 5px #16161d;
}

.bottom-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 29, 0.55); /* tamniji overlay */
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  transition: background 200ms ease;
}

/* jači overlay na manjim ekranima */
@media (max-width: 768px) {
  .bottom-section::before {
    background: rgba(22, 22, 29, 0.75);
  }
}

/* Ensure content sits above the dark overlay and remains white */
.bottom-section > * {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* Force common text elements inside to be white (covers headings, links, buttons...) */
.bottom-section h1,
.bottom-section h2,
.bottom-section h3,
.bottom-section p,
.bottom-section a,
.bottom-section span,
.bottom-section button {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* If you have a specific wrapper (e.g. .top-content), ensure it is above overlay too */
.bottom-section .top-content {
  position: relative;

  z-index: 2;
}

/* Sekcija - O nama */
#o-nama {
  background-color: #ffffff;
  padding: 80px 0;
  font-family: "Poppins", sans-serif;
  color: #111;
  text-align: center;
  position: relative;
  border: 3px solid gold;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

#o-nama .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

#o-nama .logo {
  width: 120px;
  margin-bottom: 20px;
}

#o-nama h2 {
  font-size: 2.4rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border-bottom: 3px solid #d4af37; /* Zlatna linija */
  display: inline-block;
  padding-bottom: 8px;
}

#o-nama .intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.about-item {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s forwards;
}

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

.about-item h3 {
  color: #d4af37; /* Zlatna boja */
  margin-bottom: 15px;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.about-item p,
.about-item ul {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.about-item ul {
  padding-left: 18px;
}

.about-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Animacija */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.additional {
  height: 100vh;
  background-color: #fff;
  padding: 20px;
  text-align: center;
}

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

.additional > p {
  margin-bottom: 60px;
}

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

.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: 784px) {
  .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;
  }
}
@media screen and (max-width: 784px) {
  .contact > ul {
    gap: 10px;
  }
  .logo-main {
    height: clamp(15vw, calc(20vh + 2vw), 40vw);
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-links {
    display: none;
  }
  .top-section p {
    font-size: 2rem;
    margin: 0 20px 0 20px;
  }
  .show > .footer {
    overflow: scroll;
  }
}

@media screen and (max-width: 768px) {
  .img-grid {
    display: none;
  }
  .img-phone {
    display: flex;
  }
  .additional > .map {
    width: 90%;
    height: 30vh;
  }
  .middle-section {
    margin-top: 5vh;
    margin-bottom: 5vh;
    padding-left: 2vh;
    padding-right: 2vh;
    height: fit-content;
  }
  .additional {
    height: auto;
    padding-bottom: 40px;
    padding-top: 40px;
  }
  .additional > * {
    margin-bottom: 2vh;
  }
}

/* Dropdown slike - sakrij na desktopu, prikaži samo na mobilnim uređajima */
.mobile-image-dropdown {
  display: none;
}

@media screen and (max-width: 784px) {
  .mobile-image-dropdown {
    display: block;
    width: 100%;
    margin: 0 0 18px 0;
    text-align: center;
  }
  .dropdown-toggle {
    margin-top: 20px;
    position: relative;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #d4af37;
    border: 3px solid gold;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
  }

  .liquid {
    background: linear-gradient(gold 0 0) no-repeat calc(200% - var(--p, 0%))
      100% / 200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s),
      background-position 0.3s calc(0.3s - var(--t, 0s));
  }

  .liquid:hover {
    --p: 100%;
    --t: 0.3s;
    color: #fff;
  }

  .dropdown-images {
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    margin: 0 auto;
  }
  .dropdown-scroll {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 0 12px;
  }
  .dropdown-scroll img {
    width: 180px;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  .mobile-image-dropdown .dropdown-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-image-dropdown .dropdown-scroll img {
    width: 180px;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  .mobile-image-dropdown .dropdown-scroll::-webkit-scrollbar {
    display: none;
  }
}
