/* === GLOBALNO === */
html {
  scroll-behavior: smooth;
}

/* === HERO OVERLAY === */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 58, 138, 0.45) 100%
  );
}

/* === LUDILO NAVIGATION HOVER (PC) === */
.nav-link {
  position: relative;
  padding: 5px 0;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Linija koja stoji "spremna" levo i uleće */
.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa); /* Gradient Plava */
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy efekat */
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6); /* Neon Glow */
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: #2563eb;
  transform: translateY(-2px); /* Tekst se malo podigne */
  text-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* === HAMBURGER DUGME (MOBILE) - FIXED === */
.hamburger-btn {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  border-radius: 8px;
  transition: background 0.3s;
}

.hamburger-btn:hover {
  background-color: #eff6ff; /* brand-50 */
}

/* Linije hamburgera */
.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #1e3a8a; /* Tamno plava (Navy) da se vidi na belom */
  margin: 2.5px 0; /* Razmak između linija */
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Smooth transformacija */
}

/* Animacija u X (klasa .open se dodaje JS-om) */
.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #ef4444; /* Postaje crven kad se otvori */
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px); /* Sklanja se u levo */
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #ef4444;
}

/* === MOBILE MENU DROP DOWN === */
#mobile-menu {
  transition: all 0.5s ease-in-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-20px);
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* Animacija za dugmiće (Viber/Poziv) */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.animate-ripple::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-color: inherit;
  z-index: -1;
  animation: ripple 2s infinite linear;
}

/* === SCROLL REVEAL ANIMACIJA === */
.reveal {
  opacity: 0;
  transform: translateY(50px); /* Počinje 50px niže */
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect - da se ne pojave sve odjednom nego jedna po jedna */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}

/* === PROIZVOD KARTICA HOVER === */
.product-card {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

/* Slika unutar kartice */
.product-image {
  transition: transform 0.6s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Overlay gradient koji se pojavljuje */
.card-overlay {
  background: linear-gradient(
    to top,
    rgba(30, 58, 138, 0.9) 0%,
    rgba(37, 99, 235, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover Stanja */
.product-card:hover {
  transform: translateY(-10px); /* Cela kartica ide gore */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-image {
  transform: scale(1.1); /* Zoom slike */
}

.product-card:hover .card-overlay {
  opacity: 1; /* Overlay postaje vidljiv */
}

/* Dugme strelica animacija */
.arrow-icon {
  transition: transform 0.3s ease;
}
.product-card:hover .arrow-icon {
  transform: translateX(5px);
}

/* === ZAŠTO NAS SEKCIJA (DARK THEME) === */
.bg-mesh {
  background-color: #0f172a; /* Slate-900 base */
  background-image: radial-gradient(
      at 0% 0%,
      rgba(37, 99, 235, 0.3) 0px,
      transparent 50%
    ),
    radial-gradient(at 100% 100%, rgba(30, 58, 138, 0.3) 0px, transparent 50%);
}

/* Staklene kartice (Glassmorphism) */
.glass-card {
  background: rgba(255, 255, 255, 0.05); /* Veoma prozirno belo */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.5); /* Brand Blue border on hover */
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2); /* Glow effect */
}

/* Animacija Ikonice */
.feature-icon-box {
  transition: all 0.5s ease;
}

.glass-card:hover .feature-icon-box {
  transform: rotateY(180deg); /* 3D rotacija ikonice */
  background-color: #2563eb; /* Postaje plava */
  color: white;
}

/* === KONTAKT FORMA === */
.form-input {
  width: 100%;
  background-color: #f8fafc; /* Slate-50 */
  border: 1px solid #e2e8f0; /* Slate-200 */
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  background-color: white;
  border-color: #3b82f6; /* Brand-500 */
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); /* Plavi glow */
}

/* Floating label effect (opciono, ali ovde koristimo placeholder za jednostavnost) */

/* === FAQ (Harmonika) === */
.faq-answer {
  max-height: 0; /* Po defaultu visina 0 (skriveno) */
  overflow: hidden; /* Sakrij sadržaj koji viri */
  transition: max-height 0.5s ease-in-out, padding 0.5s ease; /* Glatka animacija */
  padding-top: 0;
  padding-bottom: 0;
}

/* Kada element ima klasu 'active', povećaj visinu */
.faq-item.active .faq-answer {
  max-height: 500px; /* Dovoljno veliko da stane sav tekst */
  padding-top: 1rem; /* Vrati padding */
  padding-bottom: 1rem;
}

/* Rotacija ikonice */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* === GALERIJA LIGHTBOX (MODAL) === */
#lightbox {
  backdrop-filter: blur(5px);
}

.gallery-img {
  cursor: zoom-in;
}

/* === FOOTER LINKOVI === */
.footer-link {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #60a5fa; /* brand-400 */
  transform: translateX(8px); /* Pomeranje u desno */
}

/* Strelice koje se pojave na hover */
.footer-link::before {
  content: "›";
  margin-right: 0px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  font-weight: bold;
}

.footer-link:hover::before {
  opacity: 1;
  margin-right: 8px;
  transform: translateX(0);
}

/* === REVIEWS MARQUEE (BESKONAČNA TRAKA) === */
.marquee-container {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 2rem; /* Razmak između kartica */
  width: max-content;
  animation: scroll 40s linear infinite; /* 40s je brzina, povećaj za sporije */
}

/* Kada pređeš mišem, traka staje */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Pomeri se za 50% jer dupliramo sadržaj */
}
