/* ==========================================================================
   MOBILE-FIRST CSS POPRAVAK - DODAJ NA POČETAK STYLE.CSS
   ========================================================================== */

/* KRITIČNI MOBILE-FIRST POPRAVCI */

/* 1. FORSIRAJ MOBILE-FIRST CONTAINER */
.container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 2. SPRJEČAVA SVE HORIZONTALNE SKROLOVE */
html {
    width: 100% !important;
    overflow-x: hidden !important;
}

body {
    width: 100% !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* 3. FORSIRAJ SVE ELEMENTE DA BUDU UNUTAR GRANICA */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 4. UKLONI PROBLEMATIČNE CSS GRID SUSTAVE NA MOBILNOM */
@media screen and (max-width: 768px) {
    
    /* FORSIRAJ SERVICES GRID - FUNKCIONALNOSTI */
    .services-grid {
        display: block !important;
        width: 100% !important;
        column-count: 1 !important;
    }
    
    .services-grid .feature-circle-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 20px 15px !important;
        float: none !important;
        break-inside: avoid !important;
    }
    
    /* FORSIRAJ PRICING GRID - CIJENE */
    .pricing-grid {
        display: block !important;
        width: 100% !important;
        column-count: 1 !important;
    }
    
    .pricing-grid .price-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 25px 15px !important;
        float: none !important;
        break-inside: avoid !important;
    }
    
    /* FORSIRAJ ABOUT GRID */
    .about-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .about-grid > * {
        display: block !important;
        width: 100% !important;
        margin: 0 0 25px 0 !important;
        float: none !important;
    }
    
    /* FORSIRAJ CONTACT WRAPPER */
    .contact-wrapper {
        display: block !important;
        width: 100% !important;
    }
    
    .contact-wrapper > * {
        display: block !important;
        width: 100% !important;
        margin: 0 0 25px 0 !important;
        float: none !important;
    }
    
    /* FORSIRAJ TABLICE DA NE UZROKUJU HORIZONTALNI SKROL */
    .table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .features-table {
        width: 100% !important;
        min-width: auto !important;
        table-layout: auto !important;
        white-space: normal !important;
    }
    
    /* TABLICE POSTAJU KARTICE - POTPUNO NOVI PRISTUP */
    .features-table,
    .features-table tbody,
    .features-table thead,
    .features-table tr,
    .features-table td,
    .features-table th {
        display: block !important;
        width: 100% !important;
    }
    
    .features-table thead {
        display: none !important;
    }
    
    .features-table tr {
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        background: var(--bg-surface) !important;
    }
    
    .features-table td {
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 12px 15px !important;
        text-align: left !important;
        position: relative !important;
    }
    
    .features-table td:last-child {
        border-bottom: none !important;
    }
    
    /* DODAJ LABELE PRIJE SADRŽAJA */
    .features-table td:before {
        content: attr(data-label) ": " !important;
        font-weight: bold !important;
        color: var(--primary-blue) !important;
        display: inline-block !important;
        margin-right: 10px !important;
    }
    
    /* POSEBNO ZA FEATURE KOLONU */
    .features-table .col-feature:before {
        content: "" !important;
        display: none !important;
    }
    
    .features-table .col-feature {
        background: var(--bg-dark) !important;
        font-weight: 600 !important;
        color: var(--text-light) !important;
        padding: 15px !important;
    }
    
    /* CHECK IKONE */
    .features-table .col-check {
        text-align: center !important;
    }
    
    .features-table .col-check:before {
        display: block !important;
        text-align: left !important;
        margin-bottom: 5px !important;
    }
    
    /* REFERENCE LISTA */
    .reference-list {
        column-count: 1 !important;
        column-gap: 0 !important;
        width: 100% !important;
    }
    
    .reference-list li {
        display: block !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        break-inside: auto !important;
        float: none !important;
    }
    
    /* SLIKE */
    .about-image img,
    .clickable-image,
    img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* FORMA ELEMENTI */
    .contact-form,
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* HERO SEKCIJA */
    .hero {
        padding: 120px 0 60px 0 !important;
        background-attachment: scroll !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    /* SEKCIJE */
    .section {
        padding: 50px 0 !important;
    }
    
    /* TIPOGRAFIJA */
    h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
    }
    
    /* COOKIE BANNER */
    .cookie-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 15px !important;
        text-align: center !important;
    }
    
    .cookie-banner p {
        padding-right: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }
}

