:root {
    --bg-color: #0B0B0B;
    --accent-blue: #007AFF;
}

/* Animacija strelice za mobilnu – skakanje gore-dole + titranje (još sadržaja desno) */
@keyframes mobile-swipe-bounce {
    0%, 100% { transform: translateX(0) translateY(0); opacity: 1; }
    50% { transform: translateX(4px) translateY(-8px); opacity: 0.85; }
}
@keyframes mobile-swipe-shimmer {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6)); }
    50% { filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.9)); }
}

body {
    background-color: var(--bg-color);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lucide ikone u krugovima (Od čega se sastoji) – vidljive, plava stroke, iznad ostalog (z-index) */
section .w-12.h-12.rounded-full,
section .flex.items-start.gap-4 .w-12.h-12.rounded-full {
    position: relative;
    z-index: 2;
}
section .w-12.h-12.rounded-full svg,
section .w-12.h-12.rounded-full i[data-lucide],
section .flex.items-start.gap-4 .w-12.h-12 svg,
section .flex.items-start.gap-4 .w-12.h-12 i[data-lucide] {
    position: relative;
    z-index: 3;
    stroke: currentColor !important;
    color: rgb(59 130 246) !important;
    stroke-width: 2 !important;
    fill: none !important;
}

/* Sekcija „Od čega se sastoji” – INLINE SVG ikone, uvijek vidljive (ne ovise o Lucide JS) */
.consists-of-icon {
    position: relative;
    z-index: 5;
}
.consists-of-icon svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 6;
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
    fill: none !important;
    flex-shrink: 0;
}

/* Menu app – Ključne funkcionalnosti ikone (mobilna i desktop) */
.menu-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menu-feature-icon svg {
    display: block;
    visibility: visible;
    opacity: 1;
    flex-shrink: 0;
}

/* What We Build – ikone uvijek vidljive (desktop i mobilna) */
#what-we-build .what-we-build-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
}

/* Key Values kartice – inline SVG ikone uvijek vidljive */
.key-value-svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (min-width: 768px) {
    body {
        cursor: none;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    body {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Hide cursor on mobile */
    #cursor,
    #cursor-follower {
        display: none !important;
    }
    
    /* Mobile hero section */
    section:first-of-type {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    /* Mobile spacing adjustments */
    .hero-subtitle {
        margin-bottom: 1rem !important;
    }
    
    /* Mobile text adjustments */
    .hero-subtitle p {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }
}

.font-syne { font-family: 'Syne', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #007AFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: block;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.8);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 122, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure security.html cards are visible */
#security-features .glass,
#security-standards .glass,
section .glass {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force packages section to be visible */
#packages {
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    min-height: 600px;
}

#packages .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    #packages .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

#packages .glass {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
    min-height: 500px;
}

/* Paketi – zelene check ikone vidljive (desktop i mobilna) */
#packages .package-check-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Desktop: srednja kartica (Pro) – deblji zeleni okvir da se istakne */
@media (min-width: 768px) {
    #packages .grid .glass:nth-child(2) {
        border-width: 4px !important;
        border-color: rgb(34, 197, 94) !important;
        border-style: solid !important;
        box-shadow: 0 0 24px rgba(34, 197, 94, 0.25) !important;
    }
}

/* Menu app – paketi unutar granica stranice na mobilnoj + jasno razdvojeni */
@media (max-width: 767px) {
    #packages {
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #packages .max-w-7xl,
    #packages .max-w-6xl {
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
    #packages .grid {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0;
        gap: 0 !important;
        row-gap: 0 !important;
    }
    /* Svaka kartica – paketi se NE SMIJU doticati: fiksiran margin između */
    #packages .glass {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
        padding: 1.5rem !important;
        margin: 0 !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
        border-radius: 1rem !important;
    }
    #packages .grid .glass:nth-child(1) {
        margin-bottom: 2.5rem !important;
    }
    #packages .grid .glass:nth-child(2) {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    #packages .grid .glass:nth-child(3) {
        margin-top: 2.5rem !important;
    }
    /* Basic – prva kartica, suptilna zelena lijevo */
    #packages .grid .glass:nth-child(1) {
        border-left: 4px solid rgba(34, 197, 94, 0.5) !important;
    }
    /* Pro – druga kartica, naglašena (zeleni okvir + blagi pozadinski ton) */
    #packages .grid .glass:nth-child(2) {
        border: 2px solid rgb(34, 197, 94) !important;
        border-left: 4px solid rgb(34, 197, 94) !important;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 197, 94, 0.2), 0 0 20px rgba(34, 197, 94, 0.08) !important;
    }
    /* Enterprise – treća kartica, suptilna zelena lijevo */
    #packages .grid .glass:nth-child(3) {
        border-left: 4px solid rgba(34, 197, 94, 0.5) !important;
    }
    /* Pro paket – ukloni scale na mobilnoj da ne izlazi iz okvira */
    #packages .glass.scale-105 {
        transform: none !important;
    }
    #packages .glass .text-5xl {
        font-size: 2.25rem !important;
    }
    #packages .glass .text-2xl {
        font-size: 1.35rem !important;
    }
}

