/* ==========================================================================
   1. Varijable i Globalni Stilovi
   ========================================================================== */
:root {
    --primary-blue: #007BFF;
    --primary-hover: #0056b3;
    --bg-dark: #12181B;
    --bg-surface: #1B2124;
    --text-light: #EAEAEA;
    --text-muted: #A9B1BD;
    --border-color: #333A3D;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; position: fixed; width: 100%; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
.section { padding: 100px 0; }
.section-light { background-color: var(--bg-surface); }
.section-dark { background-color: #101416; }

/* ==========================================================================
   2. Tipografija i Pomoćne Klase
   ========================================================================== */
h1, h2, h3, h4, h5 { font-family: var(--font-headings); color: var(--text-light); font-weight: 700; line-height: 1.3; }
h1 { font-size: 3.2rem; margin-bottom: 1rem; font-weight: 900; text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5); }
h2 { font-size: 2.5rem; margin-bottom: 20px; text-align: center; color: var(--primary-blue); }
h2.section-title-center { margin-bottom: 50px; }
h3 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 0; }
h4 { font-size: 1.8rem; color: var(--text-light); text-align: center; margin-bottom: 40px; }
h5 { font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 10px; }
p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: var(--primary-blue); text-decoration: none; transition: color 0.3s ease; }
.section-subtitle { max-width: 700px; margin: 0 auto 50px auto; text-align: center; font-size: 1.1rem; }

.btn { display: inline-block; background-color: var(--primary-blue); color: #fff; padding: 14px 32px; border-radius: 50px; font-weight: 600; text-transform: uppercase; transition: all 0.3s ease; border: 2px solid var(--primary-blue); font-family: var(--font-headings); letter-spacing: 0.5px; cursor: pointer; }
.btn:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-3px); }
.btn-learn-more { font-weight: bold; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* ==========================================================================
   3. Header i Navigacija
   ========================================================================== */
.header { background-color: rgba(18, 24, 27, 0.85); backdrop-filter: blur(10px); padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; border-bottom: 1px solid var(--border-color); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 45px; }
.nav-main { display: flex; align-items: center; gap: 30px; }
.nav-main .nav-link { font-weight: 600; color: var(--text-muted); transition: color 0.3s; position: relative; padding: 10px 5px; }
.nav-main .nav-link:hover, .nav-main .nav-link.active-nav { color: var(--text-light); }
.nav-main .nav-link.active-nav::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--primary-blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { color: var(--text-muted); font-weight: bold; }
.lang-link.active { color: var(--primary-blue); pointer-events: none; }
.hamburger { display: none; font-size: 2rem; background: none; border: none; color: var(--text-light); cursor: pointer; }

/* Dropdown Menu - Desktop */
.nav-item.dropdown { position: relative; display: flex; align-items: center; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--bg-surface); border-radius: var(--border-radius); box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; min-width: 200px; padding: 10px 0; border: 1px solid var(--border-color); }
.dropdown-menu a { display: block; padding: 10px 20px; color: var(--text-muted); }
.dropdown-menu a:hover { background-color: var(--primary-blue); color: #fff; }
.nav-item.dropdown:hover .dropdown-menu { display: block; }
.dropdown-toggle i { font-size: 0.8em; margin-left: 5px; }

/* Mobilna Navigacija */
.nav-mobile { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-dark); flex-direction: column; justify-content: center; align-items: center; z-index: 999; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.nav-mobile.active { display: flex; opacity: 1; pointer-events: auto; }
.nav-mobile .mobile-link { padding: 20px 0; color: var(--text-light); font-size: 1.8rem; font-family: var(--font-headings); }
.dropdown-menu-mobile { display: none; text-align: center; }
.dropdown-menu-mobile a { font-size: 1.2rem; padding: 15px 0; }
.dropdown-mobile.open .dropdown-menu-mobile { display: block; }
.lang-mobile { margin-top: 30px; }
.lang-mobile span { margin: 0 10px; color: var(--text-muted); }

/* ==========================================================================
   4. Stilovi Sekcija
   ========================================================================== */
.hero { padding: 200px 0; text-align: center; position: relative; background-image: linear-gradient(rgba(18, 24, 27, 0.8), rgba(18, 24, 27, 0.85)), url('hero-background.jpg'); background-size: cover; background-position: center center; background-attachment: fixed; }
.hero .container { max-width: 850px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-light); text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Dodane linije za pouzdano centriranje */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-blue); box-shadow: 0 15px 30px rgba(0, 123, 255, 0.1); }
.service-card .icon { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 20px; }

