/* 3D MERENJE — Stilovi
   =====================================================
   Sve klase su opisane na srpskom ispod sekcijskog komentara.
   Paleta: --or1/#C32223 (tamno crvena), --or2/#E42429 (akcenat),
           --or3/#EC6769 (svetlo roza), --dark/#111009 (pozadina)
   Font: Poppins (300/400/500/600/700)
   ===================================================== */

/* ─── RESET — uklanjanje podrazumevanih margina i box-model ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── CSS PROMENLJIVE — boje, font, razmak ─── */
:root {
  --or1: #C32223;   /* tamno crvena */
  --or2: #E42429;   /* srednje crvena, primarni akcenat */
  --or3: #EC6769;   /* svetlo roze-crvena */
  --dark: #111009;  /* osnovna tamna pozadina */
  --dark2: #181510; /* malo svetlija pozadina, za naizmenične sekcije */
  --dark3: #1f1b13; /* pozadina kartica i elemenata */
  --line: rgba(228,36,41,0.12);   /* suptilna linija/ivica */
  --line2: rgba(228,36,41,0.25);  /* malo vidljivija linija */
  --text: #f5ede0;    /* glavni tekst */
  --text2: #c4b49a;   /* sekundarni tekst */
  --text3: #8a7a64;   /* treći nivo teksta, labele */
  --g: clamp(16px, 4vw, 40px);  /* horizontalni padding kontejnera */
  --ff: 'Poppins', sans-serif;
}

/* ─── OSNOVA DOKUMENTA ─── */
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--text); font-family: var(--ff); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── LAYOUT — centralni kontejner i razmak između sekcija ─── */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--g); }
section { padding: 96px 0; }

/* ─── POMOĆNE KLASE ─── */

/* Crveni naglašeni tekst */
.accent { color: var(--or2); }

/* Mala gornja etiketa ispred naslova sekcije (npr. "USLUGE · 3DMERENJE") */
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text3); display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--or2), transparent); }

/* Animacija pojave pri skrolovanju — elementi kreću nevidljivi, JS dodaje .visible */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Kašnjenja za uzastopne elemente unutar sekcije */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* Hero elementi se animiraju CSS keyframe-om direktno — ne čekaju JS IntersectionObserver.
   Bez ovoga, na prvom učitavanju na mobilnom uređaju (incognito, bez keša) hero sadržaj
   bi ostao nevidljiv dok se JS ne izvrši. */
@keyframes hero-reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
#home .reveal          { animation: hero-reveal .6s cubic-bezier(.16,1,.3,1) both; }
#home .reveal.d1       { animation-delay: .08s; }
#home .reveal.d2       { animation-delay: .16s; }
#home .reveal.d3       { animation-delay: .24s; }
#home .reveal.d4       { animation-delay: .32s; }

/* ─── DUGMAD ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; font-family: var(--ff); font-size: 14px; font-weight: 600; letter-spacing: 0.03em; border-radius: 3px; cursor: pointer; transition: all .18s; border: none; white-space: nowrap; }

/* Puno crveno dugme */
.btn-primary { background: linear-gradient(135deg, var(--or1), var(--or2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(228,36,41,.35); }

/* Providno dugme sa ivicom */
.btn-ghost { border: 1.5px solid var(--line2); color: var(--text2); background: transparent; }
.btn-ghost:hover { border-color: var(--or2); color: var(--or2); }

/* Strelica unutar dugmeta pomera se desno na hover */
.btn-arrow { transition: transform .18s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ─── CHIP — mala labela/tag (kategorija, status) ─── */
.chip { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line2); color: var(--text3); background: rgba(228,36,41,.04); border-radius: 2px; }

/* Chip sa animiranom crvenom tačkicom — označava aktivan/live status */
.chip-live { border-color: var(--or2); color: var(--or2); padding-left: 20px; position: relative; }
.chip-live::before { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--or2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228,36,41,.5); } 50% { box-shadow: 0 0 0 5px rgba(228,36,41,0); } }

/* ─── ZAGLAVLJE SEKCIJE — naslov + opis u dve kolone ─── */
.section-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-header.centered { grid-template-columns: 1fr; }

