.outfit-uniquifier {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

html,
body {
    height: 100%;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

h2 {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    text-wrap: balance;

}

h1,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3 {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    text-wrap: balance;
}

.display-1 {
    font-size: 2.5rem;
}

.display-5 {
    font-size: 1.8rem;
    text-wrap: balance;
}

.display-2 {
    font-size: 2rem;
}

.naslov {
    color: #646872;
}

.container {
    max-width: 1320px;
}

#prvabg {
    height: 75vh;

}

.naslov {
    font-size: 2.8rem;
}

.logo {
    width: 300px;
    font-size: 38px;
    font-weight: bold;
    color: rgb(68, 218, 255);

}

.logoFooter {
    width: 100px;
}

.logoM {
    width: 40px;
}

.main-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.menu-link {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.8rem 0;
    color: #B08A56;
    text-decoration: none;
}

.menu-link:hover {
    opacity: 0.8;
}

/* Footer link */
.menu-footer {
    margin-top: 3rem;
}

.menu-cta {
    color: #B08A56;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
}

.menu-cta:hover {
    opacity: 0.8;
}

.offcanvas {
    background-color: #E7DCC5 !important;

}

.btn-close,
.btn-close:hover {
    color: var(--bs-btn-close-color);
}

.btn-close {
    --bs-btn-close-color: #ffffff !important;
    --bs-btn-close-bg: url(data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E);
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: none;
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
    background: transparent var(--bs-btn-close-bg) center / 1.2em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    box-sizing: content-box;
    height: 2rem;
    opacity: var(--bs-btn-close-opacity);
    padding: .25em;
    width: 1.5em;
}

.opis {
    font-size: 1.2rem;
    line-height: 0.8;
    font-weight: 500;
    color: #0C334F;
    text-wrap: balance;
}

.opis-mali {
    font-size: 1.2rem;
    line-height: 0.8;
    font-weight: 500;
    color: #0C334F;
    text-wrap: balance;
}

.hero-video-section {
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* tamni overlay */
    z-index: 1;
}

.hero-video-section .container {
    z-index: 3;
}

.bojaNaslova {
    color: #B08A56;
}

.text-link {
    color: #C9C3B3;
}

.pozadina-maslina {
    background-color: #E7DCC5;
}

#sectionbg {
    height: 50vh;
}

.slogan {
    font-size: 2.2rem;
    font-weight: 600;
}

.vertical-line {
    width: 1px;
    background: #B08A56;
    /* Bootstrap light border */
    height: 100%;
    min-height: 300px;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    flex-wrap: wrap;
    padding: 20px 0;
}

.timeline-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    position: relative;
}

.timeline-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    border: 1px solid #B08A56;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    color: #B08A56;
}

/* Horizontal line */
.timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    height: 2px;
    background: #B08A56;
    z-index: 1;
}

/* Bring icons above line */
.timeline-icon {
    position: relative;
    z-index: 2;
}

.card-hover {
    position: relative;
    overflow: hidden;
    /* drží sadržaj unutar okvira karte */
    padding-inline: 12px;
    border-radius: inherit;
    will-change: transform, box-shadow;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}

.card-hover:hover .card-body {
    background-color: none !important;
    /* Pozadina ostaje transparentna */
}

.card-hover:hover .card-title,
.card-hover:hover .card-text,
.card-hover:hover .text-decoration {
    color: #B08A56;
    /* Promjena boje teksta na hover */
}

.card-hover:hover {
    transform: scale(1.03);
    transform-origin: center center;
    z-index: 1;
    /* ne izvlači se iz svog kontejnera */
}

.card-section-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0;
}

.legend-card-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

#prvabglegenda {
    height: 75vh;

}

:root {
    --card-gap: 20px;
    --card-top-start: 20px;
    --card-height: 50vh;
    --card-border-radius: 1.5rem;
}

.section-stack {
    position: relative;
    width: 100%;
}

.video-stack-item {
    position: sticky;
    width: 100%;
    height: var(--card-height);
    margin-bottom: calc(var(--card-gap) * -1);
    will-change: transform, opacity;
}