/* 5. TABLET OPTIMIZACIJE */
@media screen and (min-width: 769px) and (max-width: 992px) {
    
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    .pricing-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    .about-grid,
    .contact-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* 6. DESKTOP OPTIMIZACIJE */
@media screen and (min-width: 993px) {
    
    .container {
        max-width: 1140px !important;
        padding: 0 20px !important;
    }
    
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    
    .pricing-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }
    
    .about-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 50px !important;
    }
    
    .contact-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1.5fr !important;
        gap: 50px !important;
    }
    
    .features-table {
        white-space: nowrap !important;
        min-width: 600px !important;
    }
}

/* 7. ADDITIONAL FIXES */
.feature-circle-card,
.price-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.feature-circle-card:hover,
.price-card:hover {
    transform: translateY(-3px) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15) !important;
}
/* ==========================================================================
   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; 
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    width: 100%;
    overflow-x: hidden;
}

body.no-scroll { 
    overflow: hidden; 
    position: fixed; 
    width: 100%; 
}

.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 20px;
    width: 100%;
}

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); 
}

h3 { 
    font-size: 1.5rem; 
    color: var(--text-light); 
    margin-bottom: 0; 
}

h5 { 
    font-size: 1.2rem; 
    color: var(--primary-blue); 
    margin-bottom: 10px; 
}

p { 
    color: var(--text-muted); 
    margin-bottom: 1rem; 
    word-wrap: break-word;
}

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-flex;
    align-items: center;
    justify-content: center;
    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;
    min-height: 44px;
    touch-action: manipulation;
}

.btn:hover { 
    background-color: var(--primary-hover); 
    border-color: var(--primary-hover); 
    transform: translateY(-3px); 
}

.btn.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: 20px; 
}

.hamburger { 
    display: none; 
    font-size: 2rem; 
    background: none; 
    border: none; 
    color: var(--text-light); 
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

/* 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);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stilovi za Izbornik Jezika */
.lang-switcher {
    display: flex;
    background-color: var(--bg-surface);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.lang-switcher a {
    padding: 5px 15px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-switcher a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher a.active {
    background-color: var(--primary-blue);
    color: #fff;
    pointer-events: none;
}

.lang-switcher-mobile {
    margin-top: 40px;
    display: flex;
    background-color: var(--bg-surface);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.lang-switcher-mobile a {
    padding: 8px 25px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
}

.lang-switcher-mobile a.active {
    background-color: var(--primary-blue);
    color: #fff;
    pointer-events: none;
}

/* ==========================================================================
   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('slike/fiskalna-kasa-2.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); 
}

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: start; 
    width: 100%;
}

.about-image img { 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.clickable-image { 
    cursor: pointer; 
}

.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px; 
    align-items: flex-start;
    width: 100%;
}

.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 { 
    width: 100%; 
}

.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;
    box-sizing: border-box;
}

.contact-form button { 
    width: 100%; 
}

/* ==========================================================================
   5. Grid Sustavi - Kompletno prepisan za mobilnu kompatibilnost
   ========================================================================== */

/* SERVICES GRID - Funkcionalnosti fiskalne kase */
.services-grid { 
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    justify-content: center;
}

.feature-circle-card {
    text-align: center;
    padding: 25px 15px;
    flex: 1 1 300px; /* Flex basis 300px, može rasti i skupljati se */
    min-width: 280px;
    max-width: 350px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-circle-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
}

.feature-icon-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.feature-circle-card:hover .feature-icon-circle {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.feature-icon-circle i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    transition: color 0.3s ease-in-out;
}

.feature-circle-card:hover .feature-icon-circle i {
    color: var(--text-light);
}

.feature-circle-card h5 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.feature-circle-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* PRICING GRID - Cijene programa */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 50px;
    width: 100%;
    justify-content: center;
}

.price-card {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1 1 250px; /* Flex basis 250px */
    min-width: 220px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-hover));
}