.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.package-card { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 40px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; }
.package-card h3 { text-transform: uppercase; font-weight: 900; margin-bottom: 5px; }
.package-subtitle { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.package-card.featured { border: 2px solid var(--primary-blue); position: relative; overflow: hidden; }
.popular-badge { position: absolute; top: -1px; right: -1px; background-color: var(--primary-blue); color: #fff; padding: 5px 20px; font-size: 0.9rem; font-weight: bold; border-bottom-left-radius: var(--border-radius); }
.package-header { flex-grow: 1; }
.package-header .price { font-size: 3rem; font-weight: 900; color: var(--primary-blue); margin-bottom: 10px; }
.package-header p { font-size: 0.9rem; color: var(--text-muted); min-height: 40px; }
.package-features { list-style: none; text-align: left; margin: 30px 0; padding: 0; }
.package-features li { margin-bottom: 15px; display: flex; align-items: center; }
.package-features .fa-check, .package-features .fa-plus { color: var(--primary-blue); margin-right: 10px; }
.package-btn { width: 100%; margin-top: auto; }

.portfolio-section { margin-top: 100px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-item { position: relative; border-radius: var(--border-radius); overflow: hidden; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2); height: 250px; }
.portfolio-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 20px; transition: opacity 0.3s ease; display: flex; justify-content: space-between; align-items: flex-end; }
.portfolio-overlay h3 { transform: translateY(20px); opacity: 0; transition: all 0.3s ease; margin-right: 15px; }
.visit-site-btn { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); padding: 6px 12px; border-radius: 5px; font-size: 0.8rem; transition: all 0.3s ease; transform: translateY(20px); opacity: 0; font-weight: 600; white-space: nowrap; }
.visit-site-btn:hover { background: var(--primary-blue); border-color: var(--primary-blue); }
.visit-site-btn .fa-external-link-alt { margin-left: 5px; }
.portfolio-item:hover .portfolio-overlay h3, .portfolio-item:hover .visit-site-btn { transform: translateY(0); opacity: 1; }
.portfolio-item:hover .visit-site-btn { transition-delay: 0.1s; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-image img { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: center; }
.stat-item .number { font-size: 2.5rem; font-weight: 900; color: var(--primary-blue); }
.stat-item .label { font-size: 0.9rem; color: var(--text-muted); }

.features-wrapper { margin-top: 80px; border-top: 1px solid var(--border-color); padding-top: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { text-align: center; }
.feature-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; }
.feature-card h5 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: 0.9rem; }

