﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Italiana;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #000000;
}

.splash-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #ffffff;
  z-index: 2000;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-family: 'Poppins', system-ui, sans-serif;
  animation: splashIntro 0.9s ease-out forwards;
}

.splash-screen.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.splash-screen.fade-out {
  animation: splashFadeOut 0.6s ease forwards;
}

/* Header inicijalno sakriven */
.site-header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

/* Kada dobije klasu .visible, fade-in */
.site-header.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.page-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.splash-content {
  text-align: center;
  padding: 2rem;
  max-width: 90%;
  opacity: 0;
  transform: translateY(14px);
  animation: splashContent 0.9s ease-out 0.1s forwards;
}

.splash-logo {
  width: clamp(120px, 20vw, 220px);
  height: auto;
  margin-bottom: 1.5rem;
  transform: scale(0.96);
  animation: splashLogo 0.9s ease-out 0.1s forwards;
}

@keyframes splashIntro {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  60% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashContent {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashLogo {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

.splash-message {
  color: #ffffff;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 34rem;
  margin: 0 auto;
}

.fullscreenSection {
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  overflow: hidden;
}

.squares {
  top: 17vw;
  left: 2vw;
  height: 20vh;
  position: relative;
  background: rgba(0, 0, 0, 0.53);
  box-shadow: clamp(5px, 1vw, 10px) clamp(5px, 1vw, 10px) clamp(10px, 2vw, 15px) rgba(0, 0, 0, 0.5);
}

/* ======== HEADER ======== */
.site-header {
  z-index: 10000;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: clamp(10px, 2vh, 20px) 0;
  background: linear-gradient(to bottom, black, transparent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  left: 2%;
  height: clamp(30px, 6vh, 50px);
}

/* ======== NAVIGACIJA ======== */
.nav-menu a,
.hamburger {
  color: white !important;
}

.navbar .nav-menu a {
  margin: 0 clamp(10px, 2vw, 15px);
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(14px, 2vw, 18px);
  transition: color 0.3s ease;
  position: relative;
}

.navbar .nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #ED9201;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.navbar .nav-menu a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  font-size: clamp(20px, 3vw, 30px);
  cursor: pointer;
  display: none;
}

.naslov {
  color: #FFF;
  font-family: Italiana;
  font-size: clamp(2rem, 5vw, 8rem);
  font-style: normal;
  line-height: normal;
  background-color: transparent;
}

.opis {
  bottom: 500vh;
  left: 5vw;
  right: 5vw;
  width: 40vw;
  color: white;
  font-size: clamp(14px, 2vw, 20px);
  font-family: Instrument Sans;
  font-weight: 700;
  word-wrap: break-word;
  background: rgba(0, 0, 0, 0.53);
  box-shadow: clamp(5px, 1vw, 10px) clamp(5px, 1vw, 10px) clamp(10px, 2vw, 15px) rgba(0, 0, 0, 0.5);
}

.imgLine {
  position: absolute;
  bottom: 5vh;
  left: 5vw;
  right: 5vw;
  width: 90%;
  height: auto;
  max-height: 50vh;
  object-fit: cover;
}

/* ======== SLIKE I POZICIJE ======== */
.images {
  position: relative;
  right: -30%;
  top: 10vh;
  width: 30%;
  overflow: visible;
  max-width: 100%;
}

.img11,
.img22,
.img33,
.img44,
.img55 {
  position: absolute;
  transform: rotate(45deg) translate(-50%, -50%);
  transform-origin: top left;
  box-shadow: clamp(5px, 1vw, 10px) clamp(5px, 1vw, 10px) clamp(10px, 2vw, 15px) rgba(0, 0, 0, 0.5);
}

.img11 {
  width: clamp(15vmin, 25vmin, 35vmin);
  height: clamp(15vmin, 25vmin, 35vmin);
  top: 40%;
  left: 20%;
  border: 8px solid #FFFBFB;
  z-index: 3;
}

.img22 {
  width: clamp(8vmin, 18vmin, 22vmin);
  height: clamp(8vmin, 18vmin, 22vmin);
  top: 25%;
  left: 45%;
  z-index: 2;
}

.img33 {
  width: clamp(6vmin, 12vmin, 15vmin);
  height: clamp(6vmin, 12vmin, 15vmin);
  top: 15%;
  left: 60%;
  z-index: 1;
}

.img44 {
  width: clamp(8vmin, 18vmin, 22vmin);
  height: clamp(8vmin, 18vmin, 22vmin);
  top: 55%;
  left: 45%;
  z-index: 2;
}

.img55 {
  width: clamp(6vmin, 12vmin, 15vmin);
  height: clamp(6vmin, 12vmin, 15vmin);
  top: 65%;
  left: 60%;
  z-index: 1;
}

#pocetna {
  position: relative;
  overflow: hidden;
}

#pocetna::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to top,
      rgba(0, 0, 0, 1) 0%,
      /* crna pri dnu */
      rgba(0, 0, 0, 0) 30%
      /* providno na 10% visine */
    ),
    var(--bg-slika, url('/images/deking.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.6s ease-in-out;
  z-index: 0;
}

#pocetna.pokazi-fade::before {
  opacity: 1;
}

#pocetna.fade-out::before {
  opacity: 0.2;
}