.price-card .price-icon {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.price-card:hover .price-icon {
    color: var(--primary-hover);
    transform: scale(1.1);
}

.price-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 700;
}

.price-card .price-category {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 20px;
    font-weight: 500;
}

.price-card .price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.pricing-notice {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   6. Tablice
   ========================================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    -webkit-overflow-scrolling: touch;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
}

.features-table th, 
.features-table td {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    vertical-align: middle;
    word-wrap: break-word;
    hyphens: auto;
}

.features-table th {
    background-color: var(--primary-hover);
    font-weight: 600;
    color: white;
}

.features-table .fa-check {
    color: #28a745;
    font-size: 1.3rem;
}

.features-table .col-feature {
    text-align: left;
    width: 60%;
}

.features-table .col-check {
    text-align: center;
    width: 130px;
}

/* ==========================================================================
   7. Reference Lista
   ========================================================================== */
.reference-list {
    padding: 0;
    list-style: none;
    column-count: 3;
    column-gap: 30px;
    text-align: left;
    width: 100%;
}

.reference-list li {
    background-color: var(--bg-surface);
    padding: 12px 18px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-blue);
    break-inside: avoid-column;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    width: 100%;
}

.reference-list li:hover {
    background-color: var(--border-color);
    color: var(--text-light);
}

.reference-list li:nth-child(n+31) {
    display: none;
}

#loadMoreBtn {
    display: block;
    margin: 30px auto 0 auto;
    cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.newly-shown {
  animation: fadeIn 0.5s ease-in-out;
}

/* ==========================================================================
   8. 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; 
    animation: zoomIn 0.3s; 
}

@keyframes zoomIn { 
    from { transform: scale(0.8); } 
    to { transform: scale(1); } 
}

.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: -200px;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    color: var(--text-muted);
    padding: 20px 40px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    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;
    padding-right: 20px;
}

.cookie-banner a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.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); 
}

/* ==========================================================================
   9. RESPONZIVNOST - TABLETI (768px - 992px)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    /* Tipografija */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    /* Services Grid - 2 po redu na tabletima */
    .services-grid {
        gap: 20px;
    }
    
    .feature-circle-card {
        flex: 1 1 45%; /* 2 po redu */
        min-width: 250px;
        max-width: none;
    }
    
    /* Pricing Grid - 2 po redu na tabletima */
    .pricing-grid {
        gap: 20px;
    }
    
    .price-card {
        flex: 1 1 45%; /* 2 po redu */
        min-width: 200px;
        max-width: none;
    }
    
    .price-card .price-amount {
        font-size: 2.2rem;
    }
    
    /* Tablice postaju kartice */
    .table-wrapper {
        overflow-x: visible;
    }
    
    .features-table {
        border: 0;
        width: 100%;
    }
    
    .features-table thead {
        display: none;
    }
    
    .features-table tbody {
        width: 100%;
    }
    
    .features-table tr {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        background-color: var(--bg-surface);
    }
    
    .features-table td {
        display: block;
        width: 100%;
        text-align: right;
        padding: 12px 15px;
        position: relative;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .features-table td:last-child {
        border-bottom: 0;
    }
    
    .features-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 15px;
        top: 12px;
        width: 50%;
        font-weight: bold;
        color: var(--primary-blue);
        text-align: left;
        font-size: 0.9rem;
    }
    
    .features-table .col-feature {
        background-color: var(--bg-dark);
        padding: 15px;
        text-align: left !important;
        font-weight: 500;
        color: var(--text-light);
        width: 100%;
    }
    
    .features-table .col-feature:before {
        display: none;
    }
    
    .features-table .col-check {
        width: 100%;
        text-align: center !important;
    }
    
    /* Ostali gridovi na tabletima */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .reference-list {
        column-count: 2;
        column-gap: 20px;
    }
}