/* App Screenshots Section */
#app-screenshots {
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

#app-screenshots .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    #app-screenshots .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

#app-screenshots .glass {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
}

#app-screenshots h2,
#app-screenshots h3,
#app-screenshots p {
    color: inherit !important;
    visibility: visible !important;
}

/* Horizontal Scroll Container */
.horizontal-trigger {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background-color: #0F0F0F;
}

.horizontal-container {
    display: flex;
    width: 400vw;
    min-height: 100vh;
    height: 100vh;
    will-change: transform;
    position: relative;
    transform: translateX(0);
}

/* Desktop: Ensure visibility */
@media (min-width: 768px) {
    .horizontal-trigger {
        overflow: hidden;
        position: relative;
        min-height: 100vh;
        height: 100vh;
        z-index: 1;
    }
    
    .horizontal-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 1;
    }
    
    .product-card {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        position: relative;
        z-index: 1;
    }
    
    .product-card * {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767px) {
    .horizontal-trigger {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        position: relative !important;
        width: 100vw;
        min-height: 100vh;
        height: auto;
    }
    
    .horizontal-container {
        display: flex !important;
        flex-direction: row !important;
        width: 400vw !important;
        min-height: 100vh;
        height: auto;
        transform: none !important;
        will-change: auto !important;
    }
    
    .product-card {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        min-height: 100vh;
        height: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        flex-shrink: 0 !important;
        padding: 80px 0 40px !important;
        transform: none !important;
        position: relative !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    /* Hide scrollbar but keep functionality */
    .horizontal-trigger::-webkit-scrollbar {
        display: none;
    }
    
    .horizontal-trigger {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Touch optimizations */
    .horizontal-trigger {
        touch-action: pan-x pinch-zoom;
    }
    
    /* Ensure all content is visible and scrollable */
    .product-card > div:first-of-type {
        min-height: 100vh;
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    /* Force visibility of all child elements */
    .product-card * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-card .grid {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-card .grid > div {
        display: block !important;
    }
    
    /* Ensure mockup cards are visible */
    .mockup-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        transform: none !important;
    }
    
    /* Reset any GSAP transforms on mobile */
    .product-card,
    .horizontal-container,
    .horizontal-container * {
        transform: none !important;
    }
    
    /* Ensure icons are visible */
    .product-card i[data-lucide],
    .product-card svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1920px) {
    .horizontal-container {
        width: 400vw;
    }
}

.product-card {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.product-card > div:first-of-type {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .product-card > div:first-of-type {
        min-height: 100vh;
        height: auto;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.product-card .grid {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 6%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .product-card .grid {
        padding: 0 5% !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-card .grid > div:first-child {
        order: 1;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .product-card .grid > div:last-child {
        order: 2;
        margin-top: 1rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    /* Ensure mockup cards are visible */
    .mockup-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        transform: none !important;
    }
    
    /* Ensure all icons and content are visible */
    .product-card i[data-lucide],
    .product-card svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1024px) {
    .product-card .grid {
        padding: 0 8%;
        max-width: 1900px;
    }
}

@media (min-width: 1440px) {
    .product-card .grid {
        padding: 0 10%;
        max-width: 2000px;
    }
}

@media (min-width: 1920px) {
    .product-card .grid {
        padding: 0 12%;
        max-width: 2400px;
    }
}

/* Text content improvements */
.product-card .max-w-2xl {
    width: 100%;
}

.product-card h2 {
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.product-card p {
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* Perspective Effects */
.perspective-1000 { 
    perspective: 1000px; 
}

@media (min-width: 1024px) {
    .perspective-1000 { 
        perspective: 1200px; 
    }
}

.mockup-card {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 768px) {
    .mockup-card:hover {
        transform: rotateY(10deg) rotateX(5deg) scale(1.02);
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 10px; }

.char { display: inline-block; }

/* Prevent word breaking in headlines */
h1, h2, h3 {
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
}

#hero-headline {
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    white-space: normal;
}

#hero-headline span.block {
    display: block;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* Ensure words don't break within hero headline */
#hero-headline .char {
    white-space: normal;
    word-break: keep-all;
    display: inline-block;
}

/* Word containers should not break */
#hero-headline span[style*="inline-block"] {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-in {
    opacity: 0;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
}

/* Mobile Menu Styles */
/* Hamburger dugme – UVIJEK vidljivo na mobilnoj: CSS ikona (ne ovisi o Lucide) */
@media (max-width: 767px) {
    nav.fixed {
        z-index: 99999 !important;
    }
    /* Desna kolona nav-a: dozvoli smanjenje da hamburger uvijek stane */
    nav div:has(#mobile-menu-btn) {
        min-width: 0 !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }
    /* CTA link smanjuje se pri nedostatku prostora, hamburger nikad */
    nav a.nav-cta-btn {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 10rem;
    }
    #lang-toggle {
        flex-shrink: 0 !important;
    }
    #mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0 !important;
        align-items: center;
        justify-content: center;
        width: 2.75rem !important;
        min-width: 2.75rem !important;
        height: 2.75rem !important;
        min-height: 2.75rem !important;
        padding: 0.5rem !important;
        color: #fff !important;
        position: relative;
        z-index: 10 !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: transparent !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 1.5rem 1.5rem;
        border: none;
    }
    /* Sakrij Lucide ikonu – koristimo CSS background da ikona uvijek bude vidljiva */
    #mobile-menu-btn i[data-lucide],
    #mobile-menu-btn svg {
        display: none !important;
    }
    body nav #mobile-menu-btn {
        opacity: 1 !important;
    }
}

/* Mobilni meni – font kao footer (font-mono), svi elementi vidljivi, scroll */
#mobile-menu {
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    -webkit-overflow-scrolling: touch;
}
#mobile-menu .mobile-menu-inner {
    min-height: min-content;
    padding-bottom: 2rem;
}
#mobile-menu a,
#mobile-menu button {
    -webkit-tap-highlight-color: transparent;
}
#mobile-menu a {
    display: block;
}
#mobile-menu .mobile-menu-nav-link {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
#mobile-menu .mobile-menu-sub-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
#mobile-menu .mobile-menu-cta {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
#mobile-menu .mobile-menu-lang-btn {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Touch optimizations */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    /* Mobile product card adjustments - consolidated */
@media (max-width: 767px) {
    .product-card h2 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .product-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .product-card .space-y-6 {
        gap: 1.5rem;
    }
    
    .product-card button {
        font-size: 0.75rem;
        padding: 0.75rem 1.5rem;
    }
    
    .mockup-card {
        margin-top: 2rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile navigation spacing */
    nav {
        padding: 0.75rem 1rem;
    }
    
    /* Mobile hero adjustments */
    section:first-of-type {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Hero: dodatnih 30px prostora prema dole (prazan dio ispod sadržaja) */
    #hero {
        padding-bottom: calc(4rem + 30px);
    }
    
    /* Mobile button text wrapping */
    button {
        white-space: nowrap;
    }
    
    /* Mobile stats grid */
    section.bg-white .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Force visibility of all elements */
    .product-card,
    .product-card *,
    .product-card .grid,
    .product-card .grid > * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-card {
        display: flex !important;
    }
    
    .product-card .grid {
        display: grid !important;
    }
    
    .product-card .grid > div {
        display: block !important;
    }
    
    /* Ensure mockup cards are visible */
    .mockup-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        transform: none !important;
    }
    
    /* Reset any GSAP transforms on mobile */
    .product-card,
    .horizontal-container,
    .horizontal-container * {
        transform: none !important;
    }
    
    /* Ensure icons are visible */
    .product-card i[data-lucide],
    .product-card svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .product-card .grid {
        gap: 4rem;
    }
}

