/* ===========================
   ROOT & GLOBAL
=========================== */

:root {
    --bg: #050814;
    --bg-elevated: #081326;
    --bg-soft: #0b1730;
    --hero-orbit: #1a2f55;
    --text-main: #f5f5f7;           /* topla bijela */
    --text-muted: #a4b0c5;
    --accent: #2f7df4;              /* plava */
    --accent-soft: rgba(47, 125, 244, 0.2);
    --accent-warm: #ff9f43;         /* narančasta */
    --accent-warm-soft: rgba(255, 159, 67, 0.22);
    --border-soft: rgba(255,255,255,0.06);
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
    --radius-xl: 26px;
    --section-width: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(
        circle at 20% 20%,
        #0f1b31 0%,
        #0a1424 40%,
        #050b14 100%
    );
    background-attachment: fixed;    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
}

/* Typography utils */

h1, h2, h3 {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0 0 12px;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===========================
   HEADER & NAVBAR
=========================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    padding-top: 14px;
    pointer-events: none;
}

.nav-shell {
    max-width: var(--section-width);
    margin: 0 auto;
    padding: 0 16px;
}

.navbar {
    pointer-events: auto;
    background: rgba(7, 15, 34, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(18px);
    transform-origin: top center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.navbar.shrink {
    transform: scale(0.96) translateY(-4px);
    background: rgba(4,10,25,0.95);
    border-color: rgba(255,255,255,0.04);
}

.logo {
  
        height: 68px;     /* povecaj */
        transition: 0.25s ease;
    
    }

.nav-center {
    display: flex;
    gap: 22px;
    font-size: 0.9rem;
}

.nav-center a {
    position: relative;
    overflow: hidden;
}

.nav-center a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4d8dff, #ff8b00);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

.nav-center a:hover::after,
.nav-center a.active-link::after {
    transform: translateX(0);
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lang-switch {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch span[data-lang] {
    cursor: pointer;
    transition: color 0.18s ease;
}

.lang-switch span[data-lang].active {
    color: var(--accent-warm);
}

.lang-switch .separator {
    opacity: 0.5;
}

/* Hamburger */

.hamburger {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
    margin: 2px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* mobile-open state toggled in JS */
.nav-open .nav-center {
    display: flex;
}

/* ===========================
   HERO
=========================== */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 16px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero background & parallax orbit */

.hero-gradient-orbit {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 10%, rgba(47,125,244,0.38), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(255,159,67,0.24), transparent 55%),
        radial-gradient(circle at 50% 40%, rgba(20,40,90,0.95), transparent 75%);
    opacity: 0.96;
    transform: translate3d(0,0,0);
    transition: transform 0.5s ease-out;
    z-index: 0;
}

/* Hero particles canvas */

#heroParticles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4d9fff);
    color: #ffffff;
    box-shadow:
      0 10px 30px rgba(13,110,253,0.55),
      0 0 0 1px rgba(255,255,255,0.08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
      0 16px 40px rgba(13,110,253,0.65),
      0 0 0 1px rgba(255,255,255,0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(255,255,255,0.16);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
}

/* ===========================
   SECTIONS
=========================== */

.section {
    max-width: var(--section-width);
    margin: 0 auto;
    padding: 90px 16px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 2rem;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 10px;
}

/* ===========================
   ABOUT
=========================== */

.about-section {
    position: relative;
}

.about-inner {
    text-align: center;
}

.about-text {
    max-width: 820px;
    margin: 0 auto 46px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.enhanced-card {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 30px 38px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(47,125,244,0.23), rgba(6,10,25,0.98));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.avatar-frame {
    position: relative;
}

.avatar-pro {
    width: 170px;
    height: 170px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 18px 35px rgba(0,0,0,0.75);
}

.avatar-glow {
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.25);
    mix-blend-mode: screen;
    pointer-events: none;
}

.employee-name {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.employee-title {
    font-size: 0.98rem;
    color: var(--accent-warm);
    margin-bottom: 10px;
}

.employee-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 360px;
}

/* ===========================
   SERVICES – VARIJANTA B
=========================== */

.services-section {
    position: relative;
}

.services-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Osnovna kartica */

.service-card {
    background: var(--bg-elevated);
    border-radius: 24px;
    padding: 18px 18px 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    border: 1px solid rgba(255,255,255,0.03);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(30,94,188,0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.7);
}

.service-card:hover::before {
    opacity: 1;
}

/* glavna kartica */

.service-main {
    transform: translateY(-16px);
    background: linear-gradient(145deg, #15253f, #0f213e 55%, #1e5ebc 120%);
    border-color: rgba(110, 167, 255, 0.52);
}

.service-main:hover {
    transform: translateY(-22px) scale(1.01);
}

/* slika */

.service-image {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.16));
}

.service-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.07);
}

/* tekst */

.service-content {
    padding: 8px 4px 0;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10px;
}

.service-tag.accent {
    color: #fffaf2;
    background: linear-gradient(120deg, var(--accent-warm-soft), rgba(47,125,244,0.5));
    border-color: rgba(255,255,255,0.2);
}

.service-content h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.service-content p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===========================
   INDUSTRIES — PREMIUM LIST
=========================== */

/* ==============================
   INDUSTRIES — Premium Layout
================================= */

.industries-section {
    padding: 120px 0;
    position: relative;
}

.industries-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: flex-start;
    max-width: 1300px;
    margin: auto;
}

/* LEFT — sticky text */
.industries-left {
    position: sticky;
    top: 110px;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.industries-left .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fa6c9;
    margin-bottom: 10px;
}

.industries-left h2 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 18px;
}