@keyframes fadeBg {
  from {
    opacity: 0.7;
    stroke-width: 0%;
  }

  to {
    opacity: 1;
    stroke-width: 100%;
  }
}

.onama-text {
  position: relative;
  height: 30%;
  width: 40%;
  top: 15%;
  left: 5%;
  color: white;
  background: rgba(75, 74, 74, 0.53);
  box-shadow: clamp(5px, 1vw, 10px) clamp(5px, 1vw, 10px) clamp(10px, 2vw, 15px) rgba(0, 0, 0, 0.5);
}

.onama-images {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 40%;
  height: auto;
  overflow: hidden;
  max-width: 100%;
}

.usluge-text {
  position: relative;
  height: 30%;
  width: 70%;
  top: 15%;
  left: 5%;
  background-color: #424141;
}

#ikonicePodovaImg {
  position: relative;
  top: 10%;
  left: 30%;
  height: 70%;
  width: relative;
}

#uslugeImg {
  position: relative;
  top: 50%;
  right: 55%;
  height: 40%;
  width: 40%;
  background-color: #424141;
}

.masinskoText {
  position: relative;
  height: 30%;
  width: 40%;
  top: 35%;
  left: 50%;
  background-color: #424141;
}

#naslov-masinsko {
  position: relative;
  height: 50%;
  width: 105%;
  top: -85%;
  left: -50%;
}

.masinskoImages {
  position: relative;
  top: 20%;
  right: 30%;
  width: 30%;
  height: 50%;
}

.masinskoCiscenjeIkonica {
  position: relative;
  top: 10%;
  height: auto;
  width: auto;
  max-width: 100%;
}

.clientFeedbackImages {
  position: relative;
  top: -10%;
  left: 5%;
  width: 90%;
  gap: 24px;
  height: auto;
  display: flex;
  justify-content: space-around;
}

.clientFeedbackImages>* {
  flex: 0 0 auto;
}


.clientFeedbackImg {
  position: relative;
  top: -30%;
  left: 0%;
  width: 10%;
}

.specijalneText {
  position: relative;
  height: 30%;
  width: 40%;
  top: 15%;
  left: 5%;
  background-color: #424141;
}

.specijalneImages {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 40%;
  height: 75%;
  overflow: hidden;
  max-width: 100%;
}

.img4 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showRoomText {
  position: relative;
  height: 30%;
  width: 40%;
  top: 15%;
  left: 5%;
  background-color: #424242;
}

.footer {
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1vh) * 20);
  display: flex;
  background: linear-gradient(to bottom, #A46500, transparent);
}

.contactNaslov {
  position: relative;
  height: 30%;
  width: 15%;
  top: 5%;
  left: 8%;
  color: white;
  font-size: clamp(2rem, 2vw, 10rem);
}

.contactItem {
  position: relative;
  height: 80%;
  width: 70%;
  left: 0%;
  top: 5%;
  color: white;
  font-size: clamp(1rem, 1vw, 5rem);
}

.footerIcon {
  position: relative;
  top: 0%;
  left: 0%;
  width: 20%;
  height: auto;
}

.footerP {
  position: relative;
  top: -70%;
  left: 20%;
  color: white;
  font-size: clamp(1rem, 1vw, 5rem);
}

.emailContacts {
  position: relative;
  top: -80%;
  left: 20%;
  width: 90%;
  height: auto;
}

#contacts {
  position: relative;
  top: 40%;
  left: -5%;
  width: 100%;
  height: 60%;
  display: flex;
}


.sectionZadovoljniKlienti {
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1vh) * 40);
  display: flex;
  /* background-color: #da0808; */
}

.naslovZadovoljniKlienti {
  position: relative;
  height: 30%;
  width: 60%;
  top: 0%;
  color: white;
  font-size: clamp(2rem, 2vw, 10rem);
  left: 40%;
  /* background-color: #8608da; */
}

