/* ---  RESPONSIVE FIKSNA NAVIGACIJA --- */

/* Na desktop ekranima (iznad 1200px) meni je fiksan na vrhu */
@media (width > 1200px) {
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000 !important;
        background-color: rgba(0, 0, 0, 0.02) !important;
        backdrop-filter: blur(12px);
    }

    .dropdown {
        position: relative !important;
    }

    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        transform: none !important;
        min-width: auto !important;
    }
}

/* Na mobilnim uređajima (do 1200px) meni se normalno kreće sa stranicom */
@media (max-width: 1200px) {
    .navbar {
        position: relative !important;
        z-index: 10;
        background-color: transparent !important;
    }
}

/* --- STILOVI ZA RODITELJSKI NAV-ITEM (Pozadina i Radius) --- */
.navbar-nav .nav-item {
    border-radius: 8px !important;
    background-color: transparent;
    transition: background-color 0.25s ease-in-out;
    padding: 8px 16px;
}

/* Pozadina na HOVER za cijelu stavku */
.navbar-nav .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* AKTIVNO STANJE: Roditelj dobija pozadinu AKO sadrži aktivni link unutar sebe */
.navbar-nav .nav-item:has(.nav-link.active) {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
}

/* --- STILOVI ZA UNUTRAŠNJI NAV-LINK (Tekst i Border) --- */
.navbar-nav .nav-link {
    padding: 4px 0 !important;
    border-bottom: 2px solid transparent !important;
    transition:
        color 0.25s ease-in-out,
        border-color 0.25s ease-in-out;
}

/* Kada je link AKTIVAN, dobija bijelu boju i Macaw liniju na dnu */
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: transparent !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(135deg, var(--macaw-blue-green) 0%, var(--toolbox) 100%) 1 !important;
}

/* Promjena boje teksta na HOVER */
.navbar-nav .nav-item:hover .nav-link {
    color: white !important;
}

/* --- PRILAGOĐAVANJE BOJA ZA STANDARDNI DROPDOWN-MENU --- */

.navbar .dropdown-menu {
    background-color: var(--ebony) !important;
}

.navbar .dropdown-menu .dropdown-item {
    transition: all 0.2s ease-in-out;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.offcanvas {
    z-index: 9999 !important;
    color: var(--bs-offcanvas-color);
    background-color: var(--ebony);
}

.navbar-nav .nav-item:has(.show) {
    background-color: var(--ebony) !important;
}

.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-item.show .nav-link {
    color: var(--cadet-grey) !important;
}

.ellipse-1 {
    position: absolute;
    width: 1200px;
    height: 1200px;
    top: 0;
    left: 0;
    transform: translate(-50%, -75%) translateZ(0);
    border-radius: 50%;
    background: radial-gradient(circle, var(--jaguar) 0%, var(--ebony) 70%, transparent 100%);
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}

.ellipse-2 {
    position: absolute;
    width: 1200px;
    height: 1000px;
    top: 0;
    left: 0;
    transform: translate(-50%, 50%) translateZ(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 98, 170, 0.6) 0%, rgba(15, 60, 63, 0) 100%);

    filter: blur(130px);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.ellipse-3 {
    position: absolute;
    width: 1200px;
    height: 1200px;
    top: 0;
    right: 0;
    transform: translate(65%, -75%) translateZ(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 199, 215, 0.6) 0%, rgba(15, 60, 63, 0) 100%);
    filter: blur(130px);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.ellipse-4 {
    position: absolute;
    width: 1200px;
    height: 1200px;
    bottom: 0;
    left: 0;
    transform: translate(-60%, 75%) translateZ(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 199, 213, 0.6) 0%, rgba(15, 60, 63, 0) 100%);
    filter: blur(100px);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.ellipse-5 {
    position: absolute;
    width: 1200px;
    height: 1000px;
    bottom: 0;
    left: 0;
    transform: translate(-60%, 95%) translateZ(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 98, 170, 0.6) 0%, rgba(15, 60, 63, 0) 100%);

    filter: blur(100px);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
    will-change: filter, transform;
}

