/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: transparent !important;
}

section.hero-text {
    background: transparent !important;
}

section.hero-text * {
    background: transparent !important;
}

:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    background: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: transparent;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-menu a, .service-card {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    }
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 1rem;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide language switcher in navbar on desktop */
.nav-lang-switcher {
    display: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-logo-with-text {
    height: 45px;
    width: auto;
    max-height: 50px;
}

/* Hide icon and text span when logo with text is present */
.nav-brand:has(.nav-logo-with-text) i,
.nav-brand:has(.nav-logo-with-text) span {
    display: none;
}

/* Hide icon when logo is present */
.nav-brand:has(.nav-logo) i {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.nav-login {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    margin-left: 10px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-menu a.nav-login::after {
    display: none;
}

.nav-menu a.nav-login:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

/* Language Switcher - Top Right Corner */
.language-switcher-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: block;
}

/* Language Switcher in Navbar - On desktop, use corner position */
@media (min-width: 769px) {
    .language-switcher-corner.nav-lang-switcher {
        position: fixed;
        top: 20px;
        right: 20px;
        display: block !important;
    }
}

.lang-toggle-corner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.lang-toggle-corner:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.lang-menu-corner {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-switcher-corner.active .lang-menu-corner {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-option.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.cookie-text i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: 2px solid;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cookie-accept {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cookie-decline {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-dark);
}

.cookie-decline:hover {
    background: var(--light-bg);
    border-color: var(--text-dark);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: var(--white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulseWhatsApp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

.lang-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-option:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.lang-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.lang-option:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Image Section */
.hero-image {
    position: relative;
    width: 100%;
    height: 110vh; /* <-- POVEĆANO za par cm odozgo */
    background-image: url('img/hero-desktop.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}

/* Hero Text Section */
.hero-image .hero-text {
    position: relative;
    width: auto;
    max-width: 900px;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-align: center;
    z-index: 2;
    margin-bottom: 0;
    border-radius: 15px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text::before,
.hero-text::after {
    display: none !important;
    background: transparent !important;
}

.hero-image .hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-image .hero-text p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    background: transparent !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: transparent !important;
}

.hero-actions .btn-primary {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.hero-actions .btn-primary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.6);
}

.hero-actions .btn-secondary {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.hero-actions .btn-secondary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.6);
}

@media (min-width: 769px) {
    .hero-background-image {
        background-size: 90%;
    }
}

/* Telematics Overlay */
.telematics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Radar Rings */
.radar-rings {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 400px;
}

.radar-ring {
    position: absolute;
    border: 3px solid rgba(100, 180, 255, 0.7);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(100, 180, 255, 0.5);
    background: radial-gradient(circle, rgba(100, 180, 255, 0.1) 0%, transparent 70%);
}

.ring-1 {
    width: 140px;
    height: 140px;
    margin-left: -200px;
    margin-top: 90px;
    animation-delay: 0s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    margin-left: -200px;
    margin-top: 90px;
    animation-delay: 0.8s;
}

.ring-3 {
    width: 220px;
    height: 220px;
    margin-left: -200px;
    margin-top: 90px;
    animation-delay: 1.6s;
}

.ring-4 {
    width: 160px;
    height: 160px;
    margin-left: 120px;
    margin-top: 70px;
    animation-delay: 0.4s;
}

.ring-5 {
    width: 200px;
    height: 200px;
    margin-left: 120px;
    margin-top: 70px;
    animation-delay: 1.2s;
}

.ring-6 {
    width: 240px;
    height: 240px;
    margin-left: 120px;
    margin-top: 70px;
    animation-delay: 2s;
}

@keyframes radarPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(100, 180, 255, 0.6);
        box-shadow: 0 0 25px rgba(100, 180, 255, 0.4);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.5);
        border-color: rgba(100, 180, 255, 1);
        box-shadow: 0 0 40px rgba(100, 180, 255, 0.8), 0 0 60px rgba(100, 180, 255, 0.4);
    }
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(100, 180, 255, 0.6);
        box-shadow: 0 0 25px rgba(100, 180, 255, 0.4);
    }
}

/* Data Streams */
.data-streams {
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 250px;
}

.data-stream {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stream-1 {
    left: 25%;
    animation: streamFloat 8s ease-in-out infinite;
}

.stream-2 {
    left: 50%;
    animation: streamFloat 10s ease-in-out infinite 2s;
}

.stream-3 {
    left: 75%;
    animation: streamFloat 9s ease-in-out infinite 4s;
}

.stream-dot {
    width: 4px;
    height: 4px;
    background: rgba(100, 180, 255, 0.35);
    border-radius: 50%;
    animation: dotFloat 6s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(100, 180, 255, 0.4);
}

.stream-dot:nth-child(2) {
    animation-delay: 1.5s;
}

.stream-dot:nth-child(3) {
    animation-delay: 3s;
}

.stream-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to top,
        rgba(100, 180, 255, 0.4) 0%,
        rgba(100, 180, 255, 0.25) 50%,
        transparent 100%);
    margin-top: 5px;
    box-shadow: 0 0 4px rgba(100, 180, 255, 0.3);
}

@keyframes streamFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px);
        opacity: 0.4;
    }
}

