/* --- CSS Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #167bc1; 
    --primary-dark: #111;
    --primary-dark-blue: #0b3b5e; 
    --primary-light: #fff;
    --nav-color: #222;
    --heading-color: #fff;
    --text-color: #e0e0e0;
    --overlay-color: rgba(0, 0, 0, 0.65);
    --hover-bg: #12639e;
    --transition-base: all 0.3s ease-in-out;
}

html, body {
    width: 100%;
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--nav-color);
    background-color: var(--primary-dark);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px; 
    width: 100%; 
}

/* --- POMOĆNE KLASE --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.relative { position: relative; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-10 { z-index: 10; }
.text-white { color: #fff !important; }
.text-light { color: #ffffff !important; }
.bg-white { background-color: #ffffff; }
.w-100 { width: 100%; justify-content: center; }

/* =========================================
   1. HEADER & NAVBAR
========================================= */
.site-header { 
    position: fixed; 
    top: 20px; 
    left: 0; 
    width: 100%; 
    z-index: 990; /* Spušteno da bi Meni panel išao PREKO headera */
    transition: top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.4s ease; 
}

.site-header.is-sticky {
    top: 0;
}

.navbar-bg { 
    position: relative; 
    z-index: 10; 
    padding: 0 60px; 
    border-radius: 0 0 20px 20px;
    transition: all 0.4s ease;
}

.site-header.is-sticky .navbar-bg {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-bg::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: #fff; clip-path: polygon(40px 0, 100% 0, calc(100% - 40px) 100%, 0 100%); 
    z-index: -1; 
    transition: opacity 0.4s ease;
}

.site-header.is-sticky .navbar-bg::before {
    opacity: 0;
}

.header-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    height: 85px; transition: height 0.4s ease; 
}

.site-header.is-sticky .header-inner {
    height: 70px;
}

.logo-link { transition: all 0.3s ease; }
.logo-wrapper { width: 80px; height: auto; display: flex; align-items: center; }
.main-logo { width: 100%; height: auto; }

.desktop-nav .nav-links { display: flex; list-style: none; gap: 35px; }
.desktop-nav .nav-links a { text-decoration: none; color: var(--nav-color); font-size: 16px; font-weight: 600; position: relative; transition: var(--transition-base); }
.desktop-nav .nav-links a:hover { color: var(--primary-blue); }