.ellipse-6 {
    position: absolute;
    width: 1200px;
    height: 1000px;
    bottom: 0;
    right: 0;
    transform: translate(60%, 95%) translateZ(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 199, 215, 0.6) 0%, rgba(15, 60, 63, 0) 100%);

    filter: blur(100px);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
    will-change: filter, transform;
}

.ellipse-7 {
    transform: translate(-80%, 50%) translateZ(0) !important;
}

.ellipse-8 {
    transform: translate(-80%, 50%) translateZ(0) !important;
}

.ellipse-9 {
    transform: translate(-85%, 0%) translateZ(0) !important;
}
.ellipse-10 {
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: translate(70%, 70%) translateZ(0) !important;
}
.ellipse-11 {
    transform: translate(-75%, -10%) translateZ(0) !important;
}
.ellipse-12 {
    top: auto !important;
    right: auto !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: translate(-40%, 95%) translateZ(0) !important;
}
.ellipse-13 {
    top: auto !important;
    bottom: 0 !important;
    transform: translate(40%, 95%) translateZ(0) !important;
}
.ellipse-14 {
    transform: translate(-90%, -80%) translateZ(0) !important;
}
.ellipse-15 {
    transform: translate(145%, 120%) translateZ(0) !important;
}
.ellipse-16 {
    width: 1400px;
    height: 800px;
    transform: translate(-90%, 0%) translateZ(0) !important;
}
.ellipse-16 {
    width: 1200px;
    height: 800px;
    transform: translate(-70%, 70%) translateZ(0) !important;
}
.ellipse-17 {
    width: 1200px;
    height: 800px;
    transform: translate(-90%, 0%) translateZ(0) !important;
}
.ellipse-18 {
    width: 1200px;
    height: 1000px;
    transform: translate(140%, 110%) translateZ(0) !important;
}
.hero-section {
    /* Klasa za gradijentni tekst sa slike */
    .text-gradient-clip {
        background: linear-gradient(135deg, var(--macaw-blue-green) 0%, var(--toolbox) 100%) !important;
        color: transparent !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        display: inline-block;
    }
}

.cta {
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    /* Dodaje zamućenje pozadine iza kartice za pravi Figma "glass" efekat */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Podrška za Safari */

    .ellipse-cta-1 {
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(88, 199, 215, 0.55) 0%, rgba(88, 199, 215, 0) 70%);
        filter: blur(80px);
        pointer-events: none;
    }

    .ellipse-cta-2 {
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(126, 98, 170, 0.5) 0%, rgba(126, 98, 170, 0) 70%);
        filter: blur(80px);
        pointer-events: none;
        top: auto !important;
        left: auto !important;
        transform: translate(50%, 50%) !important;
    }
}

/* Forme lebde oko svojih pozicija i uvijek ostaju u hero kadru. */
.hero-orbit-art {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.hero-orbit-laptops {
    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.25));
}
.floating-shape {
    object-fit: contain;
    pointer-events: none;
}
.floating-shape.start-0 {
    left: clamp(32px, 4vw, 64px) !important;
}
.floating-shape.end-0 {
    right: clamp(32px, 4vw, 64px) !important;
}
.floating-shape.top-0 {
    top: 20px !important;
}
.trust-indicator {
    flex-shrink: 0;
}
.trust-indicator > g {
    transform-origin: 13.5px 13.5px;
}
@media (prefers-reduced-motion: no-preference) {
    .trust-indicator > g {
        animation: trust-pulse 3s ease-in-out infinite;
    }
    .hero-laptop-left,
    .hero-laptop-about {
        animation: hero-laptops-sway 10s ease-in-out infinite;
    }
    .hero-laptop-right {
        animation: hero-laptops-sway 13s ease-in-out -3s infinite reverse;
    }
    .hero-orbit-shape {
        animation: hero-orbit-small 9s linear infinite;
    }
    .hero-orbit-shape-b {
        animation-delay: -2.7s;
        animation-duration: 13s;
    }
    .hero-orbit-shape-c {
        animation-delay: -5.1s;
        animation-duration: 12s;
    }
    .hero-orbit-shape-d {
        animation-delay: -7.3s;
        animation-duration: 14s;
    }
    .floating-shape {
        animation: section-float 8s ease-in-out infinite;
    }
    .floating-shape:nth-of-type(even) {
        animation-delay: -3s;
        animation-duration: 10s;
    }
}
@keyframes trust-pulse {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}
@keyframes hero-laptops-sway {
    0%,
    100% {
        transform: translateX(-12px);
    }
    50% {
        transform: translateX(12px);
    }
}
@keyframes hero-orbit-small {
    0%,
    100% {
        transform: translate(0, -24px);
    }
    6.25% {
        transform: translate(9px, -22px);
    }
    12.5% {
        transform: translate(17px, -17px);
    }
    18.75% {
        transform: translate(22px, -9px);
    }
    25% {
        transform: translate(24px, 0);
    }
    31.25% {
        transform: translate(22px, 9px);
    }
    37.5% {
        transform: translate(17px, 17px);
    }
    43.75% {
        transform: translate(9px, 22px);
    }
    50% {
        transform: translate(0, 24px);
    }
    56.25% {
        transform: translate(-9px, 22px);
    }
    62.5% {
        transform: translate(-17px, 17px);
    }
    68.75% {
        transform: translate(-22px, 9px);
    }
    75% {
        transform: translate(-24px, 0);
    }
    81.25% {
        transform: translate(-22px, -9px);
    }
    87.5% {
        transform: translate(-17px, -17px);
    }
    93.75% {
        transform: translate(-9px, -22px);
    }
}
@keyframes section-float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(7px, 5px);
    }
    50% {
        transform: translate(0, 13px);
    }
    75% {
        transform: translate(-7px, 6px);
    }
}

