/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    line-height: 1.6;

    background:
        linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.88)),
        url("images/darkwood.jpg") center / cover no-repeat fixed;
}

/* ================= HEADER ================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    padding: 22px 40px;
    background: transparent;
}

/* LOGO */
.logo img {
    height: 110px;
    margin-top: -20px;
    margin-bottom: -20px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.85));
}

/* ================= NAV ================= */

.nav-wrapper {
    margin: 0 auto;
    padding: 14px 36px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border-radius: 14px;

    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-wrapper.hidden {
    transform: translateY(-130%);
    opacity: 0;
}

.main-nav {
    display: flex;
    gap: 26px;
}

/* NAV BUTTONS */
.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;

    padding: 12px 26px;
    border-radius: 12px;

    background: linear-gradient(135deg, #1e90ff, #0b5ed7);
    box-shadow: 0 6px 18px rgba(30,144,255,0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.main-nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(30,144,255,0.6);
    background: linear-gradient(135deg, #3aa0ff, #0d6efd);
}

/* CTA BUTTON – POPRAVLJEN */
.main-nav a.cta {
    background: linear-gradient(135deg, #ff8c00, #ff6a00);
    box-shadow: 0 6px 18px rgba(255,140,0,0.45);
    color: #ffffff;
}

.main-nav a.cta:hover {
    background: linear-gradient(135deg, #ffa733, #ff7a1a);
    box-shadow: 0 10px 30px rgba(255,140,0,0.75);
}

/* ================= HERO ================= */

.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #dddddd;
    margin-bottom: 30px;
}

/* ================= SECTIONS ================= */

section {
    padding: 100px 10%;
}

/* ================= CONTENT BOX (ÜBER UNS & CONTACT WRAPPER) ================= */

.content-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;

    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

/* ================= ÜBER UNS ================= */

.about-section h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.about-section p {
    text-align: center;
    color: #dddddd;
    font-size: 1.05rem;
    margin-bottom: 14px;
}

/* ================= UNSERE LEISTUNGEN (STARI PLAVI DIZAJN) ================= */

.services-section {
    padding: 100px 10%;
}

.services-section h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    background: linear-gradient(180deg, #1b1b1b, #111);
    padding: 36px;
    border-radius: 12px;

    border: 1px solid rgba(30,144,255,0.25);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.7),
        inset 0 0 0 1px rgba(30,144,255,0.15);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 45px rgba(30,144,255,0.35),
        inset 0 0 0 1px rgba(30,144,255,0.35);
}

.service-box h3 {
    color: #1e90ff;
    margin-bottom: 12px;
}

/* ================= CONTACT ================= */

.contact-section h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.contact-box {
    max-width: 520px; /* UŽI CONTACT BOX */
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-box input,
.contact-box textarea {
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: rgba(20,20,20,0.9);
    color: #ffffff;
    font-size: 0.95rem;
}

.contact-box input:focus,
.contact-box textarea:focus {
    outline: 2px solid #1e90ff;
}

.contact-box textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-box button {
    align-self: flex-start;
    padding: 14px 34px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, #ff8c00, #ff6a00);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 6px 18px rgba(255,140,0,0.45);
}

.contact-box button:hover {
    box-shadow: 0 10px 30px rgba(255,140,0,0.75);
}

/* ================= FOOTER ================= */

.main-footer {
    text-align: center;
    padding: 50px 20px;
}

.footer-links a {
    color: #1e90ff;
    margin: 0 10px;
    text-decoration: none;
}
/* ========= HERO CTA BUTTON – FINAL FIX ========= */

.hero-section .btn-primary {
    display: inline-block !important;

    background: linear-gradient(135deg, #ff8c00, #ff6a00) !important;
    color: #ffffff !important;

    padding: 16px 42px !important;
    border-radius: 16px !important;

    font-weight: 700 !important;
    font-size: 1.05rem;

    text-decoration: none !important;

    box-shadow: 0 10px 28px rgba(255,140,0,0.6) !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #ffa733, #ff7a1a) !important;
    box-shadow: 0 16px 40px rgba(255,140,0,0.85) !important;
    transform: translateY(-4px);
}
/* ================= LOGO INTRO ANIMATION ================= */

.logo img {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    filter: blur(6px);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s ease;
}

/* kad se stranica učita */
.logo img.logo-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
/* ================= BEFORE / AFTER ================= */

.before-after-section {
    padding: 100px 20px;
    text-align: center;
}

.before-after-section h2 {
    margin-bottom: 40px;
}

.before-after-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.before-after-container img {
    width: 100%;
    display: block;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}
/* ================= STEPS ================= */

.steps-section {
    padding: 100px 20px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-box {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
}

.step-box span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: #1e90ff;
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
}
/* ================= TRUST ================= */

.trust-section {
    padding: 60px 20px;
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-weight: 500;
}
/* ================= MAP ================= */

.map-section {
    padding: 100px 20px;
    text-align: center;
}

.map-container {
    max-width: 1100px;
    margin: 40px auto 0;
    border-radius: 20px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}
/* ================= REVIEWS ================= */

.reviews-section {
    padding: 100px 20px;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-box {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    font-size: 0.95rem;
}
/* ================= MOBILE CTA – PREMIUM ================= */

.mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 420px;
        z-index: 999;
        gap: 12px;
    }

    .mobile-cta a {
        flex: 1;
        padding: 14px 0;
        text-align: center;
        font-weight: 600;
        border-radius: 14px;
        text-decoration: none;
        color: #fff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-cta a:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    }

    .mobile-cta a:active {
        transform: scale(0.97);
    }

    .mobile-cta a:first-child {
        background: linear-gradient(135deg, #1e90ff, #0072ff);
    }

    .mobile-cta a:last-child {
        background: linear-gradient(135deg, #25d366, #1da851);
    }
}

/* ================= SEO ================= */

.seo-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}


/* ================= MOBILE VERSION ================= */
@media (max-width: 768px) {

    /* HEADER */
    .main-header {
        position: sticky;
        top: 0;
        justify-content: center;
        padding: 20px;
    }

    /* LOGO CENTAR + VEĆI */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 95px;
        margin: 0;
    }

    /* HAMBURGER LIJEVO */
    .hamburger {
        position: absolute;
        left: 20px;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: #ffffff;
        margin: 6px 0;
        transition: all 0.35s ease;
    }

    /* HAMBURGER → X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* OVERLAY */
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease;
        z-index: 1000;
    }
.mobile-overlay {
    pointer-events: none;
}

.mobile-overlay.show {
    pointer-events: auto;
}

    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* NAV WRAPPER – CENTRIRAN */
    .nav-wrapper {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);

        width: 85%;
        max-width: 320px;

        background: rgba(0,0,0,0.92);
        backdrop-filter: blur(12px);
        border-radius: 20px;

        padding: 40px 30px;
        text-align: center;

        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 1001;
    }

    .nav-wrapper.open {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        padding: 14px 0;
    }
}
/* ================= MOBILE LAYOUT FIX ================= */
@media (max-width: 768px) {

    /* GLOBAL RESET */
    body {
        overflow-x: hidden;
    }

    /* SVE SEKCIJE CENTRIRAJ */
    section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: center;
    }

    /* HERO */
    .hero-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    /* CONTENT BOXES (Über uns, Kontakt) */
    .content-box {
        margin-left: auto;
        margin-right: auto;
        padding: 40px 25px;
        width: 100%;
        max-width: 100%;
    }

    /* SERVICES GRID */
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .service-box {
        width: 100%;
        max-width: 420px;
    }

    /* CONTACT FORM */
    .contact-box {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 420px;
        text-align: left; /* forme je bolje ostaviti left */
    }

    /* FOOTER */
    .main-footer {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
}
/* ===== MOBILE LOGO FIX ===== */
@media (max-width: 768px) {

    .logo {
        top: 8px; /* pomiče cijeli logo prema dolje */
    }

    .logo img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: 95px;
    }

    .main-header {
        min-height: 90px; /* osigurava prostor za logo */
    }
}
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== BEFORE / AFTER – MANJE NA DESKTOPU ===== */
@media (min-width: 1024px) {
    .before-after-container {
        max-width: 700px; /* probaj 650–750px po želji */
    }
}
/* ================= TRUST BAR ================= */

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px 20px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

/* ================= HEADER SCROLLED STATE ================= */

.main-header.scrolled .nav-wrapper {
    background: rgba(0,0,0,0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* ================= BEFORE / AFTER LABELS ================= */

.label {
    position: absolute;
    top: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.65);
    z-index: 5;
}

.label.before { left: 15px; }
.label.after { right: 15px; }

/* ================= CONTACT NOTE ================= */

.contact-note {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.85;
}
    /* ===== FIX ZA KONTAKT GUMB ===== */
    pointer-events: none;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;

    /* ===== FIX ZA KONTAKT GUMB ===== */
    pointer-events: auto;
}