/* ==========================
   RESET I OSNOVNI STILOVI
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root{
  --gold: #d4af37;
  --gold-strong: #f0d98a;
  --bg: #0b0b0b;
  --card-bg: rgba(255,255,255,0.03);
  --glass: rgba(0,0,0,0.78);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  background-image: url('pozadina1.jpg');
  background-attachment: fixed;
  background-size: cover;
  color: #e8e8e8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* fonts */
h2,h3 { font-family: 'Playfair Display', serif; }

.container { width: 90%; max-width: 1200px; margin: auto; }

/* ==========================
   HEADER
========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

/* logo */
.logo-img { width: 120px; height: auto; display: block; }

/* desktop nav buttons */
.main-nav ul { list-style: none; display: flex; gap: 18px; }
.main-nav a {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.main-nav a:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.28); }

/* ==========================
   HAMBURGER & MOBILE OVERLAY MENU
========================== */
.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.12);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hamburger .bar { display:block; width:22px; height:2px; background:var(--gold); margin:4px 0; transition: transform .28s ease, opacity .2s ease; }
.hamburger.is-active .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2){ opacity:0; }
.hamburger.is-active .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,2,2,0.0);
  pointer-events: none;
  opacity: 0;
  transition: background 0.36s ease, opacity 0.28s ease;
}
.mobile-overlay.open {
  background: rgba(0,0,0,0.6);
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav {
  width: 86%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(8,8,8,0.98));
  border-radius: 14px;
  padding: 26px 18px;
  transform: translateY(-18px) scale(.98);
  transition: transform .36s cubic-bezier(.2,.9,.2,1), opacity .3s ease;
  opacity: 0;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}
.mobile-overlay.open .mobile-nav { transform: translateY(0) scale(1); opacity: 1; }

.mobile-nav ul { list-style: none; display:flex; flex-direction: column; gap: 14px; align-items: center; }
.mobile-nav a {
  display:block;
  width:100%;
  text-align:center;
  padding: 12px 14px;
  font-weight:700;
  background: linear-gradient(90deg,var(--gold), var(--gold-strong));
  color: #000;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: .6px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.mobile-nav a:active{ transform: translateY(2px) scale(.995); }

.mobile-close {
  position: absolute;
  top: 22px;
  right: calc(50% - 180px);
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--gold-strong);
  cursor: pointer;
}

/* ensure close button moves inside nav on very small widths */
@media (max-width:420px){
  .mobile-close { right: 14px; }
}

/* ==========================
   HERO SEKCIJA
========================== */
.hero {
  position: relative;
  text-align: center;
  color: var(--gold);
  height: 100vh;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 1;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; touch-action: pan-y; }
.slide {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition: opacity 1.2s cubic-bezier(.2,.9,.2,1), transform 1.2s ease;
  transform: scale(1.02); will-change: opacity, transform;
}
.slide.active { opacity:1; transform: scale(1); }

/* hero content */
.hero-content {
  position: relative; z-index: 2; top: 50%; transform: translateY(-50%); max-width:800px; margin:-40px auto; padding: 0 20px;
  animation: heroFade .9s ease both ;
}
@keyframes heroFade { from{ opacity:0; transform: translateY(-6px);} to{opacity:1;transform:translateY(0);} }

.hero-content h2 { font-size: 3rem; margin-bottom:12px; letter-spacing:2px; text-shadow: 1px 1px 6px rgba(0,0,0,0.6); }
.hero-subtext { font-size: 1.2rem; max-width:700px; margin: 10px auto 0; line-height:1.6; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); }

.hero-btn {
  display: inline-block;
  padding: 14px 26px;
  margin: 15px;
  border: 2px solid #d4af37;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: goldPulse 3.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Efekat sjaja i pulsiranja */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 
      0 0 6px rgba(212, 175, 55, 0.6),
      0 0 12px rgba(255, 215, 0, 0.3);
    border-color: #d4af37;
  }
  50% {
    box-shadow: 
      0 0 14px rgba(255, 215, 0, 0.8),
      0 0 28px rgba(255, 239, 150, 0.4);
    border-color: #ffdd55;
  }
}

/* Hover efekat – zlatni prelaz */
.hero-btn:hover {
  background: linear-gradient(90deg, #d4af37, #ffdd55);
  color: #000;
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.9),
    0 0 24px rgba(255, 239, 150, 0.5);
  transform: translateY(-2px);
}