/* Ograniči dekorativne slojeve na Home bez skrivanja normalnog vertikalnog skrola. */
.home-page {
    overflow-x: clip;
}
.home-hero {
    padding-block: 48px;
}

/* About hero starts behind the navigation and fills the full viewport. */
@media (min-width: 992px) {
    .about-hero {
        min-height: 100svh;
    }
}

@media (min-width: 992px) {
    .home-hero {
        min-height: 100svh;
        display: flex;
        align-items: center;
        padding-block: 96px 32px;
    }
}
.client-slider-layout {
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-slider-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.client-slider-track {
    display: flex;
}
.client-slider-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 48px;
    flex: 0 0 auto;
    min-width: 100%;
    list-style: none;
    margin: 0;
    padding: 20px 24px;
}
.client-slider-group li {
    flex: 0 0 160px;
    text-align: center;
}
.client-slider-group img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 64px;
    opacity: 0.75;
    transition:
        opacity 0.25s,
        transform 0.25s;
}
.client-slider-group li:hover img {
    opacity: 1;
    transform: scale(1.06);
}
.client-slider-window:focus-visible {
    outline: 2px solid var(--aquamarine-blue);
    outline-offset: 4px;
}
.client-slider.is-ready .client-slider-group {
    animation: client-slide 32s linear infinite;
}
.client-slider:hover .client-slider-group,
.client-slider:focus-within .client-slider-group {
    animation-play-state: paused;
}
@keyframes client-slide {
    to {
        transform: translateX(-100%);
    }
}
@media (max-width: 767.98px) {
    .client-slider-window {
        flex: auto;
        width: 100%;
    }
    .client-slider-group {
        gap: 32px;
        padding-inline: 16px;
    }
    .client-slider-group li {
        flex-basis: 120px;
    }
    .client-slider-group img {
        max-height: 52px;
    }
}
.client-slider:not(.is-ready) .client-slider-group {
    flex-wrap: wrap;
    flex-shrink: 1;
}
@media (prefers-reduced-motion: reduce) {
    .client-slider.is-ready .client-slider-group {
        animation: none;
        flex-wrap: wrap;
        flex-shrink: 1;
    }
    .client-slider-group[aria-hidden='true'] {
        display: none;
    }
    .client-slider-window {
        mask-image: none;
    }
    .client-slider-group img {
        transition: none;
    }
}
.home-featured {
    overflow: clip;
}
.home-about-section > .row {
    margin-right: 0;
}
@media (max-width: 991.98px) {
    .home-about-section > .row > .position-absolute {
        position: static !important;
    }
}
.service-card {
    container-type: inline-size;
}
.service-card .service-card-title {
    font-size: clamp(14px, 7cqw, 24px);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
