/* CSS Reset & Variables */
:root {
    --primary: #0a2e5c;     /* Dark Blue from Logo */
    --accent: #e57200;      /* Subtle Orange from Logo */
    --accent-hover: #cc6500;
    --text-dark: #222222;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-light: #f4f6f9;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); }
.text-white { color: #fff; }
.section-padding { padding: 80px 0; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography elements */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}
.section-title:not(.text-center)::after {
    left: 0;
    transform: none;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Why Us Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.why-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.why-item i {
    color: var(--accent);
    font-size: 1.5rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-white);
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 55px; /* Vraćeno na prirodnu veličinu bez sečenja */
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
     align-items: center;
    line-height: 1.1;
}


.main-text {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.sub-text {
    display: block;
    font-size: 11px;
    color: var(--primary);
    margin-top: 0px;
    letter-spacing: 2px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    padding-top: 100px;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 46, 92, 0.9) 0%, rgba(10, 46, 92, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 650px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 46, 92, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 5px solid rgba(255,255,255,0.1);
}

.step h4 {
    color: #fff;
    margin-bottom: 5px;
}

.step p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.step-connector {
    flex: 0 0 50px;
    height: 2px;
    background-color: rgba(255,255,255,0.2);
    margin-top: 30px;
}

/* Turnkey Highlight Box */
.turnkey-highlight {
    margin: 50px auto 0;
    max-width: fit-content;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    padding: 15px 30px;
    border: 2px dashed rgba(229, 114, 0, 0.4);
    border-radius: 8px;
    background-color: rgba(229, 114, 0, 0.05);
    text-align: center;
}

.turnkey-highlight i {
    margin-right: 10px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Fallback za sliku koje nema */
.gallery-item.missing-img::after {
    content: 'Potrebna slika';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.contact-form-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background-color: #051833;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: translate(-50%, -50%) scale(0.9); opacity: 0;}
    to {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close-btn:hover {
    color: var(--accent);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 20px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    z-index: 2001;
}

.nav-btn:hover {
    background: var(--accent);
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* Cookie Banner CSS */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 24, 51, 0.98);
    color: #fff;
    padding: 15px 0;
    z-index: 3000;
    text-align: center;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
}

.cookie-banner p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

@media (min-width: 900px) {
    .container-cookie {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .cookie-banner p {
        margin-bottom: 0;
        text-align: left;
        max-width: 75%;
        font-size: 0.95rem;
    }
}

/* Animations for Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Kaskadno ucitavanje elemenata koji su jedan pored drugog */
.grid-3 .service-card:nth-child(2) { transition-delay: 0.1s; }
.grid-3 .service-card:nth-child(3) { transition-delay: 0.2s; }
.process-steps .step:nth-child(2) { transition-delay: 0.1s; }
.process-steps .step:nth-child(3) { transition-delay: 0.2s; }
.process-steps .step:nth-child(4) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .header-contact { display: none; }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .logo-text { font-size: 1.2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; align-items: center; gap: 30px; }
    .step-connector { display: none; }
    .turnkey-highlight { font-size: 1.1rem; padding: 15px 20px; margin-top: 40px; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .section-padding { padding: 50px 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .nav-btn { padding: 10px; font-size: 20px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .lightbox-content { max-width: 95%; max-height: 80vh; }
}

@media (max-width: 768px) {
    #hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 20px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

section {
    scroll-margin-top: 100px;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e57200;
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    z-index: 999;
}