/* Responsivnost za mobilne */
@media (max-width: 768px) {
  .hero-btn {
    font-size: 0.9rem;
    padding: 12px 22px;
    animation-duration: 4.5s;
  }
}


/* ==========================
   PARAGRAFI / PROIZVODI
========================== */
.container { width:80%; margin:auto; padding:30px 0; display:flex; flex-direction:column; align-items:center; gap:40px; }

.paragraf {
  width:100%;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px;
  background: var(--card-bg); border:1px solid rgba(212,175,55,0.2);
  box-shadow:0 0 14px rgba(212,175,55,0.06); border-radius:14px; padding:18px; color:var(--gold);
  transition: transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease;
  overflow:hidden; will-change: transform, opacity;
  opacity:0; transform: translateX(-18%) scale(.995);
}

/* visible state: slide to center, with stagger using --stagger */
.paragraf.visible {
  opacity:1;
  transform: translateX(0) scale(1);
  transition-duration: .6s;
  transition-delay: var(--stagger, 0ms);
  box-shadow: 0 14px 30px rgba(212,175,55,0.12);
}

.paragraf:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(212,175,55,0.18); }

.paragraf .tekst h3 { font-size:1.8rem; margin-bottom:8px; color:var(--gold); text-align:center; width:100%; }
.paragraf .tekst p { font-size:1.05rem; line-height:1.6; text-align:justify; max-width:700px; margin:0 auto; }

/* layout for larger screens */
@media (min-width: 768px) {
  .paragraf { flex-direction: row; min-height:300px; }
  .paragraf.reverse { flex-direction: row-reverse; }
  .paragraf img, .paragraf .tekst { width:50%; }
  .paragraf img { border-radius:10px; object-fit:cover; max-height:320px; }
}

/* image style */
.paragraf img { width:100%; height:auto; border-radius:10px; transition: transform .28s ease, box-shadow .28s ease; will-change: transform; }
.paragraf img.tapped { transform: scale(.995); }

/* ==========================
   INTRO PARAGRAF
========================== */
.intro-paragraf {
  background: rgba(255,215,0,0.04); border-radius:12px; padding:28px; max-width:900px; margin: 20px auto; color:var(--gold);
  display:flex; flex-direction:column; align-items:center; gap:12px; box-shadow:0 0 20px rgba(212,175,55,0.06);
  opacity:0; transform: translateY(12px);
  transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .45s ease;
}
.intro-paragraf.visible { opacity:1; transform:translateY(0); }
.intro-paragraf h3 { font-size:2rem; color:var(--gold); margin-bottom:8px; text-align:center; }
.intro-paragraf p { font-size:1.15rem; }




.intro-paragraf {
  background: rgba(255,215,0,0.04); border-radius:12px; padding:28px; max-width:900px; margin: 20px auto; color:var(--gold);
  display:flex; flex-direction:column; align-items:center; gap:12px; box-shadow:0 0 20px rgba(212,175,55,0.06);
  opacity:0; transform: translateY(12px);
  transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .45s ease;
}
.intro-paragraf.visible { opacity:1; transform:translateY(0); }
.intro-paragraf h3 { font-size:2rem; color:var(--gold); margin-bottom:8px; text-align:center; }
.intro-paragraf p { font-size:1.15rem; }

/* ==========================
   FOOTER
========================== */
.site-footer {
  background: rgba(0,0,0,0.86); color: var(--gold); text-align:center; padding:28px 10px; border-top:1px solid rgba(212,175,55,0.25);
  font-size:0.95rem; line-height:1.6; box-shadow: 0 -3px 15px rgba(212,175,55,0.08);
}
.footer-icons { display:flex; justify-content:center; gap:22px; flex-wrap:wrap; }
.footer-icons a { color:var(--gold); text-decoration:none; display:flex; align-items:center; gap:8px; font-size:0.95rem; transition: transform .18s ease, color .18s ease; }
.footer-icons a:hover { transform: translateY(-4px); color:#fff; }
.footer-logo-img { width:150px; }

/* back to top */
#backToTop {
  position: fixed; bottom: 18px; right: 18px; background:var(--gold); color:#000; border:none; padding:10px 12px; border-radius:50%;
  cursor:pointer; font-size:1.06rem; display:none; z-index:1400; box-shadow:0 8px 26px rgba(0,0,0,0.3);
}
.tapped { transform: scale(.995); transition: transform .12s ease; }

