:root {
  /* Dark mode boje */
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  
  /* IL-MA Brend crvena */
  --accent: #CC0000;      
  --accent-dark: #990000; 
  --accent-glow: rgba(204, 0, 0, 0.4);
  
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}
a { text-decoration: none; transition: color 0.3s; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.bg-darker { background: var(--bg-darker); }

/* ==========================================
   GUMBI
   ========================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2rem; border-radius: 4px; font-weight: 700;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.3s ease;
}
.btn-primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-2px); box-shadow: 0 0 25px var(--accent-glow);
}
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff;
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(204, 0, 0, 0.05);
}

/* ==========================================
   HEADER & NAVIGACIJA
   ========================================== */
header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent); padding: 0.5rem 0;
}
.nav.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: 8px; }
.menu { display: flex; align-items: center; gap: 0.7rem; }
.menu.left { justify-content: flex-end; margin-right: 8px; }
.menu.right { justify-content: flex-start; margin-left: 8px; }
.menu a { padding: 8px 12px; border-radius: 4px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; transition: 0.3s; }
.menu a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

/* Logo - Ispravljena verzija s bijelom pozadinom */
/* Logo - povećan, bez utjecaja na navigaciju */
.logo { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  /* Dodajemo pozicioniranje da transformacija radi glatko */
  position: relative; 
}

.logo img { 
  height: 54px; /* Zadržavamo baznu visinu da navigacija ne mrda */
  
  /* Povećavamo sliku vizualno */
  transform: scale(1.4); /* 1.0 je normalno, 1.8 je 80% veće */
  
  /* Osiguravamo da se povećava iz središta */
  transform-origin: center; 
}
/* Lang Dropdown */
.lang { position: relative; }
.lang button { display: flex; align-items: center; gap: 0.3rem; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.2); padding: 6px 10px; border-radius: 4px; cursor: pointer; font-family: inherit; font-weight: 600;}
.lang .list { position: absolute; right: 0; margin-top: 6px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); overflow: hidden; display: none; min-width: 120px;}
.lang .list a { display: block; padding: 10px 12px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
.lang .list a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

/* Mobile Menu */
.hamburger { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 6px 12px; border-radius: 4px; font-size: 1.2rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; background: #000; padding: 20px; border-bottom: 1px solid var(--accent); }
.mobile-menu a { padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); text-align: center; color: var(--text-main); font-weight: 600; text-transform: uppercase;}
.mobile-menu .mobile-lang { padding-top: 10px; text-align: center; }
.mobile-menu .mobile-lang a { border: none; display: inline-block; padding: 5px 10px; color: var(--accent); }

/* ==========================================
   HERO SEKCIJA
   ========================================== */
.hero {
  position: relative; padding: 88px 0 84px; text-align: center;
  background-image: url("gallery/naslovna2.webp"); background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.8); z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 920px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: rgba(204,0,0,0.1); border: 1px solid var(--accent); border-radius: 50px; font-size: 0.85rem; text-transform: uppercase; font-weight: 800; margin-bottom: 1.5rem; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; margin-bottom: 14px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px var(--white); }
.hero-title-line2 { color: var(--white); -webkit-text-stroke: 0; display: block; margin-top: 6px; }
.hero-subtitle { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted); max-width: 70ch; margin: 0 auto 28px; }
.hero-actions { justify-content: center; }

/* OPĆENITE SEKCIJE */
section { padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.section-header { text-align: center; margin-bottom: 3rem; }
h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); }
.section-intro { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ==========================================
   USLUGE (INTERAKTIVNI TABOVI - NOVO)
   ========================================== */
.gradient-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(204,0,0,0) 0%, rgba(204,0,0,0.8) 50%, rgba(204,0,0,0) 100%);
  margin-bottom: 2.5rem;
}

.interactive-services {
  width: 100%;
}

.service-tabs-wrapper {
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 3rem;
  padding-bottom: 0.5rem;
  /* Sakrij scrollbar */
  scrollbar-width: none;
}
.service-tabs-wrapper::-webkit-scrollbar { display: none; }

.service-tabs {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  width: max-content;
  margin: 0 auto;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active {
  color: var(--white);
  border-color: var(--accent);
  box-shadow: inset 0 0 15px rgba(204, 0, 0, 0.15);
}

.service-panels {
  position: relative;
  min-height: 350px;
}

.service-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeIn 0.4s ease-in-out;
}

