:root {
    --primary-color: #2d3748;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2rem;
    color: var(--dark-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--accent-color);
}

.btn-primary, .btn-secondary, .btn-demo {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0da271;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-demo {
    background-color: var(--accent-color);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    border: none;
}

.btn-demo:hover {
    background-color: #0da271;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navigacija */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
}

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

.nav-menu a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* NAV BUTTON - IDENTIČAN KAO HERO BUTTON */
.nav-menu .btn-demo {
    background-color: var(--accent-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--border-radius);
}

.nav-menu .btn-demo:hover {
    background-color: #0da271;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero sekcija */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 820px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Sekcije */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Specifično za features sekciju */
.features .section-title {
    margin-bottom: 50px;
}

.features .section-subtitle {
    margin-bottom: 50px;
}

/* Prednosti */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-color);
    font-size: 1.8rem;
}

/* Funkcionalnosti */
.feature-row {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image, .feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-image img, .feature-image #dnc-animation {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Osiguravamo da animacija bude vidljiva na svim uređajima */
.feature-image #dnc-animation {
    min-height: 400px;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.feature-image #dnc-animation svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.feature-list i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 5px;
}

/* CTA sekcija */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer .logo {
    color: white !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    pointer-events: auto;
    transition: none !important;
    margin-bottom: 15px;
}

.footer .logo .highlight {
    color: white !important;
    font-weight: 700;
}

.footer .logo i {
    color: white !important;
    transition: none !important;
}

/* UKLONI SVE HOVER EFEKTE ZA LOGO */
.footer .logo:hover {
    color: white !important;
    padding-left: 0 !important;
    transform: none !important;
}

.footer .logo:hover .highlight {
    color: white !important;
}

.footer .logo:hover i {
    color: white !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

/* Osiguraj da hover ne utječe na logo */
.footer-col a:not(.logo):hover {
    color: var(--accent-color);
    padding-left: 5px;
    transition: var(--transition);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white !important;
    transition: background-color 0.3s ease;
    position: relative;
}

/* FIX: Ikona se ne pomiče na hover - dodajemo fixed position za ikonu */
.social-links a i {
    color: white !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.2rem;
}

/* SOCIJALNI BUTTONI - SAMO BOJA, BEZ POMJERANJA */
.social-links a:hover {
    background-color: var(--accent-color);
    color: white !important;
    /* Bez transform efekta */
}

.social-links a:hover i {
    /* Očuvaj poziciju ikone */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 12px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

.version {
    margin-left: 15px;
    color: #64748b;
}

/* Responsivnost za footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .version {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Stilovi za stranice */
.page-content {
    padding: 150px 0 80px;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

/* Kontakt forma */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form-container, .contact-info-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: white;
}

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

.success-message, .error-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.map-placeholder {
    height: 200px;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* 404 stranica */
.not-found {
    padding: 150px 0;
    text-align: center;
}

.not-found h1 {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.not-found h2 {
    margin-bottom: 20px;
}

/* Cijene */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
}

.pricing-header h3 {
    color: white;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-period {
    opacity: 0.8;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.pricing-features ul li i {
    margin-right: 10px;
    color: var(--success-color);
}

.pricing-features ul li.disabled {
    color: var(--gray-color);
}

.pricing-features ul li.disabled i {
    color: var(--gray-color);
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* Responsivnost */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .feature-content, .feature-image {
        width: 100%;
    }
    
    .feature-image {
        order: -1;
        margin-bottom: 0;
    }
    
    .feature-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    .feature-image #dnc-animation {
        min-height: 350px;
    }
    
    .feature-list {
        display: inline-block;
        text-align: left;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Footer grid na tabletu */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-col.logo-col {
        max-width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 15px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 0;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    .nav-menu .btn-demo {
        margin: 15px auto;
        display: block;
        width: 90%;
        max-width: 250px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 25px;
    }
    
    .feature-image #dnc-animation {
        min-height: 300px;
    }
    
    /* Footer grid na mobilnom */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col.logo-col {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary, .btn-demo {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .feature-image #dnc-animation {
        min-height: 250px;
    }
    
    .nav-menu .btn-demo {
        width: 90%;
    }
}

/* Dodatna poboljšanja */
.error {
    border-color: var(--danger-color) !important;
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Poboljšanja za formu */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05);
}

/* Poboljšan hover za pricing card */
.pricing-card:hover .pricing-header {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%);
}

/* Fokus stanja za pristupačnost */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Stilovi za kontakt formu */
.page-content .container > div {
    width: 100%;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Poboljšanja za mobilne uređaje */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px !important;
        margin: 0 10px;
    }
    
    .contact-form-container input,
    .contact-form-container textarea {
        font-size: 16px !important; /* Sprečava zumiranje na iOS */
        padding: 14px !important;
    }
    
    .page-content {
        padding: 120px 0 60px !important;
    }
    
    .page-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 20px !important;
    }
    
    .contact-form-container input,
    .contact-form-container textarea {
        padding: 12px !important;
    }
}

/* QUICK FIX: Osiguraj da su oba boxa jednake širine */
.contact-form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-info-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Osiguraj da se sve uklapa */
.contact-form-container *,
.contact-info-container * {
    max-width: 100%;
}

/* FIX: Desni box treba biti visok koliko mu treba, ne pratiti lijevi */
.contact-info-container {
    height: auto !important; /* Ovo osigurava da bude visok koliko mu treba */
    min-height: auto; /* Uklanja minimalnu visinu ako postoji */
    align-self: start; /* Poravnava se na vrh, ne rasteže */
}

/* Osiguraj da container ne forsira visinu */
.contact-container {
    align-items: start; /* Poravnava sve elemente na vrh */
}

/* Ako treba, dodaj malo prostora na dnu */
.contact-info-container > *:last-child {
    margin-bottom: 0;
}