/* ================================================
   APRINT - Shared Stylesheet
   Koristi se u: index.html, services.html, faq.html
   ================================================ */

:root {
    --bg-dark: #0b0c10;
    --text-main: #e0e6ed;
    --text-muted: #8a9ba8;
    --neon-green: #39ff14;
    --glass-bg: rgba(20, 22, 28, 0.80);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* NAV */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 1.4rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}
.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem; font-weight: 700;
    color: #fff; text-decoration: none;
    text-shadow: 0 0 10px rgba(57,255,20,0.3);
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-main); text-decoration: none;
    font-size: 0.95rem; font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57,255,20,0.6);
}
.nav-links .nav-cta a {
    background: var(--neon-green); color: var(--bg-dark);
    padding: 0.5rem 1.3rem; border-radius: 50px;
    font-weight: 700; font-family: 'Rajdhani', sans-serif;
    text-shadow: none; font-size: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.nav-links .nav-cta a:hover {
    box-shadow: 0 0 18px rgba(57,255,20,0.5);
    transform: translateY(-1px); color: var(--bg-dark);
}

/* GLASS PANEL */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* SECTION TITLE */
.section-title {
    font-size: 2.8rem; margin-bottom: 3rem; color: #fff;
    text-align: center; position: relative;
    display: inline-block; left: 50%; transform: translateX(-50%);
}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    width: 100%; height: 3px;
    background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green);
}

/* BLUEPRINT BG */
.blueprint-section {
    background-image: linear-gradient(rgba(11,12,16,0.3), rgba(11,12,16,0.4)), url('img/Plan.png');
    background-size: cover; background-position: center;
    background-attachment: fixed; background-repeat: no-repeat;
    padding: 4rem 5% 8rem 5%;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--neon-green); color: var(--bg-dark);
    font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700;
    text-transform: uppercase; text-decoration: none;
    border-radius: 50px; transition: all 0.3s;
    box-shadow: 0 0 15px rgba(57,255,20,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px); color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(57,255,20,0.7); background-color: #32e612;
}
.btn-outline {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 1px solid rgba(57,255,20,0.5); color: var(--neon-green);
    font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700;
    text-transform: uppercase; text-decoration: none;
    border-radius: 50px; transition: all 0.3s;
}
.btn-outline:hover { background: rgba(57,255,20,0.08); box-shadow: 0 0 15px rgba(57,255,20,0.2); }

/* FOOTER */
footer {
    text-align: center; padding: 4rem 5%;
    background: var(--bg-dark); border-top: 1px solid var(--glass-border);
}
.contact-info {
    display: flex; justify-content: center; gap: 3rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.contact-item strong { color: var(--neon-green); display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--neon-green); }

/* SCROLL OFFSET */
[id] { scroll-margin-top: 100px; }

/* MOBILE */
@media (max-width: 900px) {
    nav { flex-direction: column; padding: 1rem 5%; gap: 0.6rem; }
    .logo { margin-bottom: 0.2rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.2rem; width: 100%; }
    .nav-links a { font-size: 0.85rem; }
    .blueprint-section { padding: 3rem 5%; }
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    .glass-panel { padding: 1.5rem; margin-bottom: 2.5rem; border-radius: 16px; }
    .contact-info { flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }

}
/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
    display: flex; align-items: center; gap: 0.35rem;
}
.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s;
}
.nav-dropdown:hover > a::after,
.nav-dropdown.open > a::after {
    transform: rotate(-135deg) translateY(-2px);
}
.dropdown-menu {
    position: absolute; top: 100%; left: 50%;
    background: rgba(13, 15, 20, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(57,255,20,0.2);
    border-radius: 16px;
    padding: 14px 0.6rem 0.6rem 0.6rem;
    min-width: 260px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.dropdown-menu::before {
    content: '';
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: rgba(13,15,20,0.97);
    border-left: 1px solid rgba(57,255,20,0.2);
    border-top: 1px solid rgba(57,255,20,0.2);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.18s;
    color: var(--text-main) !important;
    text-shadow: none !important;
}
.dropdown-item:hover {
    background: rgba(57,255,20,0.07);
    color: #fff !important;
}
.di-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: rgba(57,255,20,0.08);
    border: 1px solid rgba(57,255,20,0.18);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.di-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #fff; line-height: 1.2;
}
.di-desc {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem;
}
.dropdown-divider {
    height: 1px; background: rgba(255,255,255,0.06);
    margin: 0.4rem 0.6rem;
}
.dropdown-footer {
    display: flex; align-items: center; justify-content: center;
    padding: 0.6rem 1rem 0.3rem;
    font-size: 0.78rem; font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--neon-green) !important;
    text-decoration: none;
}

/* MOBILE DROPDOWN */
@media (max-width: 900px) {
    .nav-dropdown { position: static; }
    .dropdown-menu {
        left: 50%; top: auto;
        margin-top: 0.5rem;
        min-width: 280px; max-width: 90vw;
    }
    .nav-dropdown > a::after {
        width: 6px; height: 6px;
    }
}

/* ============================================================
   ANIMACIJE v4
   - FADE varijanta (.reveal-fade) -> početna strana
   - SLIDE varijanta (.reveal-slide) -> Usluge (in i out)
   - NIJEDNA ne koristi `filter` na elementu (čuva backdrop-filter blur)
   ============================================================ */

/* --- FADE (početna) --- */
.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-fade.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- SLIDE (Usluge) — ulazi sleva, izlazi udesno --- */
.reveal-slide {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-slide.reveal-in {
    opacity: 1;
    transform: translateX(0);
}
/* reverse blokovi (desni stub) ulaze zdesna radi simetrije */
.service-block.reverse.reveal-slide,
.service-block.reverse .reveal-slide {
    transform: translateX(60px);
}
.service-block.reverse.reveal-slide.reveal-in,
.service-block.reverse .reveal-slide.reveal-in {
    transform: translateX(0);
}

/* FAQ accordion se NE animira (lomi otvaranje) */
.faq-item { opacity: 1 !important; transform: none !important; }

/* Footer "Kontaktirajte Nas" — slide odozdo, čuva translateX(-50%) centriranje */
footer .section-title.reveal-footer {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
footer .section-title.reveal-footer.reveal-in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* section-title centriranje (translateX(-50%)) — ne diramo transform */
.section-title.reveal-fade, .section-title.reveal-slide {
    opacity: 1 !important; transform: translateX(-50%) !important;
}

/* Hero na Uslugama (.page-hero) */
.page-hero .breadcrumb,
.page-hero h1,
.page-hero p {
    animation: heroSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero h1 { animation-delay: 0.1s; }
.page-hero p  { animation-delay: 0.22s; }
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-fade, .reveal-slide { opacity: 1 !important; transform: none !important; transition: none; }
    .page-hero .breadcrumb, .page-hero h1, .page-hero p { animation: none; }
}

/* ============================================================
   SPOTLIGHT GLOW — prati kursor. NE koristi overflow:hidden
   (to bi pokvarilo backdrop-filter blur). Glow je zatvoren
   unutar zaobljenih ivica preko border-radius na ::before.
   ============================================================ */
.glass-panel, .product-card { position: relative; }
.glass-panel { isolation: isolate; }
.glass-panel::before,
.product-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        340px circle at var(--mx, 50%) var(--my, 50%),
        rgba(57,255,20,0.12), transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
    z-index: 0;
}
.glass-panel.spotlight-on::before,
.product-card.spotlight-on::before { opacity: 1; }
/* sadržaj iznad glow-a */
.glass-panel > *, .product-card > * { position: relative; z-index: 1; }
