@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&display=swap");

/* ==== Osnovno podesavanje */
:root {
  --font-family: "Lora", serif;
  --mobile-h1-size: 2.2rem;
  --mobile-h2-size: 2rem;
  --mobile-text-size: 1.65rem;

  --desktop-h1-size: 3.6rem;
  --desktop-h2-size: 2.5rem;
  --desktop-text-size: 2rem;

  /* ==== Boje ===== */
  --background-dark: #000000ec;
  --background-white: #fff;
  --menu-bg-color: #f1f1f1;
  --text-color: #212222;
  --h1-text-color: #630117;
  --link-color: #78001b;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizespeed;
  line-height: 1.3;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: center;
  overflow-x: hidden;
}

img,
video,
picture {
  max-width: 100%;
  display: block;
}

img {
  border-style: none;
}

ul {
  list-style: none;
}

a {
  margin: 0;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.revel {
  position: relative;
  transform: translateY(15rem);
  transition: 1.5s ease-in-out;
  opacity: 0;
}

.revel.active {
  transform: translateY(0);
  opacity: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge add Firefox */
.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Firefox */
}

/* * Back to top */
.scroll-top {
  position: fixed;
  bottom: 3rem;
  right: 2.5rem;
  height: 4rem;
  width: auto;
  background-color: #fff;
  border-radius: 50%;
  z-index: 99999;
  cursor: pointer;
}

.scroll-top img {
  height: 4rem;
  width: auto;
}

.container {
  width: min(95%, 133rem);
  margin-inline: auto;
}

/* Header Content */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: move-down 1s ease-in-out;
}

