body {
  margin: 0;
  padding: 0;
  text-align: center;
}

.meni-hero {
  width: 100%;
  height: 60vh;
  background-image: url('radgost_slike/image00046.jpeg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.meni-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.meni-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(35px, 7vw, 72px);
  color: white;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  margin: 0;
  padding: 0 5vw;
  text-align: center;
}

.menu-image img {
  width: 50%;        
  max-width: 700px;  
  height: auto;
  box-shadow: none;
  border: none;
 
}
.menu-image img {
  max-width: 100%;
  height: auto;
  box-shadow: none;
  border: none;
}

.menu-image img {
  width: 50%; 
}

@media (max-width: 768px) {
  .menu-image img {
    width: 95%;
  }
  .meni-hero {
    height: 35vh;           /* Smaller height for mobile */
    min-height: 180px;      /* Ensures it's not too small */
    background-position: center center;
  }
}

.scroll-block {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  
}

.main-footer {
  left: 0;
  width: 100%;
  background-color: #7b552c;
  color: white;
  text-align: center;
  padding: 20px 10px;
  z-index: 1000;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-social a {
  color: #ffffff;
  font-size: 1em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: #e8c7a1;
  transform: scale(1.2);
}

.footer-logo {
  height: 80px;           
  overflow: hidden;       
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  height: 160px;
  width: auto;
}

.footer-credit {
  font-size: 0.85em;
  color: #ffffff;
  margin-top: 5px;
}



/* Fix za mobilne uređaje koji ne podržavaju background-attachment: fixed */
@media (max-width: 768px) {
  .scroll-block {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    height: 300px;
  }
}

.parallax-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translateY(0);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 2em;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}


/* Novi parallax efekat preko ::before, kompatibilan sa mobilnim uređajima */
.scroll-block {
  position: relative;
  height: 100vh; /* zauzima cijeli ekran */
  overflow: hidden;
  z-index: 0;
  background: none !important;
}

.scroll-block::before {
  content: "";
  position: absolute;
  top: -10%;           /* pomjeri sliku naviše radi efekta prelaska */
  left: 0;
  width: 100%;
  height: 120%;         /* može ostati ovako ako hoćeš da se slika pomjera */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
  transform: translateY(var(--scroll-offset, 0));
  transition: transform 0.1s linear;
}
/* Pozadinske slike po sekcijama (klase dodate u HTML) */
.bg-predjelo::before { background-image: url('img_meni/predjelo.jpeg'); }
.bg-pasta::before    { background-image: url('img_meni/pasta.jpeg'); }
.bg-biftek::before   { background-image: url('img_meni/biftek.jpeg'); }
.bg-burger::before   { background-image: url('img_meni/burger.jpeg'); }
.bg-rostilj::before  { background-image: url('img_meni/rostilj.jpeg'); }
.bg-riba::before     { background-image: url('img_meni/riba.jpeg'); }
.bg-pica::before     { background-image: url('img_meni/pica.jpeg'); }
.bg-kolac::before    { background-image: url('img_meni/kolac.jpeg'); }

/* Visina za mobilne uređaje */
/* Visina za mobilne uređaje */
@media (max-width: 768px) {
  .scroll-block {
    height: 700px;
  }
}


@media (max-width: 768px) {
  .scroll-block::before {
    position: absolute;
    height: 120%;
  }
}