/* ==========================================================================
   10. RESPONZIVNOST - MOBITELI (do 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Sprječava horizontalni skrol */
    html, body {
        width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
    }
    
    /* Navigacija */
    .nav-main, 
    .header-actions .lang-switcher {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero sekcija */
    .hero {
        padding: 150px 0 80px 0;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Sekcije */
    .section {
        padding: 60px 0;
    }
    
    /* SERVICES GRID - 1 kolona na mobilnom */
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .feature-circle-card {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 0;
    }
    
    .feature-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon-circle i {
        font-size: 2rem;
    }
    
    /* PRICING GRID - 1 kolona na mobilnom */
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .price-card {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 0;
        padding: 30px 20px;
    }
    
    .price-card .price-amount {
        font-size: 2.2rem;
    }
    
    /* OSTALI GRIDOVI POSTAJU BLOK */
    .about-grid,
    .contact-wrapper {
        display: block !important;
        width: 100%;
    }
    
    .about-grid > *,
    .contact-wrapper > * {
        width: 100%;
        margin-bottom: 25px;
        display: block;
    }
    
    .about-grid > *:last-child,
    .contact-wrapper > *:last-child {
        margin-bottom: 0;
    }
    
    /* Reference lista */
    .reference-list {
        column-count: 1;
        column-gap: 0;
        width: 100%;
    }
    
    .reference-list li {
        width: 100%;
        margin-bottom: 10px;
        font-size: 0.9rem;
        display: block;
        break-inside: auto;
    }
    
    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        text-align: center;
        width: 100%;
    }
    
    .cookie-banner p {
        padding-right: 0;
        margin-bottom: 15px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Form elementi */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Sprječava zoom na iOS */
    }
    
    /* Tipografija */
    h2 { font-size: 1.8rem; }
    
    body {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ==========================================================================
   11. RESPONZIVNOST - MALI MOBITELI (do 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Feature kartice još manje */
    .feature-circle-card {
        padding: 20px 15px;
    }
    
    .feature-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon-circle i {
        font-size: 1.8rem;
    }
    
    .feature-circle-card h5 {
        font-size: 1rem;
    }
    
    .feature-circle-card p {
        font-size: 0.9rem;
    }
    
    /* Price kartice još manje */
    .price-card {
        padding: 25px 15px;
    }
    
    .price-card .price-amount {
        font-size: 2rem;
    }
    
    .price-card h3 {
        font-size: 1.3rem;
    }
    
    .price-card .price-category {
        font-size: 0.9rem;
    }
    
    /* Reference lista manja */
    .reference-list li {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   12. DODATNE SIGURNOSNE MJERE
   ========================================================================== */

/* Osigurava da se ništa ne prelije preko */
* {
    max-width: 100%;
}

/* Posebno za img tagove */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tablice nikad ne smiju biti šire od kontejnera */
table {
    max-width: 100%;
    word-wrap: break-word;
    table-layout: fixed;
}

/* Dugački tekstovi se prelome */
p, li, td, th {
    word-wrap: break-word;
    hyphens: auto;
}
/* ==========================================================================
   DEBUG POPRAVAK ZA TABLICE - POSTUPNO TESTIRANJE
   ========================================================================== */

/* UKLONITE PRETHODNI CSS I DODAJTE OVAJ */

/* KORAK 1: OSNOVNI MOBILE POPRAVAK - BEZ KOMPLIKACIJA */
@media screen and (max-width: 768px) {
    
    /* JEDNOSTAVNO - TABLICE POSTAJU NORMALNE KARTICE */
    .table-wrapper {
        width: 100%;
        overflow-x: visible;
        margin: 20px 0;
    }
    
    .features-table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        border: none;
    }
    
    /* SAKRIJ ZAGLAVLJA */
    .features-table thead {
        display: none;
    }
    
    /* TIJELO TABLICE */
    .features-table tbody {
        display: block;
        width: 100%;
    }
    
    /* SVAKI RED = JEDNA KARTICA */
    .features-table tr {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* SVE ĆELIJE U BLOK */
    .features-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        position: relative;
    }
    
    /* ZADNJA ĆELIJA BEZ BORDERA */
    .features-table td:last-child {
        border-bottom: none;
    }
    
    /* DODAJ LABELE PRIJE SADRŽAJA - JEDNOSTAVNO */
    .features-table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: var(--primary-blue);
        display: inline-block;
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    /* PRVA ĆELIJA (FUNKCIONALNOST) - POSEBAN STIL */
    .features-table .col-feature {
        background: var(--bg-dark);
        color: var(--text-light);
        font-weight: 600;
        padding: 15px;
    }
    
    /* PRVA ĆELIJA NEMA LABEL */
    .features-table .col-feature:before {
        display: none;
    }
    
    /* ĆELIJE S CHECKMARK */
    .features-table .col-check {
        text-align: center;
        padding: 10px 15px;
    }
    
    /* CHECKMARK IKONE */
    .features-table .col-check i {
        color: #28a745;
        font-size: 1.2rem;
        margin-left: 10px;
    }
    
}
/* KORAK 2: PROVJERI FUNKCIONIRA LI - AKO DA, NASTAVI S POBOLJŠANJIMA */

/* POBOLJŠANJA - DODAJ SAMO AKO GORE RADI */
@media screen and (max-width: 768px) {
    
    /* ANIMACIJA */
    .features-table tr {
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }
    
    .features-table tr:nth-child(1) { animation-delay: 0.1s; }
    .features-table tr:nth-child(2) { animation-delay: 0.2s; }
    .features-table tr:nth-child(3) { animation-delay: 0.3s; }
    .features-table tr:nth-child(4) { animation-delay: 0.4s; }
    .features-table tr:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* HOVER EFEKT */
    .features-table tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
        border-color: var(--primary-blue);
    }
    
}
/* ==========================================================================
   POPRAVAK ZA "UČITAJ VIŠE" FUNKCIONALNOST
   ========================================================================== */

/* OSNOVNO - REFERENTE LISTA STILOVI */
.reference-list {
    padding: 0;
    list-style: none;
    width: 100%;
}

.reference-list li {
    background-color: var(--bg-surface);
    padding: 12px 18px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-blue);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    break-inside: avoid;
}

.reference-list li:hover {
    background-color: var(--border-color);
    color: var(--text-light);
}

/* KLJUČNO - SAKRIJ STAVKE PREKO 30 */
.reference-list li:nth-child(n+31) {
    display: none !important;
}

/* UČITAJ VIŠE BUTTON */
#loadMoreBtn {
    display: block;
    margin: 30px auto 0 auto;
    cursor: pointer;
}