/* Red sa etiketom i linijom iznad naslova sekcije */
.section-label-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-label { font-size: 11px; letter-spacing: .14em; color: var(--or2); font-weight: 600; font-family: 'Courier New', monospace; }
.section-line { width: 32px; height: 1px; background: var(--line2); display: inline-block; }

/* Veliki naslov sekcije */
.section-title { font-size: clamp(32px, 4vw, 58px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }

/* Uvodni paragraf ispod naslova */
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text2); line-height: 1.7; font-weight: 300; }

/* Naizmenična pozadina sekcija */
.section-alt { background: var(--dark2); }

/* ─── MREŽE SADRŽAJA — grid sistemi sa tankim razmacima ─── */
.grid { display: grid; gap: 1px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.05); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Jedna ćelija unutar mreže */
.grid-cell { background: var(--dark); padding: 28px; min-height: 200px; display: flex; flex-direction: column; gap: 14px; }
.grid-cell h3 { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--text); }
.grid-cell p { font-size: 14px; color: var(--text2); line-height: 1.65; margin-top: auto; }

/* ─── HEADER — fiksirana navigaciona traka na vrhu ─── */
#hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 76px; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }

/* Pozadina i blur efekt se aktiviraju tek kada korisnik počne da skroluje */
#hdr.scrolled { background: rgba(17,16,9,.92); border-bottom-color: var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header-nav { display: flex; gap: 28px; }
.header-nav a { font-size: 13px; font-weight: 500; color: var(--text2); transition: color .15s; padding: 4px 0; }
.header-nav a:hover { color: var(--or2); }

/* Hamburger ikona za mobilni meni (3 horizontalne linije → X kada je otvoren) */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .22s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobilni padajući meni — sakriven dok korisnik ne klikne hamburger */
.mobile-nav { display: none; flex-direction: column; background: rgba(17,16,9,.98); border-top: 1px solid var(--line); backdrop-filter: blur(20px); }
.mobile-nav.open { display: flex; }
.mobile-link { font-size: 15px; font-weight: 500; color: var(--text2); padding: 16px var(--g); border-bottom: 1px solid rgba(255,255,255,.04); transition: color .15s; }
.mobile-link:hover { color: var(--or2); }

/* Kontakt dugme u mobilnom meniju */
.mobile-cta { color: var(--or2); margin: 12px var(--g) 16px; border: 1.5px solid rgba(228,36,41,.4); text-align: center; padding: 13px; border-radius: 3px; }

/* ─── HERO SEKCIJA ─── */
#home { min-height: 100vh; min-height: 100svh; padding-top: 140px; padding-bottom: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: var(--dark); }

/* Tačkasta mreža u pozadini hero sekcije sa radijal-gradijent maskom */
.hero-bg-dots { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(228,36,41,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(228,36,41,.04) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%); }

/* Crvenkasti svetlosni efekat u gornjem desnom uglu */
.hero-bg-glow { position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(ellipse at center, rgba(228,36,41,.07) 0%, transparent 65%); pointer-events: none; }

/* Dve kolone: levi tekst + desna vizualizacija uređaja */
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }

/* Veliki naslov u hero-u */
.hero-title { font-size: clamp(44px, 6.5vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: .96; margin-bottom: 28px; }
.hero-title em { font-style: italic; font-weight: 300; color: var(--or2); }

/* Tri statistike ispod naslova (±1mm, 360°, 1 osoba) */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }
.stat-item { padding: 0 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-item:first-child { padding-left: 0; align-items: flex-start; text-align: left; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.025em; color: var(--text); line-height: 1; }
.stat-desc { font-size: 11px; color: var(--text3); margin-top: 6px; font-weight: 500; letter-spacing: .04em; }

/* ── Hero vizualizacija uređaja ── */

/* Kvadratna kutija sa tamnom pozadinom, čuva aspect-ratio.
   isolation:isolate sprečava mix-blend-mode dece da "probije" van ove kutije. */
.hero-box { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at center, #1e1608 0%, #0c0a05 70%); }

/* Unutrašnja mreža u hero kutiji */
.hero-box-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(228,36,41,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(228,36,41,.05) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%); }

/* Svetlosni odsjaj iza slike uređaja */
.hero-box-glow { position: absolute; top: 40%; left: 50%; width: 70%; height: 60%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(228,36,41,.2) 0%, transparent 65%); filter: blur(24px); pointer-events: none; }