@keyframes dotFloat {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}

/* Telematics Icons */
.telematics-icons {
    position: absolute;
    bottom: 22%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 15%;
}

.telematics-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.telematics-icon i {
    font-size: 16px;
    color: rgba(150, 200, 255, 0.9);
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.7);
}

.icon-label {
    font-size: 10px;
    color: rgba(180, 210, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 6px rgba(100, 180, 255, 0.4);
}

.icon-location {
    margin-right: -50px;
}

.icon-speed {
    margin-left: -50px;
}

/* Telemetry Data */
.telemetry-data {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.telemetry-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(20, 30, 50, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    border: 1px solid rgba(249, 115, 22, 0.4);
    animation: telemetryFloat 15s ease-in-out infinite, telemetryPulse 2.5s ease-in-out infinite, telemetryRotate 8s ease-in-out infinite, telemetryFade 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(249, 115, 22, 0.3);
    transform-origin: center center;
}

.telemetry-item i {
    font-size: 20px;
    color: rgba(249, 115, 22, 1);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6));
    animation: iconPulse 2s ease-in-out infinite, iconRotate 6s ease-in-out infinite, iconFade 3s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(100, 180, 255, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 12px rgba(100, 180, 255, 0.9));
    }
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.1);
    }
    50% {
        transform: rotate(5deg) scale(1.05);
    }
    75% {
        transform: rotate(-3deg) scale(1.08);
    }
}

.telemetry-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telemetry-label {
    font-size: 10px;
    color: rgba(180, 210, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.telemetry-value {
    font-size: 14px;
    color: rgba(249, 115, 22, 1);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
    animation: valueGlow 3s ease-in-out infinite;
}

@keyframes valueGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
        color: rgba(249, 115, 22, 1);
    }
    50% {
        text-shadow: 0 0 15px rgba(249, 115, 22, 0.9), 0 0 25px rgba(249, 115, 22, 0.5);
        color: rgba(255, 135, 32, 1);
    }
}

/* Positioning with floating animation - avoiding center where text is */
.item-fuel {
    top: 30%;
    left: 12%;
    animation-delay: 0s, 0s, 0s, 0s;
}

.item-speed-1 {
    top: 25%;
    left: 22%;
    animation-delay: 2.5s, 0.8s, 1.2s, 3s;
}

.item-speed-2 {
    top: 75%;
    left: 52%;
    animation-delay: 5s, 1.5s, 2.4s, 6s;
}

.item-driver {
    top: 20%;
    left: 68%;
    animation-delay: 7.5s, 2.2s, 3.6s, 9s;
}

.item-location {
    top: 80%;
    left: 78%;
    animation-delay: 10s, 2.8s, 4.8s, 12s;
}

.item-temperature {
    top: 60%;
    left: 18%;
    animation-delay: 12.5s, 3.5s, 6s, 15s;
}

.item-rpm {
    top: 35%;
    left: 35%;
    animation-delay: 15s, 4.2s, 7.2s, 18s;
}

.item-voltage {
    top: 55%;
    left: 45%;
    animation-delay: 17.5s, 4.8s, 8.4s, 21s;
}

.item-mileage {
    top: 40%;
    left: 62%;
    animation-delay: 20s, 5.5s, 9.6s, 24s;
}

.item-runtime {
    top: 70%;
    left: 72%;
    animation-delay: 22.5s, 6.2s, 10.8s, 27s;
}

.item-door {
    top: 45%;
    left: 88%;
    animation-delay: 25s, 6.8s, 12s, 30s;
}

.item-alarm {
    top: 50%;
    left: 8%;
    animation-delay: 27.5s, 7.5s, 13.2s, 33s;
}

.item-geofence {
    top: 65%;
    left: 38%;
    animation-delay: 30s, 8.2s, 14.4s, 36s;
}

.item-idle {
    top: 80%;
    left: 28%;
    animation-delay: 32.5s, 8.8s, 15.6s, 39s;
}