.service-panel.active {
  display: grid;
}

.panel-text h3 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.panel-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.panel-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  object-fit: cover;
  aspect-ratio: 16/10;
  border: 1px solid rgba(255,255,255,0.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   PRIJE I POSLIJE SLIDER
   ========================================== */
.before-after-slider { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16/9; margin: 0 auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; user-select: none; }
.before-after-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: grayscale(20%); }
.before-after-slider .after-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; clip-path: inset(0 0 0 50%); }
.before-after-slider .after-image img { filter: grayscale(0%); }
.before-after-slider .slider-handle { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: var(--accent); cursor: ew-resize; transform: translateX(-50%); z-index: 10; box-shadow: 0 0 15px var(--accent-glow); }
.before-after-slider .slider-handle::before, .before-after-slider .slider-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: var(--accent); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: bold;}
.before-after-slider .slider-handle::before { content: '◀'; margin-left: -20px; }
.before-after-slider .slider-handle::after { content: '▶'; margin-left: 20px; }

/* ==========================================
   O NAMA
   ========================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-box { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 2rem; color: var(--text-muted); }
.about-box ul { list-style: none; }
.about-box li { margin-bottom: 12px; position: relative; padding-left: 1.5rem; }
.about-box li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ==========================================
   GALERIJA (sa + gumbom)
   ========================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.gallery-grid > img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); filter: grayscale(40%); transition: 0.3s; cursor: pointer; }
.gallery-grid > img:hover { filter: grayscale(0%); transform: scale(1.02); }
.plus-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed rgba(255,255,255,0.2); border-radius: 8px; height: 250px; background: rgba(255,255,255,0.02); font-size: 42px; font-weight: 800; color: var(--accent); cursor: pointer; transition: 0.3s; }
.plus-tile:hover { background: rgba(204,0,0,0.05); border-color: var(--accent); }
.plus-tile span { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; }
.gallery-grid .more { display: none; }
.gallery-grid.expanded .more { display: contents; }
.gallery-grid.expanded .more img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); filter: grayscale(40%); transition: 0.3s; }
.gallery-grid.expanded .more img:hover { filter: grayscale(0%); transform: scale(1.02); }

/* ==========================================
   KONTAKT FORMA & MAPA
   ========================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-box { background: linear-gradient(145deg, #151515, #0f0f0f); padding: 2.5rem; border-radius: 8px; border: 1px solid rgba(204, 0, 0, 0.2); }
.glass-form label { display: block; margin: 0.8rem 0 0.3rem; font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.glass-form input, .glass-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5); color: var(--white); border-radius: 4px; font-size: 1rem; font-family: inherit; }
.glass-form input:focus, .glass-form textarea:focus { outline: none; border-color: var(--accent); }
.glass-form textarea { min-height: 140px; }
.address-box { padding: 15px; border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; background: rgba(0,0,0,0.3); color: var(--text-muted); }
.map-container iframe { width: 100%; height: 300px; border: 0; border-radius: 4px; margin-top: 10px; filter: invert(90%) hue-rotate(180deg); /* Dark mode mapa */ }

/* ==========================================
   FOOTER
   ========================================== */
footer { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.05); background: #000; color: var(--text-muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ==========================================
   RESPONSIVE (MOBITEL / TABLET)
   ========================================== */
@media (max-width: 1024px) {
  .nav.split { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .menu.left, .menu.right, .lang { display: none; }
  .hamburger { display: inline-block; margin-left: auto; }
  
  /* Nove kartice usluga na mobitelu */
  .service-panel { grid-template-columns: 1fr; gap: 2rem; }
  .service-tabs { margin: 0; padding: 0 1rem; }
  .panel-text h3 { font-size: 1.8rem; }
  
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid > img, .plus-tile, .gallery-grid.expanded .more img { height: 180px; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 7vw, 40px); }
}

.mobile-scroll-hint {
  display: none; /* Skriveno na desktopu */
  text-align: center;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  font-weight: 700;
  animation: swipeAnim 2s infinite;
}

@keyframes swipeAnim {
  0% { opacity: 0.5; transform: translateX(-3px); }
  50% { opacity: 1; transform: translateX(3px); }
  100% { opacity: 0.5; transform: translateX(-3px); }
}

/* Prikazujemo indikator samo kada je ekran uži od 900px */
@media (max-width: 900px) {
  .mobile-scroll-hint {
    display: block;
  }
}