/* Omotač (wrapper) oko slike uređaja — ZAŠTO POSTOJI:
   Ako bi mix-blend-mode:screen i transform:translate(-50%,-50%) bili direktno na <img> tagu,
   pre nego što se slika učita img.height=0, pa translateY(-50% od 0px) = 0px → slika se
   pozicionira gornjim rubom na sredinu kutije (sabijeno dole). Rešenje: <div> uvek dobija
   tačne dimenzije iz aspect-ratio:1 odmah pri prvom renderu, a <img> popunjava ceo div.
   mix-blend-mode je na stage-u, ne na img-u, jer transform na stage-u kreira novi
   stacking context — blend mode na img-u unutra bi se primenjivao samo na praznu pozadinu
   stage-a, ne na hero-box pozadinu iza njega.
   radial-gradient maska blago skriva ivice slike (fallback za iOS Safari). */
.hero-img-stage { position: absolute; top: 50%; left: 50%; width: 90%; max-width: 480px; aspect-ratio: 1; overflow: hidden; transform: translate(-50%, -50%); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse closest-side at center, black 60%, transparent 100%); mask-image: radial-gradient(ellipse closest-side at center, black 60%, transparent 100%); }

/* Slika uređaja — popunjava ceo stage, plutajuća animacija */
.hero-img { width: 100%; height: 100%; object-fit: contain; filter: contrast(1.08) brightness(1.1); animation: hero-float 6s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5%); } }

/* Horizontalna linija skeniranja koja se kreće gore-dole */
.hero-scan { position: absolute; left: 8%; right: 8%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--or2) 40%, var(--or3) 60%, transparent); box-shadow: 0 0 16px rgba(228,36,41,.8); animation: scan 5s linear infinite; }
@keyframes scan { 0% { top: -2%; opacity: 0; } 5% { opacity: .9; } 95% { opacity: .9; } 100% { top: 102%; opacity: 0; } }

/* Infopaneli unutar hero kutije (gore-levo, gore-desno, dole-levo) */
.hero-info-tl { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; }
.hero-info-tr { position: absolute; top: 14px; right: 14px; text-align: right; }
.hero-info-bl { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 18px; }
.hero-spec-label { font-size: 9px; color: var(--text3); font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: .08em; }
.hero-spec-value { font-size: 12px; color: var(--text); font-family: 'Courier New', monospace; font-weight: 600; }

/* Ugaoni dekorativni elementi (bracket-style) */
.corner { position: absolute; width: 14px; height: 14px; opacity: .7; }
.corner-tl { top: 8px; left: 8px; border-top: 1px solid var(--or2); border-left: 1px solid var(--or2); }
.corner-tr { top: 8px; right: 8px; border-top: 1px solid var(--or2); border-right: 1px solid var(--or2); }
.corner-bl { bottom: 8px; left: 8px; border-bottom: 1px solid var(--or2); border-left: 1px solid var(--or2); }
.corner-br { bottom: 8px; right: 8px; border-bottom: 1px solid var(--or2); border-right: 1px solid var(--or2); }

/* ─── TICKER — beskonačni horizontalni tekst ispod hero-a ─── */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 56px; }
.ticker-track { display: flex; width: max-content; animation: ticker-move 32s linear infinite; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Animacija staje na hover — korisnik može da pročita sadržaj */
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--text3); white-space: nowrap; }
.ticker-sep { color: var(--or2); margin: 0 18px; font-weight: 300; }