.header__logo {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.header__logo .menu--logo {
  max-width: 15rem;
}

.header__logo .menu--btn {
  position: sticky;
  cursor: pointer;
  z-index: 99;
}

.nav__menu {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  background-color: var(--menu-bg-color);
  position: fixed;
  inset: 0 0 0 20%;
  transform: translate(100%);
  z-index: 9;
}

.active {
  transform: translate(0);
  transition: 1.5 ease-in-out;
}

.nav__menu li:first-child {
  margin-top: 17rem;
}

.nav__menu li a {
  text-transform: uppercase;
  font-size: var(--mobile-text-size);
  color: var(--link-color);
  font-weight: 600;
  position: relative;
}

.nav__menu li a:after {
  content: "";
  height: 0.3rem;
  width: 0;
  background-color: var(--link-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: 0.5s ease-in-out;
}

.nav__menu li a:hover::after {
  width: 100%;
}

.nav__menu li a:hover {
  color: #000;
  transition: 0.5s ease-in-out;
}

/* * Section Naslovna */

.naslovna {
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  margin-bottom: 2rem;
  animation: move-down 1s ease-in-out;
}

.naslovna-image {
  margin-bottom: 2.5rem;
  padding: 2rem;
}

.naslovna-content {
  margin-top: 5rem;
}

.naslovna-main-title {
  font-size: var(--mobile-h1-size);
  text-transform: uppercase;
}

.naslovna-title {
  font-size: var(--mobile-h2-size);
  font-weight: 600;
  line-height: 1.1;
  margin: 1rem 0;
  text-transform: capitalize;
}

.naslovna-span {
  font-size: 2.5rem;
  color: var(--h1-text-color);
}

.naslovna-subtitle {
  font-size: var(--mobile-h2-size);
}

.opis-proizvoda>* {
  font-size: var(--mobile-text-size);
  line-height: 1.5;
}

.opis-proizvoda p {
  margin-bottom: 1rem;
}

.nasi-proizvodi {
  min-height: 60vh;
  background-color: var(--background-dark);
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.nasi-proizvodi .list-item {
  font-size: var(--mobile-text-size);
  text-transform: capitalize;
  margin: 1.5rem 0;
}

.nasi-proizvodi-text {
  font-size: 2.5rem;
  color: #f90606;
  text-transform: capitalize;
}

/* *Section Gallery */

.gallery--text {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.grid-col {
  width: 50%;
}

.img-item {
  width: 100%;
  margin-bottom: 1rem;
}

.img-item img {
  width: 100%;
}

/* * Footer Sekcija Mobilni */

.footer {
  min-width: 100%;
}

.footer-maps {
  margin-bottom: 3rem;
  text-align: center;
}

.footer-contact {
  background: var(--background-dark);
  color: var(--background-white);
  text-align: start;
  padding: 2rem 0;
}

.footer-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.footer-item img {
  width: 3rem;
  height: auto;
  margin-right: 1.5rem;
}

.footer-text {
  font-size: var(--mobile-text-size);
  padding: 0.75rem;
  animation: showFooter 1.5s ease-in-out;
  position: relative;
}

.footer-popup {
  position: absolute;
  top: -29px;
  padding: 1rem;
  background: white;
  color: black;
  left: -10px;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  display: none;
  text-transform: uppercase;
}

/* DESKTOP VERZIJA */

@media (min-width: 768px) {

  /* Header Desktop Verzija*/
  .header {
    padding: 4rem 0;
  }

  .header__logo {
    padding: 0;
  }

  .header__logo .menu--logo {
    max-width: 30rem;
  }

  .header__logo .menu--btn {
    display: none;
  }

  .nav__menu {
    position: relative;
    right: 0;
    margin-right: 10.5rem;
    transform: translateX(0);
    flex-direction: row;
    background-color: transparent;
  }

  .nav__menu li:first-child {
    margin: 0;
  }

  /* * Naslovna Desktop Verzija*/

  .naslovna {
    height: 100%;
    flex-direction: row;
  }

  .naslovna-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20rem;
    padding: 0 2rem;
  }

  .naslovna-main-title {
    font-size: var(--desktop-h1-size);
  }

  .naslovna-title {
    font-size: var(--desktop-h2-size);
  }

  .naslovna-span {
    font-size: 3.8rem;
  }

  .naslovna-subtitle {
    font-size: var(--desktop-h2-size);
  }

  .naslovna-image {
    margin: 0;
  }

  .naslovna-image img {
    width: 100rem;
    /* width: calc(100vw / 10.6px); */
    height: auto;
  }

  /* *Opis Proizvoda  Desktop verzija*/
  .opis-proizvoda>* {
    font-size: var(--desktop-text-size);
  }

  .opis-proizvoda p {
    margin-bottom: 3rem;
  }

  /* * Nasi proizvodi Desktop Verzija*/

  .nasi-proizvodi .list-item {
    font-size: var(--desktop-text-size);
  }

  /* Galerija Desktop Verzija */

  .gallery {
    position: relative;
  }

  .gallery--text {
    font-size: 2.7rem;
    margin-bottom: 5rem;
  }

  .gallery-grid {
    right: 60%;
    transform: translateX(50%);
  }

  .grid-col {
    width: 20%;
  }

  .img-item {
    width: 20%;
  }

  .zoom {
    z-index: 999999;
  }

  /* * Footer Section Destop */

  .footer-menu {
    display: flex;
    justify-content: space-between;
  }

  /* Ulazeci header kada se ucitava stranica */

  @keyframes move-down {
    0% {
      transform: translateY(-120%);
      opacity: 0;
    }

    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Ulazece slike kada se ucita stranica */
  @keyframes slideIn {
    0% {
      transform: translateX(-140%);
      opacity: 0;
      transform: scale(0.7);
    }

    100% {
      transform: translateX(0);
      transform: scale(1);
    }
  }

  /* * Animacija za kontkt u footeru */
  @keyframes showFooter {
    0% {
      transform: translateX(-50%);
      opacity: 0;
    }

    100% {
      transform: translateX(0%);
      opacity: 1;
    }
  }

  /* Ulazeci tekst kada se uradi hover na sliku */

  @keyframes move-in {
    0% {
      bottom: -1rem;
    }

    100% {
      bottom: 0;
    }
  }
}