.process-section { margin-top: 100px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-card { background-color: var(--bg-dark); border: 1px solid var(--border-color); padding: 30px; border-radius: var(--border-radius); text-align: center; transition: transform 0.3s ease, border-color 0.3s ease; }
.process-card:hover { transform: translateY(-5px); border-color: var(--primary-blue); }
.process-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.process-icon { font-size: 2.5rem; color: var(--primary-blue); }
.process-number { font-size: 2.5rem; font-weight: 900; color: var(--border-color); }
.process-card h3 { font-size: 1.2rem; margin-bottom: 10px; text-align: center; }
.process-card p { font-size: 0.9rem; margin: 0; }

#testimonials .splide__track { padding: 50px 0 20px 0; }
#testimonials .splide__list { align-items: stretch; }
#testimonials .splide__slide { padding: 0 15px; }
.testimonial-card { background-color: var(--bg-surface); padding: 40px; border-radius: var(--border-radius); border-left: 5px solid var(--primary-blue); height: 100%; display: flex; flex-direction: column; }
.testimonial-text { font-style: italic; color: var(--text-light); font-size: 1.1rem; margin-bottom: 20px; flex-grow: 1; }
.testimonial-text::before { content: '“'; font-size: 3rem; color: var(--primary-blue); line-height: 0; display: block; margin-bottom: 10px; }
.testimonial-author { font-weight: bold; color: var(--text-muted); text-align: right; }

.it-services-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; max-width: 900px; margin: 0 auto; padding: 0; }
.it-services-list li { font-size: 1.1rem; display: flex; align-items: center; }
.it-services-list i { font-size: 1.5rem; color: var(--primary-blue); margin-right: 15px; width: 30px; text-align: center; }
.cta-container { text-align: center; margin-top: 50px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: flex-start; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-info li i { font-size: 1.5rem; color: var(--primary-blue); margin-right: 20px; margin-top: 5px; }
.contact-info li strong { display: block; color: var(--text-light); margin-bottom: 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--bg-surface); color: var(--text-light); font-size: 1rem; }
.contact-form button { width: 100%; }

/* ==========================================================================
   5. Lightbox, Cookie Banner i Footer
   ========================================================================== */
.lightbox { display: none; position: fixed; z-index: 1001; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; width: 80%; max-width: 900px; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; border: none; background: transparent; }
.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: var(--bg-surface); color: var(--text-muted); padding: 20px; box-shadow: 0 -5px 15px rgba(0,0,0,0.2); display: flex; justify-content: space-between; align-items: center; z-index: 2000; transition: bottom 0.5s ease-in-out; }
.cookie-banner.show { bottom: 0; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--primary-blue); font-weight: bold; }
.footer { background-color: #101416; text-align: center; padding: 40px 0; border-top: 1px solid var(--border-color); }
.footer p { color: var(--text-muted); margin-bottom: 5px; }
.scroll-to-top { position: fixed; bottom: 20px; right: 20px; background-color: var(--primary-blue); color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; transform: translateY(20px); border: 2px solid var(--primary-blue); }
.scroll-to-top:hover { background-color: var(--primary-hover); }
.scroll-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   6. Responzivnost
   ========================================================================== */
@media (max-width: 1200px) {
    .features-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .services-grid, .packages-grid, .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .package-card.featured { transform: scale(1); }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .it-services-list { grid-template-columns: 1fr; }
    /* Trajno prikazuje tekst i gumb na portfolio slikama na mobilnim uređajima */
    .portfolio-item .portfolio-overlay h3,
    .portfolio-item .portfolio-overlay .visit-site-btn {
        transform: translateY(0);
        opacity: 1;
    }
    .portfolio-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    }
}

@media (max-width: 768px) {
    /* Ovaj blok sakriva desktop navigaciju i prikazuje burger ikonu */
    .header .nav-main, .header .header-actions {
        display: none !important;
    }
    .header .hamburger {
        display: block !important;
    }

    .features-grid, .process-grid { grid-template-columns: 1fr; }

    .dropdown-menu-mobile .mobile-link {
        display: block;
        width: 100%;
    }
}

/* ==========================================================================
   DODATNI Stilovi (prethodno su bili na krivom mjestu)
   ========================================================================== */
.footer-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 25px auto 0 auto;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.footer-details strong {
    color: var(--text-light);
    font-weight: 700;
}