/* ─── LOGO BANER — Flexijet logotip prikazan kao pozadinski watermark ─── */
.logo-banner { width: 100%; background: var(--dark); border-bottom: 1px solid var(--line); padding: 40px var(--g); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.logo-banner-img { width: min(70vw, 820px); height: auto; opacity: 0.1; mix-blend-mode: screen; filter: grayscale(100%) brightness(2.5); display: block; pointer-events: none; user-select: none; }

/* ─── FOTO TRAKA — puna širina fotografija između sekcija ─── */
.photo-strip { background: #000; line-height: 0; }
.photo-strip img { width: 100%; height: auto; display: block; }

/* ─── SEKCIJA UREĐAJA — prikaz Flexijet hardvera i specifikacija ─── */
.device-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.device-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; }

/* Mreža sa tehničkim specifikacijama uređaja */
.device-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.device-info-grid > div { background: var(--dark2); padding: 16px 18px; }

/* ─── USLUGE — tri kartice sa slikom, naslovom i opisom ─── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--dark3); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 18px; }

/* Gornji deo kartice sa fotografijom — overlay gradijent štiti čitljivost teksta */
.service-img { height: 220px; overflow: hidden; position: relative; background: #000; border: 1px solid var(--line); }
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.88); }
.service-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(17,16,9,.7) 100%); }

.service-title { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.service-desc { font-size: 15px; color: var(--text2); line-height: 1.65; }

/* ─── PROJEKTI CTA — pozivni blok sa linkom ka svim projektima ─── */
.projects-cta { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; padding: 48px 32px; text-align: center; border: 1px solid var(--line); background: var(--dark3); overflow: hidden; }
.projects-cta-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(228,36,41,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(228,36,41,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%); }
.projects-cta-title { font-size: clamp(30px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 16px 0 18px; }

/* ─── PROCES — horizontalni koraci sa brojevima i linijom konekcije ─── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
/* Horizontalna linija koja prolazi kroz sredinu ikona koraka */
.steps::before { content: ''; position: absolute; top: 32px; left: 0; right: 0; height: 1px; background: var(--line); }

/* Kvadratna ikona sa brojem koraka */
.step-icon { width: 64px; height: 64px; border: 1px solid var(--line2); background: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--or2); margin-bottom: 20px; position: relative; z-index: 1; }
.step-time { font-size: 11px; color: var(--text3); font-family: 'Courier New', monospace; }
.step h4 { font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; margin-bottom: 8px; color: var(--text); }
.step p { font-size: 15px; color: var(--text2); line-height: 1.65; }

/* ─── TEHNOLOGIJA — foto + specifikacije Flexijet uređaja ─── */
.tech-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }

/* Visoka fotografija sa overlay vinjeting efektom */
.tech-photo { position: relative; background: #000; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4/5; }
.tech-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.9); object-position: center 20%; }
.tech-photo-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(17,16,9,.55) 100%); }

/* Mreža tehničkih specifikacija (preciznost, domet, težina...) */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-item { background: var(--dark2); padding: 18px; }
.spec-label { font-size: 10px; font-family: 'Courier New', monospace; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.spec-value { font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; color: var(--or2); }
.spec-note { font-size: 11px; color: var(--text2); margin-top: 3px; }

/* ─── FAQ — harmonika (accordion) pitanja i odgovora ─── */
.faq-item { border-bottom: 1px solid var(--line); }

/* Dugme pitanja — cela širina, klik otvara/zatvara odgovor */
.faq-toggle { width: 100%; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; text-align: left; color: var(--text); }
.faq-q { display: flex; gap: 18px; align-items: center; flex: 1; }
.faq-num { font-family: 'Courier New', monospace; color: var(--or2); font-size: 11px; flex-shrink: 0; font-weight: 700; }
.faq-question { font-size: clamp(15px, 1.8vw, 20px); font-weight: 500; letter-spacing: -.01em; color: var(--text); }

/* Ikona + rotira se 45° kada je pitanje otvoreno */
.faq-icon { color: var(--or2); font-size: 22px; transition: transform .22s; flex-shrink: 0; margin-left: 12px; font-weight: 300; }
.faq-icon.open { transform: rotate(45deg); }

/* Telo odgovora — sakriveno, otvara se max-height tranzicijom */
.faq-body { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-body.open { max-height: 280px; }
.faq-answer { padding: 0 0 24px 36px; color: var(--text2); line-height: 1.7; max-width: 68ch; font-size: 16px; }

/* ─── O NAMA ─── */
.about-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; margin-bottom: 56px; }

/* Četiri statistike kompanije u mreži */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.about-stat { background: var(--dark2); padding: 24px; }
.about-stat-value { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; color: var(--or2); margin-bottom: 6px; }
.about-stat-label { font-size: 12px; color: var(--text2); font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: .08em; }

/* ─── KONTAKT ─── */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 10px; font-family: 'Courier New', monospace; color: var(--text3); text-transform: uppercase; letter-spacing: .12em; }
.contact-value { font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; color: var(--text); }