.item-fuel-consumption {
    top: 28%;
    left: 58%;
    animation-delay: 35s, 9.5s, 16.8s, 42s;
}

@keyframes telemetryFloat {
    0% {
        transform: translate(0, 0);
    }
    15% {
        transform: translate(80px, -90px);
    }
    30% {
        transform: translate(-70px, 80px);
    }
    45% {
        transform: translate(100px, 70px);
    }
    60% {
        transform: translate(-60px, -100px);
    }
    75% {
        transform: translate(90px, -40px);
    }
    90% {
        transform: translate(-50px, 90px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes telemetryRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(1deg);
    }
}

@keyframes telemetryFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    15% {
        opacity: 1;
        transform: scale(1);
    }
    85% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes telemetryPulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(249, 115, 22, 0.3), 0 0 20px rgba(249, 115, 22, 0.2);
        border-color: rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 115, 22, 0.7), 0 0 40px rgba(249, 115, 22, 0.4);
        border-color: rgba(249, 115, 22, 0.7);
    }
}

.telemetry-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(150, 200, 255, 0.8);
    font-weight: 400;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.6);
    animation: telemetryFloat 8s ease-in-out infinite;
}

.telemetry-label i {
    font-size: 18px;
    color: rgba(150, 200, 255, 0.9);
    text-shadow: 0 0 12px rgba(100, 180, 255, 0.7);
    filter: drop-shadow(0 0 4px rgba(100, 180, 255, 0.5));
}

.telemetry-label span {
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.label-speed {
    top: 55%;
    left: 22%;
    animation-delay: 0s;
}

.label-fuel {
    top: 60%;
    left: 28%;
    animation-delay: 1.5s;
}

.label-engine {
    top: 50%;
    left: 52%;
    animation-delay: 3s;
}

.label-location {
    top: 58%;
    left: 68%;
    animation-delay: 4.5s;
}

.label-warning {
    top: 65%;
    left: 75%;
    animation-delay: 6s;
}

@keyframes telemetryFloat {
    0% {
        opacity: 0;
        transform: translateY(10px) translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-15px) translateX(5px);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) translateX(10px);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: 30%;
    left: 5%;
    animation-duration: 28s;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 50%;
    animation-duration: 32s;
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* GPS Signal Animation */
.gps-signals {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    z-index: 1;
    pointer-events: none;
}

.gps-signal {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
}

.signal-1 {
    top: 15%;
    left: 15%;
    animation: floatSignal 8s infinite ease-in-out;
}

.signal-2 {
    top: 25%;
    right: 20%;
    animation: floatSignal 10s infinite ease-in-out;
    animation-delay: -2s;
}

.signal-3 {
    top: 10%;
    left: 60%;
    animation: floatSignal 12s infinite ease-in-out;
    animation-delay: -4s;
}

.signal-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulseWave 2s infinite;
}

.wave-1 {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.wave-2 {
    width: 60px;
    height: 60px;
    animation-delay: 0.3s;
}

.wave-3 {
    width: 80px;
    height: 80px;
    animation-delay: 0.6s;
}

@keyframes floatSignal {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-15px);
    }
}

@keyframes pulseWave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}


.road-line {
    position: absolute;
    left: 0;
    width: 80px;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.5) 0px,
        rgba(255, 255, 255, 0.5) 40px,
        transparent 40px,
        transparent 80px
    );
    animation: roadMove 2s linear infinite;
}

.road-line:nth-child(1) {
    top: 35%;
    animation-duration: 1.5s;
}

.road-line:nth-child(2) {
    top: 50%;
    animation-duration: 2s;
}

.road-line:nth-child(3) {
    top: 65%;
    animation-duration: 1.8s;
    animation-delay: -0.5s;
}

.road-line:nth-child(4) {
    top: 80%;
    animation-duration: 2.2s;
    animation-delay: -1s;
}

@keyframes roadMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(80px);
    }
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0;
    animation: fadeInUp 1s ease;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-content::before {
    display: none;
}


.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: var(--text-dark);
    text-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-title-text {
    display: inline;
    white-space: nowrap;
}

.hero-title-line-1 {
    display: inline;
    margin: 0;
    white-space: nowrap;
}

.hero-title-line-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    flex-wrap: wrap;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-title-line-2 > span:first-child {
    line-height: inherit;
}

.hero-rotating-word {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 200px;
    height: 1em;
    text-align: left;
    line-height: 1.2;
    margin-left: 0;
    vertical-align: middle;
    max-width: calc(100% - 10px);
    overflow: hidden;
}