.industries-left .industries-desc {
    font-size: 1.1rem;
    color: #b8c7dc;
    line-height: 1.7;
    max-width: 420px;
}

/* RIGHT — items */
.industries-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ITEM */
.industry-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 22px 28px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.industry-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.industry-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text */
.industry-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.industry-item p {
    color: #b8c7dc;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 980px) {
    .industries-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .industries-left {
        position: relative;
        top: 0;
        text-align: center;
    }

    .industries-left .industries-desc {
        margin: auto;
    }
}



/* ===========================
   CLIENTS
=========================== */
/* ===========================
   KLIJENTI — PREMIUM REWORK
=========================== */

.clients-section {
    padding: 130px 0 90px;
    position: relative;
}

.clients-header {
    max-width: 680px;
    margin-bottom: 50px;
}

.eyebrow {
    font-size: 0.85rem;
    color: #ffb36b;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.client-card {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
    transition: 0.35s ease;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.client-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 60px rgba(0,0,0,0.55);
}

.client-card img {
    height: 55px;
    object-fit: contain;
    margin-bottom: 15px;
    opacity: 0.92;
    transition: 0.3s ease;
}

.client-card:hover img {
    opacity: 1;
}

.client-card p {
    color: #cdd8e7;
    font-size: 1rem;
}


/* ===========================
   KONTAKT — NOVI HERO STIL
=========================== */
/* ===========================
   CONTACT SECTION — PREMIUM
=========================== */

.contact-section {
    padding-top: 120px;
    padding-bottom: 140px;
    position: relative;
}

.contact-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* CONTACT BUTTON */
.contact-btn {
    display: inline-block;
    padding: 14px 38px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff8a3d, #ff6a00);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(255, 122, 41, 0.45);
    transition: transform .28s ease, box-shadow .3s ease, opacity .25s;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(255, 128, 54, 0.65);
    opacity: .95;
}




/* RESPONSIVE FIXES */
@media (max-width: 640px) {
    .contact-section {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .contact-btn {
        width: 80%;
        padding: 14px 0;
    }
}



/* ===========================
   FOOTER — Apple-ish
=========================== */

.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    background: radial-gradient(circle at top, #0b1224 0, #050814 40%, #02030a 90%);
    padding: 26px 16px 30px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--section-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-brand {
    font-family: "Space Grotesk", system-ui;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-main);
}

.footer-right {
    display: flex;
    gap: 18px;
}

.footer-right a {
    position: relative;
}

.footer-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: rgba(255,255,255,0.5);
    transition: width 0.2s ease;
}

.footer-right a:hover::after {
    width: 100%;
}



/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1040px) {
    .services-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-main {
        transform: translateY(0);
    }

    .service-card {
        max-width: 620px;
        margin: 0 auto;
    }

    .enhanced-card {
        flex-direction: column;
        text-align: center;
    }

    .employee-note {
        max-width: none;
    }
}

@media (max-width: 820px) {
/* ==============================
   PREMIUM MOBILE NAV MENU
================================= */

    .nav-center {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        right: 16px;
        width: 82%;
        padding: 22px 26px;
        border-radius: 22px;
        background: rgba(12, 18, 35, 0.88);
        backdrop-filter: blur(22px) saturate(140%);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity .35s ease, transform .35s ease;
        z-index: 999;
    }

    /* Kada je otvoren */
    .navbar.nav-open .nav-center {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-center a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: 1.15rem;
        color: #f5f5f7;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin: 2px 0;
    }

    .nav-center a:last-child {
        border-bottom: none;
    }

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

    /* Hamburger centriran i veći */
    .hamburger {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.12);
        backdrop-filter: blur(12px);
        border-radius: 12px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }



    .hero {
        padding-top: 130px;
        padding-bottom: 90px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        max-width: none;
    }

    .enhanced-card {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 70px 16px;
    }

    .service-image img {
        height: 190px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}




.glow-hover {
    position: relative;
    overflow: hidden;
}

.glow-hover::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-hover.active::before {
    opacity: 1;
}
.glow-hover::before {
    left: var(--mx);
    top: var(--my);
}
/* ===========================
   SCROLL ANIMATIONS — PREMIUM
=========================== */

/* Sve sekcije koje ulaze s dna (About, Services...) */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(6px);
    transition:
        opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Fine fade-up za kartice i manje blokove (services, industries, clients, contact) */
.fade-up {
    opacity: 0;
    transform: translateY(30px) scale(0.99);
    filter: blur(4px);
    transition:
        opacity 0.75s ease-out,
        transform 0.75s ease-out,
        filter 0.75s ease-out;
}

.fade-up.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0);
}

/* Mali helperi za lagani stagger */
.delay1 { transition-delay: 0.12s; }
.delay2 { transition-delay: 0.24s; }
.delay3 { transition-delay: 0.36s; }