/* ANIMACIJA ZA NOVO UČITANE STAVKE */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.newly-shown {
    animation: fadeIn 0.5s ease-in-out;
}

/* ==========================================================================
   RESPONZIVNI STILOVI - POPRAVLJENI
   ========================================================================== */

/* DESKTOP - 3 KOLONE */
@media screen and (min-width: 993px) {
    .reference-list {
        column-count: 3;
        column-gap: 30px;
        text-align: left;
    }
}

/* TABLET - 2 KOLONE */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .reference-list {
        column-count: 2;
        column-gap: 20px;
        text-align: left;
    }
}

/* MOBITEL - 1 KOLONA */
@media screen and (max-width: 768px) {
    .reference-list {
        column-count: 1 !important;
        column-gap: 0 !important;
        width: 100% !important;
    }
    
    .reference-list li {
        width: 100% !important;
        margin-bottom: 10px !important;
        font-size: 0.9rem !important;
        display: block !important;
        break-inside: auto !important;
        float: none !important;
    }
    
    /* KLJUČNO - ZADRŽAJ nth-child LOGIKU NA MOBILNOM */
    .reference-list li:nth-child(n+31) {
        display: none !important;
    }
    
    /* POKAZANE STAVKE */
    .reference-list li.show-item {
        display: block !important;
    }
}