.map-container {
    margin-top: 60px;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Stilovi za SVG ikone */
.service-card .icon, .service-card .icon svg { width: 3.5rem; height: 3.5rem; }
.hamburger svg { width: 24px; height: 24px; }
.dropdown-toggle svg { width: 0.8em; height: 0.8em; margin-left: 5px; }
.package-features li svg { width: 18px; height: 18px; color: var(--primary-blue); margin-right: 10px; flex-shrink: 0; }
.visit-site-btn svg { width: 12px; height: 12px; margin-left: 6px; vertical-align: middle; }
.it-services-list li svg { width: 1em; height: 1em; color: var(--primary-blue); margin-right: 15px; width: 30px; text-align: center; flex-shrink: 0; }
.contact-info li svg { width: 1.5rem; height: 1.5rem; color: var(--primary-blue); margin-right: 20px; margin-top: 5px; flex-shrink: 0; }
.scroll-to-top svg { width: 1.5rem; height: 1.5rem; }

/* Stil za jezični izbornik i header */
.header-actions {
    display: flex;
    background-color: var(--bg-surface);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
}
.lang-mobile {
    display: inline-flex;
    background-color: var(--bg-surface);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
}
.lang-mobile span { display: none; }
.header-actions .lang-link,
.lang-mobile .lang-link { padding: 6px 16px; border-radius: 50px; transition: all 0.3s ease-in-out; font-weight: 600; color: var(--text-muted); text-decoration: none; line-height: 1.5; }
.header-actions .lang-link.active,
.lang-mobile .lang-link.active { background-color: var(--primary-blue); color: #fff; pointer-events: auto; cursor: default; }
.header-actions .lang-link:not(.active):hover,
.lang-mobile .lang-link:not(.active):hover { color: var(--text-light); }
.header.scrolled { background-color: rgba(27, 33, 36, 0.95); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.hero h1 { overflow-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }

/* Teme i Theme Switcher */
[data-theme-mode="light"] { --primary-blue: #007BFF; --primary-hover: #0056b3; --bg-dark: #F8FAFC; --bg-surface: #FFFFFF; --text-light: #1E293B; --text-muted: #64748B; --border-color: #E2E8F0; }
[data-theme-mode="colorful"] { --primary-blue: #DB2777; --primary-hover: #BE185D; }
.header-actions { gap: 16px; }
.lang-switcher-container { display: flex; background-color: var(--bg-surface); border-radius: 50px; padding: 4px; border: 1px solid var(--border-color); }
.theme-switcher { display: flex; align-items: center; gap: 8px; }
.theme-button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-color); background-color: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.2s ease-in-out; }
.theme-button:hover { border-color: var(--primary-blue); transform: scale(1.1); }
.theme-button svg { color: var(--text-muted); }
.theme-button.active { border-color: var(--primary-blue); background-color: var(--primary-blue); }
.theme-button.active svg { color: #fff; }
.mobile-controls-wrapper { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }

/* Popravci kontrasta za teme */
:root { --footer-bg: #101416; --bg-section-dark: #101416; }
.footer { background-color: var(--footer-bg); }
.section-dark { background-color: var(--bg-section-dark); }
[data-theme-mode="light"] { --footer-bg: #F1F5F9; --bg-section-dark: var(--bg-dark); }
[data-theme-mode="light"] .hero h1, [data-theme-mode="light"] .hero p { color: #FFFFFF; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
/* ==========================================================================
   POPRAVAK: Povećanje gumba za temu na mobilnom izborniku
   ========================================================================== */

/* Povećavamo same gumbe unutar mobilnog izbornika radi lakšeg dodira */
.nav-mobile .theme-button {
    width: 44px;
    height: 44px;
}

/* Povećavamo i SVG ikone unutar tih većih gumba */
.nav-mobile .theme-button svg {
    width: 22px;
    height: 22px;
}
/* ==========================================================================
   POPRAVAK: Vidljivost hamburger ikone na svijetloj temi
   ========================================================================== */

[data-theme-mode="light"] .hamburger {
    color: var(--bg-surface); /* Mijenja boju ikone u bijelu na svijetloj temi */
}