.hero-rotating-word .word {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    white-space: normal;
    background: none;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 900;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
    letter-spacing: 1px;
    box-shadow: none;
    max-width: 100%;
    line-height: 1.2;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-rotating-word .word.active {
    opacity: 1;
    position: absolute;
}

.hero-logo-title {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    animation: fadeInUp 1s ease;
}

.section-logo-title {
    max-width: 250px;
    height: auto;
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle;
}

.packages-title-with-logo,
.features-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-logo-title {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 1;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--text-dark);
    text-shadow: none;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--text-light);
    margin: 1.5rem 0 2.5rem 0;
    padding: 0;
    line-height: 1.7;
    font-weight: 400;
    opacity: 1;
    animation: fadeInUp 1s ease 0.3s both;
    text-align: center;
    position: relative;
    z-index: 3;
    display: block;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
    width: 100%;
    margin-top: 1.5rem;
}

.hero-buttons.show {
    display: flex !important;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

/* Optimize animations for performance */
.hero-shapes,
.hero-grid,
.shape {
    will-change: transform;
}

/* Reduce animation on mobile for better performance */
@media (max-width: 768px) {
    .shape {
        filter: blur(40px);
        opacity: 0.2;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
        animation-duration: 40s;
    }
    
    .hero-grid {
        animation-duration: 30s;
    }
    
    .gps-signal {
        font-size: 1.5rem;
    }
    
    .signal-1, .signal-2, .signal-3 {
        animation-duration: 12s;
    }
    
    .vehicle {
        font-size: 2rem;
    }
    
    .vehicle-2 {
        font-size: 1.5rem;
    }
    
    /* Optimize word rotation animation for mobile - smoother and faster */
    .hero-rotating-word .word {
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: opacity;
        transform: translateY(-50%) translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    .hero-rotating-word .word.active {
        opacity: 1 !important;
        position: absolute !important;
        transform: translateY(-50%) translateZ(0) !important;
    }
    
    .hero-rotating-word .word:not(.active) {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
}

@media (prefers-reduced-motion: reduce) {
    .hero-grid,
    .shape {
        animation: none;
    }
}

.hero-scroll i {
    font-size: 2rem;
    color: #475569;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4), 0 2px 10px rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5), 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #475569;
    border-color: #cbd5e1;
    border-width: 2px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: 30px 0;
}

section.hero-text {
    background: transparent !important;
    background-color: transparent !important;
    padding: 4rem 2rem !important;
}

#home.hero-text {
    background: transparent !important;
    background-color: transparent !important;
}

.hero-text {
    background: transparent !important;
    padding: 4rem 2rem !important;
}

.hero-text * {
    background: transparent !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    text-align: center;
    margin: 0.5rem 0 1.5rem 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services .section-subtitle {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.services .section-description {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Packages Section */
.packages {
    background: var(--white);
    padding: 60px 0 30px 0; /* <-- POVEĆAN PADDING-TOP da se povuče dolje */
}

.packages-wrapper {
    position: relative;
    margin-top: 1rem;
}

.packages-navigation {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Pagination dots */
.packages-pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
    flex-wrap: wrap;
}

.packages-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.packages-pagination-dot.active {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.packages-pagination-dot:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: scale(1.15);
}


.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.package-scroll-btn {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.package-scroll-btn:hover {
    background: var(--white);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.package-scroll-btn:active {
    transform: scale(0.95);
}

.package-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.package-scroll-btn i {
    font-size: 1.1rem;
}

.package-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-card.scrolling {
    animation: scrollBounce 0.5s ease-out;
}

@keyframes scrollBounce {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
    100% {
        transform: translateX(0);
    }
}

.package-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.package-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.package-badge.software-badge {
    background: var(--primary-color);
}

.package-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    background: var(--white);
}

.package-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.package-card.featured .package-icon {
    background: linear-gradient(135deg, var(--accent-color), #d97706);
}

.package-card.featured:has(.software-badge) .package-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.package-card.featured:has(.software-badge) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.package-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.package-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-content {
    padding: 0 2rem 2rem;
}

.package-description {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.package-toggle {
    width: 100%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.package-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

.package-toggle.active {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.package-toggle.active i {
    transform: rotate(180deg);
}

.package-toggle i {
    transition: transform 0.3s ease;
}

.package-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.package-details.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.package-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-details ul li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.package-details ul li:last-child {
    border-bottom: none;
}

.package-details ul li i {
    color: var(--secondary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.package-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.package-note.important {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--accent-color);
    color: var(--text-dark);
}

.packages-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.packages-note p {
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
}

.packages-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.packages-note strong {
    color: var(--primary-dark);
}

/* Software Section */
.software-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    padding: 80px 0;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.software-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.software-text {
    max-width: 100%;
}

.software-badge-section {
    margin-bottom: 1.5rem;
}

.software-badge-text {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.software-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.software-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.software-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.software-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.software-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.software-feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.software-feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.software-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.software-visual-box {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.software-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    display: block;
}

.software-image-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
}

.software-visual-box i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.software-visual-box p {
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Services Section */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Features Section */
.features {
    background: var(--white);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.features-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.map-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 0;
    order: 1;
}

.contact-details {
    text-align: left;
    order: 2;
    flex: 1;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-align: left;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Telemetry Data Responsive */
@media (max-width: 768px) {
    .telemetry-item {
        padding: 6px 10px;
        gap: 8px;
    }

    .telemetry-item i {
        font-size: 16px;
    }

    .telemetry-label {
        font-size: 8px;
    }

    .telemetry-value {
        font-size: 12px;
    }

    .item-fuel {
        top: 48%;
        left: 15%;
    }

    .item-speed-1 {
        top: 43%;
        left: 30%;
    }

    .item-speed-2 {
        top: 53%;
        left: 45%;
    }

    .item-driver {
        top: 46%;
        left: 60%;
    }

    .item-location {
        top: 56%;
        left: 70%;
    }

    .item-temperature {
        top: 50%;
        left: 38%;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    z-index: 99999;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    border-top: 3px solid var(--primary-color);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Override base cookie-consent styles for hero banner */
.cookie-consent.hero-cookie-banner {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
    border-radius: 16px;
    margin: 2rem auto 0 auto !important;
    max-width: 650px;
    width: calc(100% - 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem 2rem !important;
    display: block !important;
    z-index: 100 !important;
    max-height: none !important;
    overflow-y: visible !important;
    pointer-events: auto !important;
}

/* Ensure banner is visible by default - but allow JavaScript to override */
#cookieConsent.hero-cookie-banner:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cookie-consent.hero-cookie-banner.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hide hero buttons when cookie banner is visible */

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.cookie-consent-text {
    width: 100%;
}

.cookie-consent-text p {
    margin: 0.5rem 0;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.cookie-consent-text p:first-child {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: var(--primary-dark);
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    pointer-events: auto !important;
    position: relative;
    z-index: 101;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: auto !important;
    position: relative;
    z-index: 102;
    -webkit-user-select: none;
    user-select: none;
    min-width: 120px;
}

/* Ensure hero banner buttons are clickable */
.hero-cookie-banner .cookie-consent-buttons,
.hero-cookie-banner .cookie-btn,
#cookieConsent .cookie-consent-buttons,
#cookieConsent .cookie-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 102 !important;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.cookie-btn-reject:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

@media (max-width: 768px) {
    .cookie-consent.hero-cookie-banner {
        padding: 1.5rem !important;
        margin: 1.5rem auto 0 auto !important;
        width: calc(100% - 1rem);
    }
    
    .cookie-consent-content {
        gap: 1.25rem;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .cookie-consent-text p:first-child {
        font-size: 1.1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .packages {
        padding: 50px 0 20px 0; /* <-- POVEĆAN PADDING-TOP za mobilnu verziju */
    }

    .packages-wrapper {
        position: relative;
    }

    .packages-grid {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 1rem;
        scroll-behavior: smooth;
    }
    
    .package-scroll-btn {
        display: flex;
    }
    
    .package-scroll-left {
        left: 0px;
    }
    
    .package-scroll-right {
        right: 0px;
    }
    
    .package-card {
        flex: 0 0 85vw;
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
    }
    
    .packages-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .packages-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    
    .packages-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .package-card {
        flex: 0 0 85vw;
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
    }
    
    .packages-navigation {
        display: flex !important;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .packages-pagination {
        display: flex !important;
    }

    .package-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .package-content {
        padding: 0 1.5rem 1.5rem;
    }

    /* Hide desktop menu on mobile - must be first */
    .navbar .container .nav-menu:not(.active) {
        display: none !important;
    }

    /* Mobile menu styles - sidebar from right */
    .nav-menu {
        position: fixed !important;
        right: -100% !important;
        top: 0 !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        width: 70vw !important;
        max-width: 320px !important;
        min-width: 250px !important;
        text-align: left !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
        padding: 80px 1.5rem 2rem 1.5rem !important;
        gap: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        display: flex !important;
        opacity: 0 !important;
        pointer-events: none !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* Smaller phones (up to 360px) */
    @media (max-width: 360px) {
        .nav-menu {
            width: 75vw !important;
            min-width: 220px !important;
        }
    }

    /* Standard phones (361px - 414px) */
    @media (min-width: 361px) and (max-width: 414px) {
        .nav-menu {
            width: 65vw !important;
            max-width: 300px !important;
        }
    }

    .nav-menu.active {
        right: 0 !important;
        opacity: 1 !important;
        pointer-events: all !important;
        display: flex !important;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Body scroll lock kada je meni otvoren */
    body.no-scroll {
        overflow: hidden;
    }

    .nav-menu li {
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 0;
        display: block;
        white-space: nowrap;
    }

    .nav-menu a.nav-login {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
        text-align: center;
    }

    /* Language switcher in navbar on mobile */
    .language-switcher-corner {
        position: static;
        top: auto;
        right: auto;
    }

    /* Show language switcher in navbar on mobile */
    .nav-lang-switcher {
        display: block !important;
    }

    /* Hide fixed language switcher on mobile */
    .language-switcher-corner:not(.nav-lang-switcher) {
        display: none !important;
    }

    /* Show hamburger toggle on mobile */
    .nav-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .nav-toggle {
        display: flex !important;
        z-index: 1001;
        position: relative;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        order: 2;
        flex-shrink: 0;
        margin-top: 0.25rem;
    }

    .nav-lang-switcher {
        order: 1;
        flex-shrink: 0;
    }

    .nav-lang-switcher .lang-toggle-corner {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    /* Contact section mobile layout */
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form {
        order: 1;
    }

    .contact-info {
        order: 2;
    }

    /* Hide email and working hours on mobile */
    .contact-email,
    .contact-hours {
        display: none;
    }

    /* Contact items - left align icons */
    .contact-item {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
        margin-right: 0;
        order: 1;
    }

    .contact-details {
        flex: 1;
        text-align: left;
        order: 2;
    }

    .contact-details h3 {
        text-align: left;
    }

    .contact-details p {
        text-align: left;
    }

    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .contact-details p {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .language-switcher-corner {
        top: 15px;
        right: 15px;
    }

    .lang-toggle-corner {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .navbar .container {
        padding: 1rem 15px;
    }

    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
    }

    .nav-brand {
        z-index: 1001;
        position: relative;
    }

    .nav-toggle {
        z-index: 1001;
        position: relative;
    }

    .hero-image {
        height: 55vh; /* <-- POVEĆANO za par cm odozgo */
        background-image: url('img/hero-mobile.jpg');
        background-position: center 90%;
        background-size: 100% auto;
        overflow: hidden;
        padding-top: 2cm; /* <-- SMANJENO da ide više odozgo */
        margin-bottom: 0;
        display: block;
    }

    .hero-text-section {
        display: block !important;
        width: 100% !important;
        height: auto;
        min-height: 0;
        padding: 0.25rem 1.5rem 0; /* <-- SMANJENO još više */
        background: transparent;
        text-align: center;
        margin-top: -10px; /* <-- NEGATIVNI MARGIN da smanji bijeli prostor */
        animation: fadeInUp 0.8s ease 0.1s both; /* <-- ANIMACIJA ZA CIJELU SEKCIJU */
    }

    .hero-text-section h1 {
        font-size: 2.1rem; /* <-- MALO POVEĆAN FONT-SIZE */
        font-weight: 700; /* <-- POJAČAN FONT-WEIGHT (premium, snažniji) */
        font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif; /* <-- PREMIUM FONT */
        text-transform: uppercase; /* <-- SVE VELIKA SLOVA */
        letter-spacing: 0.4px; /* <-- MALO POVEĆAN RAZMAK za premium izgled */
        line-height: 1.2; /* <-- ZBIJENIJI LINE-HEIGHT za enterprise stil */
        margin-bottom: 0.5rem;
        color: #334155; /* <-- TAMNO SIVA BOJA (premium, profesionalno) */
        background: transparent;
        padding: 0px !important;
        animation: fadeInUp 0.8s ease 0.2s both; /* <-- ANIMACIJA ZA NASLOV */
    }

    .hero-text-section p {
        font-size: 1rem;
        color: var(--text-light);
        margin-bottom: 1rem;
        line-height: 1.6;
        animation: fadeInUp 0.8s ease 0.4s both; /* <-- ANIMACIJA ZA OPIS */
    }

    .hero-text-section .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        animation: fadeInUp 0.8s ease 0.6s both; /* <-- ANIMACIJA ZA DUGMAD */
        margin-bottom: 0.5rem; /* <-- SMANJEN RAZMAK */
    }
    
    /* ANIMIRANA STRELICA PREMA DOLE (V SLOVO) */
    .hero-scroll-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0.5rem; /* <-- MALO GORE */
        animation: fadeInUp 0.8s ease 0.8s both;
    }
    
    .hero-scroll-mobile i {
        font-size: 2.5rem; /* <-- POVEĆAN FONT-SIZE za uočljivost */
        color: var(--primary-color); /* <-- NARANDŽASTA BOJA */
        opacity: 0.9;
        animation: bounceDown 2s infinite;
        cursor: pointer;
    }
    
    @keyframes bounceDown {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
            opacity: 0.9;
        }
        40% {
            transform: translateY(10px);
            opacity: 1;
        }
        60% {
            transform: translateY(5px);
            opacity: 0.95;
        }
    }

    .hero-text-section .hero-actions .btn-primary,
    .hero-text-section .hero-actions .btn-secondary {
        width: 200px; /* <-- ISTA ŠIRINA ZA OBA DUGMETA */
        max-width: 200px; /* <-- ISTA MAKSIMALNA ŠIRINA */
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 0 auto; /* <-- CENTRIRANJE */
    }
    
    .hero-text-section .hero-actions .btn-primary {
        background: var(--primary-color) !important; /* <-- NARANDŽASTA BOJA */
        color: #ffffff !important;
        border-color: var(--primary-color) !important;
    }
    
    .hero-text-section .hero-actions .btn-secondary {
        background: #64748b !important; /* <-- SIVA BOJA */
        color: #ffffff !important;
        border-color: #64748b !important;
    }
    
    .hero-text-section .hero-actions .btn-secondary:hover {
        background: #475569 !important; /* <-- TAMNIJA SIVA NA HOVER */
        border-color: #475569 !important;
    }


    .hero-image .hero-text {
        display: none;
    }

    .hero-image .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 1rem;
    }

    .hero-image .hero-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .hero-title-text {
        flex-direction: column;
        gap: 0;
        line-height: 1.3;
        width: 100%;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title-line-mobile-1,
    .hero-title-line-mobile-2 {
        display: block;
        text-align: center;
        line-height: 1.3;
        width: 100%;
    }
    
    .hero-title-line-mobile-1 {
        margin-bottom: 0;
    }
    
    .hero-title-line-mobile-2 {
        margin-top: 0;
    }
    
    .hero-title-line-1 {
        display: block;
        white-space: normal;
        word-break: break-word;
        width: 100%;
        line-height: 1.3;
    }
    
    .hero-title-line-2 {
        display: inline-flex;
        align-items: center;
        gap: 0.3em;
        line-height: 1.3;
        white-space: normal;
        flex-wrap: wrap;
        max-width: 100%;
        word-break: break-word;
    }

    .hero-rotating-word {
        min-width: 80px;
        max-width: calc(100% - 70px);
        height: 1.3em;
        display: inline-flex;
        word-break: break-word;
    }
    
    .hero-rotating-word .word {
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
    }

    .hero-rotating-word .word {
        font-size: 1em;
        padding: 0;
        max-width: 200px;
    }

    .hero-logo-title {
        max-width: 300px;
    }

    .hero-content {
        padding: 1.5rem 1.5rem;
        max-width: 100%;
    }

    .section-logo-title {
        max-width: 200px;
        margin-right: 10px;
    }

    .packages-title-with-logo,
    .features-title-with-logo {
        flex-direction: column;
        gap: 10px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Telematics overlay responsive */
    .radar-ring {
        opacity: 0.15;
    }

    .ring-1, .ring-2, .ring-3 {
        width: 80px;
        height: 80px;
        margin-left: -150px;
    }

    .ring-3 {
        margin-left: 50px;
    }

    .data-streams {
        bottom: 20%;
    }

    .stream-1 {
        left: 20%;
    }

    .stream-2 {
        left: 50%;
    }

    .stream-3 {
        left: 80%;
    }

    .telematics-icons {
        padding: 0 10%;
    }

    .telematics-icon i {
        font-size: 12px;
    }

    .icon-label {
        font-size: 8px;
    }

    .icon-location {
        margin-right: -30px;
    }

    .icon-speed {
        margin-left: -30px;
    }

    .hero-description {
        font-size: 1.15rem;
        display: block;
        margin: 1rem auto 2rem auto;
        text-align: center;
        line-height: 1.6;
        padding: 0 1rem;
        max-width: 90%;
        opacity: 0.9;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-placeholder {
        height: 300px;
    }

    .map-placeholder i {
        font-size: 4rem;
    }

    .map-placeholder p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .software-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .software-image {
        max-width: 100%;
    }

    .software-image-label {
        font-size: 1.1rem;
    }

    .software-visual-box {
        max-width: 100%;
        height: 300px;
    }

    .software-visual-box i {
        font-size: 4rem;
    }

    .software-feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .software-feature-icon {
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }

    section {
        padding: 20px 0;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        align-items: center;
        text-align: center;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .hero-title-text {
        flex-direction: column;
        gap: 0;
        line-height: 1.3;
        width: 100%;
    }
    
    .hero-title-line-1 {
        display: block;
        white-space: normal;
        word-break: break-word;
        width: 100%;
        line-height: 1.3;
    }
    
    .hero-title-line-2 {
        display: inline-flex;
        align-items: center;
        gap: 0.3em;
        line-height: 1.3;
        white-space: normal;
        flex-wrap: wrap;
        max-width: 100%;
        word-break: break-word;
    }

    .hero-rotating-word {
        min-width: 80px;
        max-width: calc(100% - 70px);
        height: 1.3em;
        display: inline-flex;
        word-break: break-word;
    }
    
    .hero-rotating-word .word {
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
    }
    
    .hero-title-line-2 {
        display: inline-flex;
        align-items: center;
        gap: 0.3em;
        line-height: 1.2;
        white-space: nowrap;
    }

    .hero-rotating-word {
        min-width: 100px;
        height: 1.2em;
        display: inline-flex;
    }

    .hero-rotating-word .word {
        font-size: 0.9em;
        padding: 0;
        max-width: 160px;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: opacity;
        transform: translateY(-50%) translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    .hero-rotating-word .word.active {
        opacity: 1 !important;
        position: absolute !important;
        transform: translateY(-50%) translateZ(0) !important;
    }
    
    .hero-rotating-word .word:not(.active) {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .hero-logo-title {
        max-width: 250px;
    }

    .section-logo-title {
        max-width: 150px;
        margin-right: 8px;
    }

    /* Telematics overlay mobile */
    .radar-rings {
        height: 200px;
    }

    .ring-1, .ring-2, .ring-3 {
        width: 60px;
        height: 60px;
        margin-left: -100px;
    }

    .ring-3 {
        margin-left: 30px;
    }

    .data-streams {
        bottom: 18%;
        height: 150px;
    }

    .stream-line {
        height: 40px;
    }

    .telematics-icons {
        padding: 0 5%;
        bottom: 15%;
    }

    .telematics-icon i {
        font-size: 10px;
    }

    .icon-label {
        font-size: 7px;
    }

    .icon-location {
        margin-right: 0;
    }

    .icon-speed {
        margin-left: 0;
    }

    /* Telemetry labels mobile */
    .telemetry-label {
        font-size: 10px;
        gap: 3px;
    }

    .telemetry-label i {
        font-size: 14px;
    }

    .telemetry-label span {
        font-size: 9px;
    }

    .label-speed {
        top: 48%;
        left: 15%;
    }

    .label-fuel {
        top: 52%;
        left: 20%;
    }

    .label-engine {
        top: 46%;
        left: 48%;
    }

    .label-location {
        top: 50%;
        left: 62%;
    }

    .label-warning {
        top: 56%;
        left: 70%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1.05rem;
        display: block;
        margin: 1rem auto 2rem auto;
        text-align: center;
        line-height: 1.5;
        padding: 0 1rem;
        max-width: 90%;
        opacity: 0.9;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .packages-wrapper {
        position: relative;
    }

    .packages-grid {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 1rem;
        scroll-behavior: smooth;
    }
    
    .package-scroll-btn {
        display: flex;
    }
    
    .package-scroll-left {
        left: 0px;
    }
    
    .package-scroll-right {
        right: 0px;
    }
    
    .package-card {
        flex: 0 0 85vw;
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
    }
    
    .packages-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .packages-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    
    .packages-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .package-card {
        flex: 0 0 90vw;
        min-width: 90vw;
        max-width: 90vw;
        scroll-snap-align: start;
    }
    
    .packages-navigation {
        display: flex !important;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .packages-pagination {
        display: flex !important;
    }

    .package-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .package-content {
        padding: 0 1.5rem 1.5rem;
    }

    .package-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .package-header h3 {
        font-size: 1.4rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .contact-icon {
        margin: 0;
        order: 1;
        flex-shrink: 0;
    }

    .contact-details {
        order: 2;
        text-align: left;
    }

    .software-image {
        max-width: 100%;
    }

    .software-image-label {
        font-size: 1rem;
    }

    .software-visual-box {
        height: 250px;
    }

    .software-visual-box i {
        font-size: 3rem;
    }

    .software-visual-box p {
        font-size: 1.1rem;
    }

    .software-section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 1rem;
        margin-top: 0;
        max-width: 100%;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }
}