/* Ticker animacija */
@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    transform: translate3d(calc(-100% - 4rem), 0, 0);
  }
}

/* Ticker kontejner */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  height: 100%;
  /*background-color: rgba(89, 0, 255, 0.9);*/
  box-sizing: content-box;
}

/* Ticker sadržaj */
.ticker {
  display: inline-block;
  height: 100%;
  line-height: normal;
  white-space: nowrap;
  box-sizing: content-box;
  will-change: transform;
  animation-play-state: running;
}

/* Stavke u tickeru */
.ticker__item {
  display: inline-block;
  padding: 0 2rem;
  height: 100%;
  margin: 0;
  flex-shrink: 0;
}

/* Stil za slike */
.ticker__item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.ticker__item a {
  display: block;
  height: 100%;
  margin: 0;
  padding: 0;
}

.clientFeedback {
  position: relative;
  height: 60%;
  width: 100%;
  left: 0%;
  top: 0%;
  /* background-color: #08da13; */
}

a[href^="tel"],
a[href^="mailto"] {
  text-decoration: none;
  color: inherit;
  /* zadrži boju teksta */
}

#showRoom {
  display: grid;
  grid-template-columns: 57% 38%;
  grid-template-rows: auto 1fr;
  column-gap: 3%;
  row-gap: 3%;
  padding: 5% 3% 8% 3%;
  height: calc(var(--vh, 1vh) * 100);
  align-content: start;
  box-sizing: border-box;
}

.showRoomText {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 100%;
  height: 100%;
  top: 15px;
  left: 0;
  padding: 1.75rem;

}

.maps {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
}

.showRoomImages {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background-color: transparent;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slideshow-image.active {
  opacity: 1;
}


@media (max-width: 800px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: black;
    position: absolute;
    top: clamp(50px, 8vh, 60px);
    right: clamp(5px, 2vw, 10px);
    padding: clamp(10px, 2vh, 15px);
    box-shadow: 0 clamp(1px, 0.5vh, 2px) clamp(2px, 1vh, 5px) white;
  }

  #ikonicePodovaImg {
    position: relative;
    top: 10%;
    left: 25%;
    height: 70%;
  }

  #naslov-masinsko {
    position: relative;
    height: 50%;
    width: 130%;
    top: -85%;
    left: -55%;
  }

  #uslugeImg {
    position: relative;
    top: 50%;
    right: 85%;
    height: 40%;
    width: 40%;
  }

  .masinskoCiscenjeIkonica {
    position: relative;
    top: 35%;
    height: auto;
    width: auto;
    max-width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .img11 {
    top: 40%;
    left: 0%;
    border: 5px solid #FFFBFB;
  }

  .img22 {
    top: 30%;
    left: 45%;
  }

  .img33 {
    top: 23%;
    left: 75%;
  }

  .img44 {
    top: 50%;
    left: 45%;
  }

  .img55 {
    top: 57%;
    left: 75%;
  }

  .squares {
    top: 45%;
    left: 5%;
  }

  .images {
    right: -27%;
  }

  #showRoom {
    display: grid;
    grid-template-columns: 57% 36%;
    grid-template-rows: 1fr 1fr;
    column-gap: 3%;
    row-gap: 3%;
    padding: 5% 3% 15% 3%;
    height: calc(var(--vh, 1vh) * 100);
    align-content: start;
    box-sizing: border-box;
  }

  .showRoomText {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 85%;
    height: 50%;
    top: 90px;
    left: 0;
    padding: 0.75rem;
  }

  .maps {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .showRoomImages {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
  }

  .footer {
    height: auto;
    flex-direction: column;
    padding: 2rem 1.5rem;
  }

  .contactNaslov {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    margin-bottom: 1.5rem;
  }

  #contacts {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 1.5rem;
  }

  .contactItem {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .footerIcon {
    position: relative;
    top: 0;
    left: 0;
    width: 32px;
    flex-shrink: 0;
  }

  .footerP {
    position: relative;
    top: 0;
    left: 0;
    color: white;
  }

  #emailContacts {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
  }

  #email, #facebook, #phone, #instagram {
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
  }

  #kontakt {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }

  .contactItem a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

}

/* ======== Tablet ======== */
@media (min-width: 481px) and (max-width: 1024px) {
  /* .footerP {
    position: relative;
    top: -60%;
    left: 20%;
    color: white;
    font-size: clamp(1rem, 1vw, 5rem);
} */
}