/* ═══════════════════════════════════════════
   BOJE – menjaj samo ovde, sve se primeni
   ═══════════════════════════════════════════ */
:root {
    --primary:        #1A1A2E;   /* tamno plava – navbar, headeri       */
    --secondary:      #E94560;   /* crvena – CTA dugmici, akcenti        */
    --tertiary:       #16213E;   /* srednje tamna – sekcije              */
    --light:          #F5F5F5;   /* svetla pozadina                      */
    --dark:           #0F0F0F;   /* tekst, footer                        */

    /* Izvedene boje – ne menjati ručno */
    --primary-rgb:    26, 26, 46;
    --secondary-rgb:  233, 69, 96;
}

/* ═══════════════════════════════════════════
   BOOTSTRAP OVERRIDE
   ═══════════════════════════════════════════ */
.btn-primary   { background-color: var(--secondary); border-color: var(--secondary); }
.btn-primary:hover { background-color: #c73652; border-color: #c73652; }
.btn-outline-primary { color: var(--secondary); border-color: var(--secondary); }
.btn-outline-primary:hover { background-color: var(--secondary); color: #fff; }
.text-primary  { color: var(--secondary) !important; }
.bg-primary    { background-color: var(--primary) !important; }

/* ═══════════════════════════════════════════
   GLOBALNO
   ═══════════════════════════════════════════ */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: #fff;
}

a { text-decoration: none; }
img { max-width: 100%; }

.section-padding { padding: 80px 0; }
.section-title { font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { color: #666; margin-bottom: 3rem; }

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar-custom {
    background-color: var(--primary);
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: var(--secondary); }

.navbar-custom .btn-nav {
    background-color: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s;
}
.navbar-custom .btn-nav:hover { background-color: #c73652; color: #fff; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span { color: var(--secondary); }

.hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════
   USLUGE KARTICE
   ═══════════════════════════════════════════ */
.service-card {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px; height: 60px;
    background: rgba(var(--secondary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--secondary);
}

.service-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* ═══════════════════════════════════════════
   VESTI KARTICE
   ═══════════════════════════════════════════ */
.vest-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.vest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.vest-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vest-card .card-body { padding: 1.5rem; }

.vest-datum {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.vest-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════
   PARTNERI
   ═══════════════════════════════════════════ */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
    max-height: 50px;
    object-fit: contain;
}
.partner-logo:hover { filter: grayscale(0%); opacity: 1; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    background-color: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

.footer h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.footer a {
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer a:hover { color: var(--secondary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */
.bg-dark-custom     { background-color: var(--primary); }
.bg-tertiary-custom { background-color: var(--tertiary); }
.bg-light-custom    { background-color: var(--light); }
.text-accent        { color: var(--secondary); }

/* ═══════════════════════════════════════════
   ICON BOX – iscrtane SVG ilustracije (Zašto mi)
   ═══════════════════════════════════════════ */
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem;
}

.icon-box svg {
    width: 62%;
    max-width: 150px;
    height: auto;
}

.icon-box-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.divider {
    width: 50px; height: 3px;
    background-color: var(--secondary);
    margin: 1rem auto 2rem;
}
.divider.left { margin-left: 0; }

/* ═══════════════════════════════════════════
   HERO ANIMACIJE
   ═══════════════════════════════════════════ */

/* Pozadinski SVG oblici */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border: 1px solid rgba(233, 69, 96, 0.15);
    border-radius: 50%;
}

.shape-1 {
    width: 600px; height: 600px;
    top: -200px; right: -150px;
    animation: rotate-slow 25s linear infinite;
    border-color: rgba(233, 69, 96, 0.12);
}

.shape-2 {
    width: 350px; height: 350px;
    top: -50px; right: 50px;
    animation: rotate-slow 18s linear infinite reverse;
    border-color: rgba(233, 69, 96, 0.2);
}

.shape-3 {
    width: 150px; height: 150px;
    bottom: 80px; right: 300px;
    animation: float 6s ease-in-out infinite;
    border-color: rgba(233, 69, 96, 0.25);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-4 {
    width: 80px; height: 80px;
    bottom: 200px; left: 5%;
    animation: float 8s ease-in-out infinite 2s;
    border-color: rgba(233, 69, 96, 0.2);
    transform: rotate(45deg);
    border-radius: 4px;
}

/* Tačkasta mreža u pozadini */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(233,69,96,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* SVG linija koja se iscrtava */
.hero-svg-draw {
    position: absolute;
    bottom: 0; right: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.draw-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-line 3s ease forwards 0.5s;
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50%       { transform: translateY(-20px) rotate(45deg); }
}

/* ── Elementi koji ulete ── */
.hero-animate {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-animate.hero-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stat kartice ulete odozdo */
.stat-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-animate.hero-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   PARTNER KARTICE
   ═══════════════════════════════════════════ */
.partner-card:hover {
    border-color: var(--secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════
   KLIJENTI SLIDER
   ═══════════════════════════════════════════ */
.klijenti-slider-wrap {
    padding: 0 48px;
}

.klijenti-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 0.25rem 0.25rem 0.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.klijenti-slider::-webkit-scrollbar { display: none; }

.klijent-card {
    flex: 0 0 auto;
    width: 200px;
    cursor: pointer;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.25s;
}

.klijent-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.klijent-card-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    padding: 1.25rem;
    text-align: center;
}

.klijent-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.klijent-card-body {
    padding: 0.9rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.klijent-card-naziv {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.klijent-card-meta {
    font-size: 0.7rem;
    color: #888;
}

.klijenti-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.2s;
    color: var(--primary);
}

.klijenti-arrow:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.klijenti-arrow-left  { left: 0; }
.klijenti-arrow-right { right: 0; }

@media (max-width: 575px) {
    .klijenti-slider-wrap { padding: 0; }
    .klijenti-arrow { display: none; }
}

/* ═══════════════════════════════════════════
   OPENING SPLASH
   ═══════════════════════════════════════════ */
#intro-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0B0B16;
    animation: intro-fade-out 0.6s ease forwards 3.95s;
}

@keyframes intro-fade-out {
    to { opacity: 0; visibility: hidden; }
}

/* ── Crtica / kursor ── */
.intro-caret {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 64px;
    background: #fff;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation:
        intro-caret-blink 1s steps(1, end) forwards,
        intro-caret-move 0.4s ease forwards 1s;
}

@keyframes intro-caret-blink {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    30%  { opacity: 1; }
    45%  { opacity: 0; }
    60%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes intro-caret-move {
    from { transform: translate(-50%, -50%) translateX(0); opacity: 1; }
    to   { transform: translate(-50%, -50%) translateX(-46vw); opacity: 0; }
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
}

.intro-text { margin: 0; color: #fff; }

.intro-line1,
.intro-line2 {
    display: block;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}

.intro-line1 {
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
    animation: intro-type 0.5s steps(16, end) forwards 1.15s;
}

.intro-line2 {
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.05;
    color: #fff;
    animation: intro-type 0.65s steps(10, end) forwards 1.7s;
}

@keyframes intro-type {
    from { clip-path: inset(0 100% 0 0); opacity: 1; }
    to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ── Simboli oko teksta ── */
.intro-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    opacity: 0;
}

.intro-icon svg { width: 100%; height: auto; display: block; }

.intro-icon.icon-tl {
    animation: intro-icon-in-tl 0.5s ease forwards 2.5s,
               intro-icon-fly-tl 0.75s ease forwards 3.3s;
}
.intro-icon.icon-tr {
    animation: intro-icon-in-tr 0.5s ease forwards 2.6s,
               intro-icon-fly-tr 0.75s ease forwards 3.35s;
}
.intro-icon.icon-bl {
    animation: intro-icon-in-bl 0.5s ease forwards 2.65s,
               intro-icon-fly-bl 0.75s ease forwards 3.4s;
}
.intro-icon.icon-br {
    animation: intro-icon-in-br 0.5s ease forwards 2.55s,
               intro-icon-fly-br 0.75s ease forwards 3.35s;
}

/* Ulazak – zaustave se OKO teksta, ne preko njega */
@keyframes intro-icon-in-tl {
    from { opacity: 0; transform: translate(-50%,-50%) translate(-8vw,-6vh) scale(0.5); }
    to   { opacity: 1; transform: translate(-50%,-50%) translate(-23vw,-21vh) scale(1); }
}
@keyframes intro-icon-in-tr {
    from { opacity: 0; transform: translate(-50%,-50%) translate(8vw,-6vh) scale(0.5); }
    to   { opacity: 1; transform: translate(-50%,-50%) translate(23vw,-21vh) scale(1); }
}
@keyframes intro-icon-in-bl {
    from { opacity: 0; transform: translate(-50%,-50%) translate(-8vw,6vh) scale(0.5); }
    to   { opacity: 1; transform: translate(-50%,-50%) translate(-23vw,21vh) scale(1); }
}
@keyframes intro-icon-in-br {
    from { opacity: 0; transform: translate(-50%,-50%) translate(8vw,6vh) scale(0.5); }
    to   { opacity: 1; transform: translate(-50%,-50%) translate(23vw,21vh) scale(1); }
}

/* Razlaz – nastavljaju dalje ka pravim uglovima i nestaju */
@keyframes intro-icon-fly-tl {
    to { opacity: 0; transform: translate(-50%,-50%) translate(-46vw,-42vh) scale(0.6); }
}
@keyframes intro-icon-fly-tr {
    to { opacity: 0; transform: translate(-50%,-50%) translate(46vw,-42vh) scale(0.6); }
}
@keyframes intro-icon-fly-bl {
    to { opacity: 0; transform: translate(-50%,-50%) translate(-46vw,42vh) scale(0.6); }
}
@keyframes intro-icon-fly-br {
    to { opacity: 0; transform: translate(-50%,-50%) translate(46vw,42vh) scale(0.6); }
}

/* ═══════════════════════════════════════════
   GALERIJA – portret grid (foto/video su vertikalni)
   ═══════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--light);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   GLOBE – mobilni background
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero {
        position: relative;
        overflow: hidden;
    }

    /* Sakrij badge-eve sa brojevima – ne staju pored dugmića na malim ekranima */
    .hero .col-lg-5 .position-absolute {
        display: none !important;
    }

    /* Globus ide kao suptilna pozadina cele hero sekcije */
    #hero-globe-canvas {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 340px !important;
        height: 340px !important;
        opacity: 0.15 !important;
        pointer-events: none;
        display: block !important;
        z-index: 0;
    }

    /* Tekst ide iznad globusa */
    .hero .col-lg-7 {
        position: relative;
        z-index: 1;
    }

    /* Kolona sa globusom postaje pozadinski sloj cele sekcije, ne zauzima prostor u toku */
    .hero .col-lg-5 {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }
}