/* Sticky top pozicije */
.video-stack-item:nth-child(1) {
    top: calc(var(--card-top-start));
    z-index: 1;
}

.video-stack-item:nth-child(2) {
    top: calc(var(--card-top-start) + var(--card-gap));
    z-index: 2;
}

.video-stack-item:nth-child(3) {
    top: calc(var(--card-top-start) + var(--card-gap) * 2);
    z-index: 3;
}

.video-stack-item:nth-child(4) {
    top: calc(var(--card-top-start) + var(--card-gap) * 3);
    z-index: 4;
}

.video-stack-item:nth-child(5) {
    top: calc(var(--card-top-start) + var(--card-gap) * 4);
    z-index: 5;
}

.video-stack-item:nth-child(6) {
    top: calc(var(--card-top-start) + var(--card-gap) * 5);
    z-index: 6;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    cursor: pointer;
}

.case-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 21;
    overflow: hidden;
    background: #f0f0f0;
}

.case-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.case-media .cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
}

.case-info {
    padding-top: 16px;
}

.case-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.case-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}


/* Mobile – vertical */
@media (max-width: 768px) {
    .timeline-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .timeline-wrapper::before {
        display: none;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}




@media (min-width: 768px) {
    :root {
        --card-gap: 20px;
        --card-top-start: 10px;
        --card-height: 100vh;
        --card-border-radius: 1.5rem;
    }

    .display-1 {
        font-size: 3.825rem;
    }

    .display-2 {
        font-size: 2.5rem;
    }

    #prvabg {
        height: 75vh;
    }

    #sectionbg {
        height: 80vh;
    }



    .card-section-img {
        width: 100%;
        height: 500px;
        overflow: hidden;
        border-radius: 0;
    }

    .card-hover {
        position: relative;
        overflow: hidden;
        /* drží sadržaj unutar okvira karte */
        border-radius: inherit;
        will-change: transform, box-shadow;
        transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
    }

    .hero-video-section {
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .opis {
        font-size: 2.8rem;
        line-height: 1.2;
        font-weight: 400;
    }

    .opis-mali {
        font-size: 2.0rem;
        line-height: 1.2;
        font-weight: 500;
    }

    .naslov {
        font-size: 6.8rem;
    }

    .slogan {
        font-size: 4.8rem;
        font-weight: 600;
    }

    .offcanvas {
        background-color: #E7DCC5 !important;
        bottom: 0;
        box-shadow: var(--bs-offcanvas-box-shadow);
        color: white;
        display: flex;
        flex-direction: column;
        max-width: 100%;
        outline: 0;
        position: fixed;
        transition: var(--bs-offcanvas-transition);
        visibility: hidden;
        z-index: var(--bs-offcanvas-zindex);
    }

    .offcanvas.offcanvas-end {
        width: 50% !important;
    }

    .btn-close,
    .btn-close:hover {
        color: var(--bs-btn-close-color);
    }

    .btn-close {
        --bs-btn-close-color: #ffffff !important;
        --bs-btn-close-bg: url(data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E);
        --bs-btn-close-opacity: 0.5;
        --bs-btn-close-hover-opacity: 0.75;
        --bs-btn-close-focus-shadow: none;
        --bs-btn-close-focus-opacity: 1;
        --bs-btn-close-disabled-opacity: 0.25;
        --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
        background: transparent var(--bs-btn-close-bg) center / 2.2em auto no-repeat;
        border: 0;
        border-radius: .375rem;
        box-sizing: content-box;
        height: 2rem;
        opacity: var(--bs-btn-close-opacity);
        padding: .25em;
        width: 5.5em;
    }

    .navbar-toggler-icon {
        width: 2.2em;
    }

    .main-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-menu-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    .menu-link {
        display: block;
        font-size: 2.4rem;
        font-weight: 600;
        padding: 1.2rem 0;
        color: #B08A56;
        text-decoration: none;
    }

    .menu-link:hover {
        opacity: 0.8;
    }

    /* Footer link */
    .menu-footer {
        margin-top: 3rem;
    }

    .menu-cta {
        color: #B08A56;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

    .menu-cta:hover {
        opacity: 0.8;
    }

    .case-media {
        aspect-ratio: 16 / 9;
    }
}