:root {
    --bg: #0f0f0f;
    --text: #e6e6e6;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;

    background: var(--bg);
    color: var(--text);

    font-family: 'Inter', sans-serif;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Fullscreen preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* background during loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader animation */
.loader {
  border: 5px solid #f3f3f3; /* light grey */
  border-top: 5px solid #d3b76d; /* brand color for spinning */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom scroll design */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #d3b76d;
  border-radius: 10px;
  border: 3px solid #1a1a1a;
}

/* Navigacijski menu sa pocetka stranice */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;

    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;

}

.header.scrolled .navbar {
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.logo img {
    max-height: 120px;
    transition: transform 0.25s ease;
}
  
.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
  
.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;

    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #d3b76d; 
    transition: width 0.3s ease;
}
  
.nav-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 20px;
}
  
.social-icons a {
    color: white;
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    color:#d3b76d;
    transform: translateY(-2px);
    opacity: 0.7;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s ease;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        height: calc(100vh - 80px);
        width: 250px;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 40px;
        gap: 25px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .social-icons {
        display: none; /* optional */
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Hero dio stranice */

.hero {
    width: 100%;
    height: 100vh; /* cijeli ekran */
    position: relative;
    overflow: hidden;
}

/* hero slika */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* slika pokriva cijeli div i zadržava proporcije */
    display: block;
}

/* overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.15);
}

/* tekst unutar hero */
.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}
.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.menu-intro {
  text-align: center;
  padding: 80px 20px; /* razmak odozgo i odozdo */
  background: rgba(0,0,0,0.2);
}

.menu-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block; /* važno za underline efekt */
  position: relative;
}

/* Custom underline */
.menu-intro h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px; /* udaljenost linije od teksta */
  width: 100%;
  height: 5px; /* debljina linije */
  background-color: #d3b76d; /* tvoja boja */
}

/* Kratak opis ispod */
.menu-intro p {
  font-size: 1.2rem;
  color: #555; /* neutralna boja za tekst */
  margin-top: 10px;
}

.menu-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* za mobilne uređaje da se spuste u kolone */
    margin-top: 50px; /* razmak između linije i slika */
    margin-bottom: 30px; /* razmak između slika i teksta ispod */
}

/* Kartica jela */
.menu-card {
    background: rgba(0,0,0,0.2); /* svjetliji pravokutnik */
    border-radius: 10px;
    overflow: hidden;
    width: 512px;
    height: 512px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover efekt za karticu */
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Tekst ispod slika */
.menu-items a {
    font-size: 1.2rem;
    color: white;
    width: 100%;
    text-align: center;
    margin-top: 20px; /* razmak odozdo od slika */
    text-decoration: none;
}

.image {
    width: 100%;
    overflow: hidden;
}

.image .featured-img {
    width: 100%;       /* slika pokriva cijelu širinu ekrana */
    height: 450px;     /* visina slike */
    object-fit: cover; /* pokriva prostor, zadržava proporcije i cropa višak */
    object-position: center; /* centrirana, važno kod cropanja */
    display: block;
}

.contact {
  padding: 80px 20px;
  background: rgba(0,0,0,0.2);
}

.contact h2 {
  text-align: center; /* centriran tekst */
  font-size: 2.5rem;
  margin-bottom: 20px; /* razmak između teksta i linije */
  position: relative;
  display: block; /* da linija bude iste širine kao tekst */
}

/* Horizontalna linija ispod h2 */
.contact h2::after {
  content: '';
  display: block;
  width: 120px; /* širina linije */
  height: 5px; /* debljina linije */
  background-color: #d3b76d; /* tvoja boja */
  margin: 15px auto 10px auto; /* razmak odozdo od teksta i centrirana linija */
}

/* Razmak između linije i kontakt-wrappera */
.contact-wrapper {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px; /* razmak odozgo od linije */
}

/* Lijeva strana: ikonice i tekst */
.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centrirano unutar lijevog dijela */
  gap: 30px;
}

/* Pojedinačna ikonica + tekst */
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 60px;
  height: 60px;
}

/* Desna strana: Google Maps */
.contact-map {
  flex: 2 1 500px;
  border-radius: 10px;
  overflow: hidden;
}

.map-iframe {
  width: 70%;
  height: 400px;
  border: 0;
}

.reviews {
  padding: 80px 20px;
  background: rgba(0,0,0,0.2);
  text-align: center;
}

.reviews h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.reviews h2::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  background-color: #d3b76d;
  margin: 15px auto 40px auto;
}

/* Wrapper za 3 reviewa */
.reviews-wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch; /* svi boxovi iste visine */
}

/* Pojedinačna recenzija */
.review-card {
  position: relative;
  flex: 0 1 300px;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pozadinski blok */
.review-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.05); /* svjetlija boja */
  border-radius: 10px;
  z-index: 0;
}

/* Tekst iznad pozadine */
.review-card p,
.review-card h4 {
  position: relative;
  z-index: 1;
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .review-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .review-card {
    flex: 1 1 100%;
  }
}

.footer {
  background-color: #111;
  color: #f0f0f0;
  padding: 60px 20px 20px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center; /* sve tri kolone vertikalno centrirane */
}

/* Logo */
.footer-logo img {
  width: 120px;
}

/* Kontakt info (sredina) */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-contact .contact-item i {
  color: #d3b76d;
}

/* Društvene mreže */
.footer-social h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social .social-icons a {
  color: #f0f0f0;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-social .social-icons a:hover {
  color: #d3b76d;
  transform: scale(1.2);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
  }
}