.nav-dropdown-wrapper { position: relative; display: flex; align-items: center; height: 100%; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 6px; }
.nav-dropdown-trigger i { font-size: 14px; transition: transform 0.3s ease; color: var(--primary-blue); }
.nav-dropdown-wrapper:hover .nav-dropdown-trigger i { transform: rotate(180deg); }
.nav-dropdown-bridge { position: absolute; top: 100%; left: 0; width: 100%; height: 25px; z-index: 10; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(10px); background-color: #fff; list-style: none; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); min-width: 200px; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; z-index: 105; }
.nav-dropdown-wrapper:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu li { border-bottom: 1px solid #f2f5f8; }
.nav-dropdown-menu li:last-child { border-bottom: none; }
.nav-dropdown-menu li a { display: block; padding: 14px 20px; text-decoration: none; color: var(--nav-color); font-size: 15px; font-weight: 500; transition: all 0.2s ease; }
.desktop-nav .nav-dropdown-menu li a:hover { background-color: #f4f9fd; color: var(--primary-blue); padding-left: 26px; }

.header-actions { display: flex; align-items: center; gap: 20px; height: 100%; }
.language-dropdown-wrapper { position: relative; display: flex; align-items: center; height: 100%; transition: all 0.3s ease; }
.language-trigger { cursor: pointer; font-size: 26px; color: var(--nav-color); transition: var(--transition-base); padding: 10px 0; }
.language-trigger:hover { color: var(--primary-blue); }
.dropdown-bridge { position: absolute; top: 100%; left: -20px; width: 80px; height: 25px; }
.language-menu { position: absolute; top: calc(100% + 15px); right: -10px; background-color: #fff; list-style: none; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-base); overflow: hidden; z-index: 999; }
.language-dropdown-wrapper:hover .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu li a { display: block; padding: 12px 20px; text-decoration: none; color: var(--nav-color); font-size: 14px; font-weight: 500; transition: var(--transition-base); }
.header-actions .language-menu li a:hover { background-color: #f4f9fd; color: var(--primary-blue); }

/* MOBILNI BURGER DUGME */
.mobile-menu-trigger { 
    display: none; width: 45px; height: 45px; background: transparent; 
    border: none; cursor: pointer; flex-direction: column; justify-content: center; 
    align-items: flex-end; gap: 7px; margin-right: 10px; z-index: 201; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.burger-line { display: block; height: 3px; background-color: var(--primary-blue); border-radius: 4px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: right center; }
.burger-line:nth-child(1) { width: 32px; animation: breatheSlow 1.2s ease-in-out infinite; }
.burger-line:nth-child(2) { width: 32px; animation: breatheFast 1s ease-in-out infinite; }
.burger-line:nth-child(3) { width: 32px; animation: breatheSlow 1.2s ease-in-out infinite 1s; }
@keyframes breatheSlow { 0%, 100% { width: 32px; } 50% { width: 26px; } }
@keyframes breatheFast { 0%, 100% { width: 32px; } 50% { width: 16px; } }
.mobile-menu-trigger:hover .burger-line { width: 32px; animation: none; background-color: var(--hover-bg); }

/* OVO JE UKLONJENO NAMERNO: Ne pretvaramo ga u X više ovde, jer panel ima svoje X dugme! */
.mobile-menu-trigger.is-active {
    opacity: 0;
    pointer-events: none;
}


/* =========================================
   2. HERO SEKCIJA
========================================= */
.hero-section { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.background-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transform: scale(1.1); transition: transform 10s linear, opacity 1s ease-in-out; z-index: 1; }
.background-container.active { opacity: 1; z-index: 2; transform: scale(1); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--overlay-color); z-index: 3; }
.hero-content { position: relative; z-index: 4; text-align: center; max-width: 950px; padding-top: 80px; }
.hero-heading { color: var(--heading-color); font-size: 60px; line-height: 1.2; margin-bottom: 25px; font-weight: 700; }
.hero-subtext { color: var(--text-color); font-size: 18px; line-height: 1.5; margin-bottom: 40px; max-width: 750px; margin-left: auto; margin-right: auto; }
.separator-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 400px; margin: 0 auto 40px auto; }
.separator-line { flex-grow: 1; height: 1px; background-color: rgba(255, 255, 255, 0.4); }
.gear-wrapper { color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; transition: transform 3s linear; }
.separator-wrapper:hover .gear-wrapper { transform: rotate(180deg); }

.hero-buttons { display: flex; justify-content: center; gap: 25px; }
.button { display: inline-flex; align-items: center; text-decoration: none; padding: 18px 45px; border-radius: 10px; font-size: 18px; font-weight: 600; letter-spacing: 0.5px; transition: var(--transition-base); }
.button i { margin-left: 12px; font-size: 22px; transition: var(--transition-base); }
.primary-button { background-color: var(--primary-blue); color: var(--primary-light); border: 2px solid var(--primary-blue); box-shadow: 0 10px 25px rgba(22, 123, 193, 0.3); }
.primary-button:hover { background-color: var(--hover-bg); border-color: var(--hover-bg); box-shadow: 0 14px 30px rgba(22, 123, 193, 0.4); transform: translateY(-3px); }
.primary-button:hover i { transform: translate(4px, -4px); }
.secondary-button { background-color: transparent; color: var(--primary-light); border: 2px solid var(--primary-light); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }
.secondary-button:hover { background-color: var(--primary-light); color: var(--primary-dark); box-shadow: 0 14px 30px rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
.secondary-button:hover i { transform: translate(4px, -4px); }

/* =========================================
   GLOBALNE KLASE ZA SEKCIJE
========================================= */
.section-padding { padding: 140px 0; }
.section-subtitle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-blue); margin-bottom: 20px; background-color: #f4f9fd; padding: 8px 16px; border-radius: 30px; }
.section-title { font-size: 48px; font-weight: 700; color: var(--primary-dark); line-height: 1.25; margin-bottom: 30px; letter-spacing: -0.5px; }
.highlight-text { position: relative; color: var(--primary-blue); display: inline-block; z-index: 1; white-space: nowrap; }
.highlight-text::after { content: ''; position: absolute; bottom: 8px; left: -4%; width: 108%; height: 12px; background: rgba(22, 123, 193, 0.18); border-radius: 6px; z-index: -1; transform: rotate(-1deg); transition: width 0.5s ease-out; }
.section-text { font-size: 18px; line-height: 1.8; color: #555; margin-bottom: 25px; }

/* =========================================
   3. O NAMA SEKCIJA 
========================================= */
.about-section { background-color: #ffffff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-actions { margin-top: 45px; }
.about-gallery-wrapper { width: 100%; position: relative; }
.about-gallery-wrapper::before { content: ''; position: absolute; top: 50%; left: 50%; width: 120%; height: 120%; background: radial-gradient(circle, rgba(22, 123, 193, 0.04) 0%, rgba(255,255,255,0) 70%); transform: translate(-50%, -50%); z-index: 0; }
.swipe-hint { display: none; } 
.about-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; z-index: 1; }
.gallery-item { border-radius: 18px; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); transition: transform 0.4s ease, box-shadow 0.4s ease; user-select: none; -webkit-user-drag: none; }
.gallery-item img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: none; }
.gallery-item:nth-child(even) { transform: translateY(45px); }
.gallery-item:hover { box-shadow: 0 25px 50px rgba(22, 123, 193, 0.12); z-index: 2; }
.gallery-item:hover img { transform: scale(1.06); }
.about-gallery.is-dragging { cursor: grabbing; }
.about-gallery.is-dragging .gallery-item { transform: scale(0.98); transition: transform 0.2s; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

/* =========================================
   4. USLUGE SEKCIJA
========================================= */
.services-section { background-color: #f8fbff; position: relative; overflow: hidden; }
.bg-gear { position: absolute; color: var(--primary-blue); opacity: 0.03; z-index: 0; pointer-events: none; }
.services-section .bg-gear-1 { font-size: 800px; top: -150px; right: -250px; animation: spinSlow 60s linear infinite; }
.services-section .bg-gear-2 { font-size: 500px; bottom: -100px; left: -150px; animation: spinSlowReverse 45s linear infinite; }
@keyframes spinSlow { 100% { transform: rotate(360deg); } }
@keyframes spinSlowReverse { 100% { transform: rotate(-360deg); } }
.section-header { position: relative; z-index: 2; margin-bottom: 70px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 2; }
.service-card { background-color: #ffffff; border-radius: 20px; padding: 55px 35px 45px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); border: 1px solid rgba(22, 123, 193, 0.06); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary-blue); transform: scaleX(0); transform-origin: center; transition: transform 0.4s ease; z-index: 2; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(22, 123, 193, 0.1); border-color: rgba(22, 123, 193, 0.15); }
.service-card:hover::before { transform: scaleX(1); }
.card-icon { width: 80px; height: 80px; border-radius: 18px; background-color: #f4f9fd; color: var(--primary-blue); display: flex; justify-content: center; align-items: center; font-size: 38px; margin-bottom: 30px; transition: all 0.4s ease; }
.service-card:hover .card-icon { background-color: var(--primary-blue); color: #ffffff; transform: scale(1.1) rotate(5deg); }
.card-title { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 15px; }
.card-desc { font-size: 16px; color: #666; line-height: 1.65; margin-bottom: 30px; flex-grow: 1; }
.card-link { text-decoration: none; color: var(--primary-blue); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s ease; margin-top: auto; }
.card-link i { font-size: 18px; transition: transform 0.3s ease; }
.service-card:hover .card-link { gap: 14px; }

/* =========================================
   5. VIDEO SEKCIJA
========================================= */
.video-section { background-color: #ffffff; position: relative; overflow: hidden; }
.video-section .bg-gear { color: #90a4ae; opacity: 0.15; z-index: 0; }
.video-section .bg-gear-3 { font-size: 700px; top: -100px; left: -250px; animation: spinSlow 75s linear infinite; }
.video-section .bg-gear-4 { font-size: 450px; bottom: -50px; right: -150px; animation: spinSlowReverse 50s linear infinite; }
.video-glow-container { position: relative; max-width: 1000px; margin: 60px auto 0; z-index: 1; }
.video-glow-container::before { content: ''; position: absolute; top: 50%; left: 50%; width: 95%; height: 95%; background: linear-gradient(135deg, rgba(22, 123, 193, 0.4), rgba(138, 43, 226, 0.15), rgba(90, 177, 239, 0.4)); transform: translate(-50%, -50%); filter: blur(60px); z-index: -1; border-radius: 40px; animation: saasGlow 5s ease-in-out infinite alternate; }
@keyframes saasGlow { 0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.5; filter: blur(50px); } 100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; filter: blur(75px); } }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); background-color: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* =========================================
   6. KVALITET SEKCIJA
========================================= */
.quality-parallax { position: relative; width: 100%; min-height: 100vh; overflow: hidden; z-index: 1; background-color: transparent; }
.quality-parallax::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/slika2.jpg'); background-attachment: fixed; background-size: cover; background-position: center; z-index: -2; }
.quality-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: -1; }
.quality-parallax .bg-gear-1 { font-size: 1000px; top: -200px; left: -300px; opacity: 0.02; animation: spinSlow 90s linear infinite; }
#kvalitet .section-subtitle { background-color: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.15); }
#kvalitet .section-subtitle i { color: #5ab1ef; }
#kvalitet .section-title { color: #ffffff; }
#kvalitet .section-text { color: #e2e8f0; }
#kvalitet .highlight-text { color: #ffffff !important; }
#kvalitet .highlight-text::after { background: rgba(22, 123, 193, 0.75) !important; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 70px; }
.certificate-item { background: transparent; border: none; padding: 20px 10px; text-align: center; cursor: pointer; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; align-items: center; position: relative; }
.certificate-item:hover { transform: translateY(-15px); }
.cert-image-wrapper { width: 100%; max-width: 250px; height: 250px; margin-bottom: 25px; position: relative; background-color: transparent; display: flex; justify-content: center; align-items: center; }
.cert-image-wrapper img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7)); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.certificate-item:hover .cert-image-wrapper img { transform: scale(1.08); filter: drop-shadow(0 20px 40px rgba(22, 123, 193, 0.6)); }
.zoom-icon { position: absolute; top: 50%; left: 50%; width: 65px; height: 65px; border-radius: 50%; transform: translate(-50%, -50%) scale(0.5); background-color: rgba(22, 123, 193, 0.95); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 30px; opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 25px rgba(0,0,0,0.4); z-index: 5; }
.certificate-item:hover .zoom-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cert-title { font-size: 24px; font-weight: 700; color: #ffffff; margin-bottom: 10px; text-shadow: 0 3px 6px rgba(0,0,0,0.8); transition: color 0.3s ease; }
.cert-body { font-size: 16px; color: #ffffff; line-height: 1.6; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.certificate-item:hover .cert-title { color: var(--primary-blue); }

/* =========================================
   7. KONTAKT SEKCIJA
========================================= */
.contact-section { background-color: #ffffff; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: flex-start; }
.contact-info .section-title { margin-bottom: 15px; min-height: 60px; }
.typewriter-cursor { animation: blink 0.7s infinite; color: var(--primary-blue); font-weight: 300; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.contact-methods { margin-top: 40px; display: flex; flex-direction: column; gap: 30px; }
.contact-method-item { display: flex; align-items: flex-start; gap: 20px; }
.method-icon { width: 60px; height: 60px; border-radius: 14px; background-color: #f4f9fd; color: var(--primary-blue); display: flex; justify-content: center; align-items: center; font-size: 28px; flex-shrink: 0; transition: all 0.3s ease; }
.contact-method-item:hover .method-icon { background-color: var(--primary-blue); color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(22, 123, 193, 0.2); }
.method-content h4 { font-size: 18px; color: var(--primary-dark); margin-bottom: 5px; }
.method-content p, .method-content a { font-size: 16px; color: #555; text-decoration: none; transition: color 0.3s ease; }
.method-content a:hover { color: var(--primary-blue); }
.contact-form-wrapper { width: 100%; }
.form-card { background-color: #ffffff; border-radius: 24px; padding: 50px; box-shadow: 0 20px 60px rgba(0,0,0,0.06); border: 1px solid rgba(22, 123, 193, 0.08); }
.form-card h3 { font-size: 26px; color: var(--primary-dark); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { position: relative; margin-bottom: 25px; }
.form-control { width: 100%; padding: 20px 20px 10px 20px; font-size: 16px; color: var(--primary-dark); background-color: #f8fbff; border: 2px solid transparent; border-radius: 12px; outline: none; font-family: inherit; transition: all 0.3s ease; }
.form-control:focus { border-color: var(--primary-blue); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(22, 123, 193, 0.1); }
textarea.form-control { resize: none; padding-top: 25px; }
.form-group.floating label { position: absolute; top: 50%; left: 20px; transform: translateY(-50%); font-size: 16px; color: #888; pointer-events: none; transition: all 0.2s ease; }
textarea ~ label { top: 20px; transform: translateY(0); }
.form-control:focus ~ label, .form-control:not(:placeholder-shown) ~ label { top: 10px; font-size: 12px; color: var(--primary-blue); font-weight: 600; }

/* =========================================
   8. FOOTER
========================================= */
.site-footer { background-color: #070707; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-blue), transparent); opacity: 0.6; }
.footer-top { padding: 100px 0 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; }
.footer-brand { padding-right: 40px; }
.footer-logo-img { height: 65px; width: auto; margin-bottom: 25px; transition: opacity 0.3s ease; }
.footer-logo:hover .footer-logo-img { opacity: 0.8; }
.footer-desc { font-size: 15px; line-height: 1.8; color: #828a96; margin-bottom: 35px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background-color: rgba(255, 255, 255, 0.03); color: #fff; font-size: 20px; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.4s; }
.footer-socials a:hover { background-color: var(--primary-blue); border-color: var(--primary-blue); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(22, 123, 193, 0.3); }
.footer-heading { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 30px; position: relative; display: inline-block; }
.footer-heading::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 30px; height: 2px; background-color: var(--primary-blue); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: #828a96; text-decoration: none; font-size: 15px; transition: all 0.3s ease; display: inline-flex; align-items: center; position: relative; }
.footer-links a::before { content: '→'; position: absolute; left: -15px; opacity: 0; color: var(--primary-blue); transition: all 0.3s ease; font-weight: bold; }
.footer-links a:hover { color: var(--primary-light); transform: translateX(15px); }
.footer-links a:hover::before { opacity: 1; left: -20px; }
.footer-contact-info { list-style: none; padding: 0; }
.footer-contact-info li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; font-size: 15px; color: #828a96; line-height: 1.6; }
.footer-contact-info i { color: var(--primary-blue); font-size: 22px; margin-top: 1px; }
.footer-contact-info a { color: #828a96; text-decoration: none; transition: color 0.3s ease; }
.footer-contact-info a:hover { color: #fff; }
.footer-bottom { background-color: #040404; padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright { font-size: 14px; color: #555; }
.powered-by { font-size: 13px; color: #666; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.agency-link { color: #fff; font-weight: 700; text-decoration: none; margin-left: 5px; position: relative; padding-bottom: 2px; transition: color 0.3s ease; }
.agency-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--primary-blue); transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.agency-link:hover { color: var(--primary-blue); }
.agency-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================
   9. LIGHTBOX MODAL (ULTRA UX)
========================================= */
.lightbox-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; justify-content: center; align-items: center; visibility: hidden; opacity: 0; transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1); }
.lightbox-modal.open { visibility: visible; opacity: 1; }
.lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); z-index: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox-content { background-color: transparent; width: 90%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; z-index: 2; transform: scale(0.8) translateY(50px); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lightbox-modal.open .lightbox-content { transform: scale(1) translateY(0); }
.lightbox-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 20px; }
.lightbox-header h3 { font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.close-lightbox { font-size: 36px; color: #fff; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; }
.close-lightbox:hover { color: var(--primary-blue); transform: rotate(90deg); }
.lightbox-body { display: flex; justify-content: center; align-items: center; overflow-y: auto; text-align: center; }
.lightbox-body img { max-width: 100%; max-height: 75vh; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8)); }
body.lightbox-open { overflow: hidden; }

/* =========================================
   10. JS ANIMACIJE (SCROLL REVEAL)
========================================= */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* =========================================
   11. MOBILNI MENI
========================================= */
/* FIX: Meni ide isključivo iznad svega ostalog. Z-index 10000 ga zakucava! */
.mobile-menu-panel { 
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; 
    height: 100vh; background-color: #fff; z-index: 10000; 
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.2); 
}
.mobile-menu-panel.open { right: 0; }
.mobile-menu-inner { display: flex; flex-direction: column; height: 100%; padding: 30px; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.mobile-brand { display: flex; align-items: center; text-decoration: none; gap: 12px; }
.mobile-logo { width: 50px; height: auto; }
.mobile-brand-text { font-size: 16px; font-weight: 700; color: var(--primary-dark-blue); line-height: 1.1; text-transform: uppercase; }
.close-mobile-menu { cursor: pointer; font-size: 32px; color: var(--nav-color); transition: transform 0.3s ease, color 0.3s ease; }
.close-mobile-menu:hover { color: var(--primary-blue); transform: rotate(90deg); }
.mobile-nav { flex-grow: 1; overflow-y: auto; }
.mobile-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mobile-links li a { display: flex; align-items: center; font-size: 17px; font-weight: 600; text-decoration: none; color: var(--nav-color); background-color: #f8f9fa; border: 1px solid #eee; padding: 16px 20px; border-radius: 12px; transition: var(--transition-base); box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.mobile-links li a i { margin-right: 15px; font-size: 24px; color: var(--primary-blue); }
.mobile-links li a:hover, .mobile-links li a:active { background-color: var(--primary-light); border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22, 123, 193, 0.1); }
.mobile-languages { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.mobile-languages h3 { color: #777; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.mobile-language-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-language-list li a { text-decoration: none; color: var(--nav-color); font-size: 14px; font-weight: 500; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; transition: var(--transition-base); display: inline-block; }
.mobile-language-list li a:hover, .mobile-language-list li a:active { background-color: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

/* =========================================
   12. FAB DUGME (FIXED KLIKOVI)
========================================= */
.fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.fab-menu { display: flex; flex-direction: column; gap: 15px; margin-bottom: 15px; }

.fab-button { width: 65px; height: 65px; border-radius: 50%; background-color: var(--primary-blue); color: #fff; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 32px; box-shadow: 0 8px 25px rgba(22, 123, 193, 0.4); position: relative; z-index: 2; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s; }
.fab-button::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; background-color: var(--primary-blue); z-index: -1; animation: pulseFab 2s infinite; }
@keyframes pulseFab { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

.fab-button i { position: absolute; transition: all 0.3s ease; pointer-events: none; }
.fab-button .close-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.fab-container.is-open .fab-button { background-color: var(--primary-dark-blue); transform: scale(0.9); }
.fab-container.is-open .fab-button::before { animation: none; }
.fab-container.is-open .fab-button .main-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fab-container.is-open .fab-button .close-icon { opacity: 1; transform: rotate(0deg) scale(1); }

.fab-item { width: 50px; height: 50px; border-radius: 50%; background-color: #fff; color: var(--primary-blue); display: flex; justify-content: center; align-items: center; font-size: 24px; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); visibility: hidden; opacity: 0; transform: translateY(40px) scale(0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 10; pointer-events: none; }
.fab-item:hover { background-color: var(--primary-blue); color: #fff; transform: scale(1.1) !important; }

.fab-container.is-open .fab-item { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-container.is-open .fab-item:nth-child(3) { transition-delay: 0.05s; }
.fab-container.is-open .fab-item:nth-child(2) { transition-delay: 0.1s; }
.fab-container.is-open .fab-item:nth-child(1) { transition-delay: 0.15s; }


/* =========================================
   13. SVI MEDIA QUERIES 
========================================= */
@media (max-width: 1100px) {
    .desktop-nav { display: none; }
    .language-dropdown-wrapper { display: none; }
    .mobile-menu-trigger { display: flex; margin-left: auto; }
    .about-grid { gap: 40px; }
    .section-title { font-size: 38px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .quality-parallax .bg-gear-1 { font-size: 800px; }
    .certificate-grid { gap: 20px; }
    .contact-grid { gap: 40px; }
    .form-card { padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
    .footer-brand { padding-right: 0; }
}

@media (max-width: 768px) {
    .site-header { top: 15px; }
    .navbar-bg { padding: 0 15px 0 25px; }
    .navbar-bg::before { clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
    .header-inner { height: 65px; }
    .logo-wrapper { width: 60px; }
    
    .site-header { position: fixed; top: 15px; left: 0; width: 100%; transition: all 0.4s ease; }
    .site-header.is-sticky { pointer-events: none; }
    .site-header.is-sticky .navbar-bg { background-color: transparent !important; backdrop-filter: none !important; box-shadow: none !important; }
    .site-header.is-sticky .logo-link, .site-header.is-sticky .language-dropdown-wrapper { opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.3s ease; }
    .mobile-menu-trigger { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: auto; }
    .site-header.is-sticky .mobile-menu-trigger { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: 55px; height: 55px; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,0.15); align-items: center; justify-content: center; margin-right: 0; padding: 0; }
    .site-header.is-sticky .burger-line { margin: 0; }

    .hero-heading { font-size: 38px; }
    .hero-subtext { font-size: 15px; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .button { width: 100%; justify-content: center; font-size: 17px; padding: 16px 20px; }
    .separator-wrapper { max-width: 300px; }
    .fab-container { bottom: 20px; right: 20px; }
    .fab-button { width: 55px; height: 55px; font-size: 28px; }
    .fab-item { width: 45px; height: 45px; font-size: 20px; }

    .section-padding { padding: 90px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 35px; }
    .section-title { font-size: 36px; }

    .swipe-hint { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #888; margin-bottom: 20px; font-weight: 500; animation: pulseText 2s infinite; }
    @keyframes pulseText { 0%, 100%{opacity: 0.5;} 50%{opacity: 1;} }

    .about-gallery-wrapper { width: 100%; position: relative; overflow: hidden; border-radius: 18px; }
    .about-gallery { display: flex; width: fit-content; gap: 15px; padding-bottom: 30px; cursor: grab; transform: translateX(0px); will-change: transform; transition: transform 0.3s ease-out; }
    .about-gallery.is-dragging { transition: none; }
    .gallery-item { width: 70vw; max-width: 300px; flex-shrink: 0; }
    .gallery-item:nth-child(even) { transform: translateY(0); }
    
    .services-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
    .services-section .bg-gear-1 { font-size: 400px; right: -100px; top: 0; }
    .services-section .bg-gear-2 { display: none; } 

    .video-glow-container::before { filter: blur(40px); opacity: 0.8; width: 100%; height: 100%; }
    .video-glow-container { margin-top: 40px; }
    .video-section .bg-gear-3 { display: none; }
    .video-section .bg-gear-4 { font-size: 300px; bottom: 0; right: -100px; }
    
    .quality-parallax::before { background-attachment: scroll; }
    .quality-parallax .bg-gear-1 { display: none; }
    .certificate-grid { grid-template-columns: 1fr; gap: 40px; } 
    .cert-image-wrapper { max-width: 200px; height: 200px; } 
    
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; } 
    .form-card { padding: 30px 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 45px; }
    .footer-top { padding: 70px 0 40px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; justify-content: center; gap: 10px; }
}

@media (max-width: 480px) {
    .navbar-bg { padding: 0 10px 0 15px; }
    .gallery-item { width: 80vw; }
}

/* =========================================
   0. PRELOADER (ULTRA PREMIUM & PERF)
========================================= */
#preloader {
    position: fixed;
    inset: 0; /* Menja top:0, left:0, width:100%, height:100% */
    /* Blagi radialni preliv za dubinu i premium izgled */
    background: radial-gradient(circle at center, #1a8ad6 0%, var(--primary-blue) 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.6s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Savršen kvadrat, centriran */
.gears-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 25px;
}

.gears-wrapper i {
    position: absolute;
    color: #fff;
    line-height: 1;
    transform-origin: center center;
}

/* MATEMATIČKO POZICIONIRANJE: 
  Koristimo negativne margine tačno u pola veličine fonta, 
  tako da se zupčanici okreću oko svoje apsolutne osi i ne beže!
*/
.p-gear-1 { 
    font-size: 80px; 
    top: 45px; 
    left: 45px; 
    margin-top: -40px; 
    margin-left: -40px;
    animation: premiumSpin 6s linear infinite; 
}

.p-gear-2 { 
    font-size: 60px; 
    top: 95px; 
    left: 95px; 
    margin-top: -30px; 
    margin-left: -30px;
    /* Dodajemo mali početni ugao (15deg) da zupci upadnu tačno između zubaca prvog zupčanika */
    animation: premiumSpinReverse 6s linear infinite; 
}

.p-gear-3 { 
    font-size: 44px; 
    top: 35px; 
    left: 105px; 
    margin-top: -22px; 
    margin-left: -22px;
    animation: premiumSpin 6s linear infinite; 
}

@keyframes premiumSpin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}
@keyframes premiumSpinReverse { 
    /* Offset od 15 stepeni da bi se zupci mehanički uklopili */
    0% { transform: rotate(15deg); } 
    100% { transform: rotate(-345deg); } 
}

.preloader-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    /* FIX ZA CENTRIRANJE: Letter spacing dodaje prostor i na zadnje slovo, pa gura tekst levo. Ovo to poništava! */
    margin-right: -6px; 
    animation: pulsePreloaderText 2s ease-in-out infinite alternate;
}

@keyframes pulsePreloaderText {
    0% { opacity: 0.5; filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
    100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255,255,255,0.8)); }
}