/* Veliki naslov kontakt sekcije */
.contact-title { font-size: clamp(38px, 7vw, 110px); font-weight: 700; letter-spacing: -.04em; line-height: 1.15; margin: 20px 0 28px; }
.contact-title em { color: var(--or2); font-style: italic; font-weight: 300; }

/* ─── FOOTER ─── */
footer { position: relative; overflow: hidden; background: var(--dark2); border-top: 1px solid var(--line); padding: 56px 0 28px; }

/* Četiri kolone: logo+opis, navigacija, kontakt, legal */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer-col-title { font-size: 10px; font-family: 'Courier New', monospace; color: var(--text3); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }

/* Vertikalna lista linkova u footer kolonama */
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: var(--text2); transition: color .15s; }
.footer-nav a:hover { color: var(--or2); }

/* Donja traka footera sa copyright i pravnim linkovima */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom span, .footer-bottom a { font-size: 12px; color: var(--text3); font-family: 'Courier New', monospace; }
.footer-bottom a:hover { color: var(--or2); }

/* Flexijet watermark logo u pozadini footera */
.footer-wm { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); width: min(70vw, 820px); height: auto; opacity: 0.07; mix-blend-mode: screen; filter: grayscale(100%) brightness(2.5); pointer-events: none; z-index: 0; display: block; }

/* ─── RESPONSIVE — prilagođavanje za manje ekrane ─── */

/* Tablet i manji laptop (do 1024px) — hero prelazi u jednu kolonu */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 0; }
  /* Hero vizual se širi celom širinom (negativni padding kompenzuje kontejner) */
  .hero-visual { margin: 24px calc(-1 * var(--g)) 0; width: calc(100% + 2 * var(--g)); }
  .hero-box { aspect-ratio: 4/3; max-height: 380px; }
  .hero-img-stage { width: 80%; }
  .tech-wrap { grid-template-columns: 1fr; gap: 32px; }
  .tech-photo { aspect-ratio: 16/7; }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* Tablet (do 900px) — hamburger meni, smanjene mreže */
@media (max-width: 900px) {
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .section-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps::before { display: none; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobilni (do 768px) — device sekcija prelazi u jednu kolonu */
@media (max-width: 768px) {
  .footer-wm { bottom: 10%; width: min(80vw, 340px); }
  .device-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .device-grid { grid-template-columns: 1fr; }
}

/* Mali mobilni (do 600px) — smanjuju se fontovi i padding */
@media (max-width: 600px) {
  #home { padding-top: 88px; min-height: auto; }
  .section-title { font-size: 30px; }
  .hero-title { font-size: clamp(32px, 9vw, 40px); }
  .stat-item { padding: 0 8px; }
  .stat-item:first-child { padding-left: 8px; align-items: center; text-align: center; }
  .stat-num { font-size: 21px; }
  .stat-desc { font-size: 9px; }
  .lead { font-size: 15px; }
  .hero-stats { margin-top: 24px; padding-top: 20px; }
  .grid-cell { padding: 18px; min-height: auto; }
  .steps { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-cta { min-height: 260px; padding: 32px 16px; }
  .contact-title { font-size: 36px; }
  .ticker-item { font-size: 17px; }
  .logo-banner-img { width: min(80vw, 340px); }
  section { padding: 64px 0; }
}

/* Veoma mali mobilni (do 340px) — footer prelazi u jednu kolonu */
@media (max-width: 340px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Veoma mali mobilni (do 400px) — dodatno smanjivanje */
@media (max-width: 400px) {
  .hero-title { font-size: 30px; }
  .stat-num { font-size: 18px; }
  .stat-desc { font-size: 8px; }
  .stat-item { padding: 0 4px; }
  .btn { padding: 12px 16px; font-size: 13px; }
  .hero-box { aspect-ratio: 3/2; max-height: 320px; }
}