@media (min-width: 1440px) {
    .product-card .grid {
        gap: 6rem;
    }
}

@media (min-width: 1920px) {
    .product-card .grid {
        gap: 8rem;
    }
}

/* Mobil: naslovi ne izlaze van ekrana + manji razmak u karticama (Key Values / Prilagođeni Sistemi) */
@media (max-width: 767px) {
    /* Ikone u sekcijama „Od čega se sastoji” – vidljive na mobilnoj, z-index da ne budu ispod ničega */
    section .w-12.h-12.rounded-full,
    section .flex.items-start.gap-4 .w-12.h-12.rounded-full {
        position: relative !important;
        z-index: 5 !important;
    }
    section .w-12.h-12.rounded-full i[data-lucide],
    section .w-12.h-12.rounded-full svg,
    section .flex.items-start.gap-4 i[data-lucide],
    section .flex.items-start.gap-4 svg {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        position: relative !important;
        z-index: 6 !important;
    }
    section .w-12.h-12.rounded-full svg,
    section .flex.items-start.gap-4 .w-12.h-12 svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
        min-width: 1.5rem !important;
        min-height: 1.5rem !important;
        stroke: currentColor !important;
        color: rgb(59 130 246) !important;
        stroke-width: 2 !important;
        fill: none !important;
    }
    /* Hero naslovi – prelom i manji font da ne izlaze (npr. QR Meni i Digitalno Naručivanje) */
    section h1,
    section .text-4xl.md\:text-6xl,
    section .text-4xl.md\:text-6xl.lg\:text-7xl.xl\:text-8xl {
        font-size: clamp(1.4rem, 7vw, 2.35rem) !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    /* Kartice (glass) – naslov h3 ne izlazi, prelom */
    .glass h3,
    .glass .text-xl.md\:text-2xl.font-bold,
    a.glass h3 {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    /* Smanjen nepotrebni razmak u karticama (slika 2 – Prilagođeni Sistemi) */
    .glass.rounded-2xl.p-6.md\:p-8,
    .glass.rounded-xl.md\:rounded-2xl.p-6.md\:p-8,
    a.glass.rounded-2xl.p-6.md\:p-8 {
        padding: 0.875rem 0.75rem !important;
    }
    .glass .mb-4.md\:mb-6,
    .glass [class*="text-blue-500"].mb-4,
    .glass [class*="text-green-500"].mb-4 {
        margin-bottom: 0.6rem !important;
    }
    .glass h3.mb-4,
    .glass .text-xl.md\:text-2xl.font-bold.mb-4 {
        margin-bottom: 0.4rem !important;
    }
    /* What We Build – blage boje na mobilnoj i klikabilne kartice */
    #what-we-build .grid > a.glass {
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }
    #what-we-build .grid > a.glass:active {
        transform: scale(0.98);
    }
    #what-we-build .grid > *:nth-child(1) {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    }
    #what-we-build .grid > *:nth-child(2) {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    }
    #what-we-build .grid > *:nth-child(3) {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    }
    #what-we-build .grid > *:nth-child(4) {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    }
    #what-we-build .grid > *:nth-child(5) {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    }
    #what-we-build .grid > *:nth-child(6) {
        background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    }
    /* Blagi razmak između Key Values (Skalabilan Rast) i Solutions (Rent A Car) na mobilnoj */
    #key-values {
        padding-bottom: 2.5rem !important;
    }
    #solutions {
        padding-top: 2.5rem !important;
    }
    /* Key Values – tri kartice punije s bojom i ikonama na mobilnoj */
    #key-values .key-value-card {
        border-left-width: 4px !important;
    }
    #key-values .key-value-card-1 {
        border-left-color: rgb(59 130 246) !important;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    }
    #key-values .key-value-card-2 {
        border-left-color: rgb(34 197 94) !important;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    }
    #key-values .key-value-card-3 {
        border-left-color: rgb(192 132 252) !important;
        background: linear-gradient(135deg, rgba(192, 132, 252, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    }
    #key-values .key-value-icon-wrap {
        flex-shrink: 0;
    }
    #key-values .key-value-icon-blue {
        background: rgba(59, 130, 246, 0.2);
        border: 1px solid rgba(59, 130, 246, 0.4);
    }
    #key-values .key-value-icon-green {
        background: rgba(34, 197, 94, 0.2);
        border: 1px solid rgba(34, 197, 94, 0.4);
    }
    #key-values .key-value-icon-purple {
        background: rgba(192, 132, 252, 0.2);
        border: 1px solid rgba(192, 132, 252, 0.4);
    }
    /* Inline SVG ikone u Key Values karticama – uvijek vidljive */
    .key-value-svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
    }
    #key-values .key-value-card .mt-4.flex.items-center.gap-2 {
        opacity: 1 !important;
    }
    #key-values .key-value-card-1 .mt-4.flex.items-center.gap-2 {
        color: rgb(59 130 246) !important;
    }
    #key-values .key-value-card-2 .mt-4.flex.items-center.gap-2 {
        color: rgb(34 197 94) !important;
    }
    #key-values .key-value-card-3 .mt-4.flex.items-center.gap-2 {
        color: rgb(192 132 252) !important;
    }
    /* Na mobilnoj u headeru samo jedno dugme – plavo. Sakriti Contact i bilo koji drugi tekst/link. */
    nav a[href="contact.html"]:not(.nav-cta-btn):not([class*="rounded-full"]) {
        display: none !important;
    }
    /* Sakriti i bilo koji nav link koji izgleda kao običan tekst (nema plavu pill) */
    nav a[href="contact.html"]:not([class*="bg-blue-600"]):not([class*="bg-purple-600"]) {
        display: none !important;
    }
    /* Jedino plavo CTA dugme u nav-u – vidljivo i stilizirano na mobilnoj (i kad ima hidden md:block) */
    .nav-cta-btn,
    nav a.nav-cta-btn,
    nav a[href="contact.html"][class*="bg-blue-600"],
    nav a[href="contact.html"][class*="bg-purple-600"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.625rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 2.25rem;
        border-radius: 9999px;
        background: #2563eb !important;
        color: #fff !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
        -webkit-tap-highlight-color: transparent;
        border: none;
    }
    .nav-cta-btn:hover,
    nav a.nav-cta-btn:hover,
    nav a[href="contact.html"][class*="bg-blue-600"]:hover,
    nav a[href="contact.html"][class*="bg-purple-600"]:hover {
        background: #3b82f6 !important;
        color: #fff !important;
    }
    /* Scroll-to-top strelica – potpuno vidljiva, jednaki razmaci u desnom dnu */
    #scroll-to-top {
        right: calc(1.25rem + 10px) !important;
        bottom: 1.25rem !important;
        width: 3rem !important;
        height: 3rem !important;
        min-width: 3rem !important;
        min-height: 3rem !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 !important;
    }
    @supports (padding: env(safe-area-inset-right)) {
        #scroll-to-top {
            right: calc(1.25rem + 10px + env(safe-area-inset-right, 0px)) !important;
            bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
        }
    }
    /* Stats sekcija (Transakcije, Dostupnost, itd.) – izbacena na mobilnoj */
    #stats-section {
        display: none !important;
    }
    /* Šta gradimo – kartice se ne preklapaju na mobilnoj (Tržišna analitika i ostale) */
    #what-we-build .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        grid-auto-rows: minmax(min-content, auto) !important;
    }
    #what-we-build .grid > * {
        position: relative !important;
        z-index: 0 !important;
        transform: none !important;
        min-height: 0;
        overflow: visible;
    }
    /* Footer naslov (Spreman za / NADGRADNJU) – na mobilnoj ne prelijeva preko ekrana */
    footer .flex-1 {
        min-width: 0;
        max-width: 100%;
    }
    footer h2,
    #contact h2,
    footer .text-4xl.sm\:text-5xl.md\:text-6xl {
        font-size: clamp(1.35rem, 6.5vw, 2.25rem) !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    footer .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    /* Footer sadržaj na sredinu na mobilnoj */
    footer .max-w-7xl > div:first-of-type {
        align-items: center !important;
        text-align: center;
    }
    footer .max-w-7xl .flex-1,
    footer .max-w-7xl .md\:ml-auto {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer .max-w-7xl .flex-1 .flex.flex-col.sm\:flex-row {
        justify-content: center;
    }
    footer .max-w-7xl .md\:text-right,
    footer .max-w-7xl [class*="text-right"] {
        text-align: center !important;
    }
    footer .max-w-7xl .space-y-4 .flex {
        justify-content: center;
    }
    footer .max-w-7xl .pt-8 {
        align-items: center;
        text-align: center;
    }
    footer .max-w-7xl .pt-8 > * {
        text-align: center;
    }
    /* Footer logo (kao u headeru) – na mobilnoj centriran */
    footer .footer-logo-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer .footer-bottom-logo {
        justify-content: center;
    }
    /* Strelice ispod prvog proizvoda – skakanje + titranje (ima još desno: Menu App, itd.) */
    .mobile-swipe-arrow {
        animation: mobile-swipe-bounce 1.4s ease-in-out infinite, mobile-swipe-shimmer 1.4s ease-in-out infinite;
    }
    .mobile-swipe-hint {
        animation: mobile-swipe-shimmer 1.4s ease-in-out infinite;
    }
}