/* ==========================
   RESPONSIVNOST - MOBILE
========================== */
@media (max-width: 1024px) {
  .hero-content h2 { font-size: 2.6rem; }
  .container { width:88%; }
}

/* mobile */
@media (max-width: 768px) {

  /* show hamburger, hide desktop nav */
  .hamburger { display:flex; }
  .main-nav { display:none; }

  .mobile-overlay { display:flex; }
  .mobile-nav { position: relative; }

  .logo-img { width: 140px; }

  .hero { height: 72vh; padding: 10px 0; }
  .hero-content { top:48%; transform: translateY(-48%); padding: 0 12px; }
  .hero-content h2 { font-size:1.9rem; }
  .hero-subtext { font-size:1rem; max-width:92%; margin:8px auto 0; }

  /* paragrafs -> compact, images on top, slide-in from left */
  .paragraf { min-height: auto; padding: 14px; gap:12px; border-radius:12px; transform: translateX(-22%) scale(.995); }
  .paragraf.visible { transform: translateX(0) scale(1); }
  .paragraf img { max-height:220px; object-fit:cover; }

  .paragraf .tekst h3 { font-size:1.25rem; }
  .paragraf .tekst p { font-size:0.98rem; text-align: left;  
  }

  .container { width:94%; padding:18px 0; gap:20px; }

  .intro-paragraf { padding:18px; margin:14px 0; }

  .footer-icons { flex-direction:column; gap:10px; }

  #backToTop { right:14px; bottom:14px; padding:10px; }

  /* staggered delays: we rely on --stagger set by JS */
  .paragraf { transition-delay: var(--stagger, 0ms); }

  /* make mobile nav links slightly larger and tappable */
  .mobile-nav a { font-size:1.02rem; padding:14px 12px; }

  .hero-btn { padding:14px 20px; font-size:0.95rem; border-radius:10px; }
}

/* small devices */
@media (max-width:420px){
  .logo-img { width:120px; }
  .hero-subtext { font-size:.95rem; }
  .paragraf img { max-height:180px; }
}

.intro-paragraf  {
  position: relative;
  border: 2px solid #d4af37; /* elegantna zlatna */
  border-radius: 16px;
  padding: 18px;
  margin: 15px 0;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  animation: softGoldGlow 3.5s ease-in-out infinite;
  background-color: rgba(0, 0, 0, 0.4); /* ako želiš kontrastni ton iza teksta */
  
}

/* Suptilna pulsirajuća animacija */
@keyframes softGoldGlow {
  0%, 100% {
    box-shadow:
      0 0 9px rgba(212, 175, 55, 0.6),
      0 0 18px rgba(255, 215, 0, 0.4),
      0 0 25px rgba(255, 239, 150, 0.2);
    border-color: #d4af37;
  }
  50% {
    box-shadow:
      0 0 16px rgba(255, 215, 0, 0.8),
      0 0 29px rgba(255, 239, 150, 0.5),
      0 0 42px rgba(255, 255, 200, 0.3);
    border-color: #ffdd55;
  }
}

/* Dodatno — prilagođeno za telefone */
@media (max-width: 768px) {
  .intro-paragraf {
    border-radius: 12px;
    padding: 16px;
    animation-duration: 4.5s; /* sporije na manjem ekranu */
  }
}


.dusek-naslov1 {
  text-align: center;
  padding: 80px 20px 60px; /* gornji, bočni, donji razmak */
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Zlatna svjetlucava linija ispod naslova */
.dusek-naslov1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #ffdd55, #d4af37);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  animation: goldGlow 3s ease-in-out infinite;
  border-radius: 2px;
}

/* Naslov i paragraf */
.dusek-naslov1 h3 {
  font-size: 2rem;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  animation: titlePulse 3s ease-in-out infinite;
}

.dusek-naslov1 p {
  font-size: 1.1rem;
  color: #f5f5f5;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Zlatno pulsiranje */
@keyframes goldGlow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 239, 150, 0.9);
  }
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 239, 150, 0.9);
  }
}

/* Responsivnost za telefone */
@media (max-width: 768px) {
  .dusek-naslov1 {
    padding: 60px 15px 40px;
  }

  .dusek-naslov1 h3 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .dusek-naslov1 p {
    font-size: 1rem;
    max-width: 90%;
  }

  .dusek-naslov1::after {
    width: 80px;
  }
}
